Viewing file: AddFur.php (4.04 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php include("../../../include/FunctionDB.php"); include("../../../include/Function.php"); ConnectDB(); $sql ="Select * From student_tb Where Student_id='$Student_id' "; $result = mysql_query($sql) or die("Error".mysql_error()); $rs = mysql_fetch_array($result); ?> <html> <head> <title>Add Student's </title> <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="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="329" colspan="2"> <form name="form1" method="post" action="InsertFurlough.php" > <table width="95%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#EEEEEE"> <tr bgcolor="#E2DAF1"> <td height="25" colspan="3"> <div align="center"><font face="Tahoma, MS Sans Serif"><strong><font color="#000000" size="4">เพิ่ม</font><font size="4">ข้อมูลการลา</font></strong></font></div></td> </tr> <tr> <td bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma, MS Sans Serif">รหัสนักศึกษา</font></div></td> <td bgcolor="#EEEEEE"> </td> <td bgcolor="#EEEEEE"><font size="2" face="Tahoma, MS Sans Serif"><strong><? echo $rs[Student_id]?></strong></font></td> </tr> <tr> <td width="27%" bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma, MS Sans Serif">ชื่อ-นามสกุล</font></div></td> <td width="3%" bgcolor="#EEEEEE"> </td> <td width="70%" bgcolor="#EEEEEE"><font size="2" face="Tahoma, MS Sans Serif"><strong><? echo $rs[First_name]?> <? echo $rs[Name]?> <? echo $rs[Lastname]?></strong></font></td> </tr> <tr> <td bgcolor="#EEEEEE"> <div align="center"><font size="2" face="Tahoma, MS Sans Serif">วันที่บันทึก</font></div></td> <td bgcolor="#EEEEEE"><div align="center"><font color="#FF0000" size="4" face="Tahoma, MS Sans Serif"><strong>*</strong></font></div></td> <td bgcolor="#EEEEEE"><font color="#000000" size="2" face="Tahoma, MS Sans Serif">วันที่ <select name="mDate" id="select" class="select" > <option value=""></option> <? getDay1to31();?> </select> เดือน <select name="mMonth" id="select2" class="select" > <option></option> <? getThaiMonth();?> </select> ปี พ.ศ. <input name="mYear" type="text" class="input1" id="mYear2" value="<? echo $mYear ?>" size="10" > </font></td> </tr> <tr bordercolor="#CCCCCC"> <td nowrap bordercolor="#CCCCCC" bgcolor="#EEEEEE"> <div align="center"><font color="#000000" size="2" face="Tahoma, MS Sans Serif">สาเหตุการลา</font></div></td> <td bordercolor="#CCCCCC" bgcolor="#EEEEEE"> </td> <td nowrap bordercolor="#CCCCCC" bgcolor="#EEEEEE"><font size="2" face="Tahoma, MS Sans Serif"> <textarea name="Case_ab" cols="40" rows="5" id="textarea"></textarea> </font></td> </tr> <tr bordercolor="#CCCCCC"> <td nowrap bordercolor="#CCCCCC" bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma">จำนวนวันลา</font></div></td> <td bordercolor="#CCCCCC" bgcolor="#EEEEEE"> </td> <td nowrap bordercolor="#CCCCCC" bgcolor="#EEEEEE"><font color="#000000" size="2" face="Tahoma, MS Sans Serif"> <input name="Unit" type="text" id="mYear" size="10" class="input1" > </font></td> </tr> <tr bgcolor="#E2DAF1"> <td colspan="3"> <div align="center"> <font face="Tahoma, MS Sans Serif"> <input type="hidden" name="Student_id" value="<? echo $rs[Student_id]?>"> <input type="submit" name="Submit" value=" เพิ่ม "> </font></div></td> </tr> </table> </form></td> </tr> </table> </body> </html>
|