<!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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>EPR</title> <style type="text/css"> a:link { text-decoration: none; color: #000; } a:visited { text-decoration: none; color: #000; } a:hover { text-decoration: none; color: #F00; } a:active { text-decoration: none; color: #000; } </style> </head> <body> <table width="982" height="432" border="0"> <tr> <td width="976" height="21" valign="top" bgcolor="#00CCFF"><div id="box-show"><!-- เอาไว้ แสดง ไฟล์ media --> <div id="box-picshow"> <div id="slide-holder"> <div id="slide-runner"> <?php $op=isset($_GET['option'])?$_GET['option']:''; if($op==""){ ?> <!-- ส่วนนี้ แสดง รูปสไลด์ <a href=""><img id="slide-img-1" src="images/up-images/nature-photo.png" class="slide" alt="" /></a> <a href=""><img id="slide-img-2" src="images/up-images/nature-photo1.png" class="slide" alt="" /></a> <a href=""><img id="slide-img-3" src="images/up-images/nature-photo2.png" class="slide" alt="" /></a> <a href=""><img id="slide-img-4" src="images/up-images/nature-photo3.png" class="slide" alt="" /></a> <a href=""><img id="slide-img-5" src="images/up-images/nature-photo4.png" class="slide" alt="" /></a> <a href=""><img id="slide-img-6" src="images/up-images/nature-photo4.png" class="slide" alt="" /></a> <a href=""><img id="slide-img-7" src="images/up-images/nature-photo6.png" class="slide" alt="" /></a> <div id="slide-controls"> <p id="slide-client" class="text"><strong>post: </strong><span></span></p> <p id="slide-desc" class="text"></p> <p id="slide-nav"></p> </div> --> <?php echo"<img src=\"images/itsolution.gif\"/>"; }elseif($op=="hrstock"){ echo"<img src=\"images/hrstock.png\"/>"; }elseif($op=="qalab"){ echo"<img src=\"images/qalab.png\"/>"; }else{ echo"<img src=\"images/itsolution.png\"/>"; } ?> </div> </div> </div> </div></td> </tr> <tr> <td height="133" valign="top" bgcolor="#00CCFF"><table width="975" height="247" border="0" align="left"> <tr> <td width="162" align="center" bgcolor="#00FFCC"><strong><font color="#030">HR STOCK</font></strong></td> <td width="764" rowspan="10" align="left" valign="top" bgcolor="#FFFFFF"><form action="save.php" name="frmAdd" method="post"> <?php ini_set('display_errors', 1); error_reporting(~0); $serverName = "localhost"; $userName = "root"; $userPassword = "root"; $dbName = "epr"; $conn = mysqli_connect($serverName,$userName,$userPassword,$dbName); $sql = "SELECT * FROM customer"; $query = mysqli_query($conn,$sql); $query = mysqli_query($conn,$sql); ?> <form name="frmSearch" method="post" action="<?=$_SERVER['SCRIPT_NAME'];?>"> <table width="599" border="1"> <tr> <th>Select <select name="ddlSelect" id="ddlSelect"> <option>- Select -</option> <option value="id" <?if($_POST["ddlSelect"]=="name_prd"){echo"selected";}?>name_prd</option> </select> Keyword <input name="txtKeyword" type="text" id="txtKeyword" value="<?=$_POST["txtKeyword"];?>"> <input type="submit" value="เพิ่ม"></th> </tr> </table> </form> <? $objConnect = mysql_connect("localhost","root","root") or die("Error Connect to Database"); $objDB = mysql_select_db("epr"); // Search By Name or Email $strSQL = "SELECT * FROM customer WHERE 1 "; if($_POST["ddlSelect"] != "" and $_POST["txtKeyword"] != '') { $strSQL .= " AND (".$_POST["ddlSelect"]." LIKE '%".$_POST["txtKeyword"]."%' ) "; } $objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]"); ?> <table width="789" border="1" align="center" cellpadding="0" cellspacing="0"bordercolor="#66CC66"bgcolor="#FFFFFF"> <tr> <th> <div align="center">วันที่</div></th> <th> <div align="center">รหัสสินค้า</div></th> <th> <div align="center">ชื่อสินค้า</div></th> <th> <div align="center">ราคาขายสินค้า</div></th> <th> <div align="center">ราคาต้นสินค้า</div></th> <th> <div align="center">จำนวนสินค้า</div></th> <th> <div align="center">อื่นๆ</div></th> <th width="65"> <div align="center">Edit </div></th> </tr> <?php while($result=mysqli_fetch_array($query,MYSQLI_ASSOC)) { ?> <tr> <td width="81"><div align="center"><?php echo date('d-m-Y')?></div></td> <td width="76"><div align="center"><?php echo $result["id_prd"];?></div></td> <td width="82"><div align="center"><?php echo $result["name_prd"];?></div></td> <td width="158"><div align="center"><?php echo $result["price_prd"];?></div></td> <td width="123"><div align="center"><?php echo $result["pricecost"];?></div></td> <td width="103"><div align="center"><?php echo $result["number"];?></div></td> <td width="83" align="right"><div align="center"><?php echo $result["other"];?></div></td> <td align="center"><a href="edit1.php?id=<?php echo $result["id"];?>"><img src="images/edit_24.png" width="24" height="24" border="0"/></a></td> </tr> <?php } ?> </table> <?php mysqli_close($conn); ?> </form></td> </tr> <tr> <td height="17" align="left" bgcolor="#FFFFFF"> <a href="index.php">HOME</a></td> </tr> <tr> <td height="21" align="left" bgcolor="#FFFFFF"> ขายสินค้า</td> </tr> <tr> <td align="left" bgcolor="#FFFFFF"> <img src="images/addbk.gif" alt="" width="16" height="16" border="0"/> เพิ่มสิทธิ์ผู้ใช้งาน</td> </tr> <tr> <td align="left" bgcolor="#FFFFFF"> <img src="images/tag_blue.png" alt="" width="16" height="16" /><a href="add1.php">ตั้งค่ารายการสินค้า</a></td> </tr> <tr> <td align="left" bgcolor="#FFFFFF"> <img src="images/tag_blue.png" alt="" width="16" height="16" />ตั้งค่าหน่วยนับสินค้า</td> </tr> <tr> <td align="left" bgcolor="#FFFFFF"> <img src="images/tag_blue.png" alt="" width="16" height="16" />ตั้งค่าประเภทสินค้า</td> </tr> <tr> <td align="left" bgcolor="#FFFFFF"> <img src="images/addbk.gif" alt="" width="16" height="16" border="0"/> รับเข้าสินค้า</td> </tr> <tr> <td align="left" bgcolor="#FFFFFF"> <img src="images/tag_blue.png" alt="" width="16" height="16" /><a href="list1.php">ดูประวัติรับสินค้า</a></td> </tr> <tr> <td align="left" bgcolor="#FFFFFF"> <img src="images/tag_blue.png" alt="" width="16" height="16" />รับสินค้า</td> </tr> <tr> <td align="left" bgcolor="#FFFFFF"> <img src="images/addbk.gif" alt="" width="16" height="16" border="0"/> รายงาน</td> </tr> <tr> <td height="23" align="left" bgcolor="#FFFFFF"> <img src="images/tag_blue.png" alt="" width="16" height="16" />รายงานรายวัน</td> </tr> <tr> <td height="23" align="left" bgcolor="#FFFFFF"> <img src="images/tag_blue.png" alt="" width="16" height="16" />รายงานรายสัปดาห์</td> </tr> <tr> <td height="23" align="left" bgcolor="#FFFFFF"> <img src="images/tag_blue.png" alt="" width="16" height="16" />รายงานรายเดือน</td> </tr> <tr> <td height="23" align="left" bgcolor="#FFFFFF"> <img src="images/tag_blue.png" alt="" width="16" height="16" />รายงานรายปี</td> </tr> </table></td> </tr> <tr> <td height="23" align="center" valign="top" bgcolor="#00CCFF">Pissanu&copy 2016 | Power By <a href="http://www.jungwattana.com"/></a></a> Design & Develop By <a href="http://www.jungwattana.com"/></a>Pissanu Pongoubon</a> 08452669792 ([email protected])</td> </tr> </table> </body> </html>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง