<?php

    session_start
();
    
    
/**  Define Validate Access  */
    
define'_VALID_ACCESS');

    
/**  Check Session User Login  */
    
if( !session_is_registered("valid_user") && !session_is_registered("Priority") ) {
        echo 
"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-874\" />";
        echo 
"<p style=padding-top:115px><p align=center><br /><font color=red><strong>กรุณาทำการ Login ก่อน</strong></font></p></p>";
        echo 
"<meta http-equiv=\"refresh\" content=\"1; URL=../login.php\" />";
        exit();
    } 
    else {
        
/**  Configuration  */
        
require_once( "../configuration.php" );
        require_once( 
$_Config_absolute_path "/includes/framework.php" );
    
        
/**  Create Database Object  */
        
$dbObj = new DBConn;
        
        
/**  Config Table for This Page  */
        
$myTable "personal_tb";
        
        
$Username $valid_user;

        
$query " SELECT *  FROM $myTable  WHERE Username='$Username' ";
        
$result $dbObj->execQuery($query);
        
$rs $dbObj->fetchObject($result);
        
    } 
# else
 
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874" />
<link href="../css/default.css" rel="stylesheet" type="text/css" />
<title>MIS -- Teacher</title>
</head>

<body topmargin="0" rightmargin="0" bottommargin="0" leftmargin="0">
<?php
    
include("../templates/incHeader.php");
?>
<table width="1003" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="203" align="left" valign="top" style="padding:10px 0px 0px 5px"><?php include("./_incMainMenu.php");?></td>
    <td width="800" height="440" align="center" valign="top" style="padding:10px 0px 5px 10px"><fieldset>
      <table width="780" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td style="padding-left:15px;"><span class="TEXT-HEADER11-BLUE"><strong>ยินดีต้อนรับ </strong></span>อาจารย์ <strong><?=$rs->Teacher_name;?> &nbsp;<?=$rs->Teacher_lastname;?> </strong> รหัสประจำตัว <strong><?=$rs->Teacher_id;?></strong></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td align="center"><table width="75%" border="0" cellspacing="1" cellpadding="1">
          <tr>
            <td width="5%"><img src="../picture/ico1.gif" width="22" height="22" align="absmiddle" /></td>
            <td width="95%"><a href="Show_Fam_History.php?Teacher_code=<?=$rs->Teacher_code;?>">ประวัติส่วนตัวและครอบครัว</a></td>
          </tr>
          <tr>
            <td><img src="../picture/ico1.gif" width="22" height="22" align="absmiddle" /></td>
            <td><a href="#">ประวัติการศึกษา</a></td>
          </tr>
          <tr>
            <td><img src="../picture/ico1.gif" width="22" height="22" align="absmiddle" /></td>
            <td><a href="#">ประวัติการทำงาน</a></td>
          </tr>
          <tr>
            <td><img src="../picture/ico1.gif" width="22" height="22" align="absmiddle" /></td>
            <td><a href="#">ประวัติการดำรงตำแหน่ง</a></td>
          </tr>
          <tr>
            <td><img src="../picture/ico1.gif" width="22" height="22" align="absmiddle" /></td>
            <td><a href="#">ประวัติเงินเดือนแสดงรายเดือน</a></td>
          </tr>
          <tr>
            <td><img src="../picture/ico1.gif" width="22" height="22" align="absmiddle" /></td>
            <td><a href="#">ประวัติเงินเดือนแสดงรายปี</a></td>
          </tr>
          <tr>
            <td><img src="../picture/ico1.gif" width="22" height="22" align="absmiddle" /></td>
            <td><a href="#">ประวัติการรับพระราชทานเครื่องราชอิสริยาภรณ์</a></td>
          </tr>
          <tr>
            <td><img src="../picture/ico1.gif" width="22" height="22" align="absmiddle" /></td>
            <td><a href="#">ประวัติการลา</a></td>
          </tr>
          <tr>
            <td><img src="../picture/ico1.gif" width="22" height="22" align="absmiddle" /></td>
            <td><a href="#">ข้อมูลเข้าระบบ</a></td>
          </tr>
        </table>
          <table width="75%" 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="Show_Fam_History.php?Teacher_code=<? echo $rs["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><strong><font size="2" face="Tahoma"> </font></strong><font face="Tahoma"><a href="Show_Edu_History.php?Teacher_code=<? echo $rs["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="Show_Work_History.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="Show_Pos_History.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> <font face="Tahoma"><a href="Show_Moy_History.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> <font face="Tahoma"><span class="style11"><a href="MonyByYear.php?Teacher_code=<? echo $rs["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><strong><font size="2" face="Tahoma"> </font></strong><font face="Tahoma"><a href="Show_Dec_History.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="AbsentByYear.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="Show_profile.php?Teacher_code=<? echo $rs["Teacher_code"]?>" class="d style16"> ข้อมูลเข้าระบบ</a></font></td>
                          <td>&nbsp;</td>
                        </tr>
                      </table></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
    </table>
   </fieldset></td>
  </tr>
</table>
<?php include("../templates/incFooter.php"); ?>
</body>
</html>