<? session_start(); ?> <html> <head> <title>Suleephan Garment</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <body bgcolor="#b4b4b4"> <? $num="0"; include("config/config.php"); ?> <form name="form1" method="post" action="show01.php"> <table width="1000" border="1"> <tr> <td width="90" color="#888888"><center><b>ลำดับ</td> <td width="90"><center><b>รหัสสินค้า</td> <td><center><b>ชื่อสินค้า</td> <td width="90"><center><b>ราคา</td> <td width="90"><center><b>ขาย</td> <td width="90"><center><b>รวม</td> <td width="90"><center><b>ลบ</td> </tr> <? $Total = 0; $SumTotal = 0; for($i=0;$i<=(int)$_SESSION["intLine"];$i++) { $num++; if($_SESSION["strProductID"][$i] != "") { $strSQL = "SELECT * FROM product WHERE product_id = '".$_SESSION["strProductID"][$i]."' "; $objQuery = mysql_query($strSQL) or die(mysql_error()); $objResult = mysql_fetch_array($objQuery); $Total = $_SESSION["strQty"][$i] * $objResult["product_price"]; $SumTotal = $SumTotal + $Total; ?> <tr> <td><?=$num?></td> <td><?=$_SESSION["strProductID"][$i];?></td> <td><?=$objResult["product_name"];?></td> <td><?=$objResult["product_price"];?></td> <td><input type="text" name="saleorder" value="<?=$_SESSION["strQty"][$i];?>" size="5"></td> <td><?=number_format($Total,2);?></td> <td><a href="delete.php?Line=<?=$i;?>">x</a></td> </tr> <? } } ?> </form> </table> Sum Total <?=number_format($SumTotal,2);?> <br><br><a href="product.php">Go to Product</a> <? if($SumTotal > 0) { ?> | <a href="show01.php">show01</a> <? } ?> <? mysql_close(); ?> </body> </html>
<? session_start(); ?> <html> <head> <title>ThaiCreate.Com</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <? $num="0"; include("config/config.php"); echo $_POST["saleorder"]; ?> <table width="1000" border="1"> <tr> <td width="90" color="#888888"><center><b>ลำดับ</td> <td width="90"><center><b>รหัสสินค้า</td> <td><center><b>ชื่อสินค้า</td> <td width="90"><center><b>ราคา</td> <td width="90"><center><b>ขาย</td> <td width="90"><center><b>รวม</td> <td width="90"><center><b>ลบ</td> </tr> <? $Total = 0; $SumTotal = 0; for($i=0;$i<=(int)$_SESSION["intLine"];$i++) { if($_SESSION["strProductID"][$i] != "") { $strSQL = "SELECT * FROM product WHERE product_id = '".$_SESSION["strProductID"][$i]."' "; $objQuery = mysql_query($strSQL) or die(mysql_error()); $objResult = mysql_fetch_array($objQuery); $Total = $_SESSION["strQty"][$i] * $objResult["Price"]; $SumTotal = $SumTotal + $Total; ?> <tr> <td><?=$_SESSION["strProductID"][$i];?></td> <td><?=$objResult["ProductName"];?></td> <td><?=$objResult["Price"];?></td> <td><?=$_SESSION["strQty"][$i];?></td> <td><?=number_format($Total,2);?></td> <td><a href="delete.php?Line=<?=$i;?>">x</a></td> </tr> <? } } ?> </table> Sum Total <?=number_format($SumTotal,2);?> <br><br><a href="product.php">Go to Product</a> <? if($SumTotal > 0) { ?> | <a href="checkout.php">CheckOut</a> <? } ?> <? mysql_close(); ?> </body> </html>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง