<? $id_type_select=$_GET[type_id]; include "connect.php"; ?> <? session_start(); if($_SESSION['UserID'] == "") { echo "please login"; exit(); } include "connect.php"; $strSQL = "SELECT * FROM member WHERE UserID = '".$_SESSION['UserID']."' "; $objQuery = mysql_query($strSQL); $objResult = mysql_fetch_array($objQuery); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Home Page</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link href="style.css" rel="stylesheet" type="text/css" /> <style type="text/css"> <!-- .style1 {color: #FF0066} .style2 {color: #FF0033} --> </style> </head> <body Onload="doAddCart('','','')"> <div class="main"> <div class="search"></div> <div class="clr"></div> <div class="header"> <div class="logo"> <h1><span class="style1"> Banhom Shop Online </span></h1> </div> <table border="0" align="right" style="width: 300px"> <tbody> <tr> <td width="87" align="right"><a href="edit_profile.php">แก้ไขข้อมูลส่วนตัว</a></td> </tr> <tr> <td align="right"><a href="logout.php">ออกจากระบบ</a></td> </tr> </tbody> </table> <div class="menu_nav"> <ul> <li class="active"><a href="user_page.php">หน้าแรก</a></li> <li><a href="payment.php">แจ้งชำระเงิน</a></li> <li><a href="Webboard.php">เว็บบอร์ด</a></li> <li><a href="contact.php">ติดต่อเรา</a></li> </ul> <div class="clr"></div> </div> <div class="clr"></div> </div> <div class="hbg"> <div align="center"><img src="image/logoo.jpg" width="967" height="300" alt="" /></div> </div> <div class="content"> <div class="content"> <table width="850" border="0" cellpadding="10"> <tr> <td width="250"><h1> </h1></td> <td width="550"> </td> </tr> <tr> <td align="center" valign="top"><p><img src="image/type.jpg" width="240" height="40" /><br> <? include "connect.php"; include "type_menu.php"; ?> </p></td> <td width="550"><table width="450" border="0" align="center" cellpadding="15"> <? $strSQL = "SELECT * FROM product where type_id='$id_type_select'"; $objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]"); $Num_Rows = mysql_num_rows($objQuery); $Per_Page = 15; // Per Page $Page = $_GET["Page"]; if(!$_GET["Page"]) { $Page=1; } $Prev_Page = $Page-1; $Next_Page = $Page+1; $Page_Start = (($Per_Page*$Page)-$Per_Page); if($Num_Rows<=$Per_Page) { $Num_Pages =1; } else if(($Num_Rows % $Per_Page)==0) { $Num_Pages =($Num_Rows/$Per_Page) ; } else { $Num_Pages =($Num_Rows/$Per_Page)+1; $Num_Pages = (int)$Num_Pages; } if ($id_typee==""){ $strSQL ="select * from product order by product_id desc LIMIT $Page_Start , $Per_Page"; }else{ $strSQL ="select * from product where type_id='$id_typee' order by product_id desc LIMIT $Page_Start , $Per_Page"; } mysql_query("SET NAMES UTF8 "); $objQuery = mysql_query($strSQL); $xxx=0; //เพิ่มเข้ามา while ($rs=mysql_fetch_array($objQuery)) { if ($xxx%2==0) { echo "<tr>"; } //ถ้า $xxx หาร2เศษ0 ก็สั่งเปิด tr ?> <td width="100" valign="top"><img src="back/images/<?=$rs[product_image]?>" width="100" /></td> <td><? $product_id = $rs[product_id]; $code = sprintf($product_id ); ?> <b> รหัสสินค้า : </b> <?=$code?> <br /> <b> ชื่อสินค้า : </b> <?=$rs[product_name]?> <br /> <b> ราคา : </b> <?=$rs[product_price]?> บาท<br /> <br /> <a href="basket_add.php?id=<?=$rs[product_id]?>"><img src="image/bl_shopping.gif" width="120" height="21" /></a></td> <? $xxx++; //สั่ง xxx +1 } ?> </table></td> </tr> </table></div> </div></p> </div> </div> </div> </div> <div class="footer"> <div align="center"><img src="image/end.gif" width="930" height="222" alt=""/></div> </div> </div> <div align=center></div> </body> </html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>basket</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link href="style.css" rel="stylesheet" type="text/css" /> <style type="text/css"> <!-- .style1 {color: #FF0066} .style2 {color: #FF0033} --> </style> </head> <script type="text/javascript" src="ajax/cart.js"></script> <body Onload="doAddCart('','','')"> <div class="main"> <div class="search"></div> <div class="clr"></div> <div class="header"> <div class="logo"> <h1><span class="style1"> Banhom Shop Online </span></h1> </div> <table border="0" align="right" style="width: 300px"> <tbody> </tbody> </table> <div class="menu_nav"> <p> </p> <ul> <li class="active"><a href="user_page.php">หน้าแรก</a></li> </ul> <p> </p> <div class="clr"></div> </div> <div class="clr"></div> </div> <div class="hbg"> <div align="center"><img src="image/logoo.jpg" width="967" height="300" alt="" /></div> </div> <div class="content"> <div class="content"> <p align="center" class="style2"> </p> <p align="center" class="style2">ยืนยันการสั่งซื้อเรียบร้อยแล้ว </p> <p align="center"><a href="view_order.php?order_id=<?=$_GET["order_id"];?>" target="_blank">ดูรายละเอียดการสั่งซื้อ</a></p> <p align="center"> </p> </div> </div></p> </div> </div> </div> </div> <div class="footer"> <div align="center"><img src="image/end.gif" width="930" height="222" alt=""/></div> </div> </div> <div align=center></div> </body> </html>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง