Viewing file: ProductDetail.php (8.25 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 = "edu_product_tb";
$myTablePK = "Prod_code";
$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" />
<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("./_incMainMenu.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="ResearchList.php?Teacher_code=<?=$Teacher_code;?>">ข้อมูลผลงานวิชาการ</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"><font size="2" face="Tahoma"><img src="../picture/previous.gif" onclick="window.history.back()" width="85" height="22" border="0" /></font></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 $rss[First_name] ;?> <? echo $rss[Teacher_name] ;?> <? echo $rss[Teacher_lastname] ;?> </strong></font></td>
</tr>
<tr bgcolor="#EEEEEE">
<td width="25%" bgcolor="#FFFFFF"><div align="left"><font color="#000033" size="2" face="Tahoma">ชื่อผลงาน</font></div></td>
<td width="4%" bordercolor="#FEEDF9" bgcolor="#FFFFFF"> </td>
<td width="71%" 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);
?>
|