Viewing file: ResearchDetail.php (19.23 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
session_start();
/** Define Validate Access */
define( '_VALID_ACCESS', 1 );
/** Check Session User Login */
if( !session_is_registered("valid_user") && !session_is_registered("Priority") ) {
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-874\" />";
echo "<p style=padding-top:115px><p align=center><br /><font color=red><strong>กรุณาทำการ Login ก่อน</strong></font></p></p>";
echo "<meta http-equiv=\"refresh\" content=\"1; URL=../login.php\" />";
exit();
}
else {
/** Configuration */
include( "../configuration.php" );
require_once( $_Config_absolute_path . "/includes/framework.php" );
require_once( $_Config_absolute_path . "../include/Function.php" );
/** Create Database Object */
$dbObj = new DBConn;
/** Config Table for This Page */
$myTable = "research_tb";
$myTablePK = "Year_finish";
$query = " SELECT *, prefixName as First_name FROM personal_tb LEFT JOIN prefix ON personal_tb.First_name = prefix.prefixId WHERE Teacher_code='$Teacher_code' ";
$result0 = $dbObj->execQuery($query);
$rss = $dbObj->fetchArray($result0);
/** Paging */
$page = $_GET['page'];
if( $page == "" ) { $page = 1; }
/** จำนวนข้อมูล ต่อ 1 หน้า */
$perpage = $_REQUEST['perpage'];
if( $perpage == "" ) { $perpage = 10; }
//** Where Condition */
$WHERE1 = "Teacher_code=$Teacher_code";
//** Parameter */
$param = "Teacher_code=$Teacher_code";
/** โฟลเดอร์ไฟล์เอกสาร */
$doc_path = $_Config_live_site."/Research_pic";
} # else
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874" />
<title><?=$_Config_sitename;?> - ข้อมูลงานวิจัย - ข้อมูลงานวิจัยตามรายบุคคล</title>
<script type="text/javascript" src="../js/utilities.js"></script>
<link href="../css/default.css" rel="stylesheet" type="text/css" />
</head>
<body topmargin="0" rightmargin="0" bottommargin="0" leftmargin="0">
<?php
include( "../templates/incHeader.php" );
?>
<table width="1003" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="215" align="left" valign="top" style="padding:10px 0px 0px 5px"><?php include("./_incMainMenu.php");?></td>
<td width="788" align="center" valign="top" style="padding:10px 0px 5px 10px"><?php
$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 = $dbObj->execQuery($sql);
$rs = $dbObj->fetchArray($result);
?>
<fieldset><table width="770" border="0" cellspacing="0" cellpadding="0">
<form id="myForm" name="myForm" method="post" action="<?=$PHP_SELF;?>?page=<?=$page;?>&<?=$param;?>">
<tr>
<td height="5"></td>
</tr>
<tr>
<td height="30" background="../images/background/bg-head-topic-w780.gif" class="PADDING-LEFT-10"><strong><a href="index.php">หน้าหลัก</a> » <a href="ResearchList.php?Teacher_code=<?=$Teacher_code;?>">ข้อมูลผลงานการวิจัยเพื่อพัฒนากระบวนการเรียนรู้</a></strong></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td align="center" valign="top"><table width="760" border="0" align="center" cellpadding="2" cellspacing="2" style="border:1px solid #EEEEEE">
<!--DWLayoutTable-->
<tr bgcolor="#FFCC99">
<td height="25" colspan="2" bgcolor="#F8F8F8" align="center" class="PATRON11">แสดงรายละเอียดงานวิจัย</td>
</tr>
<tr bgcolor="#FFEFDF">
<td width="186" height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><span class="style16"><font color="#003366" face="Tahoma">ชื่องานวิจัย</font></span></td>
<td bgcolor="#FFFFFF" class="PADDING-LEFT-10"><strong><font color="#000000" size="2" face="Tahoma"><span class="PADDING-LEFT-5 PADDING-RIGHT-3"><?php echo htmlspecialchars_decode( nl2br( $rs['Research_name'] ) ); ?></span></font></strong></td>
</tr>
<tr bgcolor="#FFEFDF">
<td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font color="#003366" face="Tahoma">ประเภทงานวิจัย</font></td>
<td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma"><? echo $rs['Research_type']; ?></font></td>
</tr>
<tr bgcolor="#FFEFDF">
<td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font color="#003366" face="Tahoma">ลักษณะผลงานวิจัย</font></td>
<td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma"><? echo $rs['Research_char']; ?> <? echo $rs['Research_char_else']; ?></font></td>
</tr>
<tr bgcolor="#FFEFDF">
<td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font color="#003366" face="Tahoma">สาขาวิชา</font></td>
<td width="563" nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma"> <? echo $rs['Branch']; ?> </font></td>
</tr>
<tr bgcolor="#FFEFDF">
<td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font color="#003366" face="Tahoma">ชื่อผู้วิจัย</font></td>
<td width="563" nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma"> <strong>
<?php
echo"$rss[First_name]";
?>
<?php
echo"$rss[Teacher_name]";
?>
<?php
echo"$rss[Teacher_lastname]";
?>
</strong></font></td>
</tr>
<tr bgcolor="#FFEFDF">
<td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><span class="style16"><font color="#003366" face="Tahoma">ปีที่เริ่มทำ</font></span></td>
<td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><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]);
$m = getThaiSubMonth($month);
echo"$day"." "."$m"." "."$year";
?>
</font></td>
</tr>
<tr bgcolor="#FFEFDF">
<td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font color="#003366" face="Tahoma">ปีที่แล้วเสร็จ</font></td>
<td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><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]);
$m = getThaiSubMonth($month);
echo"$day"." "."$m"." "."$year";
?>
</font></td>
</tr>
<tr bgcolor="#FFEFDF">
<td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font color="#003366" face="Tahoma">ตำแหน่งการวิจัย</font></td>
<td width="563" nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma"> <? echo $rs[R_position]?></font></td>
</tr>
<tr bgcolor="#FFEFDF">
<td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><span class="style16"><font color="#003366" face="Tahoma">ผู้ร่วมวิจัย
1</font></span></td>
<td width="563" nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma">
<?php
$name1 = $rs['name1'] ;
$sql11 = " Select *, prefixName as First_name FROM personal_tb LEFT JOIN prefix ON personal_tb.First_name = prefix.prefixId Where Teacher_code='$name1' ";
$result11 = mysql_query($sql11);
$rs11 = mysql_fetch_array($result11);
echo"$rs11[First_name] $rs11[Teacher_name] $rs11[Teacher_lastname]";
?>
</font></td>
</tr>
<?php
$name2 = $rs['name2'];
if( $name2 != 0 ) {
?>
<tr bgcolor="#FFEFDF">
<td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><span class="style16"><font color="#003366" face="Tahoma">ผู้ร่วมวิจัย 2</font></span></td>
<td width="563" nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma">
<?php
//$name2 = $rs['name2'];
$sql11 = " Select First_name,Teacher_name,Teacher_lastname From personal_tb Where Teacher_code='$name2' ";
$result11 = mysql_query($sql11);
$rs11 = mysql_fetch_array($result11);
echo "$rs11[First_name] $rs11[Teacher_name] $rs11[Teacher_lastname]";
?>
</font></td>
</tr>
<?php } #if ?>
<?php
$name3 = $rs['name3'];
if( $name3 != 0 ) {
?>
<tr bgcolor="#FFEFDF">
<td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><span class="style16"><font color="#003366" face="Tahoma">ผู้ร่วมวิจัย 3</font></span></td>
<td width="563" nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma">
<?php
//$name3 = $rs['name3'] ;
$sql11 = " Select First_name,Teacher_name,Teacher_lastname From personal_tb Where Teacher_code='$name3' ";
$result11 = mysql_query($sql11);
$rs11 = mysql_fetch_array($result11);
echo"$rs11[First_name] $rs11[Teacher_name] $rs11[Teacher_lastname]";
?>
</font></td>
</tr>
<?php } #if ?>
<?php
$name4 = $rs['name4'];
if( $name4 != 0 ) {
?>
<tr bgcolor="#FFEFDF">
<td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><span class="style16"><font color="#003366" face="Tahoma">ผู้ร่วมวิจัย 4</font></span></td>
<td width="563" nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma">
<?php
//$name4 = $rs['name4'] ;
$sql11 = " Select First_name,Teacher_name,Teacher_lastname From personal_tb Where Teacher_code='$name4' ";
$result11 = mysql_query($sql11);
$rs11 = mysql_fetch_array($result11);
echo"$rs11[First_name] $rs11[Teacher_name] $rs11[Teacher_lastname]";
?>
</font></td>
</tr>
<?php } #if ?>
<?php
$name5 = $rs['name5'];
if( $name5 != 0 ) {
?>
<tr bgcolor="#FFEFDF">
<td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><span class="style16"><font color="#003366" face="Tahoma">ผู้ร่วมวิจัย
5</font></span></td>
<td width="563" nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma">
<?php
//$name5 = $rs['name5'] ;
$sql11 = "Select First_name,Teacher_name,Teacher_lastname From personal_tb Where Teacher_code='$name5' ";
$result11 = mysql_query($sql11);
$rs11 = mysql_fetch_array($result11);
echo"$rs11[First_name] $rs11[Teacher_name] $rs11[Teacher_lastname]";
?>
</font></td>
</tr>
<?php } #if ?>
<?php
$name6 = $rs['name6'];
if( $name6 != 0 ) {
?>
<tr bgcolor="#FFEFDF">
<td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><span class="style16"><font color="#003366" face="Tahoma">ผู้ร่วมวิจัย 6</font></span></td>
<td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma">
<?php
//$name6 = $rs['name6'] ;
$sql11 = " Select First_name,Teacher_name,Teacher_lastname From personal_tb Where Teacher_code='$name6' ";
$result11 = mysql_query($sql11);
$rs11 = mysql_fetch_array($result11);
echo"$rs11[First_name] $rs11[Teacher_name] $rs11[Teacher_lastname]";
?>
</font></td>
</tr>
<?php } #if ?>
<?php
$name7 = $rs['name7'];
if( $name7 != 0 ) {
?>
<tr bgcolor="#FFEFDF">
<td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><span class="style16"><font color="#003366" face="Tahoma">ผู้ร่วมวิจัย
7</font></span></td>
<td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma">
<?php
//$name7 = $rs['name7'] ;
$sql11 = " Select First_name,Teacher_name,Teacher_lastname From personal_tb Where Teacher_code='$name7' ";
$result11 = mysql_query($sql11);
$rs11 = mysql_fetch_array($result11);
echo"$rs11[First_name] $rs11[Teacher_name] $rs11[Teacher_lastname]";
?>
</font></td>
</tr>
<?php } #if ?>
<?php
$name8 = $rs['name8'];
if( $name8 != 0 ) {
?>
<tr bgcolor="#FFEFDF">
<td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><span class="style16"><font color="#003366" face="Tahoma">ผู้ร่วมวิจัย 8</font></span></td>
<td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma">
<?php
//$name8 = $rs['name8'] ;
$sql11 = " Select First_name,Teacher_name,Teacher_lastname From personal_tb Where Teacher_code='$name8' ";
$result11 = mysql_query($sql11);
$rs11 = mysql_fetch_array($result11);
echo"$rs11[First_name] $rs11[Teacher_name] $rs11[Teacher_lastname]";
?>
</font></td>
</tr>
<?php } #if ?>
<tr bgcolor="#FFEFDF">
<td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font color="#003366" face="Tahoma">บทคัดย่อ</font></td>
<td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma"><span class="PADDING-LEFT-5 PADDING-RIGHT-3"><?php echo htmlspecialchars_decode( nl2br( $rs['abbStract'] ) ); ?></span></font></td>
</tr>
<tr bgcolor="#FFEFDF">
<td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font color="#003366" face="Tahoma">แหล่งเงินทุน</font></td>
<td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma"><? echo $rs['Fund_resourceIn']; ?></font><font color="#003366"> จำนวนเงิน </font><font color="#000000" size="2" face="Tahoma"> <? echo number_format($rs['FundIn']); ?> บาท </font></td>
</tr>
<tr bgcolor="#FFEFDF">
<td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><!--DWLayoutEmptyCell--> </td>
<td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma"><? echo $rs['Fund_resourceOut']; ?> จำนวนเงิน <? echo number_format($rs['FundOut']); ?> บาท จากหน่วยงาน <? echo $rs['Resource_des']; ?></font></td>
</tr>
<tr bgcolor="#FFEFDF">
<td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF">จำนวเงินทุนทั้งหมด</td>
<td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma"><? echo number_format($rs['FundUse']); ?></font> บาท </td>
</tr>
<tr bgcolor="#FFEFDF">
<td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font color="#003366" face="Tahoma">การเผยแพร่</font></td>
<td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma"><? echo $rs['Propagate']; ?></font></td>
</tr>
<tr bgcolor="#FFEFDF">
<td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font color="#003366" face="Tahoma">ลักษณะการเผยแพร่</font></td>
<td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma"><? echo $rs['Prop_type']; ?></font></td>
</tr>
<tr bgcolor="#FFEFDF">
<td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font color="#003366" face="Tahoma">การนำไปใช้</font></td>
<td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma"><? echo $rs['Apply1']; ?> , <? echo $rs['Apply2']; ?> , <? echo $rs['Apply3']; ?></font></td>
</tr>
<tr bgcolor="#FFEFDF">
<td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"> </td>
<td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma"><? echo $rs['Apply4']; ?> <? echo $rs['Apply_des']; ?></font></td>
</tr>
<tr bgcolor="#FFEFDF">
<td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF">ลักษณะการจดสิทธิบัตร</td>
<td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma"><? echo $rs['Research_st']; ?></font></td>
</tr>
<tr bgcolor="#FFEFDF">
<td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font color="#003366" face="Tahoma">ปีที่เผยแพร่</font></td>
<td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma"><? echo $rs['Year_prop']; ?></font></td>
</tr>
<tr bgcolor="#FFEFDF">
<td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font color="#003366" face="Tahoma">ดาว์โหลดไฟล์เอกสาร</font></td>
<td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><span class="BORDER-TOP BORDER-LEFT-RIGHT">
<?php if( $rs['Filetex'] != "" ) { ?><a href="<?=$doc_path;?>/<?=$rs['Filetex'];?>" target="_blank"><img src="../images/icons/download.png" alt=" ดาวน์โหลดไฟล์ <?=$rs['Filetex'];?>" border="0" /></a> <?php } else { ?> <img src="../images/icons/download_off.png" /><?php } ?>
</span></td>
</tr>
</table></td>
</tr>
<tr>
<td><div align="center">
<input type="button" name="button" id="button" value="ย้อนกลับ" class="CURSOR-HAND" onclick="window.history.back();" />
</div></td>
</tr></form>
</table>
</fieldset></td>
</tr>
</table>
<?php include( "../templates/incFooter.php" ); ?>
</body>
</html>
<?php
/** Free Resource */
$dbObj->freeresult($result);
/** Close the Database */
$dbObj->disconn();
/** Unset Class */
unset($dbObj);
?>
|