Viewing file: AddAbsent.php (6.55 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php session_start();
if (session_is_registered("valid_user")&&session_is_registered("Priority")&&session_is_registered("password") ) { $Username = $valid_user; $Password = $password; include("../include/FunctionDB.php"); include("../include/Function.php"); include("admin_menu.php"); ConnectDB();
$sql = "Select * From personal_tb Where Teacher_code='$Teacher_code'"; $result = mysql_query($sql) or die(" Error").mysql_error(); $rss = mysql_fetch_array($result); ?> <meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<table width="807" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="807"><br> <fieldset> <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="menu_manage.php" >หน้าหลัก</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle"><a href="AbsentPersonalList.php?Teacher_code=<? echo $rss[Teacher_code] ?>">ข้อมูลประวัติการลาบุคลากร</a></font><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" /><a href="AbsentByYear.php?Teacher_code=<? echo $rss[Teacher_code] ?>">ข้อมูลประวัติวันลา</a></font><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" /><a href="ResearByYear.php?Teacher_code=<? echo $rss[Teacher_code] ?>">แสดงประวัติการศึกษา</a></font></legend> <label><div align="center"> <form id="form1" name="form1" method="post" action="Insert_AddAbsent.php"> <table width="56%" border="0" align="center" cellpadding="0" cellspacing="0" style=" border:1px solid gray"size="12"> <tr> <td height="29" background="../Image/barIns2.jpg" bgcolor="#D1E1F0"><div align="center"><font size="2" face="Tahoma">ขณะนี้ อ.<font color="#993333"><strong><? echo $rss['Teacher_name'] ?> <? echo $rss['Teacher_lastname'] ?> </strong></font><span class="style14">รหัสประจำตัว</span> <font color="#993333"><strong><? echo $rss['Teacher_id'] ?></strong></font> กำลังใช้งานระบบ</font></div></td> </tr> <tr> <td height="43" ><table width="101%" height="199" border="0" align="center" cellpadding="0" cellspacing="0" style="background-color:#eeeeee; border:0px solid gray"size="12"> <tr> <td colspan="3" bgcolor="#FDD88A"><div align="center"><font color="#000000" size="4" face="Tahoma"><strong>เพิ่มวันลาสะสม</strong></font></div></td> </tr> <tr bgcolor="#FFFFFF"> <td width="48%" height="25"><div align="center"><font color="#003366" size="2" face="Tahoma">ชื่อ - นามสกุล</font></div></td> <td width="1%"> </td> <td width="51%"><font color="#003366" size="2" face="Tahoma"> <? echo $rss[First_name]?> <? echo $rss[Teacher_name]?> <? echo $rss[Teacher_lastname]?></font></td> </tr> <tr bgcolor="#FFFFFF"> <td height="25"><div align="center"><font color="#003366" size="2" face="Tahoma">ปีงบประมาณ</font></div></td> <td> </td> <td><div align="left"><font color="#0000FF" size="2" face="Geneva, Arial, Helvetica, sans-serif"> <select name="Year" id="select20"> <option value="0"><ระบุ></option> <? for($i=2547;$i<=2552;$i++){ $temp=$i; if(date('Y')==$temp) echo"<option value='$temp'selected>$temp</option>"; else echo"<option value='$temp'>$temp</option>"; }?> </select> </font></div></td> </tr> <tr bgcolor="#FFFFFF"> <td height="25"><div align="center"><font color="#003366" size="2" face="Tahoma">ประเภทการลา</font></div></td> <td> </td> <td><font size="2" face="Tahoma"><strong><font color="#003366" size="2" face="Tahoma"> <select name="Absent_code" id="Absent_code" class="input1"> <?php $strSQL3 = "SELECT * FROM history_absent01_tb ";//Where Absent_code='$Absent_code' "; $result3 = mysql_query($strSQL3); while( $rs3 = mysql_fetch_array($result3)) { echo"<option value=\"$rs3[Absent_code]\" ><b>$rs3[Absent_type]</b></option>\n"; } CloseDB(); ?> </select> </font></strong></font></td> </tr> <tr bgcolor="#FFFFFF"> <td height="25"><div align="center"><font color="#003366" size="2" face="Tahoma">จำนวนวันลา</font></div></td> <td> </td> <td><div align="left"> <input name="Absent_times" type="text" id="Absent_times" size="2" maxlength="2" /> </div></td> </tr> <tr bgcolor="#FFFFFF"> <td height="25"><div align="center"><font color="#003366" size="2" face="Tahoma">จำนวนวันลาพักผ่อนที่ปีที่ผ่านมา</font></div></td> <td> </td> <td><div align="left"> <input name="Absent_code1" type="text" id="Absent_code1" size="2" maxlength="2" /> </div></td> </tr> <tr> <td height="37" colspan="3" bgcolor="#FDD88A"><div align="center"> <input type="hidden" name="Teacher_code" value="<? echo $rss[Teacher_code]?>" /> <input type="submit" name="Submit" value=" เพิ่ม " class="button" /> <input type="reset" name="Submit" value="Reset" class="button" /> </div></td> </tr> </table></td> </tr> </table> </form> </div> </label> </fieldset><br> <font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2"><b>หมายเหตุ :</b> ใช้เมาส์คลิกที่ชื่อ<br> </font></td> </tr> </table> <?php } else { echo"<meta http-equiv=\"refresh\" content=\"3;URL=../login.php\">\n"; echo"Please Login "; } ?>
|