<?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> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" /><a href="AccHistory.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="#FFCC99">
                <td width="100%" height="23"><div align="center"><font size="5" face="Tahoma">ร<strong>ะ</strong>บบงานคลินิคทันตกรรม</font></div></td>
              </tr>

              <tr bgcolor="#AFCFEF">
                <td height="19"><div align="center"><img src="../picture/SCPHLOGO.jpg" width="616" height="278" /></div></td>
              </tr>
              <tr bgcolor="#AFCFEF">
                <td height="19">&nbsp;</td>
              </tr>
              <tr bgcolor="#AFCFEF">
                <td height="19"><div align="center"> <font face="Tahoma, MS Sans Serif"> </font></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>";

?>