<?php
session_start
();
 if (
session_is_registered("valid_user")&&session_is_registered("Priority")&&session_is_registered("password") )
 {
include(
"../include/FunctionDB.php");
include(
"admin_menu.php");
include(
"../include/Function.php");
ConnectDB();
$sql "Select * From subject_category_tb Where  SubCate_code='$SubCate_code'";
$result1mysql_query($sql) or die("Error".mysql_error());
$rs mysql_fetch_array($result1);
?> 

<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">

<table width="843" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td width="843" ><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"><a href="AddSubCate.php">เพิ่มข้อมูลหมวดวิชา</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle"><a href="EditSubCateList.php"> แก้ไขข้อมูลหมวดวิชา</a></font></legend>
            <label>
  <form id="form1" name="form1" method="post" action="InsertSubCate.php">
    <table width="61%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#006699">
      <tr bgcolor="#669EE3">
        <td colspan="3"><div align="center"><strong><font color="#FFFFFF" size="4" face="Tahoma">เพิ่ม 
          ข้อมูลหมวดวิชา</font></strong></div></td>
      </tr>
      <tr bgcolor="#EEEEEE">
        <td width="26%"><div align="center"><font color="#003366" size="2" face="Tahoma">ชื่อหมวดวิชา</font></div></td>
        <td width="4%" bordercolor="#006699"><div align="center"><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></div></td>
        <td width="70%" bordercolor="#006699"><font color="#000066" size="2" face="Tahoma">
          <input name="Cate_name" type="text" class="input" id="Cate_name"  size="50" />
        </font></td>
      </tr>
      <tr bgcolor="#EEEEEE">
        <td><div align="center"><font color="#003366" size="2" face="Tahoma">ชื่อหมวดวิชา</font><font color="#003366" size="2" face="Tahoma"> Eng. </font></div></td>
        <td bordercolor="#006699"><div align="center"><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></div></td>
        <td bordercolor="#006699"><input name="Cate_nameE" type="text" class="input" id="Cate_nameE" size="50" />
        </td>
      </tr>
      <tr bgcolor="#669EE3">
        <td colspan="3"><div align="center">
            <input type="submit" name="Submit3" value="    เพิ่ม    " />
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          <input type="reset" name="Submit22" value="   ลบ     " />
        </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 ";
}
?>