<?php
session_start
();
 if (
session_is_registered("valid_user"))
 {
include(
"../include/FunctionDB.php");
include(
"admin_menu.php");
include(
"../include/Function.php");
 
ConnectDB();
$sql1 "Select * From treatment_tb  Where Teach_code='$Teach_code'";
$result1 mysql_query($sql1) or die(" Error".mysql_error());
$rs mysql_fetch_array($result1);
?> 

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

<table width="815" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="815" ><br />
        <fieldset>
        <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="index.php">หน้าหลัก</a></font></legend>
          <label> </label>
        <div align="center">
          <form action="InsertTreatcat.php" method="post" name="form1" id="form1">
            <table width="525" height="105" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#99CCFF">
              

              <tr bgcolor="#FFFFFF">
                <td width="100%" height="19"><div align="center"><img src="../picture/T-office.gif" width="450" height="355" /></div></td>
              </tr>
            </table>
          </form>
        </div>
        </fieldset>
      <br />
    <font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2"><b>หมายเหตุ :</b></font></td>
  </tr>
</table>
<?php 
    
}
else
{
  echo
"<body bgcolor=\"#CCCCCC\">";
 echo
"<meta http-equiv=\"refresh\" content=\"3;URL=../login.php\" target=\"mainFrame\">\n";
    echo
"<center>";
  echo
"<br><br><br><b><font face=\"Tahoma\" size=\"4\" color=\"#FF0000\">Please Login</font> </b><br>";
   echo
"<br><br><font face=\"Tahoma\" size=\"10\" color=\"#000000\"> ERROR 404 PERMISION DENY</font><br>";
  echo
"<br><font face=\"Tahoma\" size=\"4\" color=\"#000000\"> คุณไม่มสิทธ์ใช้งาน</font>";
      echo
"</center>";
      echo
"</body>";

?>