?
Path : /home/admin/domains/happytokorea.com/public_html_bk/gall/ |
Current File : /home/admin/domains/happytokorea.com/public_html_bk/gall/index.php |
<? 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 width="1600" border="0" cellpadding="0" cellspacing="0" style="border-collapse:collapse"> <tr height="40"> <td width="486" rowspan="3" align="right" valign="top" ><table width="100" border="0" cellspacing="0" cellpadding="0"> <tr> <td><a href="admin/addproduct.php"><img src="images/add.gif" width="188" height="40" border="0" /></a></td> </tr> </table></td> <td height="28"><img src="images/bgheadtab.jpg" width="779" height="28" /></td> <td width="336" rowspan="3" > </td> </tr> <tr height="40"> <td background="images/bgmidtab.jpg" width="778" height="40"><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="center"><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="center"><a href="product.php?p_id=<? echo $line[p_id];?>"><img src="upload/<? echo $line[p_img];?>" border="0" <? if($width>$height){?> width="153" <? }else{?> height="144" <? } ?> /></a></div> </div> <div id='item<? echo $line[p_id];?>' style='display: none; color: white; padding: 15px'> <div align="center"><img src="upload/<? echo $line[p_img];?>" border="0" align="middle" /> <font color="#ff3300" > <? echo nl2br($line[p_data]);?> </font></div> </div> <div align="center"> <? 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> <tr> <td background="images/bgmidtab.jpg"></td></tr> <tr> <td > </td> <td><img src="images/bgfoottab.jpg" width="779" height="34" /></td> <td > </td> </tr> </table> </div> <? include("footer.php");?>