Viewing file: ResearchDetail.php (30.28 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( "../includes/Function.php" );
/** Create Database Object */
$dbObj = new DBConn;
//=== SESSION
$Username = $valid_user;
/** Config Table for This Page */
$myTable1 = "personal_tb";
$myTable2 = "research_tb";
$myTable3 =" researchtype_tb";
$myTable4 ="researchpublic_tb";
$myTable5 = "research_char_tb";
$myTable6 ="research_file_tb";
$myTable7="research_public_tb";
$myTable8 ="research_success_tb";
$myTable9 ="researchtracking_tb";
$myTable2PK = "Research_code";
/** Table --> personal_tb */
$sql = " SELECT * FROM $myTable2 WHERE Research_code ='$Research_code' ";
$result1 = mysql_query($sql) or die("Error".mysql_error());
$rss1= mysql_fetch_array($result1);
$sql = " SELECT * FROM $myTable6 WHERE Research_code ='$Research_code' ";
$result2 = mysql_query($sql) or die("Error".mysql_error());
$rss2= mysql_fetch_array($result2);
$sql = " SELECT * FROM $myTable7 WHERE Research_code ='$Research_code' ";
$result3 = mysql_query($sql) or die("Error".mysql_error());
$rss3= mysql_fetch_array($result3);
$strSQL = "SELECT count_rv FROM research_tb WHERE Research_code = '".$_GET["Research_code"]."' ";
$objQuery = mysql_query($strSQL);
$result = mysql_fetch_array($objQuery);
$count = $result[0] +1;
$strSQL = "UPDATE research_tb SET count_rv= '$count' WHERE Research_code = '".$_GET["Research_code"]."' ";
$objQuery = mysql_query($strSQL);
/** โฟลเดอร์ไฟล์เอกสาร */
$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>
<style type="text/css">
<!--
.style22 {font-size: 14px; font-weight: bold; }
-->
</style>
</head>
<script language="javascript">
function checkData() {
var formObj = document.form1;
if( (formObj.Research_name.value == "" ) && (formObj.mYear.value == "" ) && (formObj.mYear2.value == "" ) && (formObj.mYear3.value == "" ) && (formObj.Fund.value == "" ) ) { alert("กรุณากรอกข้อมูลให้ครบด้วยค่ะ" ); formObj.Research_name.style.backgroundColor='#F1F9FC'; formObj.Research_name.focus(); return false; }
else if(formObj.Research_name.value == "" ) { alert("กรุณากรอก ชื่อผลงานวิจัย"); formObj.Research_name.style.backgroundColor='#F1F9FC'; formObj.Research_name.focus(); return false;}
else if(formObj.mYear.value == "" ) { alert("กรุณากรอก ปีที่เริ่ม"); formObj.mYear.style.backgroundColor='#F1F9FC'; formObj.mYear.focus(); return false;}
else if(formObj.mYear2.value == "" ) { alert("กรุณากรอก ปีที่แล้วเสร็จ"); formObj.mYear2.style.backgroundColor='#F1F9FC'; formObj.mYear2.focus(); return false;}
//else if(formObj.Fund.value == "" ) { alert("กรุณากรอก จำนวนเงินทุน"); formObj.Fund.style.backgroundColor='#F1F9FC'; formObj.Fund.focus(); return false;}
//else if(formObj.mYear3.value == "" ) { alert("กรุณากรอก ปีที่เผยแพร่"); formObj.mYear3.style.backgroundColor='#F1F9FC'; formObj.mYear3.focus(); return false;}
else return true;
}
</script>
<script language="JavaScript" type="text/JavaScript">
function browse()
{
form1.Filetex.src = form1.Filetex.value;
}
</script>
<body topmargin="0" rightmargin="0" bottommargin="0" leftmargin="0">
<?php
include("../templates/incHeader.php");
?>
<table width="1004" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="206" align="left" valign="top" style="padding:10px 0px 0px 5px"><?php include("./_incMainMenu.php");?></td>
<td width="798" height="440" align="center" valign="top" style="padding:10px 0px 5px 10px"><fieldset>
<table width="772" border="0" cellspacing="0" cellpadding="0">
<form action="#" method="post" enctype="multipart/form-data" name="form1" id="form1" onsubmit="return checkData();">
<tr>
<td width="772" 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>» <a href="AddResearchType.php?Research_code=<?=$Research_code;?>&Year_prop=<?=$Year_prop;?>">บันทึกผู้ทำผลงาน</a> » <a href="AddResearchDetail.php?Research_code=<?=$Research_code;?>&Year_prop=<?=$Year_prop;?>">บันทึกการเผยแพร่ผลงาน</a> » <a href="FrmResearch.php?Research_code=<?=$Research_code;?>">แก้ไขผลงาน</a> » <span class="NOTE">ข้อมูลโครงการผลงาน</span></strong></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td align="left"><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>
<td> </td>
</tr>
<tr>
<td align="center"><table width="766" border="0" cellpadding="1" cellspacing="1" bgcolor="#E5E5E5" class="BORDER-GREY-LIGHT">
<tr bordercolor="#CCCCCC" bgcolor="#ECF5FF">
<td height="100%" colspan="3" align="left" nowrap="nowrap" bordercolor="#CCCCCC" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">หน่วยงาน :
<?php
$sql = "Select * From college Where collegeStatus ='1' ";
$result2 = mysql_query($sql) or die("Error".mysql_error());
$rss4 = mysql_fetch_array($result2);
echo $rss4["collegeName"];
?></td>
</tr>
<tr>
<td colspan="3" align="left" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"> ประเภทผลงาน :<span class="TEXT-RED10">
<?php
$sql = "Select * From $myTable3 Where ReTyId='$rss3[ReTyId]' ";
$result1 = mysql_query($sql) or die("Error".mysql_error());
$rs1 = mysql_fetch_array($result1);
echo "$rs1[ReTyname] ";
?>
</span></span></td>
</tr>
<tr>
<td colspan="3" align="left" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">ชื่อผลงาน: </a><a><?php echo htmlspecialchars_decode( nl2br( $rss1['Research_name'] ) ); ?></a></td>
</tr>
<tr>
<td height="22" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"> </td>
<td colspan="2" bgcolor="#FFFFFF"><input name="Research_type" type="radio" <?php if (!(strcmp("$rss1[Research_type]","1"))) {echo "checked";} ?> value="1" />
เป็นผลงานที่อยู่ในแผนส่งเสริมการนำเสนอผลงานวิชาการของวิทยาลัย </td>
</tr>
<tr>
<td height="22" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"> </td>
<td colspan="2" bgcolor="#FFFFFF"><input name="Research_type" type="radio" <?php if (!(strcmp("$rss1[Research_type]","2"))) {echo "checked";} ?> value="2" />
ได้รับการสนับสนุนงบประมาณจากวิทยาลัยและ/หรือหน่วยงานอื่นๆ ในการไปนำเสนอผลงานวิชาการ</td>
</tr>
<tr>
<td height="22" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">ชื่อผู้ทำผลงาน</td>
<td bgcolor="#FFFFFF"> </td>
<td align="left" bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td width="15%" height="22" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"> </td>
<td width="1%" bgcolor="#FFFFFF"> </td>
<td width="84%" align="left" bgcolor="#FFFFFF"><table width="81%" border="0" align="left" cellpadding="1" cellspacing="1" bgcolor="#FFFFFF" style="background-color:#eeeeee; border:0px solid gray">
<?php
$query = " SELECT * FROM research_char_tb WHERE Research_code='$Research_code' ";
$result1 = $dbObj->execQuery($query);
$numrows = $dbObj->_numrows;
?>
<?php
$no = 1+($display-1)*$limit;
while( $rss = $dbObj->fetchArray($result1) ) {
$bgColor = ( $bgColor == "#FFFFFF" ) ? "#F9FBFB" : "#FFFFFF";
?>
<tr bgcolor="<?=$bgColor;?>">
<td width="4%" height="20" align="right"><img src="../images/icons/linesub.gif" width="16" height="16" border="0" align="absmiddle" /></td>
<td width="70%" align="left" class="PADDING-LEFT-5"><?php
$Teacher_code= $rss['Teacher_code'] ;
$sql11 = " Select *, prefixName as First_name FROM personal_tb LEFT JOIN prefix ON personal_tb.First_name = prefix.prefixId Where Teacher_code='$Teacher_code' ";
$result11 = mysql_query($sql11);
$rs11 = mysql_fetch_array($result11);
echo"$rs11[First_name] $rs11[Teacher_name] $rs11[Teacher_lastname]";
?>
</font></a></td>
<td width="26%" align="left" class="PADDING-LEFT-5"><font color="#000000" size="2" face="Tahoma"><? echo $rss[R_position]?></font></td>
</tr>
<?php
//$no++;
} # while
?>
</table></td>
</tr>
<tr>
<td height="22" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">กลุ่มสาขาวิชาการ</td>
<td bgcolor="#FFFFFF">:</td>
<td align="left" bgcolor="#FFFFFF"><font color="#0000FF" size="2" face="Tahoma"><? echo $rss1['Branch'] ; ?></font></td>
</tr>
<tr>
<td height="22" colspan="3" align="left" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"> ความสำคัญและที่มาของปัญหา :</td>
</tr>
<tr>
<td height="22" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"> </td>
<td bgcolor="#FFFFFF"> </td>
<td align="left" bgcolor="#FFFFFF"><?php echo htmlspecialchars_decode( nl2br( $rss2['importance'] ) ); ?></td>
</tr>
<tr>
<td height="22" colspan="3" align="left" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"> วัตถุประสงค์ของโครงการ</td>
</tr>
<tr>
<td height="22" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"> </td>
<td bgcolor="#FFFFFF"> </td>
<td align="left" bgcolor="#FFFFFF"><?php echo htmlspecialchars_decode( nl2br( $rss2['objective'] ) ); ?></td>
</tr>
<tr>
<td height="22" colspan="3" align="left" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"> ขอบเขตของโครงการผลงาน</td>
</tr>
<tr>
<td height="22" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"> </td>
<td bgcolor="#FFFFFF"> </td>
<td align="left" bgcolor="#FFFFFF"><?php echo htmlspecialchars_decode( nl2br( $rss2['scope'] ) ); ?></td>
</tr>
<tr>
<td height="22" colspan="3" align="left" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"> ผลที่คาดว่าจะได้รับ</td>
</tr>
<tr>
<td height="22" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"> </td>
<td bgcolor="#FFFFFF"> </td>
<td align="left" bgcolor="#FFFFFF"><?php echo htmlspecialchars_decode( nl2br( $rss2['receive'] ) ); ?></td>
</tr>
<tr>
<td height="22" colspan="3" align="left" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"> นำไปใช้ในการพัฒนาคุณภาพการศึกษา</td>
</tr>
<tr>
<td height="22" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"> </td>
<td bgcolor="#FFFFFF">:</td>
<td align="left" bgcolor="#FFFFFF"><?php echo htmlspecialchars_decode( nl2br( $rss2['quality'] ) ); ?></td>
</tr>
<tr>
<td height="22" colspan="3" align="left" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"> บทคัดย่อ</td>
</tr>
<tr >
<td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"> </td>
<td bgcolor="#FFFFFF"> </td>
<td align="left" bgcolor="#FFFFFF"><?php echo htmlspecialchars_decode( nl2br( $rss2['abbStract'] ) ); ?></td>
</tr>
<tr >
<td colspan="3" align="left" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"><font color="#003366" face="Tahoma">ดาว์โหลดไฟล์บทคัดย่อ</font> :
<?php if( $rss2['Filetex'] != "" ) { ?>
<a href="<?=$doc_path ;?>/<?=$rss2['Filetex'];?>" target="_parent"><img src="../images/icons/download.png" alt=" ดาวน์โหลดไฟล์ <?=$rss2['Filetex'];?> " width="16" height="16" border="0" /></a>
<?php } else { ?>
<img src="../images/icons/download_off.png" width="16" height="16" />
<?php } ?></td>
</tr>
<tr>
<td colspan="3" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"> </td>
</tr>
<tr>
<td colspan="3" align="left" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"><table width="98%" border="0" align="left" cellpadding="1" cellspacing="1" bgcolor="#FFFFFF" style="background-color:#eeeeee; border:0px solid gray">
<tr bgcolor="#F0F0F0">
<td height="25" colspan="3" align="left" bordercolor="#999966" bgcolor="#FFFFFF" class="PADDING-LEFT-10" " > การเผยแพร่งานวิจัยการประชุม</td>
</tr>
<?php
$query = " SELECT * FROM research_dissemination WHERE Research_code='$Research_code' and Feature='3' ";
$result1 = $dbObj->execQuery($query);
$numrows = $dbObj->_numrows;
?>
<?php
$no = 1+($display-1)*$limit;
while( $rss = $dbObj->fetchArray($result1) ) {
$bgColor = ( $bgColor == "#FFFFFF" ) ? "#F9FBFB" : "#FFFFFF";
?>
<tr bgcolor="<?=$bgColor;?>">
<td width="5%" height="20" align="right"><img src="../images/icons/linesub.gif" width="16" height="16" border="0" align="absmiddle" /></td>
<td width="84%" align="left" class="PADDING-LEFT-5"><?php
$sql = "Select * From researchfeature Where FeId ='$rss[Quality]' ";
$result4 = mysql_query($sql) or die("Error".mysql_error());
$rss5 = mysql_fetch_array($result4);
echo $rss5["FeatureName"];
?>
ชื่อการประชุม:
<?=$rss['MeetingName'];?>
หน่วยงานที่จัด:
<?=$rss['Agencies'];?>
</a> ดาว์โหลดเอกสาร:
<?php if( $rss['Filetex'] != "" ) { ?>
<a href="<?=$doc_path ;?>/<?=$rss['Filetex'];?>" target="_parent"><img src="../images/icons/download.png" alt=" ดาวน์โหลดไฟล์ <?=$rss['Filetex'];?> " width="16" height="16" border="0" /></a>
<?php } else { ?>
<img src="../images/icons/download_off.png" width="16" height="16" />
<?php } ?></td>
<td width="11%" align="center" class="PADDING-LEFT-5"><?=$rss['Results']?></td>
<?php
$no++;
} # while
?>
</tr>
<tr bgcolor="<?=$bgColor;?>">
<td height="20" colspan="2" align="left"class="PADDING-LEFT-10" ></font><font color="#000000"> <font color="#000000">การเผยแพร่บทความวิจัย</font></font></font></td>
<td align="left" class="PADDING-LEFT-5"> </td>
</tr>
<?php
$query = " SELECT * FROM research_dissemination WHERE Research_code='$Research_code' and Feature='1' ";
$result2 = $dbObj->execQuery($query);
$numrows = $dbObj->_numrows;
?>
<?php
$no = 1+($display-1)*$limit;
while( $rs2 = $dbObj->fetchArray($result2) ) {
$bgColor = ( $bgColor == "#FFFFFF" ) ? "#F9FBFB" : "#FFFFFF";
?>
<tr bgcolor="<?=$bgColor;?>">
<td height="20" align="right"><img src="../images/icons/linesub.gif" width="16" height="16" border="0" align="absmiddle" /></td>
<td align="left" class="PADDING-LEFT-5"><?php
$sql = "Select * From researchfeature Where FeId ='$rs2[Warsan]' ";
$result4 = mysql_query($sql) or die("Error".mysql_error());
$rss5 = mysql_fetch_array($result4);
echo $rss5["FeatureName"];
?>
ฐานข้อมูล:
<?=$rs2['DatabaseName'];?>
ชื่อวารสาร:
<?=$rs2['JournalName'];?>
</a>
ดาว์โหลดเอกสาร:
<?php if( $rs2['Filetex'] != "" ) { ?>
<a href="<?=$doc_path ;?>/<?=$rs2['Filetex'];?>" target="_parent"><img src="../images/icons/download.png" alt=" ดาวน์โหลดไฟล์ <?=$rs2['Filetex'];?> " width="16" height="16" border="0" /></a>
<?php } else { ?>
<img src="../images/icons/download_off.png" width="16" height="16" />
<?php } ?></td>
<td align="center" class="PADDING-LEFT-5"><?=$rs2['Results']?></td>
<?php
$no++;
} # while
?>
</tr>
<tr bgcolor="<?=$bgColor;?>">
<td height="20" colspan="2" align="left" class="PADDING-LEFT-10"></font><font color="#000000"> <font color="#000000">การเผยแพร่บทความวิชาการ</font></font></span></font></td>
<td align="center" class="PADDING-LEFT-5"> </td>
</tr>
<?php
$query = " SELECT * FROM research_dissemination WHERE Research_code='$Research_code' and Feature='2' ";
$result4 = $dbObj->execQuery($query);
$numrows = $dbObj->_numrows;
?>
<?php
$no = 1+($display-1)*$limit;
while( $rs4 = $dbObj->fetchArray($result4) ) {
$bgColor = ( $bgColor == "#FFFFFF" ) ? "#F9FBFB" : "#FFFFFF";
?>
<tr bgcolor="<?=$bgColor;?>">
<td height="20" align="right"><img src="../images/icons/linesub.gif" width="16" height="16" border="0" align="absmiddle" /></td>
<td align="left" class="PADDING-LEFT-5"><?php
$sql = "Select * From researchfeature Where FeId ='$rs4[Warsan]' ";
$result4 = mysql_query($sql) or die("Error".mysql_error());
$rss5 = mysql_fetch_array($result4);
echo $rss5["FeatureName"];
?>
ฐานข้อมูล:
<?=$rs4['DatabaseName'];?>
ชื่อวารสาร:
<?=$rs4['JournalName'];?>
</a>
ดาว์โหลดเอกสาร:
<?php if( $rs4['Filetex'] != "" ) { ?>
<a href="<?=$doc_path ;?>/<?=$rs4['Filetex'];?>" target="_parent"><img src="../images/icons/download.png" alt=" ดาวน์โหลดไฟล์ <?=$rs4['Filetex'];?> " width="16" height="16" border="0" /></a>
<?php } else { ?>
<img src="../images/icons/download_off.png" width="16" height="16" />
<?php } ?></td>
<td align="center" class="PADDING-LEFT-5"><?=$rs4['Results']?></td>
<?php
$no++;
} # while
?>
</tr>
</table></td>
</tr>
<tr>
<td colspan="3" align="left" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">อ้างจากแผนปฏิบัติการ :
<?php
/*
$sql = " SELECT * FROM research_success_tb rst, project_plan pp WHERE rst.Research_code='$Research_code' and pp.proId= rst.proId ";
$result4 = mysql_query($sql) or die("Error".mysql_error());
$rs4= mysql_fetch_array($result4);
*/
?>รหัส: <?=$rs4['Orderlist'];?> ชื่อโครงการ:
<?=$rs4['Project_plan'];?></td>
</tr>
<tr>
<td colspan="3" align="left" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">
<label>
<input name="outreacId" type="checkbox" id="outreacId" <?php if (!strcmp("$rs4[outreacId]","Y") ) {echo "checked";} ?> value="Y" />
</label>
บูรณาการกับโครงการบริการวิชาการ</td>
</tr>
<tr>
<td colspan="3" align="left" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">
<input name="outreacId" type="checkbox" id="outreacId" <?php if (!strcmp("$rs4[outSouse]","Y") ) {echo "checked";} ?> value="Y" />
ความร่วมมืองานวิจัยกับบุคคลภายนอก </td>
</tr>
<tr>
<td colspan="3" align="left" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">บูรณาการกับรายวิชา :
<?php
$sql = " SELECT * FROM research_success_tb WHERE Research_code='$Research_code' ";
$result6 = mysql_query($sql) or die("Error".mysql_error());
$rs6= mysql_fetch_array($result6);
$dbObj->RegDBConn();
$strSQL33 = " SELECT * FROM Course WHERE courseId='$rs6[courseId]' ";
$result33 = mysql_query($strSQL33);
$rs33 = mysql_fetch_array($result33);
$dbObj->DBConn();
?>
รหัส :
<?=$rs33['courseCode'];?> วิชา:
<?=$rs33['courseName'];?> <?=$rs33['courseUnit'];?></td>
</tr>
<tr>
<td align="right" valign="top" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">ปีปฏิทิน</a></td>
<td bgcolor="#FFFFFF">:</td>
<td align="left" bgcolor="#FFFFFF"><input name="Resource_des5" type="text" id="Resource_des5" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo $rss1['Year_prop']; ?>" size="5" /></td>
</tr>
<tr>
<td align="right" valign="top" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">ปีการศึกษา</td>
<td bgcolor="#FFFFFF">:</td>
<td align="left" bgcolor="#FFFFFF"><input name="Resource_des6" type="text" id="Resource_des6" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo $rss1['academic_year_finish']; ?>" size="5" /></td>
</tr>
<tr>
<td align="right" valign="top" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">ปีงบประมาณ</td>
<td bgcolor="#FFFFFF">:</td>
<td align="left" bgcolor="#FFFFFF"></a>
<input name="Resource_des7" type="text" id="Resource_des7" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo $rss1['fiscal_year_finish']; ?>" size="5" /></td>
</tr>
<tr>
<td height="24" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">วันที่เริ่ม</td>
<td bgcolor="#FFFFFF">:</td>
<td align="left" bgcolor="#FFFFFF">
<input name="Resource_des9" type="text" id="Resource_des9" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?php
$sday = $rss1['Year_start'];
$yearthai = explode( "-", $sday );
$day = intval( $yearthai[2] );
$month = intval( $yearthai[1] );
$year = intval( $yearthai[0] );
$m = getThaiSubMonth( $month );
echo $day ." ". $m ." ". $year;
?>" size="10" />
</a> <span class="TEXT-DARK-BLUE10">วันที่แล้วเสร็จ : </span>
</a>
<input name="Resource_des10" type="text" id="Resource_des10" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?php
$sday = $rss1['Year_finish'];
$yearthai = explode( "-", $sday );
$day = intval( $yearthai[2] );
$month = intval( $yearthai[1] );
$year = intval( $yearthai[0] );
$m = getThaiSubMonth( $month );
echo $day ." ". $m ." ". $year;
?>" size="10" /></td>
</tr>
<tr>
<td align="right" valign="top" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">แหล่งเงินทุน</td>
<td bgcolor="#FFFFFF"> </td>
<td align="left" bgcolor="#FFFFFF"><table width="98%" border="0" cellspacing="1" cellpadding="1">
<tr>
<td width="19%" align="left"><input name="Fund_resourceIn" type="checkbox" id="Fund_resourceIn" <?php if (!strcmp("$rss1[Fund_resourceIn]","ภายใน") ) {echo "checked";} ?> value="ภายใน" <?php if( $_GET['Fund_resourceIn'] == "ภายใน" ) echo 'checked'; ?> onclick="checkAssign1(this,form1.FundIn)" />
ภายใน</td>
<td width="81%" align="left">จำนวนเงิน
<input name="Resource_des3" type="text" id="Resource_des3" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo number_format($rss1['FundIn'],2,'.',',');?>" size="10" />
บาท</td>
</tr>
<tr>
<td align="left"><input name="Fund_resourceOut" type="checkbox" id="Fund_resourceOut" <?php if (!strcmp("$rss1[Fund_resourceOut]","ภายนอก") ) {echo "checked";} ?> value="ภายนอก" <?php if( $_GET['Fund_resourceOut'] == "ภายนอก" ) echo 'checked'; ?> onclick="checkAssign1(this,form1.FundOut ,form1.Resource_des )" />
ภายนอก</td>
<td align="left">จำนวนเงิน
<input name="Resource_des2" type="text" id="Resource_des2" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo number_format($rss1['FundOut'],2,'.',',');?>" size="10" />
บาท ระบุ</a></a>
<input name="Resource_des" type="text" id="Resource_des" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo $rss1['Resource_des'];?>" size="30" /></td>
</tr>
<tr>
<td align="right"><span class="TEXT-DARK-BLUE10"> รวมจำนวนเงินทุน</a></td>
<td align="left"><input name="Resource_des4" type="text" id="Resource_des4" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo number_format($rss1['FundUse'],2,'.',',');?>" size="10" />
บาท</td>
</tr>
</table></td>
</tr>
<tr>
<td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">
</td>
<td bgcolor="#FFFFFF"> </td>
<td align="left" bgcolor="#FFFFFF"><table width="99%" border="0" cellpadding="1" cellspacing="1" bgcolor="#FFFFFF" style="background-color:#eeeeee; border:0px solid gray">
<tr bgcolor="<?=$bgColor;?>">
<td height="20" colspan="2" align="center" bgcolor="#FFFFFF"class="PADDING-LEFT-5"> ชื่อแฟ้มข้อมูล</font></td>
<td width="16%" align="center" bgcolor="#FFFFFF" class="PADDING-LEFT-5">ขนาดแฟ้มข้อมูล</td>
<td width="12%" align="center" bgcolor="#FFFFFF" class="PADDING-LEFT-5">จำนวนเข้าถึง </td>
<td width="23%" align="center" bgcolor="#FFFFFF" class="PADDING-LEFT-5">วัน-เวลาเข้าถึงล่าสุด</td>
<td width="10%" align="center" bgcolor="#FFFFFF" class="PADDING-LEFT-5">Download</td>
</tr>
<?php
$query = " SELECT * FROM research_filetex_tb WHERE Research_code='$Research_code' ";
$result = $dbObj->execQuery($query);
$numrows = $dbObj->_numrows;
?>
<?php
$no = 1+($display-1)*$limit;
while( $rs5 = $dbObj->fetchArray($result) ) {
$bgColor = ( $bgColor == "#FFFFFF" ) ? "#F9FBFB" : "#FFFFFF";
?>
<tr bgcolor="<?=$bgColor;?>">
<td width="3%" height="20" align="right"><img src="../images/icons/linesub.gif" width="16" height="16" border="0" align="absmiddle" /></td>
<td width="36%" align="left" class="PADDING-LEFT-5"><?=$rs5["Filename"];?>
</a></td>
<td align="center" class="PADDING-LEFT-5"> </td>
<td align="center" class="PADDING-LEFT-5"> </td>
<td align="center" class="PADDING-LEFT-5"> </td>
<td align="center" class="PADDING-LEFT-5"><?php if( $rs5['Filetex'] != "" ) { ?>
<a href="<?=$doc_path ;?>/<?=$rs5['Filetex'];?>" target="_parent"><img src="../images/icons/download.png" alt=" ดาวน์โหลดไฟล์ <?=$rs5['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
$no++;
} # while
?>
<tr>
<td height="22" colspan="6" align="center" bgcolor="#F8F8F8">ทั้งหมด <span class="NOTE"><?php echo $numrows; ?></span> รายการ</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr></form>
</table>
</fieldset></td>
</tr>
</table>
<?php include("../templates/incFooter.php"); ?>
</body>
</html>
<?php
/** Free Resource */
$dbObj->freeresult($result0);
/** Close the Database */
$dbObj->disconn();
/** Unset Class */
unset($dbObj);
?>
|