Viewing file: ResearchDetail_year.php (20.92 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 */
require_once( "../configuration.php" );
require_once( $_Config_absolute_path . "/includes/framework.php" );
require_once( "../include/Function.php" );
/** Create Database Object */
$dbObj = new DBConn;
//=== SESSION
$Username = $valid_user;
/** Config Table for This Page */
$myTable1 = "personal_tb";
$myTable2 = "tech_plan_tb";
$myTable2PK = "Plan_code";
/** Table --> personal_tb */
$query1 = " SELECT * FROM $myTable1 WHERE Username='$Username' ";
$result1 = $dbObj->execQuery($query1);
$rs1 = $dbObj->fetchObject($result1);
$Teacher_code = $rs1->Teacher_code;
/** Paging */
$page = $_GET['page'];
if( $page == "" ) { $page = 1; }
/** จำนวนข้อมูล ต่อ 1 หน้า */
$perpage = $_REQUEST['perpage'];
if( $perpage == "" ) { $perpage = 10; }
/** โฟลเดอร์ไฟล์เอกสาร */
$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" />
<link href="../css/default.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="../js/utilities.js"></script>
<title>ข้อมูลทั่วไปบุคลากร - ข้อมูลงานวิจัย - ผลงานการวิจัย - รายละเอียดงานวิจัย</title>
</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="203" align="left" valign="top" style="padding:10px 0px 0px 5px"><?php include("./_incMainMenu.php");?></td>
<td width="800" height="440" 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 = mysql_query($sql);
$rs = mysql_fetch_array($result);
?>
<fieldset>
<table width="780" border="0" cellspacing="0" cellpadding="0">
<form id="myForm" name="myForm" method="post" action="<?=$PHP_SELF;?>?page=<?=$page;?>">
<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></strong><strong> » <span class="style2"><a href="ResearchByYear.php">ข้อมูลงานวิจัยจำแนกตามปีการศึกษา </a></span>» </strong></span></strong><span class="NOTE">รายละเอียดงานวิจัย </span></strong></td>
</tr>
<tr>
<td><table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
</table></td>
</tr>
<tr>
<td align="center"><table width="760" border="0" align="center" cellpadding="2" cellspacing="2" style="border:1px solid #EEEEEE">
<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" class="PADDING-TOP-10"><font color="#003366" face="Tahoma">ชื่องานวิจัย</font></td>
<td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10 PADDING-TOP-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 "$rs[First_name]";
?>
<?php
echo "$rs[Teacher_name]";
?>
<?php
echo "$rs[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 First_name,Teacher_name,Teacher_lastname From personal_tb 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" face="Tahoma"><? echo $rs['Fund_resourceIn']; ?></font> จำนวนเงิน <font color="#000000" face="Tahoma"> <? echo number_format($rs['FundIn']); ?> บาท</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" 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"><font color="#003366" face="Tahoma">จำนวเงินทุนทั้งหมด</font></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"><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_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>
<?php if( $rs['Filetex'] != "" || $rs['Filetex'] != NULL ) { ?>
<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"><?php if( $rs['Filetex'] != "" ) { ?>
<a href="<?=$doc_path;?>/<?=$rs['Filetex'];?>" target="_blank"><img src="../images/icons/download.png" alt=" ดาวน์โหลดไฟล์ <?=$rs['Filetex'];?> " width="16" height="16" border="0" /></a>
<?php } else { ?>
<img src="../images/icons/download_off.png" width="16" height="16" />
<?php } ?></td>
</tr>
<?php } # if( $rs['Filetex'] != "" ) { ?>
<tr bgcolor="#FFEFDF">
<td height="10" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"></td>
<td height="10" nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="10"></td>
</tr>
</table>
<input type="button" name="button" id="button" value="ย้อนกลับ" class="CURSOR-HAND" onclick="window.history.back();" /></td>
</tr>
<tr>
<td> </td>
</tr></form>
</table>
</fieldset></td>
</tr>
</table>
<?php include("../templates/incFooter.php"); ?>
</body>
</html>
<?php
/** Free Resource */
$dbObj->freeresult($result);
$dbObj->freeresult($result1);
/** Close the Database */
$dbObj->disconn();
/** Unset Class */
unset($dbObj);
?>
|