%@ page language="java" import="java.sql.*" %>
<%!
// ------------------------------------------------------------
// PAGE CONSTANTS
// ------------------------------------------------------------
// Production
String sDatabaseDriver = "org.gjt.mm.mysql.Driver";
String sDatabaseURL = "jdbc:mysql://tig02.com/tig_db";
String sDatabaseUser = "tigadmin";
String sDatabasePassword = "swoosh23";
String sCookieDomain = ".san-diego-breast-augmentation.com"; // It's important that the domain begin with "."
int nCookieAge = 2592000; // 60sec * 60min * 24hrs * 30day = 2592000sec
// ------------------------------------------------------------
// PAGE METHODS
// ------------------------------------------------------------
// METHOD: isValidCID()
// --------------------
boolean isValidCID(String cid) {
boolean bReturnVal = false;
if (cid != null && !cid.equals("")) {
try {
Integer i = Integer.valueOf(cid);
bReturnVal = true;
} catch (Exception e) {
// Do Nothing
}
} else {
// Do Nothing
}
return bReturnVal;
}
// METHOD: writeCookie()
// ---------------------
void writeCookie(HttpServletResponse resp, String name, String value, String domain, int age) {
if (name != null && !name.equals("")) {
Cookie c = new Cookie(name, value);
if (domain != null) {
c.setDomain(domain);
}
c.setMaxAge(age);
resp.addCookie(c);
}
}
// METHOD: insertTrackingInfo()
// ----------------------------
String insertTrackingInfo(HttpServletRequest req, HttpServletResponse resp, String cid) {
String sFailure = "";
String sReturnVal = sFailure;
try {
int nCampaignId, nResult;
nCampaignId = Integer.parseInt(cid);
Class.forName(sDatabaseDriver);
Connection conn = DriverManager.getConnection(sDatabaseURL, sDatabaseUser, sDatabasePassword);
String sSQL = "insert into tracking " +
"(campaign_id, tracking_date, request_url, referrer_url, remote_addr, remote_host, browser, query_string) " +
"values (?, now(), ?, ?, ?, ?, ?, ?)";
PreparedStatement pstmt = conn.prepareStatement(sSQL);
pstmt.setInt(1, nCampaignId);
pstmt.setString(2, req.getServerName() + req.getRequestURI());
pstmt.setString(3, req.getHeader("REFERER"));
pstmt.setString(4, req.getRemoteAddr());
pstmt.setString(5, req.getRemoteHost());
pstmt.setString(6, req.getHeader("USER-AGENT"));
pstmt.setString(7, req.getQueryString());
nResult = pstmt.executeUpdate();
if (nResult > 0) {
sSQL = "select tracking_id from tracking where tracking_id = LAST_INSERT_ID()";
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery(sSQL);
rs.next();
nResult = rs.getInt(1);
rs.close();
stmt.close();
conn.close();
sReturnVal = String.valueOf(nResult);
} else {
pstmt.close();
conn.close();
//sReturnVal = sFailure;
}
} catch (Exception e) {
//sReturnVal = sFailure;
}
return sReturnVal;
}
//name is the name of the parameter we are searching the query for
//only works for a parameter with one value
String getPar(String name, String query)
{
String value="";
name = name.toLowerCase();
query = query.toLowerCase();
query = query.trim();
//find the first char after the equal sign
//should be the first letter of the query plus the lenght of name plus the equal sign
if ((query.indexOf(name))==-1)
value="";
else
{
int findBeg = (name.length() + query.indexOf(name) + 1);
value = query.substring(findBeg);//parse down the string
int findEnd = (value.indexOf("&")); //where to end to pull
if (findEnd == -1)//there is not another parameter aka &
findEnd = value.length(); //
value=value.substring(0,findEnd);
}
return value;
}
boolean getCookie(Cookie[] c)
{
boolean value=false;
for (int x=0; x < c.length; x++)
{
if (c[x].getName().equals("cid"))
{
//test += c[x].getName();
value=true;
}
}
return value;
}
%>
<%
// No matter what, we cannot let this page fail
try {
String cid="";
if (request.getQueryString() == null)
cid="86";
else
cid = getPar("cid",request.getQueryString());
if (isValidCID(cid)) {
if (getCookie(request.getCookies()) == false)//if cookies are not found.
{
writeCookie(response, "cid", cid, sCookieDomain, nCookieAge);
String tid = insertTrackingInfo(request, response, cid);
if (tid != null && !tid.equals("")) {
writeCookie(response, "tid", tid, sCookieDomain, nCookieAge);
}
}
}//isValid
} catch (Exception e) {
// Do nothing
}
%>
San Diego Breast Augmentation
breast lift
As the skin loses its elasticity and other factors such as pregnancy,
nursing, and the force of gravity take their toll, a women’s
breast can start to lose their shape, firmness, and typically can
begin to sag. The breast lift, or mastopexy, operation is a procedure
to raise and reshape sagging breasts. Mastopexy can also reduce the
size of the areola, the darker skin surrounding the nipple.
before the breast lift surgery
During your consultation, it is important that you fully understand the
breast lift procedure and get all of your questions answered. Discuss
with your doctor your expectations and desired outcome of the breast lift.
The doctor should give you his or her opinion as to what would be best
in terms of size and shape. Don't hesitate to ask your doctor any questions
you may have, especially those regarding your expectations and concerns
about the results.
Prior to the breast lift surgery, the physician should provide a list
of guidelines for preparation for your surgery.
the breast lift surgery
The surgery itself can take anywhere from an hour and a half to three
hours. Breast lift techniques may vary based on the amount of sagging
in the breast, but the most common procedure involves an anchor-shaped
incision following the natural contour of the breast. The surgeon will
relocate the nipple and areola to a higher position, reposition the breast
tissue to a higher level, remove any remaining excess skin from the breast
and reshape all remaining skin. Closing of the remaining skin will help
to reshape and lift the breast to the higher position.
Often, if a patient desires, breast augmentation accompanies the surgery
to bring more shape back to the breasts. If you're having an implant inserted
along with your breast lift, it will be placed in a pocket directly under
the breast tissue, or deeper, under the muscle of the chest wall.
after the breast lift surgery
A key question often asked is how quickly will I get back to normal? Your
surgeon will give you detailed instructions on care and timing to resume
normal activities. In general, the healing process after breast lift surgery
is a gradual process which depends on your individual progression after
the surgery. If you have any discomfort or unusual sensations, feel free
to call your doctor.
The breasts will typically be placed in a gauze dressing or placed in
a surgical bra after surgery. Swelling and discoloration will occur around
your incisions and subside gradually. You may experience decreased sensation,
which is usually temporary, in your nipples or breast skin. Remember,
even the best breast lift can’t fight the effects of gravity over
time. Discuss these expectations with your surgeon.
As with any surgery, a breast lift does carry some uncertainty but is
normally safe as long as it is performed by a Board-Certified plastic
surgeon. But as with any operation, there are risks associated with surgery
and specific complications associated with this procedure. Make sure to
discuss this with your physician. Remember, you can help to reduce any
post-op complications by closely following your surgeon’s instructions.
The information presented on this site is intended to be used for informational use only, it is not intended to be a substitute for professional advice. If you are planning on having a procedure performed or if there is anything you don't understand about your procedure, please consult one of our physicians.
If you would like to schedule a consultation with one of our board certified
plastic surgeons click here or call
(800) 505-3627.