<?php
session_start
();
  if (
session_is_registered("valid_user")&&session_is_registered("Priority")  )
 {
include(
"../include/FunctionDB.php");
include(
"admin_menu.php");
include(
"../include/Function.php");
ConnectDB();
$sql "Select * From faculty_tb Where Faculty_code='$Faculty_code'";
$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">
<!--
.style12 {
    font-size: 14px;
    font-weight: bold;
}
-->
</style>
<table width="793" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td width="793" ><br> 
          <fieldset>
            <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="Edu_Menu.php">หน้าหลัก</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle">แสดงข้อมูล</font></legend>
            <label>
  <form id="form1" name="form1" method="post" action="EditFac.php">
    <table width="87%" border="0" align="center" cellpadding="0" cellspacing="1">
      <tr bgcolor="#DBE4E9">
        <td height="25" colspan="3"><div align="center"><strong><font color="#FF0000" size="4" face="Tahoma">แก้ไข</font><font color="#000000" size="4" face="Tahoma"> ข้อมูลภาควิชา/ฝ่ายงาน</font></strong></div></td>
      </tr>
      <tr bgcolor="#EEEEEE">
        <td width="37%"><div align="center"><font color="#003366" size="2" face="Tahoma">ชื่อ 
          ภาควิชา/ ฝ่ายงาน (ไทย) </font></div></td>
        <td width="3%"><div align="center"><strong><font color="#FF0000" size="3" face="Tahoma">*</font></strong></div></td>
        <td width="60%"><input name="Faculty_name" type="text" class="input" id="Faculty_name" value="<? echo $rs[Faculty_name]?>" size="50" /></td>
      </tr>
      <tr bgcolor="#EEEEEE">
        <td><div align="center"><font color="#003366" size="2" face="Tahoma">ชื่อ 
          ภาควิชา/ ฝ่ายงาน (อังกฤษ) </font></div></td>
        <td><div align="center"></div></td>
        <td><input name="Faculty_nameE" type="text" class="input" id="Faculty_nameE" value="<? echo $rs[Faculty_nameE]?>" size="50" /></td>
      </tr>
      <tr bgcolor="#DBE4E9">
        <td colspan="3"><div align="center"><font color="#FFCCCC">
            <input name="Faculty_code" type="hidden" id="Faculty_code" value="<? echo $rs[Faculty_code]?>" />
            <input type="submit" name="Submit" value="    บันทึก   " />
        </font></div></td>
      </tr>
    </table>
  </form>
          </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 ";
}
?>