<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><head> <meta http-equiv="content-language" content="en" /> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <meta name="copyright" content="R. Schoo" /> <? @session_start(); $usr_id = @$_SESSION["emp_id"]; echo"$usr_id"; ?> <? /*** Connect ***/ $objConnect = require_once('Connections/con_irb.php'); if($_POST['Edit']) { $protocol_id=$_REQUEST['edit_id']; $check1=$_POST["list_check1"]; $check2=$_POST["list_check2"]; // แก้ไขข้อมูล $sql_edit = "update etc_request set checker1 = '$check1' , checker2 = '$check2' where protocol_id = '$protocol_id'"; mysql_query($sql_edit) or die(mysql_error()); //echo "แก้ไขข้อมูลของ $deptname สำเร็จแล้ว"; } //เรียกข้อมูลจาก รหัส มาแสดงใน textbox if($_REQUEST['edit_id'] != "") { $id = $_REQUEST['edit_id']; $sql_show = "select * from etc_request where protocol_id = '$id'"; $result_show = mysql_query($sql_show) or die(mysql_error()); $row_show = mysql_fetch_array($result_show); } $old_checker1 = $row_show['checker1']; $old_checker2 = $row_show['checker2']; //echo $row_show['checker1']; echo $old_checker1."***************************"."<br>"; echo $old_checker2."***************************"."<br>"; ?> <style type="text/css"> <!-- .style1 {color: #FF0000} --> </style> <style> body{ margin:0px; padding:0px; font-size:12px; background-position:center; background-position:top; background-image: url(images/bg_black.jpg); background-repeat: repeat; background-attachment:fixed; } td{ font-size:14px; } .style2 {font-weight: bold} </style> </head> <table width="100%" align="center"> <tr> <td align="center"><div align="center"><? require_once('head.php'); ?></div></td> </tr> <tr> <td align="center"><?php require_once('CSS3 Menu.css3prj.html'); ?></td> </tr> </table> <br /><br /><br /> <table width="773" border="1" align="center" bordercolor="#CCCCCC" > <tr> <td width="763"><table width="608" border="0" align="center"> <tr> <th width="639" valign="middle"></th> </tr> <tr> <th valign="middle">[ เลือกผู้ทบทวนโครงร่าง ]</th> </tr> <tr> <th valign="middle"> </th> </tr> <tr> <th valign="middle"></th> </tr> <form action="checker 1+2_edit.php" method="post" name="frmMain" id="frmMain"> <tr> <td height="28"><table width="602"> <tr> <td width="255"><p>ผู้ทบทวนโครงร่าง1</p></td> <td width="8">:</td> <td width="323"> <select name="list_checker1" id="list_checker1" > <? $strSQL = "SELECT * FROM etc_checker "; $objQuery = mysql_query($strSQL)or die ("Error Query [".$strSQL."]"); mysql_query("SET NAMES UTF8"); while($checker1 = mysql_fetch_array($objQuery)) { if($old_checker1 == $checker1["names"]) { $sel_checker1 = "selected"; } else { $sel_checker1 = ""; } ?> <option value="<?=$checker1["names"];?>"<?=$sel_checker1;?>><?=$checker1["id"]." - ".$checker1["names"];?></option> <? } ?> </select></td> </tr> <tr> <td><p>ผู้ทบทวนโครงร่าง2</p></td> <td>:</td> <td> <select name="list_checker2" id="list_checker2" onchange="same($(this).val(),$('#checker1').val());"> <? $strSQL = "SELECT * FROM etc_checker ORDER BY id ASC"; $objQuery = mysql_query($strSQL); mysql_query("SET NAMES UTF8"); while($checker2 = mysql_fetch_array($objQuery)) { if($old_checker2 == $checker2["names"]) { $sel_checker2 = "selected"; } else { $sel_checker2 = ""; } ?> <option value="<?=$checker2["names"];?>"<?=$sel_checker2;?>><?=$checker2["id"]." - ".$checker2["names"];?></option> <? } ?> </select> </td> </tr> </table></td> </tr> <tr> <td height="28"><div align="center"> <input name="btnSubmit" type="submit" id="btnSubmit" value="ตกลง"/> </div></td> </tr> <tr> <td height="28"></td> </tr> </form> </table> </td> </tr><? //mysql_close($objConnect); ?> </table> <p> </p> <p> </p> <p> </p> <p> </p> <div align="center"><?php require_once('foot.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><head> <meta http-equiv="content-language" content="en" /> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <meta name="copyright" content="R. Schoo" /> <? @session_start(); $usr_id = @$_SESSION["emp_id"]; echo"$usr_id"; ?> <? /*** Connect ***/ $objConnect = require_once('Connections/con_irb.php'); if($_POST['Edit']) { $protocol_id=$_REQUEST['edit_id']; $check1=$_POST["list_checker1"]; $check2=$_POST["list_checker2"]; // แก้ไขข้อมูล $sql_edit = "update etc_request set checker1 = '$check1' , checker2 = '$check2' where protocol_id = '$protocol_id'"; mysql_query($sql_edit) or die(mysql_error()); //echo "แก้ไขข้อมูลของ $deptname สำเร็จแล้ว"; } //เรียกข้อมูลจาก รหัส มาแสดงใน textbox if($_REQUEST['edit_id'] != "") { $id = $_REQUEST['edit_id']; $sql_show = "select * from etc_request where protocol_id = '$id'"; $result_show = mysql_query($sql_show) or die(mysql_error()); $row_show = mysql_fetch_array($result_show); } $old_checker1 = $row_show['checker1']; $old_checker2 = $row_show['checker2']; //echo $row_show['checker1']; echo $old_checker1."***************************"."<br>"; echo $old_checker2."***************************"."<br>"; ?> <style type="text/css"> <!-- .style1 {color: #FF0000} --> </style> <style> body{ margin:0px; padding:0px; font-size:12px; background-position:center; background-position:top; background-image: url(images/bg_black.jpg); background-repeat: repeat; background-attachment:fixed; } td{ font-size:14px; } .style2 {font-weight: bold} </style> </head> <table width="100%" align="center"> <tr> <td align="center"><div align="center"><? require_once('head.php'); ?></div></td> </tr> <tr> <td align="center"><?php require_once('CSS3 Menu.css3prj.html'); ?></td> </tr> </table> <br /><br /><br /> <table width="773" border="1" align="center" bordercolor="#CCCCCC" > <tr> <td width="763"><table width="608" border="0" align="center"> <tr> <th width="639" valign="middle"></th> </tr> <tr> <th valign="middle">[ เลือกผู้ทบทวนโครงร่าง ]</th> </tr> <tr> <th valign="middle"> </th> </tr> <tr> <th valign="middle"></th> </tr> <form action="checker 1+2_edit.php" method="post" name="frmMain" id="frmMain"> <tr> <td height="28"><table width="602"> <tr> <td width="255"><p>ผู้ทบทวนโครงร่าง1</p></td> <td width="8">:</td> <td width="323"> <select name="list_checker1" id="list_checker1" > <? $strSQL = "SELECT * FROM etc_checker "; $objQuery = mysql_query($strSQL)or die ("Error Query [".$strSQL."]"); mysql_query("SET NAMES UTF8"); while($checker1 = mysql_fetch_array($objQuery)) { if($old_checker1 == $checker1["names"]) { $sel_checker1 = "selected"; } else { $sel_checker1 = ""; } ?> <option value="<?=$checker1["names"];?>"<?=$sel_checker1;?>><?=$checker1["id"]." - ".$checker1["names"];?></option> <? } ?> </select></td> </tr> <tr> <td><p>ผู้ทบทวนโครงร่าง2</p></td> <td>:</td> <td> <select name="list_checker2" id="list_checker2" > <? $strSQL = "SELECT * FROM etc_checker ORDER BY id ASC"; $objQuery = mysql_query($strSQL); mysql_query("SET NAMES UTF8"); while($checker2 = mysql_fetch_array($objQuery)) { if($old_checker2 == $checker2["names"]) { $sel_checker2 = "selected"; } else { $sel_checker2 = ""; } ?> <option value="<?=$checker2["names"];?>"<?=$sel_checker2;?>><?=$checker2["id"]." - ".$checker2["names"];?></option> <? } ?> </select> </td> </tr> </table></td> </tr> <tr> <td height="28"><div align="center"> <input name="btnSubmit" type="submit" id="btnSubmit" value="ตกลง"/> </div></td> </tr> <tr> <td height="28"></td> </tr> </form> </table> </td> </tr><? //mysql_close($objConnect); ?> </table> <p> </p> <p> </p> <p> </p> <p> </p> <div align="center"><?php require_once('foot.php'); ?>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง