<? $spare_type_id_select=$_GET[spare_type_id]; include "top.php"; ?> <html> <head> <title>SA AUTO</title> <style type="text/css"> <!-- .style6 {color: #0099CC} .style5 { color: #FFFF00; font-weight: bold; } --> </style> <meta http-equiv="Content-Type" content="text/html; charset=windows-874"></head> <body> <table width=1249 border=1 align="center" cellpadding="1" cellspacing="1" bordercolor="#0066CC"> <!--DWLayoutTable--> <tr> <td width=172 height=200 valign="top" bgcolor="#FFFF99"><table width="143" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="133"><img src="picture/1.png" width="172" height="32"></td> </tr> </table> <? include "connect.php"; include "type_car_list.php"; ?></td> <td width="1064" valign=top bgcolor="#FFFFFF"><div align=center> <table width="100%" border=1 cellspacing=4> <? $sql = "select * from categories where ref_spare_type_id='$spare_type_id_select'"; $result=mysql_db_query($dbname,$sql); while ($rs=mysql_fetch_array($result)) { $id=$rs[id]; $code_product=sprintf("%05d",$id ); $product_id =$rs[product_id ]; $barcode_id =$rs[barcode_id ]; $deception =$rs[deception ]; $unitname =$rs[unitname ]; $pro_pice =$rs[pro_pice ]; $ref_car_id =$rs[ref_car_id]; $ref_spare_type_id =$rs[ref_spare_type_id]; $photo_prd =$rs[photo_prd]; if ($photo_prd ==""){ $photo_prd ="tmp.jpg"; } echo "<tr> <td width='20%' valign=top><img src='admin/picture/$photo_prd '></td><td width='80%' valign=top> <b>บาร์โค้ดสินค้า : </b>$barcode_id<br> <b>รหัสสินค้า : </b>$product_id<br> <b>ชื่อสินค้า : </b>$deception <b>หน่วย :</b>$unitname<br> <b>ราคา : </b>$pro_price บาท<br> [ <a href='product_view.php?id=$id'>แสดงรายละเอียด</a> ] <br> </td> </tr>"; } ?> </table></td> </tr> </table> <? include "foot.php";?> </body> </html>
echo "<tr> <td width='20%' valign=top><img src='admin/picture/$photo_prd '></td><td width='80%' valign=top> <b>บาร์โค้ดสินค้า : </b>$barcode_id<br> <b>รหัสสินค้า : </b>$product_id<br> <b>ชื่อสินค้า : </b>$deception <b>หน่วย :</b>$unitname<br> <b>ราคา : </b>$pro_price บาท<br> [ <a href='product_view.php?id=$id'>แสดงรายละเอียด</a> ] <br> </td> </tr>";
<html> <head> <title>ThaiCreate.Com Tutorial</title> </head> <body> <? $objConnect = mysql_connect("localhost","root","root") or die(mysql_error()); $objDB = mysql_select_db("mydatabase"); $strSQL = "SELECT * FROM gallery"; $objQuery = mysql_query($strSQL); echo"<table border=\"1\" cellspacing=\"1\" cellpadding=\"1\"><tr>"; $intRows = 0; while($objResult = mysql_fetch_array($objQuery)) { echo "<td>"; $intRows++; // เริ่มมมมมมมมมมมมมมมมมมมมมมมมมมมม echo "<tr> <td width='20%' valign=top><img src='admin/picture/$photo_prd '></td><td width='80%' valign=top> <b>บาร์โค้ดสินค้า : </b>$barcode_id<br> <b>รหัสสินค้า : </b>$product_id<br> <b>ชื่อสินค้า : </b>$deception <b>หน่วย :</b>$unitname<br> <b>ราคา : </b>$pro_price บาท<br> [ <a href='product_view.php?id=$id'>แสดงรายละเอียด</a> ] <br> </td> </tr>"; // จบบบบบบบบบบบบบบบบบบบบบ echo"</td>"; if(($intRows)%2==0) { echo"</tr>"; } } echo"</tr></table>"; ?> </body> </html> <? mysql_close($objConnect); ?>
<? $spare_type_id_select=$_GET[spare_type_id]; ?> <html> <head> <title>SA AUTO</title> <style type="text/css"> <!-- .style1 {color: #FF0000} .style2 { color: #0066FF; font-weight: bold; } .style6 {color: #0099CC} .style5 { color: #3300CC; font-weight: bold; } --> </style> <meta http-equiv="Content-Type" content="text/html; charset=windows-874"></head> <body> <blockquote> <H2 align="center"><img src="file:///G|/สำรองไฟล์มิ้ง/AppServ/www/SAshop/picture/A2-3.jpg" width="776" height="127"></H2> <H2 align="center">:::<span class="style6">แคตตาล๊อคออนไลน์</span>:: </H2> <blockquote> <blockquote> <blockquote> <div align="center"><a href="file:///G|/สำรองไฟล์มิ้ง/AppServ/www/SAshop/index.php">กลับหน้าหลัก</a></div> </blockquote> </blockquote> </blockquote> </blockquote> <table width=807 border=1 align="center" cellpadding="1" cellspacing="1" bordercolor="#0066CC"> <!--DWLayoutTable--> <tr> <td width=182 height=200 valign="top" bgcolor="#FFFF99"> <div align="left"> <p align="center"><span class="style5">CATEGORIES</span></p> <p> <? include "connect.php"; include "type_car_list.php"; ?> </p> </div></td> <td valign=top bgcolor="#FFFFFF"><div align=center> <table width="100%" border=1 cellspacing=4> <? $objConnect = mysql_connect("localhost","root","root") or die(mysql_error()); $objDB = mysql_select_db("sa"); $strSQL = "SELECT * FROM categories where spare_type_id='$spare_type_id_select'"; $objQuery = mysql_query($strSQL); echo"<table border=\"1\" cellspacing=\"1\" cellpadding=\"1\"><tr>"; $intRows = 0; $product_id =$rs[product_id ]; $code_product=sprintf("%05d",$product_id ); $product_newid =$rs[product_newid ]; $deception =$rs[deception ]; $unitname =$rs[unitname ]; $pro_pice =$rs[pro_pice ]; $car_id =$rs[car_id]; $spare_type_id =$rs[spare_type_id]; $pro_pic =$rs[pro_pic ]; if ($pro_pic ==""){ $pro_pic ="tmp.jpg"; } while($objResult = mysql_fetch_array($objQuery)) { echo "<td>"; $intRows++; echo "<tr> <td width='20%' valign=top><img src='picture/$pro_pic '></td><td width='80%' valign=top> <b>รหัสสินค้า : </b>$product_id<br> <b>ชื่อสินค้า : </b>$deception <b>หน่วย :</b>$unitname<br> <b>ราคา : </b>$pro_pice บาท<br> [ <a href='product_view.php?product_id=$product_id'>แสดงรายละเอียด</a> ] <br> </td> </tr>"; echo"</td>"; if(($intRows)%2==0) { echo"</tr>"; } } echo"</tr></table>"; ?> </body> </html> <? mysql_close($objConnect); ?> </p> </body> </html>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง