<?php
session_start
();
 if (
session_is_registered("valid_user")&&session_is_registered("password"))
 {
 
$Username $valid_user;
include(
"../include/FunctionDB.php");
include(
"admin_menu.php");
include(
"../include/Function.php");
ConnectDB();
$Username $valid_user;
$sql "SELECT * FROM personal_tb WHERE Username='$Username'";
$result mysql_query($sql) ;
$rs mysql_fetch_array($result);
$row mysql_num_rows($result);
$strSQL "SELECT * FROM faculty_tb";
$result mysql_query($strSQL); 
$total mysql_num_rows$result );
?> 

<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<link href="../source/style.css" rel="stylesheet" type="text/css">
<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="Edu_Menu.php">หน้าหลัก</a></font><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><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><font size="2" face="Tahoma"><img src="../picture/previous.gif" onclick="window.history.back()"  width="85" height="22" border="0" /></font></p>
    <table width="58%" border="0" align="center" cellpadding="0" cellspacing="3">
      
      
      <tr>
        <td width="5%"><div align="center"><font size="4" face="Tahoma"><strong><img src="../picture/ico1.gif" width="22" height="22" align="absmiddle" /></strong></font></div></td>
        <td colspan="2"><font color="#000000" size="2" face="Tahoma"> ข้อมูลงานวิจัย</font></td>
        </tr>
      <tr>
        <td>&nbsp;</td>
        <td width="3%"><div align="center"><font size="4" face="Tahoma"><strong><img src="../picture/ico10.gif" width="16" height="17" align="absmiddle" /></strong></font></div></td>
        <td width="92%"><font color="#000000" size="2" face="Tahoma"><a href="PersonalResearch.php" class="d"><font size="2">งานวิจัยจำแนกตามรายบุคคล</font></a></font></strong></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><div align="center"><font size="4" face="Tahoma"><strong><img src="../picture/ico10.gif" width="16" height="17" align="absmiddle" /></strong></font></div></td>
        <td><font color="#000000" size="2" face="Tahoma"><a href="ResearchByType.php" class="d"><font size="2">งานวิจัยแยกตามลักษณะงานวิจัย</font></a></font></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><div align="center"><font size="4" face="Tahoma"><strong><img src="../picture/ico10.gif" width="16" height="17" align="absmiddle" /></strong></font></div></td>
        <td><font color="#000000" size="2" face="Tahoma"><a href="AllResearch.php" class="d"><font size="2">งานวิจัยที่เผยแพร่จำแนกตามรายบุคคล</font></a></font></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><div align="center"><font size="4" face="Tahoma"><strong><img src="../picture/ico10.gif" width="16" height="17" align="absmiddle" /></strong></font></div></td>
        <td><font color="#000000" size="2" face="Tahoma"><a href="SearchRes.php" class="d"><font size="2">ค้นหางานวิจัย</font></a></font></td>
      </tr>
      <tr>
        <td><div align="center"><font size="4" face="Tahoma"><strong><img src="../picture/ico1.gif" width="22" height="22" align="absmiddle" /></strong></font></div></td>
        <td colspan="2"><font color="#000000" size="2" face="Tahoma"><a href="TeacherProductList.php" class="d"> ผลงานทางวิชาการจำแนกตามรายบุคคล </a></font></td>
        </tr>
      <tr>
        <td><div align="center"><font size="4" face="Tahoma"><strong><img src="../picture/ico1.gif" width="22" height="22" align="absmiddle" /></strong></font></div></td>
        <td colspan="2"><font color="#000000" size="2" face="Tahoma"><a href="YearList.php" class="d"> สรุปผลงานวิจัยย้อนหลังจำแนกตามปีการศึกษา</a></font></td>
        </tr>
      <tr>
        <td><div align="center"><font size="4" face="Tahoma"><strong><img src="../picture/ico1.gif" width="22" height="22" align="absmiddle" /></strong></font></div></td>
        <td colspan="2"><font color="#000000" size="2" face="Tahoma"><a href="MagList.php" class="d">วารสารจำแนกตามรายบุคคล</a></font></td>
        </tr>
      <tr>
        <td><div align="center"><font size="4" face="Tahoma"><strong><img src="../picture/ico1.gif" width="22" height="22" align="absmiddle" /></strong></font></div></td>
        <td colspan="2"><font color="#000000" size="2" face="Tahoma"> <a href="Rel_menu.php" class="d">ฐานข้อมูลวิเทศน์สัมพันธ์ </a></font></td>
        </tr>
      <tr>
        <td>&nbsp;</td>
        <td><div align="center"></div></td>
        <td><font color="#000000" size="2" face="Tahoma"> <a href="../logout.php" class="c"></a></font></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td><font size="4" face="Tahoma"><strong><a href="Magazine/MagList.php" class="d"> </a></strong></font><font size="2" face="Tahoma"><strong></strong></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 ";
}
?>