0byt3m1n1
Path:
/
data
/
17
/
1
/
18
/
11
/
1670011
/
user
/
1801231
/
htdocs
/
pages
/
[
Home
]
File: product_listing_1stfeb.php
<? $catalog_id=$_GET['cat']; $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 product_details where catalog_id='".$catalog_id."'"; $r_product_list=mysql_query($q_product_list); $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"> <body leftmargin="0" topmargin="0"> <table width="100%" border="0" cellspacing="0" cellpadding="3"> <tr> <td height="32" align="left" valign="middle" class="create-catalog-header"><strong>Product List ---- <?=$row_catalog['catalog_name']?> </strong></td> </tr> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="2"> <? $n=0; while($row_product_list=mysql_fetch_array($r_product_list)) { 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_product_list['product_name']?> </td> </tr> <tr align="left" valign="top"> <td width="110" align="center" valign="top"><div> <a style="" href="<?=$row_product_list['product_main_image_path']?>" class="highslide" onClick="return hs.expand(this)"> <img src="<?=$row_product_list['product_main_image_path']?>" width="<?=$small_width?>" height="<?=$small_height?>" border="0" alt="<?=$row_product_list['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_product_list['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_product_list['product_price']?> </td> <td width="152" align="left" valign="middle" class="view-details-text"> <strong> </strong><a href="index.php?page=product_details&&cat=<?=$_GET['cat']?>&&product_id=<?=$row_product_list['product_id']?>"><font color="#FFFFFF">View</font></a></td> </tr> <tr> <td height="25" colspan="2" align="right" valign="middle"><img src="../images/make_offer.jpg" alt="make offer" width="125" height="25" onMouseOver="this.style.cursor='pointer'" onClick="javascript:window.open('make_offer.php?cat=<?=$_GET['cat']?>&&product_id=<?=$row_product_list['product_id']?>','MakeOffer','width=420px,height=300px;')"></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> </table>