<? $objConnect = mysql_connect("localhost","root","1030") or die("Error Connect to Database"); $objDB = mysql_select_db("thaisatay"); $strSQL1 = "SELECT * FROM takeorder,food,customerorder,customer WHERE ID = '".$_GET["fID"]."' and takeorder.fid=food.fid and takeorder.sessionID=customerorder.sessionID and customer.username=customerorder.username "; $objQuery = mysql_query($strSQL1); $objResult = mysql_fetch_array($objQuery); if(!$objResult) { echo "Not found ID=".$_GET["fID"]; } else { ?> <? ?><p> </p> <table width="600" border="0" align="center" cellspacing="0"> <tr> <th bgcolor="#FFFFFF" style="color: #000"> </th> <th bgcolor="#FFFFFF" style="color: #000"> </th> <th height="30" bgcolor="#FFFFFF" style="color: #000"><span id="main"><span id="search">Purchase Order</span></span></th> <th height="30" bgcolor="#FFFFFF" style="color: #000"> </th> <th bgcolor="#FFFFFF" style="color: #000"> </th> </tr> <tr> <th height="60" bgcolor="#FFFFFF" >DATE</th> <th bgcolor="#FFFFFF"><?=$objResult["dateorder"];?></th> <th align="left" bgcolor="#FFFFFF"> </th> <th bgcolor="#FFFFFF">Name</th> <th bgcolor="#FFFFFF" ><?=$objResult["cname"];?> <?=$objResult["clastname"];?></th> </tr> <tr> <th width="116" height="60" bgcolor="#FFFFFF"> <div align="center">OrderID </div></th> <th width="152" bgcolor="#FFFFFF"> <div align="center">Dish Name</div></th> <th width="150" bgcolor="#FFFFFF"> <div align="center">Cost</div></th> <th width="105" bgcolor="#FFFFFF"> <div align="center">Quantity</div></th> <th width="67" bgcolor="#FFFFFF" > <div align="center">Pay</div></th> </tr> <? while( $row = mysql_fetch_array($objQuery)) { $price=$row["fcost"]; $quantity=$row["amount"]; ?> <tr> <td bgcolor="#FFFFFF" style="color: #000"><div align="center"><?=$row["orderid"];?></div></td> <td height="35" bgcolor="#FFFFFF" style="color: #000"><div align="center"><?=$row["fname"];?></div></td> <td align="center" bgcolor="#FFFFFF" style="color: #000"><div align="center"><?=$row["fcost"];?></div></td> <td align="left" bgcolor="#FFFFFF" style="color: #000"><div align="center"><?=$row["amount"];?></div></td> <td align="center" bgcolor="#FFFFFF" style="color: #000"><div align="center"><? ($price*$quantity) ?></div></td> </tr> <? $total = $total+ ($price*$quantity); } ?> </table> <? } mysql_close($objConnect); ?>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง