<? $idtype=$_GET[id_type]; ?> <form id="Category" name="Category" method="post" action="Productall.php?id_type=<? echo $idtype?>&select1=<? echo $select1?>" enctype="multipart/form-data"> <?php include "../connect.php"; mysql_query("SET character_set_results=tis620"); $strSQL = "SELECT * FROM category WHERE ID_Type = '$idtype' ORDER BY ID_Category ASC"; $objQuery = mysql_db_query($dbname,$strSQL); ?> <select name="select1" id="select1" onchange="JavaScript:submit(select1.value)"> <option selected="selected" value="">[ เลือกแสดงเฉพาะชนิดสินค้า ]</option> <?php while($objResult = mysql_fetch_array($objQuery)) { $idcategory=$objResult[ID_Category]; echo "<option value='".$objResult["ID_Category"]."'>".$objResult["Name_Category"]."</option>"; } ?> </select> </form>
<style type="text/css"> <!-- .style1 { font-family: "mS Sans Serif"; font-size: 14px; color: #000000; } --> </style> <table width="843" border="0" cellpadding="0" cellspacing="0" align="center"> <!--DWLayoutTable--> <tr> <td height="90" colspan="2" valign="top"> <? include ("HeaderProduct.php"); ?></td> </tr> <tr> <td width="220" height="10"></td> <td width="623"></td> </tr> <tr> <td height="43" colspan="2" valign="top"> <? include ("MenuMain.php"); ?> </td> </tr> <tr> <td height="10"></td> <td></td> </tr> <tr> <td height="273" valign="top"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="220" height="275" valign="top"><? include "MenuProduct.php"; ?></td> </tr> </table> </td> <td valign="top"> <table width="100%" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" border="1" bordercolor="#FFFFFF"> <!--DWLayoutTable--> <tr valign="top"> <td width="619" height="25" align="center" valign="middle"> <? $id_type=$_GET[id_type]; ?> <?php include "../connect.php"; mysql_query("SET character_set_results=tis620"); $strSQL = "SELECT * FROM category WHERE ID_Type = '$id_type' ORDER BY ID_Category ASC"; $objQuery = mysql_db_query($dbname,$strSQL); ?> <form id="Category" name="Category" method="post" action="Productall.php?id_type=<? echo $id_type?>&select1=<? echo $select1?>"> <select name="select1" id="select1" onchange="JavaScript:submit(select1.value)"> <option selected="selected" value="">[ เลือกแสดงเฉพาะชนิดสินค้า ]</option> <?php while($objResult = mysql_fetch_array($objQuery)) { $idcategory=$objResult[ID_Category]; echo "<option value='".$objResult["ID_Category"]."'>".$objResult["Name_Category"]."</option>"; } ?> </select> </form> </td> </tr> <tr valign="top"> <td height="249" valign="top"> <? $id_type=$_GET[id_type]; $select=$_GET[select1]; if($id_type<>"") { include "ProductView.php"; } if($id_type<>"" and $select<>"") { include "ProductView1.php"; } ?> </td> </tr> </table> </td> </tr> <tr> <td height="168" colspan="2" valign="top"> <? include ("FooterProduct.php"); ?> </td> </tr> </table>
<style type="text/css"> .style30 {color: #FFFFFF; font-size: 12px; font-weight: bold; font-family: Tahoma; } .style31 {color: #333333; font-size: 12px; font-family: Tahoma; } .style32 {color: #333333; font-size: 12px; font-weight: bold; font-family: Tahoma; } </style> <table width="220" border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF"> <tr> <td width="220" height="36" align="center" valign="middle" bgcolor="#C0DCC0" class="style32" >ประเภทสินค้า</td> </tr> <tr> <td height="80" valign="top" class="style31"> <fieldset> <? include "../connect.php"; mysql_query("SET character_set_results=tis620"); $sql=" select * from producttype where ID_Type > '01' "; $result=mysql_db_query($dbname,$sql); echo "<ul>"; while($rs=mysql_fetch_array($result)) { $idtype=$rs[ID_Type]; $typename=$rs[Name_Type]; echo "<br><li><a href='Productall.php?id_type=$idtype'>$typename</a></li><br>"; } echo "</ul>"; mysql_close($c) ?> </fieldset></td> </tr> </table>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง