a<?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 edu_project_tb  Where Faculty_code='$Faculty_code'";
$result mysql_query($sql) or die("Error".mysql_error());
$rs mysql_fetch_array($result);
$strSQL "SELECT * FROM course_tb Order By Term Asc";
$result mysql_query($strSQL); 
$num mysql_num_rows$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="InsertFac.php">
    <table width="85%" border="0" align="center" cellpadding="0" cellspacing="1">
      <tr bgcolor="#DBE4E9">
        <td height="25" colspan="3"><div align="center" class="style12"><font color="#000000" face="Tahoma">เพิ่มข้อมูล 
          ภาควิชา/ฝ่ายงาน</font></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"><font size="4"><strong><font color="#FF0000" face="Tahoma">*</font></strong></font></div></td>
        <td width="60%"><input name="Faculty_name" type="text" id="Faculty_name" size="50" class="input" /></td>
      </tr>
      <tr bgcolor="#EEEEEE">
        <td><div align="center"><font color="#003366" size="2" face="Tahoma">ชื่อภาควิชา/ฝ่ายงาน 
          (อังกฤษ) </font></div></td>
        <td><div align="center"><font size="4"><strong><font color="#FF0000" face="Tahoma">*</font></strong></font></div></td>
        <td><input name="Faculty_nameE" type="text" id="Faculty_nameE" size="50" class="input" /></td>
      </tr>
      <tr bgcolor="#DBE4E9">
        <td colspan="3"><div align="center"><font color="#FFCCCC">
            <input type="submit" name="Submit" value="    เพิ่ม    " />
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          <input type="reset" 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 ";
}
?>