Viewing file: ProductDetail.php (7.86 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/** Define Validate Access */
define( '_VALID_ACCESS', 1 );
/** 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 = "edu_product_tb";
$myTablePK = "Prod_code";
$query = " SELECT Teacher_code,First_name,Teacher_name,Teacher_lastname,Faculty_code FROM personal_tb 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";
?>
<!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" />
<style type="text/css">
<!--
.style2 {font-size: 14px}
-->
</style>
</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( "templates/incMainMenuLeft.php" );?></td>
<td width="788" align="center" valign="top" style="padding:10px 0px 5px 10px"><?php
$sql = " SELECT * FROM personal_tb as t,edu_product_tb as r WHERE t.Teacher_code = r.Teacher_code AND r.Prod_code='$Prod_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="Menu_Research.php">ข้อมูลงานวิจัย</a> » รายละเอียดผลงานวิชาการ</a></strong></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td align="center" valign="top"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#9999FF">
<tr bgcolor="#D5F0F9">
<td colspan="3" bgcolor="#FFFFFF"><span class="PADDING-TOP-10"><img src="./images/icons/arrow-circle-225-left.png" width="16" height="16" border="0" align="absmiddle" /> <a href="javascript:;" onclick="window.history.back();"><strong>‹ ย้อนกลับ</strong></a></span></td>
</tr>
<tr bgcolor="#D5F0F9">
<td colspan="3" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#D5F0F9">
<td colspan="3" bgcolor="#FFFFFF"><div align="center" class="style2"><font color="#003366" face="Tahoma">แสดงผลงานวิชาการ
และ เผยแพร่ </font></div></td>
</tr>
<tr bgcolor="#EEEEEE">
<td bgcolor="#FFFFFF"> </td>
<td bordercolor="#FEEDF9" bgcolor="#FFFFFF"> </td>
<td bordercolor="#F2DEFE" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#EEEEEE">
<td bgcolor="#FFFFFF"><div align="left"><font color="#000033" size="2" face="Tahoma">ชื่อ-นามสกุล</font></div></td>
<td bordercolor="#FEEDF9" bgcolor="#FFFFFF"> </td>
<td bordercolor="#F2DEFE" bgcolor="#FFFFFF"><font color="#003366" size="2" face="Tahoma"><strong><? echo $rs[First_name] ;?> <? echo $rs[Teacher_name] ;?> <? echo $rs[Teacher_lastname] ;?> </strong></font></td>
</tr>
<tr bgcolor="#EEEEEE">
<td width="16%" bgcolor="#FFFFFF"><div align="left"><font color="#000033" size="2" face="Tahoma">ชื่อผลงาน</font></div></td>
<td width="1%" bordercolor="#FEEDF9" bgcolor="#FFFFFF"> </td>
<td width="83%" bordercolor="#F2DEFE" bgcolor="#FFFFFF"><font color="#0033CC" size="2" face="Tahoma"><? echo $rs[Product_name]?></font></td>
</tr>
<tr bgcolor="#EEEEEE">
<td height="22" bgcolor="#FFFFFF"><div align="left"><font color="#000033" size="2" face="Tahoma">ประเภทผลงาน</font></div></td>
<td bordercolor="#FEEDF9" bgcolor="#FFFFFF"> </td>
<td bordercolor="#F2DEFE" bgcolor="#FFFFFF"><font color="#0033CC" size="2" face="Tahoma"> <? echo $rs[Product_type]?></font></td>
</tr>
<tr bgcolor="#EEEEEE">
<td bgcolor="#FFFFFF"><div align="left"><font color="#000033" size="2" face="Tahoma">วัน/เดือน/ปี
เริ่มผลิต</font></div></td>
<td bordercolor="#FEEDF9" bgcolor="#FFFFFF"><font size="2" face="Tahoma"> </font></td>
<td bordercolor="#F2DEFE" bgcolor="#FFFFFF"><font color="#003399" size="2" face="Tahoma"> <? echo $rs[Date_start]?> <font color="#000033">วัน/เดือน/ปี แล้วเสร็จ</font> <? echo $rs[Date_finish]?></font></td>
</tr>
<tr bgcolor="#EEEEEE">
<td height="22" bgcolor="#FFFFFF"><div align="left"><font color="#000033" size="2" face="Tahoma">การเผยแพร่</font></div></td>
<td bordercolor="#FEEDF9" bgcolor="#FFFFFF"> </td>
<td bordercolor="#F2DEFE" bgcolor="#FFFFFF"><font color="#003399" size="2" face="Tahoma"><? echo $rs[Propagate]?></font></td>
</tr>
<tr bgcolor="#EEEEEE">
<td height="22" bgcolor="#FFFFFF"><div align="left"><font color="#000033" size="2" face="Tahoma">แหล่งงบประมาณ </font> </div></td>
<td bordercolor="#FEEDF9" bgcolor="#FFFFFF"> </td>
<td bordercolor="#F2DEFE" bgcolor="#FFFFFF"><font color="#003399" size="2" face="Tahoma"><? echo $rs[Fund_resource]?> <font color="#000033">งบประมาณ</font> <? echo $rs[Fund]?> </font></td>
</tr>
<tr bgcolor="#EEEEEE">
<td height="20" bgcolor="#FFFFFF"><div align="left"><font color="#000033" size="2" face="Tahoma">ประโยชน์ของผลงาน</font></div></td>
<td bordercolor="#FEEDF9" bgcolor="#FFFFFF"> </td>
<td bordercolor="#F2DEFE" bgcolor="#FFFFFF"><font color="#003399" size="2" face="Tahoma"><? echo $rs[Benefit]?></font> </td>
</tr>
<tr bgcolor="#EEEEEE">
<td bgcolor="#FFFFFF"><div align="left"><font color="#000033" size="2" face="Tahoma">การนำไปใช้อ้างอิง่</font></div></td>
<td bordercolor="#FEEDF9" bgcolor="#FFFFFF"> </td>
<td bordercolor="#F2DEFE" bgcolor="#FFFFFF"><font color="#003399" size="2" face="Tahoma"><? echo $rs[Use_ref]?> </font></td>
</tr>
<tr bgcolor="#D5F0F9">
<td colspan="3" bgcolor="#FFFFFF"><div align="center">
<input type="button" name="Submit2" value="พิมพ์" class="button" />
</div></td>
</tr>
</table></td>
</tr>
<tr>
<td><div align="center"></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);
?>
|