%@ 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 reduction
Breast reduction (reduction mammoplasty) is designed
for people who are seeking relief from medical problems caused by
the excessive weight of large breasts. While different techniques
exist, the procedure still involves the same result; removing fat,
tissue and skin from the breast to make them smaller, lighter and
firmer. Breast reduction can be performed at any age, but plastic
surgeons usually recommend waiting until breast development has stopped.
before the breast reduction surgery
As with any cosmetic procedure, you should come to the consultation
prepared to discuss your expectations. The doctor will work with
you to determine a solution which is appropriate.
During the consultation, the plastic surgeon will examine your breast
and take measurements and photographs for reference before and after
the surgery. The doctor will discuss the different aspects which
affect the procedure-such as your age, the size and shape of your
breasts, and the condition of your skin.
Prior to the surgery, the physician should provide a list of guidelines
for preparation for your breast reduction surgery.
the breast reduction surgery
Techniques for breast reduction vary, but the most common procedure
involves three incisions:the bottom edge of the areola, an incision
extending downward to the crease underneath the breast, and a third
that follows the natural curve of the crease beneath the breast.
The surgeon will than remove the breast tissue, fat, and skin necessary
to reshape the breast. After the surgeon has reshaped the breasts,
the nipple and areola are shifted to a higher position. The areola,
which in large breasts usually has been stretched, also may be reduced
in size. Skin that was formerly located above the nipple is brought
down and together to reshape the breast. Liposuction may be used
to improve the contour under the arm.
after the breast reduction surgery
Your surgeon will give you detailed instructions for resuming your
normal activities. You can reduce any post-operation risk of complication
by closely following your surgeon’s instructions.
You may feel less sensation in the nipple and areola areas for a
short time following the surgery. The time required for the sensation
to return differs in each individual. Your breasts may also require
some time to assume a more natural shape. Incisions will initially
be red or pink in color.
The incisions from your breast reduction surgery will heal and fade
over time. It is important to realize, however, that the incision
lines will be permanently visible, more so in some individuals than
others. Scars around the areola, below it, and in the crease under
the breast are permanent, but can be easily concealed by clothing
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 and understand any issues.
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 a physician.
If you would like to schedule a consultation with one of
our board certified plastic surgeons click
here or call (800) 505-3627.