0byt3m1n1
Path:
/
data
/
17
/
1
/
18
/
11
/
1670011
/
user
/
1801231
/
htdocs
/
pages
/
[
Home
]
File: onsale_product_details.php
<? $catalog_id=$_GET['cat']; $product_id=$_GET['product_id']; $q_catalog="select * from catalog where catalog_id='".$catalog_id."'"; $r_catalog=mysql_query($q_catalog); $row_catalog=mysql_fetch_array($r_catalog); $q_product_list="select * from onsale_product_details where onsale_product_id='".$product_id."'"; $r_product_list=mysql_query($q_product_list); $row_product_list=mysql_fetch_array($r_product_list); if($_POST['Submit']) { echo "buy now"; exit(); } //echo $_SERVER['REQUEST_URI']."<br>"; //echo $_SERVER['HTTP_HOST']; ?> <link href="../css/style.css" rel="stylesheet" type="text/css"> <table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td height="32" align="left" valign="middle" class="create-catalog-header">Product Details -- <strong> <?=$row_catalog['catalog_name']?> </strong> > <strong> <?=$row_product_list['onsale_product_name']?> <font color="#FF0000">(ON SALE) </font></strong></td> </tr> <tr> <td align="left" valign="top"><? include('product_description.php') ?> </td> </tr> <tr> <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <? if($_GET['image_id']=="") { $image_large=$row_product_list['onsale_product_main_image_path']; $_SESSION['image_large']=$image_large; } else { $q_get_image="select * from product_images where product_image_id='".$_GET['image_id']."'"; $r_get_image=mysql_query($q_get_image); $row_get_image=mysql_fetch_array($r_get_image); $image_large=$row_get_image['product_large_image_path']; } ?> <td height="270" align="center" valign="middle"><img src="<?=$image_large?>"></td> <td width="150" align="center" valign="top" bgcolor="#E1F2FF"> <? $q_images="select * from product_images where product_id='".$_GET['product_id']."' and catalog_id='".$_GET['cat']."'"; $r_images=mysql_query($q_images); if(mysql_num_rows($r_images)>0) { ?> <table width="140" border="0" cellspacing="0" cellpadding="2"> <tr> <td align="center" valign="middle"><a href="index.php?page=product_details&&cat=<?=$_GET['cat']?>&&product_id=<?=$_GET['product_id']?>"><img src="<?=$_SESSION['image_large']?>" width="140" height="80" border="0"></a></td> </tr> <? while($row_images=mysql_fetch_array($r_images)) { ?> <tr> <td align="center" valign="middle"> <a style="" href="<?=$row_images['product_large_image_path']?>" class="highslide" onclick="return hs.expand(this)"> <a href="index.php?page=product_details&&cat=<?=$_GET['cat']?>&&product_id=<?=$_GET['product_id']?>&&image_id=<?=$row_images['product_image_id']?>"> <img src="<?=$row_images['product_small_image_path']?>" border="0"> </a> </td> </tr> <? } ?> </table> <? } else { ?> <span class="left-links"><font color="#FF0000" size="2">No Extra Images for this product</font></span><font color="#FF0000"><span class="left-links"> </span></font> <? } ?> </td> </tr> <tr> <td align="right" valign="middle"><form name="form1" method="post" action="index.php?page=buy_product&&cat=<?=$_GET['cat']?>&&product_id=<?=$_GET['product_id']?>"> <table width="539" border="0" cellspacing="0" cellpadding="2"> <tr align="left" valign="middle"> <td width="65" valign="top" class="price-text" style="padding-top:5px"> $ <?=$row_product_list['onsale_product_price']?> </td> <td width="65" height="25" class="left-links">Quantity</td> <td width="25" height="25"> <input name="quantity" type="text" id="quantity" value="1" size="2" maxlength="4"> </td> <td width="150" align="left" valign="middle" class="left-links">Weight : <input name="weight" type="hidden" value="<?=$row_product_list['product_weight']?>"> <?=$row_product_list['onsale_product_weight']?> <?=$weight_unit?> /qty </td> <td width="50" height="25" valign="top"> </td> <td width="80" height="25" valign="top"> </td> </tr> </table> </form></td> <td align="center" valign="top"> </td> </tr> </table></td> </tr> <tr> <td align="left" valign="top"> </td> </tr> <tr> <td align="left" valign="top"><?=$row_product_list['onsale_product_description']?></td> </tr> <tr> <td align="left" valign="top"> </td> </tr> </table>