<?php
session_start
();

if (
session_is_registered("valid_user") && session_is_registered("Priority") )
{
    include(
"../include/FunctionDB.php");
    include(
"admin_menuN.php");
    
    
ConnectDB();
     
    
$Username $valid_user;
    
$sql "SELECT * FROM personal_tb  WHERE Username='$Username'";
    
$result mysql_query($sql) ;
    
$rs mysql_fetch_array($result);
    
$row mysql_num_rows($result);
    
    
$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">
<link href="../source/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style11 {color: #0000FF; font-size: 14px; }
.style16 {font-size: 14px}
-->
</style>
<table width="807" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td width="807"><br><fieldset>
            <legend><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><span class="style16"><a href="menu_teacher.php?Teacher_code=<? echo $rss[Teacher_code?> " >หน้าหลัก</a></span></font><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2"> </font><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" />ข้อมูลงานส่วนบุคคล</font></legend>
            <label><div align="center">
              <form id="form1" name="form1" method="post" action="">
                <div align="left"><font size="2" face="Tahoma"><img src="../picture/previous.gif" onclick="window.history.back()"  width="85" height="22" border="0" /></font></div>
                <table width="73%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" style="background-color:#eeeeee; border:0px solid gray"size="12">
                  <tr>
                    <td height="43" bgcolor="#FFFFFF" ><div align="center">
                      <table width="97%" border="0" align="center" cellpadding="1" cellspacing="1">
                        <tr>
                          <td>&nbsp;</td>
                          <td>&nbsp;</td>
                        </tr>
                        <tr>
                          <td width="86%"><font size="2" face="Tahoma"><strong><img src="../picture/ico1.gif" width="22" height="22" align="absmiddle" /></strong></font><font face="Tahoma"><a href="AddFormA.php?Teacher_code=<? echo $rss["Teacher_code"]?>" class="d style16"> แบบบันทึกขออนุมัติไปราชการ</a></font></td>
                          <td width="14%">&nbsp;</td>
                        </tr>
                        <tr>
                          <td><font size="2" face="Tahoma"><strong><img src="../picture/ico1.gif" width="22" height="22" align="absmiddle" /></strong></font> <font face="Tahoma"><a href="AddfromCar.php?Teacher_code=<? echo $rss["Teacher_code"]?>" class="style16"> แบบฟอร์มบันทึกขอใช้รถยนต์ </a></font></td>
                          <td>&nbsp;</td>
                        </tr>
                        <tr>
                          <td><font size="2" face="Tahoma"><strong><img src="../picture/ico1.gif" width="22" height="22" align="absmiddle" /></strong></font><strong><font size="2" face="Tahoma"> </font></strong><font face="Tahoma"><a href="AddAbsent_01.php?Teacher_code=<? echo $rs["Teacher_code"]?>" class="d style16"> แบบฟอร์มบันทึกขอลาป่วย ลากิจ ลาคลอด</a></font></td>
                          <td>&nbsp;</td>
                        </tr>
                        <tr>
                          <td><font size="2" face="Tahoma"><strong><img src="../picture/ico1.gif" width="22" height="22" align="absmiddle" /></strong></font><strong><font size="2" face="Tahoma"> </font></strong><font face="Tahoma"><a href="AddAbsent_01.php?Teacher_code=<? echo $rss["Teacher_code"]?>" class="d style16"> แบบฟอร์มบันทึกขอลากิจส่วนตัว</a> </font></td>
                          <td>&nbsp;</td>
                        </tr>
                        <tr>
                          <td><font size="2" face="Tahoma"><strong><img src="../picture/ico1.gif" width="22" height="22" align="absmiddle" /></strong></font> <font face="Tahoma"><a href="AddAbsent_03.php?Teacher_code=<? echo $rss["Teacher_code"]?>" class="d style16"> แบบฟอร์มบันทึกขอลาพักผ่อน</a></font></td>
                          <td>&nbsp;</td>
                        </tr>
                        <tr>
                          <td><font size="2" face="Tahoma"><strong><img src="../picture/ico1.gif" width="22" height="22" align="absmiddle" /></strong></font> <font face="Tahoma"><span class="style11"><a href="AddfromMan.php?Teacher_code=<? echo $rss["Teacher_code"]?>"> แบบฟอร์บันทึกขอใช้เงินตามแผน/โครงการ</a></span></font></td>
                          <td>&nbsp;</td>
                        </tr>
                        
                        <tr>
                          <td><font size="2" face="Tahoma"><strong><img src="../picture/ico1.gif" width="22" height="22" align="absmiddle" /></strong></font> <font face="Tahoma"><a href="AddfromMan.php?Teacher_code=<? echo $rss["Teacher_code"]?>" class="d style16"> แบบฟอร์มบันทึกขอใช้วัสดุ</a></font></td>
                          <td>&nbsp;</td>
                        </tr>
                        <tr>
                          <td><font size="2" face="Tahoma"><strong><img src="../picture/ico1.gif" width="22" height="22" align="absmiddle" /></strong></font><strong><font size="2" face="Tahoma"> </font></strong><font face="Tahoma"><a href="AbsentByYear.php?Teacher_code=<? echo $rss["Teacher_code"]?>" class="d style16"> แบบฟอร์มบันทึกขออนุมัติยืมเงินไปราชการ</a></font> </td>
                          <td>&nbsp;</td>
                        </tr>
                        
                        <tr>
                          <td><font size="2" face="Tahoma"><strong><img src="../picture/ico1.gif" width="22" height="22" align="absmiddle" /></strong></font><strong><font size="2" face="Tahoma"> </font></strong><font face="Tahoma"><a href="Show_profile.php?Teacher_code=<? echo $rss["Teacher_code"]?>" class="d style16"> แบบฟอร์มบันทึกรายงานการเดินทาง</a></font> </td>
                          <td>&nbsp;</td>
                        </tr>
                      </table>
                    </div></td>
                  </tr>
                </table>
                <br>
              </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 ";
}
?>