Viewing file: ResearchDetail.php (16.44 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include("../include/FunctionDB.php");
include("../include/Function.php");
include("admin_menu.php");
ConnectDB();
$sql = "Select * From personal_tb as t,research_tb as r Where t.Teacher_code = r.Teacher_code and r.Research_code='$Research_code'";
$result = mysql_query($sql) or die(" Error").mysql_error();
$rs = mysql_fetch_array($result)
?>
<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<link href="../source/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style2 {font-size: 14px}
-->
</style>
<table width="833" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="843"><br>
<fieldset>
<legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="Edu_Menu.php">˹éÒËÅÑ¡</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" />¢éÍÁÙÅ¡ÒçҹÇÔ¨ÑÂ</font></legend>
<label><div align="center">
<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="89%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#CCCCCC" bgcolor="#eeeeee"style="border:0px solid gray"size="12">
<!--DWLayoutTable-->
<tr bgcolor="#FFFFFF">
<td height="20" colspan="3" nowrap="nowrap" bordercolor="#D8D2A9"><!--DWLayoutEmptyCell--> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="172" height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font color="#000000" size="2" face="Tahoma">ª×èͧҹÇÔ¨ÑÂ</font></div></td>
<td nowrap="nowrap"><!--DWLayoutEmptyCell--> </td>
<td nowrap="nowrap"><font color="#003399" size="2" face="Tahoma"> <? echo $rs[Research_name] ?></font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font color="#000000" size="2" face="Tahoma">»ÃÐàÀ·§Ò¹ÇÔ¨ÑÂ</font></div></td>
<td nowrap="nowrap"><!--DWLayoutEmptyCell--> </td>
<td nowrap="nowrap"><font color="#003399" size="2" face="Tahoma"> <? echo $rs[Research_type] ?></font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font color="#000000" size="2" face="Tahoma">ÅѡɳмŧҹÇÔ¨ÑÂ</font></div></td>
<td nowrap="nowrap"><!--DWLayoutEmptyCell--> </td>
<td nowrap="nowrap"><font color="#003399" size="2" face="Tahoma">
<?php
$code = $rs[Research_char];
$sql9 = "Select * From research_char_tb Where code='$code'";
$result9 = mysql_query($sql9) or die("Error".mysql_error());
$rss9 = mysql_fetch_array($result9);
echo"$rss9[Rchar_name]";
?>
</font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font color="#000000" size="2" face="Tahoma">ÊÒ¢ÒÇÔªÒ</font></div></td>
<td width="2" nowrap="nowrap"><!--DWLayoutEmptyCell--> </td>
<td width="559" nowrap="nowrap"><font color="#003399" size="2" face="Tahoma"> <? echo $rs[Branch] ?> </font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font color="#000000" size="2" face="Tahoma">ª×èͼÙéÇÔ¨ÑÂ</font></div></td>
<td width="2" nowrap="nowrap"><!--DWLayoutEmptyCell--> </td>
<td width="559" nowrap="nowrap"><font color="#003399" size="2" face="Tahoma">
<?php
echo"$rs[First_name]";
?>
<?php
echo"$rs[Teacher_name]";
?>
<?php
echo"$rs[Teacher_lastname]";
?>
</font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font color="#000000" size="2" face="Tahoma">»Õ·ÕèàÃÔèÁ·Ó</font></div></td>
<td nowrap="nowrap"><!--DWLayoutEmptyCell--> </td>
<td nowrap="nowrap"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#FFFFFF">
<td width="30%"><div align="center"><font color="#003366" size="2" face="Tahoma">
<?php
$sday = $rs[Year_start];
$yearthai = explode("-",$sday);
$day = intval($yearthai[2]);
$month = intval($yearthai[1]);
$year = intval($yearthai[0]);
//////////////////
// $yearthai = $day ;
$m = getThaiSubMonth($month);
echo"$day"." "."$m"." "."$year";
?>
</font></div></td>
<td width="30%"><div align="center"><font color="#000000" size="2" face="Tahoma"><strong>»Õ·ÕèáÅéÇàÊÃç¨</strong></font></div></td>
<td width="30%"><div align="center"><font color="#003366" size="2" face="Tahoma">
<?php
$sday = $rs[Year_finish];
$yearthai = explode("-",$sday);
$day = intval($yearthai[2]);
$month = intval($yearthai[1]);
$year = intval($yearthai[0]);
//////////////////
// $yearthai = $day ;
$m = getThaiSubMonth($month);
echo"$day"." "."$m"." "."$year";
?>
</font></div></td>
</tr>
</table></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font color="#000000" size="2" face="Tahoma">µÓá˹觡ÒÃÇÔ¨ÑÂ</font></div></td>
<td width="2" nowrap="nowrap"><!--DWLayoutEmptyCell--> </td>
<td width="559" nowrap="nowrap"><font color="#003399" size="2" face="Tahoma"> <? echo $rs[R_position]?> </font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font color="#000000" size="2" face="Tahoma">¼ÙéÃèÇÁÇÔ¨ÑÂ
1</font></div></td>
<td width="2" nowrap="nowrap"><!--DWLayoutEmptyCell--> </td>
<td width="559" nowrap="nowrap"><font color="#003399" size="2" face="Tahoma">
<?php
$Teacher_code = $rs[name1] ;
$sql1 = "Select * From personal_tb Where Teacher_code='$Teacher_code'";
$result1 = mysql_query($sql1) or die("Error".mysql_error());
$res1 = mysql_fetch_array($result1);
echo "$res1[First_name] $res1[Teacher_name] $res1[Teacher_lastname]";
?>
</font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font color="#000000" size="2" face="Tahoma">¼ÙéÃèÇÁÇÔ¨ÑÂ
2</font></div></td>
<td width="2" nowrap="nowrap"><!--DWLayoutEmptyCell--> </td>
<td width="559" nowrap="nowrap"><font color="#003399" size="2" face="Tahoma">
<?php
$Teacher_code = $rs[name2] ;
$sql1 = "Select * From personal_tb Where Teacher_code='$Teacher_code'";
$result1 = mysql_query($sql1) or die("Error".mysql_error());
$res1 = mysql_fetch_array($result1);
echo "$res1[First_name] $res1[Teacher_name] $res1[Teacher_lastname]";
?>
</font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font color="#000000" size="2" face="Tahoma">¼ÙéÃèÇÁÇÔ¨ÑÂ
3</font></div></td>
<td width="2" nowrap="nowrap"><!--DWLayoutEmptyCell--> </td>
<td width="559" nowrap="nowrap"><font color="#003399" size="2" face="Tahoma">
<?php
$Teacher_code = $rs[name3] ;
$sql1 = "Select * From personal_tb Where Teacher_code='$Teacher_code'";
$result1 = mysql_query($sql1) or die("Error".mysql_error());
$res1 = mysql_fetch_array($result1);
echo "$res1[First_name] $res1[Teacher_name] $res1[Teacher_lastname]";
?>
</font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font color="#000000" size="2" face="Tahoma">¼ÙéÃèÇÁÇÔ¨ÑÂ
4</font></div></td>
<td width="2" nowrap="nowrap"><!--DWLayoutEmptyCell--> </td>
<td width="559" nowrap="nowrap"><font color="#003399" size="2" face="Tahoma">
<?php
$Teacher_code = $rs[name4] ;
$sql1 = "Select * From personal_tb Where Teacher_code='$Teacher_code'";
$result1 = mysql_query($sql1) or die("Error".mysql_error());
$res1 = mysql_fetch_array($result1);
echo "$res1[First_name] $res1[Teacher_name] $res1[Teacher_lastname]";
?>
</font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font color="#000000" size="2" face="Tahoma">¼ÙéÃèÇÁÇÔ¨ÑÂ
5</font></div></td>
<td width="2" nowrap="nowrap"><!--DWLayoutEmptyCell--> </td>
<td width="559" nowrap="nowrap"><font color="#003399" size="2" face="Tahoma">
<?php
$Teacher_code = $rs[name5] ;
$sql1 = "Select * From personal_tb Where Teacher_code='$Teacher_code'";
$result1 = mysql_query($sql1) or die("Error".mysql_error());
$res1 = mysql_fetch_array($result1);
echo "$res1[First_name] $res1[Teacher_name] $res1[Teacher_lastname]";
?>
</font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font color="#000000" size="2" face="Tahoma">¼ÙéÃèÇÁÇÔ¨ÑÂ
6</font></div></td>
<td nowrap="nowrap"><!--DWLayoutEmptyCell--> </td>
<td nowrap="nowrap"><font color="#003399" size="2" face="Tahoma">
<?php
$Teacher_code = $rs[name6] ;
$sql1 = "Select * From personal_tb Where Teacher_code='$Teacher_code'";
$result1 = mysql_query($sql1) or die("Error".mysql_error());
$res1 = mysql_fetch_array($result1);
echo "$res1[First_name] $res1[Teacher_name] $res1[Teacher_lastname]";
?>
</font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font color="#000000" size="2" face="Tahoma">¼ÙéÃèÇÁÇÔ¨ÑÂ
7 </font></div></td>
<td nowrap="nowrap"><!--DWLayoutEmptyCell--> </td>
<td nowrap="nowrap"><font color="#003399" size="2" face="Tahoma">
<?php
$Teacher_code = $rs[name7] ;
$sql1 = "Select * From personal_tb Where Teacher_code='$Teacher_code'";
$result1 = mysql_query($sql1) or die("Error".mysql_error());
$res1 = mysql_fetch_array($result1);
echo "$res1[First_name] $res1[Teacher_name] $res1[Teacher_lastname]";
?>
</font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font color="#000000" size="2" face="Tahoma">¼ÙéÃèÇÁÇÔ¨ÑÂ
8 </font></div></td>
<td nowrap="nowrap"><!--DWLayoutEmptyCell--> </td>
<td nowrap="nowrap"><font color="#003399" size="2" face="Tahoma">
<?php
$Teacher_code = $rs[name8] ;
$sql1 = "Select * From personal_tb Where Teacher_code='$Teacher_code'";
$result1 = mysql_query($sql1) or die("Error".mysql_error());
$res1 = mysql_fetch_array($result1);
echo "$res1[First_name] $res1[Teacher_name] $res1[Teacher_lastname]";
?>
</font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font color="#000000" size="2" face="Tahoma">à§Ô¹·Ø¹</font></div></td>
<td nowrap="nowrap"><!--DWLayoutEmptyCell--> </td>
<td nowrap="nowrap"><font color="#003399" size="2" face="Tahoma"> <? echo $rs[Fund] ?> </font><font color="#000000" size="2" face="Tahoma"> ºÒ·</font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font color="#000000" size="2" face="Tahoma">áËÅè§à§Ô¹·Ø¹</font></div></td>
<td nowrap="nowrap"><!--DWLayoutEmptyCell--> </td>
<td nowrap="nowrap"><font color="#003399" size="2" face="Tahoma"> <? echo $rs[Fund_resource] ?> </font><font color="#000000" size="2" face="Tahoma"> <font color="#003366">¨Ò¡</font> <font color="#003399"> <? echo $rs[Resource_des] ?></font></font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font color="#000000" size="2" face="Tahoma">¡ÒÃà¼Âá¾Ãè</font></div></td>
<td nowrap="nowrap"><!--DWLayoutEmptyCell--> </td>
<td nowrap="nowrap"><font color="#003399" size="2" face="Tahoma"> <? echo $rs[Propagate] ?> <? echo $rs[Propagate_des] ?> </font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font color="#000000" size="2" face="Tahoma">ÅѡɳСÒÃà¼Âá¾Ãè</font></div></td>
<td nowrap="nowrap"><!--DWLayoutEmptyCell--> </td>
<td nowrap="nowrap"><font color="#003399" size="2" face="Tahoma"> <? echo $rs[Prop_type] ?></font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td rowspan="2" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font color="#000000" size="2" face="Tahoma">¡ÒùÓä»ãªé</font></div></td>
<td height="20" nowrap="nowrap"><!--DWLayoutEmptyCell--> </td>
<td nowrap="nowrap"><font color="#003399" size="2" face="Tahoma"> <? echo $rs[Apply1] ?> ,<? echo $rs[Apply2] ?> ,<? echo $rs[Apply3] ?> </font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="20" nowrap="nowrap"><!--DWLayoutEmptyCell--> </td>
<td nowrap="nowrap"><font color="#003399" size="2" face="Tahoma"> <? echo $rs[Apply4] ?> <? echo $rs[Apply_des] ?> </font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font color="#000000" size="2" face="Tahoma">»Õ·Õèà¼Âá¾Ãè</font></div></td>
<td nowrap="nowrap"><!--DWLayoutEmptyCell--> </td>
<td nowrap="nowrap"><font color="#003399" size="2" face="Tahoma"> <? echo $rs[Year_prop] ?></font></td>
</tr>
</table>
<br>
</form>
</div>
</label>
</fieldset><br>
<font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2"><b>ËÁÒÂà赯 :</b> ãªéàÁÒÊì¤ÅÔ¡·Õèª×èÍ</font></td>
</tr>
</table>
|