?
Path : /home/admin/public_html/old/promice/ |
Current File : /home/admin/public_html/old/promice/product_b.php |
<? include("head.php");?> <style type="text/css"> <!-- .style1 { font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: #000000; } --> </style> <div> <td width="100%" valign="top"> <link rel="stylesheet" href="css/jq.css" type="text/css" media="print, projection, screen" /> <link rel="stylesheet" href="tablesort/themes/blue/style.css" type="text/css" media="print, projection, screen" /> <div align="left"> <script type="text/javascript"> $(function() { $("table") .tablesorter({widthFixed: true, widgets: ['zebra']}) .tablesorterPager({container: $("#pager")}); }); </script> <? if($_GET[id]==""){ $sql = "SELECT brand.*,product.* from brand,product where brand.brand_id=product.pro_brand order by product.pro_brand asc "; }elseif($_GET[status]=="type"){ $sql = "SELECT brand.*,product.* from brand,product where brand.brand_id=product.pro_brand and product.pro_type='$_GET[id]' order by product.pro_brand asc "; }else{ $sql = "SELECT brand.*,product.* from brand,product where brand.brand_id=product.pro_brand and product.pro_brand='$_GET[id]' order by product.pro_brand asc "; } $result=mysql_query($sql); ?> <br /> <img src="images/cart.gif" width="25" height="25" /><span style="font-size: 16pt; color: #FF00FF; font-family: "Times New Roman", Times, serif"> <? if($_SESSION[lan]==0){ echo "สินค้า";}else{ echo"Product";}?></span> <br /> <table cellspacing="1" style="width:100%;" > <? $i=1;?> <?php while ($row = mysql_fetch_assoc($result)){ ?> <? if($i==1){ echo "<tr>";} ?> <td align="center" width="25%" height="240px" > <table width="185px" border="0" height="100%" style="border:solid;border-color:#b197cb"> <tr> <td align="center" valign="top" > <div align="center"><a href="product_p.php?id=<? echo $row['pro_id'];?>"><? if($row[pro_pic]==""){?> <img src="img/no_img.jpg" height="90" border="0" /> <? }else{?><img src="img/<? echo $row[pro_pic];?>" height="90" border="0" /> <? } ?></a> <br /> <? if($row[pro_pic]!=""){?> <a onclick=" var x =window.open('pic.php?name=<? echo $row[pro_pic];?>','name','scrollbars=1,resizable=1,width=600,height=700');x.focus();" style="cursor:pointer"><img src="images/z.jpg" border="0" /></a> <? } ?> </div><br /> <? echo $row['pro_name'];?><br /> <span style="color:#CC3366"> <? if($_SESSION[lan]==0){ echo "(".$row['pro_price']."บาท Pro ".$row['pro_promotion']."บาท/".$row['pro_pro'].")";}else{echo "(".$row['pro_price']."฿ Pro ".$row['pro_promotion']."฿/".$row['pro_pro'].")";}?> </span> </td> </tr> <tr> <td align="center"> <a href="product_p.php?id=<? echo $row['pro_id'];?>"> <img src="images/det.gif" width="42" height="16" border="0" /></a><br /><br /> </td> </tr> </table><br /> </td> <?php /*?><td><?php echo $row_Recordset1['pro_date']; ?></td> <td><?php echo $row_Recordset1['picture']; ?></td> <td><?php echo $row_Recordset1['status']; ?></td><?php */?> <? if($i==4){ echo "</tr>"; $i=0;}?> <? $i++; }?> </table> </td> </div> <? include("foot.php");?>