<? session_start(); ?> <link href="main_style.css" rel="stylesheet" type="text/css"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <? include("header.php");?> <? include("connect.php");?> <body> <div id="left_block1"><? include"menu.php";?></div> <div id="right_block2"> <table style="font-size:14px;border-bottom:2px dotted #999999;" width="100%" > <tr><td><img src="image/search.png" width="35" height="35" /><b>ตรวจสภาพรถ</b></td></tr> </table> <br /> <? $sql = "SELECT * FROM stock_receive_motor s INNER JOIN brand a ON a.brand_id = s.brand INNER JOIN class b ON b.class_id = s.class INNER JOIN color c ON c.color_id = s.color WHERE machine_id = '".$_GET["mID"]."'"; $query = mysql_query($sql); $Res = mysql_fetch_array($query); if(!$Res) { echo "Not found machine_id=".$_GET["mID"]; } else { ?> <form action="save_check_motor.php" method="post" > <br /> <table width="986" style="font-size:13px; font-weight:600;" > <tr> <th width="125" align="right">เลขเครื่อง :</th> <td width="199"><input type="text" name="machine_id" id="machine_id" value="<?=$mID;?>" class="tbl_box8" /> <th width="95" align="right">เลขถัง :</th> <td width="547"><input type="text" name="chassis_id" id="chassis_id" value="<?=$Res["chassis_id"];?>" class="tbl_box8" /> </tr> <tr> <th align="right">ยี่ห้อ :</th> <td><input type="text" name="brand" id="brand" value="<?=$Res["brand_name"];?>" class="tbl_box8" /></td> <th align="right">รุ่น:</th> <td><input type="text" name="class" id="class" value="<?=$Res["class_name"];?>" class="tbl_box8" /></td> </tr> <tr> <th align="right">ป้ายทะเบียน :</th> <td><input type="text" name="plate" id="plate"value="<?=$Res["plate"];?>" class="tbl_box8" /> </td> <th align="right">สี :</th> <td><input type="text" name="color" id="color" value="<?=$Res["color_name"];?>" class="tbl_box8" /></td> </tr> <? } ?> <tr> <td colspan="8"><hr /></td> </tr> <tr> <th colspan="2" align="left"><u>สภาพรถ :</u> <input type="radio" name="drive" id="drive1" value="1" />ขับขี่ได้ <input type="radio" name="drive" id="drive2" value="2" />ขับขี่ไม่ได้ </th> </tr> <tr> <td colspan="4"><hr /></td> </tr> </table> <? $objConnect = mysql_connect("localhost","root","1234") or die("Error Connect to Database"); $objDB = mysql_select_db("motor"); mysql_query("SET NAMES UTF8"); $strSQL1 = "SELECT * FROM spare_store ORDER BY spe_id ASC "; $objQuery1 = mysql_query($strSQL1) or die ("Error Query [".$strSQL1."]"); ?> <table width="925" cellpadding="0" cellspacing="0" border="1" bordercolor="#bababa" align="center" style="font-size:14px;font-family:Verdana, Geneva, sans-serif;"> <tr bgcolor="#999999" height="40"> <th width="72" rowspan="2">ลำดับ</th> <th width="288" rowspan="2">รายการ</th> <th width="65" rowspan="2">ไม่มี</th> <th colspan="3">มี</th> <th width="245" rowspan="2">หมายเหตุ</th> </tr> <tr bgcolor="#999999" height="30" > <th width="66">ชำรุด</th> <th width="94">ใช้งานไม่ได้</th> <th width="93">ใช้ได้</th> </tr> <? while($objResult = mysql_fetch_array($objQuery1)) { $i++; if($i%2==0) { $bg = "#FFFFFF"; } else { $bg = "#eeeeee"; } ?> <tr align="center" style="font-size:13px" bgcolor="<?=$bg;?>" height="40"> <td align="center"><input type="text" name="spe_id" id="spe_id" value="<?=$objResult["spe_id"];?>." size="1" /></td> <td align="left"><input type="text" name="spe_name" id="spe_name" value="<?=$objResult["spe_name"];?>" /></td> <td><input type="radio" name="mee" id="mee" /></td> <td><input type="radio" name="sapab" id="chamrud" value="1" /></td> <td><input type="radio" name="sapab" id="chaimaidai" value="2" /></td> <td><input type="radio" name="sapab" id="chaidai" value="3" /></td> <td><input type="text" /></td> </tr> </form> <? } ?> </table> <? mysql_close($objConnect); ?>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง