0byt3m1n1
Path:
/
data
/
17
/
1
/
18
/
11
/
1670011
/
user
/
1801231
/
htdocs
/
pages
/
[
Home
]
File: onsale.php
<? $q_onsale_res="select * from `onsale_product_details` where onsale_catalog_id='1'"; $r_onsale_res=mysql_query($q_onsale_res); $q_onsale_com="select * from `onsale_product_details` where onsale_catalog_id='2'"; $r_onsale_com=mysql_query($q_onsale_com); $q_small_image="select * from configuration where configuration_id='6'"; $r_small_image=mysql_query($q_small_image); $row_small_image=mysql_fetch_array($r_small_image); $width_height=explode("x",$row_small_image['configuration_value']); $small_width=$width_height[0]; $small_height=$width_height[1]; ?> <link href="../css/style.css" rel="stylesheet" type="text/css"> <table width="750" border="0" cellspacing="0" cellpadding="0"> <? if(mysql_num_rows($r_onsale_res)>0) { ?> <tr align="left" valign="middle" class="create-catalog-header"> <td height="32" colspan="2"> <font color="#000033">Residential Category Tanningbeds</font> -<strong>On Sale </strong></td> </tr> <tr align="left" valign="top"> <td colspan="2" style="padding-top:10px;padding-bottom:10px"> <table width="750" border="0" cellspacing="0" cellpadding="0"> <? /* $i=0; while($row_res=mysql_fetch_array($r_onsale_res)) { if($i%2==0) { ?> <tr> <? } ?> <td align="center" valign="middle" width="370"><img src="<?=$row_res['onsale_product_main_image_path']?>" width="120" height="80"></td> <? $i++; if($i%2==0) { ?> </tr> <? } } */ ?> <? $n=0; while($row_res=mysql_fetch_array($r_onsale_res)) { if($n%2==0) { ?> <tr> <? } ?> <td width="272" align="left" valign="top"> <table width="370" border="0" cellpadding="2" cellspacing="0" class="productlisting-borders"> <tr align="left" valign="top" bgcolor="#D5EAFF"> <td height="25" colspan="2" class="left-links">Product Name - <?=$row_res['onsale_product_name']?> </td> </tr> <tr align="left" valign="top"> <td width="110" align="center" valign="top"><div> <a style="" href="<?=$row_res['onsale_product_main_image_path']?>" class="highslide" onclick="return hs.expand(this)"> <img src="<?=$row_res['onsale_product_main_image_path']?>" width="<?=$small_width?>" height="<?=$small_height?>" border="0" alt="<?=$row_res['onsale_product_small_description']?>"> </a></div> </td> <td><table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td height="55" colspan="2" align="left" valign="top" class="product-listing-description-text"><strong><font color="#990000">Description:</font></strong> <?=str_replace("<p>","",$row_res['onsale_product_small_description'])?> </td> </tr> <tr> <td width="100" height="25" align="left" valign="middle" class="price-text"><font face="Verdana, Arial, Helvetica, sans-serif"> $</font> <?=$row_res['onsale_product_price']?> </td> <td width="152" align="left" valign="middle" class="view-details-text"> <strong> </strong><a href="index.php?page=product_onsale_details&&cat=1&&product_id=<?=$row_res['onsale_product_id']?>"><font color="#FFFFFF">View</font></a></td> </tr> </table></td> </tr> </table> </td> <? $n++; if($n%2==0) { ?> </tr> <tr> <td colspan="2"> </td> </tr> <? } }//end of while if($n%2==1) { ?> <td width="272"> </td> </tr> <tr> <td colspan="2"> </td> </tr> <? } ?> </table> </td> </tr> <? } ?> <? if(mysql_num_rows($r_onsale_com)>0) { ?> <tr align="left" valign="middle" class="create-catalog-header"> <td height="32" colspan="2"> <font color="#000033">Commercial Category Tanningbeds</font> -<strong>On Sale </strong></td> </tr> <tr align="left" valign="top"> <td colspan="2" style="padding-top:10px;padding-bottom:10px"> <table width="750" border="0" cellspacing="0" cellpadding="0"> <? /*$j=0; while($row_com=mysql_fetch_array($r_onsale_com)) { if($j%2==0) { ?> <tr> <? } ?> <td align="center" valign="middle" width="370"><img src="<?=$row_com['onsale_product_main_image_path']?>" width="120" height="80"></td> <? $j++; if($j%2==0) { ?> </tr> <? } } ?> </table> </td> </tr> <? }*/ ?> <? $n=0; while($row_com=mysql_fetch_array($r_onsale_com)) { if($n%2==0) { ?> <tr> <? } ?> <td width="370" align="left" valign="top"> <table width="370" border="0" cellpadding="2" cellspacing="0" class="productlisting-borders"> <tr align="left" valign="top" bgcolor="#D5EAFF"> <td height="25" colspan="2" class="left-links">Product Name - <?=$row_com['onsale_product_name']?> </td> </tr> <tr align="left" valign="top"> <td width="110" align="center" valign="top"><div> <a style="" href="<?=$row_com['onsale_product_main_image_path']?>" class="highslide" onclick="return hs.expand(this)"> <img src="<?=$row_com['onsale_product_main_image_path']?>" width="<?=$small_width?>" height="<?=$small_height?>" border="0" alt="<?=$row_res['onsale_product_small_description']?>"> </a></div> </td> <td><table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td height="55" colspan="2" align="left" valign="top" class="product-listing-description-text"><strong><font color="#990000">Description:</font></strong> <?=str_replace("<p>","",$row_com['onsale_product_small_description'])?> </td> </tr> <tr> <td width="110" height="25" align="left" valign="middle" class="price-text"><font face="Verdana, Arial, Helvetica, sans-serif"> $</font> <?=$row_com['onsale_product_price']?> </td> <td width="152" align="left" valign="middle" class="view-details-text"> <strong> </strong><a href="index.php?page=onsale_product_details&&cat=2&&product_id=<?=$row_com['onsale_product_id']?>"><font color="#FFFFFF">View</font></a></td> </tr> </table></td> </tr> </table> </td> <? $n++; if($n%2==0) { ?> </tr> <tr> <td colspan="2"> </td> </tr> <? } }//end of while if($n%2==1) { ?> <td width="272"> </td> </tr> <tr> <td colspan="2"> </td> </tr> <? } ?> </table> </td> </tr> <? } ?> <tr align="left" valign="top"> <td width="250"> </td> <td width="250"> </td> </tr> <tr align="left" valign="top"> <td> </td> <td> </td> </tr> </table>