<?php
session_start
();

 if (
session_is_registered("valid_user")&&session_is_registered("Priority") )
 {
include(
"../include/FunctionDB.php");
include(
"admin_menu.php");
 
ConnectDB();
$Username $valid_user;
$sql "Select * From personal_tb Where Username='$Username'";
$result mysql_query($sql) or die(" Error").mysql_error();
$rs mysql_fetch_array($result)
?>
<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<style type="text/css">
<!--
.style15 {font-size: 14px}
.style16 {font-weight: bold}
-->
</style>
<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_teacher.php " >หน้าหลัก</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle"><a href="Edit_profile.php?Teacher_code=<? echo $rs[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></font></legend>
            <label><div align="center">
              <form id="form1" name="form1" method="post" action="">
                <table width="64%" border="0" align="center" cellpadding="0" cellspacing="0" style=" border:0px solid gray"size="12">
                  <tr>
                    <td height="22" bgcolor="#FFFFFF"><font size="2" face="Tahoma"><img src="../picture/previous.gif" onclick="window.history.back()"  width="85" height="22" border="0" /></font></td>
                  </tr>
                  <tr>
                    <td height="25" bgcolor="#FFFFFF">&nbsp;</td>
                  </tr>
                  
                  <tr>
                    <td height="43" ><table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC" style="border:0px solid gray">
                      <!--DWLayoutTable-->
                      <tr bordercolor="#FFFFFF" bgcolor="#ECF5FF">
                        <td height="20" colspan="3" nowrap="nowrap" bordercolor="#FFFFFF" bgcolor="#FFFFFF"><div align="center" class="style15"><font color="#003366" face="Tahoma"><span class="style16"><font color="#003366" face="Tahoma">แสดง</font>ข้อมูลเข้าระบบ</span></font> <strong><font face="Tahoma">อ</font><font face="Tahoma"></font></strong><font face="Tahoma">.<font color="#993333"><strong><? echo $rs['Teacher_name'?> &nbsp;<? echo $rs['Teacher_lastname'?></strong></font></font></div></td>
                      </tr>
                      <tr bordercolor="#FFFFFF" bgcolor="#FFFFFF">
                        <td width="81" height="20" nowrap="nowrap" bordercolor="#FFFFFF" bgcolor="#FFFFFF"><div align="center"><font color="#003300" size="2" face="Tahoma">ชื่อผู้ใช้</font></div></td>
                        <td nowrap="nowrap" bgcolor="#FFFFFF"><!--DWLayoutEmptyCell-->&nbsp;</td>
                        <td nowrap="nowrap" bgcolor="#FFFFFF"><font color="#003366" size="2" face="Tahoma">
                          <?php 
     
echo"$rs[Username] ";
  
      
?>
                        </font></td>
                      </tr>
                      <tr bordercolor="#E7FAFE" bgcolor="#E7FAFE">
                        <td height="20" nowrap="nowrap" bordercolor="#FFFFFF" bgcolor="#FFFFFF"><div align="center"><font color="#003300" size="2" face="Tahoma">รหัสผ่าน</font></div></td>
                        <td width="5" nowrap="nowrap" bgcolor="#FFFFFF"><!--DWLayoutEmptyCell-->&nbsp;</td>
                        <td width="427" nowrap="nowrap" bgcolor="#FFFFFF"><font color="#003366" size="2" face="Tahoma">
                          <?php
       
echo"$rs[Password]";

     
?>
                          <font color="#993333">(รหัสผ่านถูกเข้ารหัสแล้ว) </font></font></td>
                      </tr>
                      <tr bordercolor="#FFFFFF" bgcolor="#ECF5FF">
                        <td colspan="3" nowrap="nowrap" bgcolor="#FFFFFF"><!--DWLayoutEmptyCell-->&nbsp;</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 ";
}
?>