<body bgcolor="silver"> <form action="codeinsertSpec1.php" name="frmin" method="post" > <? include ('conn.php') ; $id_path=$edit_id; // คำสั่ง SQL และสั่งให้ทำงาน $str = "select * from inspection_rec,standardvalue where inspection_rec.Po = standardvalue.Po and inspection_rec.Std_value = standardvalue.Std_value and inspection_rec. Po='$id_path'"; //ตรงนี้จะเป็นข้อกำหนดให้ดึงข้อมูลตามที่เรากำหนด $objQuery = mysql_query($str); while($objResult = mysql_fetch_array($objQuery)) $Std_value =$objResult[Std_value]; $ww = $_POST["txtPO"]; { ?> <p><a href="index.php">หน้าแรก</a> <a href="SearchAndEdit.php">ย้อนกลับ </a> <input type="text" name="hiddenField" id="hiddenField" value="<?= $Std_value?>"> <input type="text" name="hiddenField1" id="hiddenField1" value="<?=$ww?>"> </p> <div data-theme="a" data-role="header" align="center"><h1> </h1> <h1>Inpection Record </h1> </div><table width="97%" height="274" border="1"> <tr> <td width="8%" rowspan="2" bgcolor="#6666FF">หัวข้อ</td> <td width="6%" rowspan="2" bgcolor="#6666FF"><p>ความดัน</p> <p>ลม</p></td> <td width="9%" rowspan="2" bgcolor="#6666FF">น้ำหนัก</td> <td colspan="4" bgcolor="#6666FF">เส้นรอบวง</td> <td width="19%" rowspan="2" bgcolor="#6666FF"><p align="left">รูปทรงโดยโมลด์</p></td> <td width="14%" rowspan="2" bgcolor="#6666FF"><p>รูปทรงโดยห่วง</p></td> <td width="28%" rowspan="2" bgcolor="#99FF99">สภาพโดยทั่วไป</td> </tr> <tr> <td width="3%" height="39"><label for="textfield">a</label></td> <td width="3%"><label for="txtb">b</label></td> <td width="3%"><label for="txtc">c</label></td> <td width="7%">diff</td> </tr> <tr> <td height="32" bgcolor="#99FFCC">STD.</td> <? $id_path=$edit_id; // คำสั่ง SQL และสั่งให้ทำงาน $str = "select * from inspection_rec,standardvalue where inspection_rec.Po = standardvalue.Po and inspection_rec. Po='$id_path'"; //ตรงนี้จะเป็นข้อกำหนดให้ดึงข้อมูลตามที่เรากำหนด $objQuery = mysql_query($str); while($objResult = mysql_fetch_array($objQuery)) { ?> <td><div align="center"><?=$objResult["AirPressure"]?></div></td> <td><div align="center"><?=$objResult["Weight"]?></div></td> <td colspan="4"><div align="center"><?=$objResult["Moldring"]?></div></td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td height="123" bgcolor="#009933"><input type="submit" style="width:50px; height:30px"" name="btnsubmit" id="btnsubmit" value="บันทึก "> <? if($_POST["btnsubmit"]){ include ('codeinsertSpec1.php'); } ?></td> <td bgcolor="#CCCCFF"><label for="txtairpess"></label> <input type="text" name="txtairpess" id="txtairpess" size="4" value="" maxlength="5" onKeyPress="return chkNumber4(this)"></td> <td bgcolor="#CCCCFF"><label for="txtweightball"></label><input type="text" name="txtweightball" id="txtweightball" size="3" onKeyPress="return chkNumber5(this)"></td> <td bgcolor="#CCCCFF"><input type="text" name="txta" id="txta" size="3" value="" class="cal" OnKeyPress="return chkNumber1 (this)"></td> <td bgcolor="#CCCCFF"><input type="text" name="txtb" id="txtb" size="3" value="" class="cal" onKeyPress="return chkNumber2 (this)"></td> <td bgcolor="#CCCCFF"><input type="text" name="txtc" id="txtc" size="3" value="" class="cal" onKeyPress="return chkNumber3 (this)"></td> <td bgcolor="#CCCCFF"><input type="text" name="txtdiff" id="txtdiff" size="3" 084.value=""></td> <td bgcolor="#CCCCFF"><p><? while($objResult = mysql_fetch_array($objQuery)) { ?> <label> <br> <input type="radio" name="Rdomold" value="<?=$objResult["MoldS"]?>" id="RadioGroup1_0"><?=$objResult["MoldS"]?> </label> </p> <p> <label> <input type="radio" name="Rdomold" value="<?=$objResult["MoldM"]?>"id="RadioGroup1_1"><?=$objResult["MoldM"]?> </label> </p> <p> <label> <input type="radio" name="Rdomold" value="<?=$objResult["MoldL"]?>" id="RadioGroup1_2"><?=$objResult["MoldL"]?> </label> </p></td><? } ?> <td bgcolor="#CCCCFF"><label for="select"></label> <select name="selectring2" id="selectring2"> <option value="ปกติ">ปกติ </option> <option value="Big">Big</option> <option value="Small">Small</option> </select></td> <td bgcolor="#CCCCFF"><select name="selectcondition2" id="selectcondition2"> <option value="ปกติ">ปกติ </option> <option value="NG(โลโก้ไม่ตรงตามArtwork)">NG(โลโก้ไม่ตรงตามArtwork)" </option> <option value="NG(การติดบอลห่างเกินไป)">NG(การติดบอลห่างเกินไป)" </option> <option value="NG(ไม่สะอาด)">NG(ไม่สะอาด)" </option> <option value="NG(ไม่สะอาด)">NG(หนังขาด)" </option> </select></td> </tr> </table> <p> </p> <table width="200" border="1"> <tr id="tr"> <td width="7%">หัวข้อ</td> <td width="8%">ความดันลม</td> <td width="8%">น้ำหนัก</td> <td width="8%">a</td> <td width="9%">b</td> <td width="10%">c</td> <td width="8%">diff</td> <td width="11%"><p>รูปทรงโดยโมลด์</p></td> <td width="10%">รูปทรงโดยห่วง</td> <td width="21%">สภาพโดยทั่วไป</td> </tr> <? $id_path=$edit_id; $str4 = "select * from inspection_rec,standardvalue where inspection_rec.Po = standardvalue.Po and inspection_rec. Po='$id_path' "; $objQuery4 = mysql_query($str4);?> <? $i=0; while($objResult4 = mysql_fetch_array($objQuery4)) { $i++; if($i%2==0) { $bg = "#FFCC99"; } else { $bg = "#CCFF99"; } ?> <tr bgcolor="<?=$bg;?>"> <td><?=$objResult4['ValueID']?></td> <td><?=$objResult4['Pressureball']?></td> <td><?=$objResult4['Weightball']?></td> <td><?=$objResult4['Pera']?></td> <td><?=$objResult4['PerB']?></td> <td><?=$objResult4['PerC']?></td> <td><?=$objResult4['Diff']?></td> <td><?=$objResult4['MoldShape']?></td> <td><?=$objResult4['MoldRing']?></td> <td><?=$objResult4['Conditionball']?></td> </tr> <? } ?> <? } ?> <? } ?> </table>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง