<?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="EditSubCate.php">
    <table width="59%" height="152" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#006699">
      <tr bgcolor="#669EE3">
        <td colspan="3"><div align="center"><strong><font color="#FF0000" size="4" face="Tahoma">แก้ไข</font><font color="#003366" size="4" face="Tahoma"> <strong><font color="#FFFFFF">รายชื่อหมวดวิชา</font></strong></font></strong></div></td>
      </tr>
      <tr bgcolor="#EEEEEE">
        <td width="24%" bgcolor="#EEEEEE"><div align="center"><font color="#000000" size="2" face="Tahoma">ชื่อหมวดวิชา 
          ไทย </font></div></td>
        <td width="0%" bordercolor="#006699">&nbsp;</td>
        <td width="76%" bordercolor="#006699"><input name="Cate_name" type="text" id="Cate_name" value="<? echo $rs[Cate_name]?>" size="50" /></td>
      </tr>
      <tr bgcolor="#EEEEEE">
        <td bgcolor="#EEEEEE"><div align="center"><font color="#000000" size="2" face="Tahoma">ชื่อหมวดวิชา 
          Eng. </font></div></td>
        <td bordercolor="#006699">&nbsp;</td>
        <td bordercolor="#006699"><font color="#003366" size="2" face="Tahoma">
          <input name="Cate_nameE" type="text" id="Cate_nameE" value="<? echo $rs[Cate_nameE]?>" size="50" />
        </font></td>
      </tr>
      <tr bgcolor="#669EE3">
        <td colspan="3"><div align="center">
            <input name="SubCate_code" type="hidden" id="SubCate_code" value="<? echo $rs[SubCate_code]?>" />
            <input type="submit" name="Submit3" 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 ";
}
?>