<? if(!$_SESSION[shop_id]){ $Fileshop= "shopid.txt"; $objFopen = fopen($Fileshop, 'r'); if ($objFopen) { $id = fgets($objFopen, 4096); session_register("shop_id"); $_SESSION[shop_id]=$id; } fclose($objFopen); } include("config.inc.php"); require("function.php"); $obj=new sql(); $sql="select * from shop where shop_id='$_SESSION[shop_id]'"; $result=$obj->QuerySql($sql); $shop=mysql_fetch_array($result) ?> <? $table="product"; $condition="where p_shop_id='$_SESSION[shop_id]'"; $show=$obj->selectalldate($table,$condition); $i=1; while($show_pro=mysql_fetch_array($show)){ $intRows++; echo "<td>"; ?> <table width="338" height="232" border="0" align="left" cellpadding="0" cellspacing="0"> <tr> <td width="6%" height="19" align="left" valign="top" background="../../img/viewboard_01.gif"> </td> <td width="89%" align="left" valign="top" background="../../img/viewboard_02.jpg"> </td> <td width="5%" align="left" valign="top" background="../../img/viewboard_03.gif"> </td> </tr> <tr> <td height="18" align="left" valign="top" background="../../img/viewboard_04.gif"> </td> <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="48%" align="left" valign="top"><div align="center"> <? echo"<script language='javascript'> function zoom$i(){ document.getElementById('image$i').width=200; document.getElementById('image$i').height=250; } function rezoom$i(){ document.getElementById('image$i').width=135; document.getElementById('image$i').height=136; } </script> " ?> <img src="Picpro/<?=$show_pro[pro_id]?>.jpg" width="135" height="176" id="image<?=$i?>" onMouseOver="javascript:zoom<?=$i?>();" onMouseOut="javascript:rezoom<?=$i?>();"/> </div></td> <td width="52%" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><strong>ชื่อสินค้า</strong> : <?=$show_pro[pro_name]?></td> </tr> <tr> <td> </td> </tr> <tr> <td><strong>ราคา</strong> : <span class="style2"> <?=number_format ($show_pro[pro_price], 2); ?> </span> <strong>บาท</strong></td> </tr> <tr> <td> </td> </tr> <tr> <? $table="type_produc"; $condition="where ty_id='$show_pro[ty_id]'"; $type=$obj->select($table,$condition); ?> <td><strong>ประเภท</strong> : <?=$type[ty_name]?></td> </tr> <tr> <td> </td> </tr> <tr> <td><div align="center"><img src="../../images/database.png" width="48" height="48" /> <img src="../../images/put_in_shopping_fcart.png" width="48" height="48" /></div></td> </tr> </table></td> </tr> </table></td> <td align="left" valign="top" background="../../img/viewboard_06.gif"> </td> </tr> <tr> <td height="21" align="left" valign="top" background="../../img/viewboard_07.gif"> </td> <td align="left" valign="top" background="../../img/viewboard_08.jpg"> </td> <td align="left" valign="top" background="../../img/viewboard_09.gif"> </td> </tr> <tr> <td height="21" align="left" valign="top"> </td> <td align="left" valign="top"> </td> <td align="left" valign="top"> </td> </tr> </table> <? echo"</td>"; if(($intRows)%2==0){ echo"</tr>"; }else{ echo "<td>"; } $i++; } echo"</tr></table>"; ?>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง