Viewing file: FrmEditProject.php (6.44 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $Username = $valid_user; $Password = $password; include("../../../Include/FunctionDB.php"); ConnectDB(); $sql = "Select * From foreign_relation_tb Where code='$code'"; $result = mysql_query($sql) or die("Error".mysql_error()); $rs = mysql_fetch_array($result); ?> <html> <head> <title>Edit Project</title> <link rel="stylesheet" href="../../css/style1.css" type="text/css"> <meta http-equiv="Content-Type" content="text/html; charset=windows-874"> <link href="../../../css/style1.css" rel="stylesheet" type="text/css"> </head>
<body bgcolor="#FFFFFF"> <table width="95%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#006699"> <tr bgcolor="#CBE4D9"> <td colspan="3"> <div align="center"><strong><font color="#FF0000" size="4" face="Tahoma">แก้ไข</font><font color="#000000" size="4" face="Tahoma"> </font><font color="#996633" size="4" face="Tahoma"><strong><font color="#000000">ข้อมูลโครงการ/กิจกรรม</font><font color="#000000" size="4" face="Tahoma">งานวิเทศสัมพันธ์</font></strong></font></strong></div></td> </tr> <form action="EditProject.php" method="post"> <tr bgcolor="#EEEEEE"> <td width="38%"> <div align="center"><font color="#000066" size="2" face="Tahoma">ชื่อโครงการ/กิจกรรม</font></div></td> <td width="1%" bordercolor="#006699"> </td> <td width="61%" bordercolor="#006699"> <input name="Project_name" type="text" class="input1" value="<? echo $rs[Project_name]?>" size="50"></td> </tr> <tr bgcolor="#EEEEEE"> <td><div align="center"><font color="#000066" size="2" face="Tahoma">วัตถุประสงค์</font></div></td> <td bordercolor="#006699"> </td> <td bordercolor="#006699"><textarea name="Objective" cols="50" rows="5" id="Objective" class="input1"><? echo $rs[Objective]?></textarea></td> </tr> <tr bgcolor="#EEEEEE"> <td bgcolor="#EEEEEE"> <div align="center"><font color="#000066" size="2" face="Tahoma">กลุ่มเป้าหมาย</font></div></td> <td bordercolor="#006699"> </td> <td bordercolor="#006699"> <input name="Target" type="text" class="input1" id="Target" value="<? echo $rs[Target]?>" size="50"> </td> </tr> <tr bgcolor="#EEEEEE"> <td> <div align="center"><font color="#000066" size="2" face="Tahoma">ระยะเวลาดำเนินงาน</font></div></td> <td bordercolor="#006699"> </td> <td bordercolor="#006699"> <input name="Period" type="text" class="input1" id="Period2" value="<? echo $rs[Period]?>" size="30"></td> </tr> <tr bgcolor="#EEEEEE"> <td> <div align="center"><font color="#000066" size="2" face="Tahoma">วันที่ดำเนินการ</font></div></td> <td bordercolor="#006699"> </td> <td bordercolor="#006699"> <input name="Start_Date" type="text" class="input1" id="Start_Date" value="<? echo $rs[Start_Date]?>"></td> </tr> <tr bgcolor="#EEEEEE"> <td> <div align="center"><font color="#003366" size="2" face="Tahoma">ปีการศึกษา</font></div></td> <td bordercolor="#006699"> </td> <td bordercolor="#006699"><font color="#003366" size="2" face="Tahoma"> พ.ศ. <input name="Term" type="text" id="Term" value="<? echo $rs[Term]?>" size="5" class="input1"> </font></td> </tr> <tr bgcolor="#EEEEEE"> <td bgcolor="#EEEEEE"> <div align="center"><font color="#003366" size="2" face="Tahoma">ปีงบประมาณ</font></div></td> <td bordercolor="#006699"> </td> <td bordercolor="#006699"><font color="#003366" size="2" face="Tahoma"> พ.ศ. <input name="Budget_Year" type="text" id="Budget_Year" value="<? echo $rs[Budget_Year] ?>" size="5" class="input1"> </font></td> </tr> <tr bgcolor="#EEEEEE"> <td> <div align="center"><font color="#003366" size="2" face="Tahoma">แหล่งงบประมาณ</font></div></td> <td bordercolor="#006699"> </td> <td bordercolor="#006699"> <input name="Fund_resource" type="text" class="input1" id="Fund_resource" value="<? echo $rs[Fund_resource]?>" size="50"></td> </tr> <tr bgcolor="#EEEEEE"> <td> <div align="center"><font color="#003366" size="2" face="Tahoma">งบประมาณการ</font></div></td> <td bordercolor="#006699"> </td> <td bordercolor="#006699"><font color="#003366"> <input name="Budget" type="text" id="Budget" value="<? echo $rs[Budget]?>" class="input1"> <font size="2" face="Tahoma">บาท</font></font></td> </tr> <tr bgcolor="#EEEEEE"> <td> <div align="center"><font color="#003366" size="2" face="Tahoma">เงินที่ใช้จริง</font></div></td> <td bordercolor="#006699"> </td> <td bordercolor="#006699"><font color="#003366"> <input name="Budget_use" type="text" id="Budget_use" value="<? echo $rs[Budget_use]?>" class="input1"> <font size="2" face="Tahoma">บาท</font></font></td> </tr> <tr bgcolor="#EEEEEE"> <td bgcolor="#EEEEEE"><div align="center"><font color="#003366" size="2" face="Tahoma">ผู้รับผิดชอบ</font></div></td> <td bordercolor="#006699"> </td> <td bordercolor="#006699"><textarea name="Director" cols="50" id="Director" class="input1"><? echo $rs[Director]?></textarea></td> </tr> <tr bgcolor="#EEEEEE"> <td bgcolor="#EEEEEE"> <div align="center"><font color="#003366" size="2" face="Tahoma">ผู้ร่วมมือ/องค์กรณ์สนับสนุนต่างประเทศ</font></div></td> <td bordercolor="#006699"> </td> <td bordercolor="#006699"> <textarea name="Join_co" cols="50" id="Join_co" class="input1"><? echo $rs[Join_co]?></textarea></td> </tr> <tr bgcolor="#EEEEEE"> <td bgcolor="#EEEEEE"> <div align="center"><font color="#003366" size="2" face="Tahoma">ผลการดำเนินงานตามแผน</font></div></td> <td bordercolor="#006699"> </td> <td bordercolor="#006699"><input type="radio" name="Result_oper" <?php if (!(strcmp("$rs[Result_oper]","1"))) {echo "checked";} ?> value="1"> <font size="2" face="Tahoma"> เสร็จตามแผน <input type="radio" name="Result_oper" <?php if (!(strcmp("$rs[Result_oper]","2"))) {echo "checked";} ?> value="2"> ไม่เสร็จตามแผน <input type="radio" name="Result_oper" <?php if (!(strcmp("$rs[Result_oper]","3"))) {echo "checked";} ?> value="3"> ไม่ได้ทำ </font> </td> </tr> <tr bgcolor="#CBE4D9"> <td colspan="3"> <div align="center"> <input name="code" type="hidden" id="code" value="<? echo $rs[code]?>"> <input type="submit" name="Submit3" value=" บันทึก "> </div></td> </tr> </form> </table> </body> </html>
|