<?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 edu_project_tb  Where Faculty_code='$Faculty_code'";
$result mysql_query($sql) or die("Error".mysql_error());
$rs mysql_fetch_array($result);
$strSQL "SELECT * FROM course_tb Order By Term Asc";
$result mysql_query($strSQL); 
$num mysql_num_rows$result );
?> 

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

<style type="text/css">
<!--
.style1 {font-family: AngsanaUPC;
    font-size: 30px;
}
.style12 {font-size: 14px}
.style30 {font-family: Tahoma; font-size: 24px;}
-->
</style>
<table width="793" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td width="793" ><br> 
          <fieldset>
            <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="menu_edu.php">หน้าหลัก</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle">แสดงข้อมูล</font></legend>
            <label>
  <form id="form1" name="form1" method="post" action="">
    <p align="left"><font size="2" face="Tahoma"><img src="../picture/previous.gif" onclick="window.history.back()"  width="85" height="22" border="0" /></font></p>
    <table width="75%" border="0" align="center" cellpadding="0" cellspacing="9">
      
      <tr >
        <td width="7%"><div align="center"><font size="4" face="Tahoma"><img src="../Image/button.gif" width="10" height="10" /></font></div></td>
        <td width="93%" class="style30"><span class="style12"><font color="#003366"><a href="Menu_Course.php">ข้อมูลหลักสูตร</a></font></span></td>
      </tr>
      <tr>
        <td><div align="center"><font size="4" face="Tahoma"><img src="../Image/button.gif" width="10" height="10" /></font></div></td>
        <td class="style30"><font color="#003366"><a href="Menu_Faculty.php" class="style12">ข้อมูลกลุ่มงาน / ฝ่าย</a></font></td>
      </tr>
      <tr>
        <td height="23">&nbsp;</td>
        <td class="style1"><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
            <tr>
              <td width="6%"><div align="center">
                  <div align="center"><font size="4" face="Tahoma"><img src="../Image/button.gif" width="10" height="10" /></font></div>
              </div></td>
              <td width="74%"><span class="style30"><font face="Tahoma"><a href="SubCateList.php" class="style12">ข้อมูลหมวดวิชา</a></font></span> </td>
              <td width="20%"><div align="center"><font color="#000000" size="2" face="Tahoma">
                <?php
      $sql1 
"Select  * From subject_category_tb";
      
$result1 mysql_query($sql1) or die("Error".mysql_error());
      
$num1 mysql_num_rows($result1);
      echo 
" ( $num1 ) รายการ";

    
?>
              </font></div></td>
            </tr>
            <tr>
              <td><div align="center"><font size="4" face="Tahoma"><img src="../Image/button.gif" width="10" height="10" /></font></div></td>
              <td><font face="Tahoma"><a href="Sub_groupList.php" class="style12">ข้อมูลกลุ่มวิชา</a></font></td>
              <td><div align="center"><font size="2" face="Tahoma"><font color="#000000">
                <?php
      $sql2 
"Select  * From subject_group_tb";
      
$result2 mysql_query($sql2) or die("Error".mysql_error());
      
$num2mysql_num_rows($result2);
      echo 
" ( $num2 ) รายการ";
    
?>
              </font></font></div></td>
            </tr>
            <tr>
              <td><div align="center">
                  <div align="center"><font size="4" face="Tahoma"><img src="../Image/button.gif" width="10" height="10" /></font></div>
              </div></td>
              <td><font face="Tahoma"><a href="SubjectList.php" class="style12">ข้อมูลรายวิชา</a></font> </td>
              <td><div align="center"><font size="2" face="Tahoma"><font color="#000000">
                <?php
      $sql3 
"Select  * From subject_tb";
      
$result3 mysql_query($sql3) or die("Error".mysql_error());
      
$num3mysql_num_rows($result3);
      echo 
" ( $num3 ) รายการ";
    
?>
              </font></font></div></td>
            </tr>
            <tr>
              <td height="18"><div align="center"><font size="4" face="Tahoma"><img src="../Image/button.gif" width="10" height="10" /></font></div></td>
              <td><font face="Tahoma"><a href="PlanList.php" class="style12">ข้อมูลแผนการสอนรายวิชา</a> </font></td>
              <td><div align="center"><font size="2" face="Tahoma"><font color="#000000">
                <?php
      $sql4 
"Select  * From tech_plan_tb";
      
$result4 mysql_query($sql4) or die("Error".mysql_error());
      
$num4mysql_num_rows($result4);
      echo 
" ( $num4 ) รายการ";
    
?>
              </font></font></div></td>
            </tr>
        </table></td>
      </tr>
      <tr>
        <td><div align="center"><font size="4" face="Tahoma"><img src="../Image/button.gif" width="10" height="10" /></font></div></td>
        <td class="style30"><font color="#003366"><a href="AllTeacherList.php" class="style12">ข้อมูลอาจารย์</a></font> </td>
      </tr>
      <tr>
        <td><div align="center"><font size="4" face="Tahoma"><img src="../Image/button.gif" width="10" height="10" /></font></div></td>
        <td class="style30"><font color="#003366"><a href="StudentList.php" class="style12">ข้อมูลนักศึกษา</a></font></td>
      </tr>
      <tr>
        <td><div align="center"><font size="4" face="Tahoma"><img src="../Image/button.gif" width="10" height="10" /></font></div></td>
        <td class="style30"><font color="#003366"><a href="StudentByYear.php" class="style12">จำนวนนักศึกษาจำแนกตามปีการศึกษา</a></font></td>
      </tr>
      <tr>
        <td><div align="center"><font size="4" face="Tahoma"><img src="../Image/button.gif" width="10" height="10" /></font></div></td>
        <td class="style30"><font color="#003366"><a href="ProjectList.php" class="style12">ข้อมูลโครงการ/กิจกรรมวิชาการ</a></font></td>
      </tr>
      <tr>
        <td height="17"><div align="center"><font size="4" face="Tahoma"><img src="../Image/button.gif" width="10" height="10" /></font></div></td>
        <td class="style30"><font color="#003366"><a href="Projectedu.php?Faculty_code=02" class="style12">ระบบการจัดการข้อมูลโครงการ/กิจกรรมวิชาการ</a></font></td>
      </tr>
      <tr>
        <td height="17"><div align="center"><font size="4" face="Tahoma"><img src="../Image/button.gif" width="10" height="10" /></font></div></td>
        <td class="style30"><font color="#003366"><a href="Rel_menu.php" class="style12">ข้อมูลวิเทศสัมพันธ์</a></font></td>
      </tr>
      <tr>
        <td height="17"><div align="center"><font size="4" face="Tahoma"><img src="../Image/button.gif" width="10" height="10" /></font></div></td>
        <td class="style30"><font color="#003366"><a href="Menu_Research.php?Faculty_code=02" class="style12">ข้อมูลงานวิจัย</a></font></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 ";
}
?>