<?php
 session_start
();
 if (
session_is_registered("valid_user")&&session_is_registered("password")&&session_is_registered("Priority"))
 {
include(
"../include/FunctionDB.php");
include(
"../include/Function.php");
 
ConnectDB();
 
$sql "Select * From qa_standard_tb";
 
$result  mysql_query($sql) or die("Error".mysql_error());
 
$num mysql_num_rows($result);
?>
<html>
<head>
<title>Q A</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<link href="../css/style1.css" rel="stylesheet" type="text/css">
</head>

<body bgcolor="#006633">
<table width="100%" height="319" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td height="70"> 
      <div align="center"><img src="../Image/qalogo2.jpg" width="500" height="70"> </div></td>
  </tr>
  <tr> 
    <td height="246" bgcolor="#006600"> 
      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="5">
        <tr> 
          <td colspan="3" bgcolor="#004200"><div align="center"><img src="../Image/div2.gif" width="378" height="18"><img src="../Image/div2.gif" width="378" height="18"></div></td>
        </tr>
        <tr> 
          <td width="50%" rowspan="12" bgcolor="#004200">&nbsp;</td>
          <td width="4%">&nbsp;</td>
          <td width="46%">&nbsp;</td>
        </tr>
        <tr> 
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr> 
          <td><div align="center"><img src="../Image/traffic_bullet.gif" width="22" height="22" align="absmiddle"></div></td>
          <td><strong><font size="4" face="Tahoma"><a href="Qa_menu.php">หน้าแรก</a></font></strong></td>
        </tr>
        <tr> 
          <td><div align="center"><img src="../Image/traffic_bullet.gif" width="22" height="22" align="absmiddle"></div></td>
          <td><font size="4" face="Tahoma"><strong><a href="StandardList.php">ข้อมูลมาตรฐานงานประกัน</a></strong></font></td>
        </tr>
        <tr> 
          <td><div align="center"><img src="../Image/traffic_bullet.gif" width="22" height="22" align="absmiddle"></div></td>
          <td><strong><font size="4" face="Tahoma"><a href="AddResult.php">ประเมินผลลัพธ์แต่ละมาตรฐาน</a></font></strong></td>
        </tr>
        <tr> 
          <td><div align="center"><img src="../Image/traffic_bullet.gif" width="22" height="22" align="absmiddle"></div></td>
          <td><strong><font size="4" face="Tahoma"><a href="ResultList.php">สรุปผลการประเมิน</a></font></strong></td>
        </tr>
        <tr> 
          <td><div align="center"><img src="../Image/traffic_bullet.gif" width="22" height="22" align="absmiddle"></div></td>
          <td><strong><font color="#CCFF00" size="4" face="Tahoma"><a href="../logout.php">Logout</a></font></strong></td>
        </tr>
        <tr> 
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr> 
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr> 
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr> 
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr> 
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr> 
          <td colspan="3" bgcolor="#004200"><div align="center"><img src="../Image/div2.gif" width="378" height="18"><img src="../Image/div2.gif" width="378" height="18"></div></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>
<?php 
    
}
else
{
    echo
"<body bgcolor=\"#CCCCCC\">";
     echo
"<meta http-equiv=\"refresh\" content=\"3;URL=../logout.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>";

?>