Viewing file: FrmEditResearch.php (30.1 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;
/** โฟลเดอร์ไฟล์เอกสาร */
$doc_path = $_Config_live_site."/Research_pic";
/** Table --> personal_tb */
$query1 = " SELECT * FROM research_tb WHERE Teacher_code= '$Teacher_code' AND Research_code='$Research_code' ";
$result = $dbObj->execQuery($query1);
$rs = $dbObj->fetchArray($result);
$query2 = " SELECT * FROM personal_tb WHERE Teacher_code='$Teacher_code' ";
$result2 = $dbObj->execQuery($query2);
$rs2 = $dbObj->fetchArray($result2);
} # 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>
<script language="JavaScript" type="text/JavaScript">
function browse()
{
myform.Filetex.src = myform.Filetex.value;
}
</script>
<script language="JavaScript" type="text/JavaScript">
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
function MM_goToURL() { //v3.0
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
</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"><fieldset>
<table width="780" border="0" cellspacing="0" cellpadding="0">
<form action="EditResearch.php" method="post" enctype="multipart/form-data" name="myForm" id="myForm">
<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>» <a href="Menu_Teach.php">ข้อมูลทั่วไปบุคลากร</a> » <a href="ResearchByYear.php?Teacher_code=<?=$Teacher_code;?>">ข้อมูลงานวิจัย</a> » <a href="ResearchList.php?Teacher_code=<?=$Teacher_code;?>&Year_prop=<?=$Year_prop;?>">ผลงานการวิจัย</a> » <span class="NOTE">แก้ไขประวัติผลงานวิจัย</span></strong></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td align="center"><table width="760" border="0" align="center" cellpadding="1" cellspacing="1" bordercolor="#CCCCCC" bgcolor="#DBDBDB" style="border:1px solid #EEEEEE">
<tr bgcolor="#FFCC99">
<td height="25" colspan="3" bgcolor="#F8F8F8" align="center"><span class="PATRON11">แก้ไขประวัติผลงานวิจัย</span></td>
</tr>
<tr bgcolor="#EEEEEE">
<td width="25%" height="22" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">ชื่อ-นามสกุล</td>
<td width="1%" bgcolor="#FFFFFF"> </td>
<td width="74%" bgcolor="#FFFFFF"> <font color="#003366" size="2" face="Tahoma"><strong><? echo $rs2['First_name']; ?> <? echo $rs2['Teacher_name'] ;?> <? echo $rs2['Teacher_lastname'];?> </strong></font></td>
</tr>
<tr bgcolor="#EEEEEE">
<td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">ชื่อผลงานวิจัย</td>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"><font color="#0000FF" size="2" face="Tahoma">
<input name="Research_name" type="text" id="Research_name" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo $rs['Research_name']; ?>" size="80" />
</font></td>
</tr>
<tr bgcolor="#EEEEEE">
<td height="22" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">สาขาวิชา</td>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"><font color="#0000FF" size="2" face="Tahoma">
<input name="Branch" type="text" id="Branch" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo $rs['Branch']; ?>" size="80" />
</font></td>
</tr>
<tr bgcolor="#EEEEEE">
<td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">ประเภทผลงานวิจัย</td>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF">
<input type="radio" name="Research_type" <?php if (!(strcmp("$rs[Research_type]","งานวิจัย"))) {echo "checked";} ?> value="งานวิจัย" />
งานวิจัย
<input type="radio" name="Research_type" <?php if (!(strcmp("$rs[Research_type]","งานสร้างสรรค์นวัตกรรม"))) {echo "checked";} ?> value="งานสร้างสรรค์นวัตกรรม" />
งานสร้างสรรค์นวัตกรรม</td>
</tr>
<tr bgcolor="#EEEEEE">
<td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">ลักษณะผลงานวิจัย</td>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF">
<input type="radio" name="Research_char" <?php if (!(strcmp("$rs[Research_char]","คลินิค"))) {echo "checked";} ?> value="คลินิค" />
คลีนิค
<input type="radio" name="Research_char" <?php if (!(strcmp("$rs[Research_char]","การเรียนการสอน"))) {echo "checked";} ?> value="การเรียนการสอน" />
การเรียนการสอน
<input type="radio" name="Research_char" <?php if (!(strcmp("$rs[Research_char]","การส่งเสริมสุขภาพ"))) {echo "checked";} ?> value="การส่งเสริมสุขภาพ" />
การส่งเสริมสุขภาพ
<input type="radio" name="Research_char" <?php if (!(strcmp("$rs[Research_char]","อื่นๆ"))) {echo "checked";} ?> value="อื่นๆ" />
อื่นฯ ระบุ
<font color="#0000FF" size="2" face="Tahoma">
<input name="Research_char_else" type="text" id="Research_char_else" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo $rs['Research_char_else'];?>" size="25" />
</font></td>
</tr>
<tr bgcolor="#EEEEEE">
<td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">ตำแหน่งการวิจัย</td>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF">
<input type="radio" name="R_position" <?php if (!(strcmp("$rs[R_position]","หัวหน้าวิจัย"))) {echo "checked";} ?> value="หัวหน้าวิจัย" />
หัวหน้าวิจัย
<input type="radio" name="R_position" <?php if (!(strcmp("$rs[R_position]","ผู้ร่วมวิจัย"))) {echo "checked";} ?> value="ผู้ร่วมวิจัย" />
ผู้ร่วมวิจัย</td>
</tr>
<tr bgcolor="#EEEEEE">
<td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">ชื่อผู้ร่วมวิจัยที่ 1</td>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"><select name="name1" id="name1">
<option value=""></option>
<?php
$sql1 = " SELECT * FROM personal_tb ORDER BY First_name ASC ";
$result1 = mysql_query($sql1);
while( $rs1 = mysql_fetch_array($result1) ) {
?>
<option value="<?=$rs1['Teacher_code'];?>" <?php if( $rs1['Teacher_code']==$rs['name1'] ) echo 'selected';?>><?=$rs1['First_name'];?><?=$rs1['Teacher_name'];?> <?=$rs1['Teacher_lastname'];?></option>
<?php
} # while
mysql_free_result($result1);
?>
</select></td>
</tr>
<tr bgcolor="#EEEEEE">
<td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">ชื่อผู้ร่วมวิจัยที่ 2</td>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"><select name="name2" id="name2">
<option value=""></option>
<?php
$sql1 = " SELECT * FROM personal_tb ORDER BY First_name ASC ";
$result1 = mysql_query($sql1);
while( $rs1 = mysql_fetch_array($result1) ) {
?>
<option value="<?=$rs1['Teacher_code'];?>" <?php if( $rs1['Teacher_code']==$rs['name2'] ) echo 'selected';?>><?=$rs1['First_name'];?><?=$rs1['Teacher_name'];?> <?=$rs1['Teacher_lastname'];?></option>
<?php
} # while
mysql_free_result($result1);
?>
</select></td>
</tr>
<tr bgcolor="#EEEEEE">
<td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">ชื่อผู้ร่วมวิจัยที่ 3</td>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"><select name="name3" id="name3">
<option value=""></option>
<?php
$sql1 = " SELECT * FROM personal_tb ORDER BY First_name ASC ";
$result1 = mysql_query($sql1);
while( $rs1 = mysql_fetch_array($result1) ) {
?>
<option value="<?=$rs1['Teacher_code'];?>" <?php if( $rs1['Teacher_code']==$rs['name3'] ) echo 'selected';?>><?=$rs1['First_name'];?><?=$rs1['Teacher_name'];?> <?=$rs1['Teacher_lastname'];?></option>
<?php
} # while
mysql_free_result($result1);
?>
</select></td>
</tr>
<tr bgcolor="#EEEEEE">
<td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">ชื่อผู้ร่วมวิจัยที่ 4</td>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"><select name="name4" id="name4">
<option value=""></option>
<?php
$sql1 = " SELECT * FROM personal_tb ORDER BY First_name ASC ";
$result1 = mysql_query($sql1);
while( $rs1 = mysql_fetch_array($result1) ) {
?>
<option value="<?=$rs1['Teacher_code'];?>" <?php if( $rs1['Teacher_code']==$rs['name4'] ) echo 'selected';?>><?=$rs1['First_name'];?><?=$rs1['Teacher_name'];?> <?=$rs1['Teacher_lastname'];?></option>
<?php
} # while
mysql_free_result($result1);
?>
</select></td>
</tr>
<tr bgcolor="#EEEEEE">
<td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">ชื่อผู้ร่วมวิจัยที่ 5</td>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"><select name="name5" id="name5">
<option value=""></option>
<?php
$sql1 = " SELECT * FROM personal_tb ORDER BY First_name ASC ";
$result1 = mysql_query($sql1);
while( $rs1 = mysql_fetch_array($result1) ) {
?>
<option value="<?=$rs1['Teacher_code'];?>" <?php if( $rs1['Teacher_code']==$rs['name5'] ) echo 'selected';?>>
<?=$rs1['First_name'];?>
<?=$rs1['Teacher_name'];?>
<?=$rs1['Teacher_lastname'];?>
</option>
<?php
} # while
mysql_free_result($result1);
?>
</select></td>
</tr>
<tr bgcolor="#EEEEEE">
<td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">ชื่อผู้ร่วมวิจัยที่ 6</td>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"><select name="name6" id="name6">
<option value=""></option>
<?php
$sql1 = " SELECT * FROM personal_tb ORDER BY First_name ASC ";
$result1 = mysql_query($sql1);
while( $rs1 = mysql_fetch_array($result1) ) {
?>
<option value="<?=$rs1['Teacher_code'];?>" <?php if( $rs1['Teacher_code']==$rs['name6'] ) echo 'selected';?>><?=$rs1['First_name'];?><?=$rs1['Teacher_name'];?> <?=$rs1['Teacher_lastname'];?></option>
<?php
} # while
mysql_free_result($result1);
?>
</select></td>
</tr>
<tr bgcolor="#EEEEEE">
<td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">ชื่อผู้ร่วมวิจัยที่ 7</td>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"><select name="name7" id="name7">
<option value=""></option>
<?php
$sql1 = " SELECT * FROM personal_tb ORDER BY First_name ASC ";
$result1 = mysql_query($sql1);
while( $rs1 = mysql_fetch_array($result1) ) {
?>
<option value="<?=$rs1['Teacher_code'];?>" <?php if( $rs1['Teacher_code']==$rs['name7'] ) echo 'selected';?>><?=$rs1['First_name'];?><?=$rs1['Teacher_name'];?> <?=$rs1['Teacher_lastname'];?></option>
<?php
} # while
mysql_free_result($result1);
?>
</select></td>
</tr>
<tr bgcolor="#EEEEEE">
<td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">ชื่อผู้ร่วมวิจัยที่ 8</td>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"><select name="name8" id="name8">
<option value=""></option>
<?php
$sql1 = " SELECT * FROM personal_tb ORDER BY First_name ASC ";
$result1 = mysql_query($sql1);
while( $rs1 = mysql_fetch_array($result1) ) {
?>
<option value="<?=$rs1['Teacher_code'];?>" <?php if( $rs1['Teacher_code']==$rs['name8'] ) echo 'selected';?>><?=$rs1['First_name'];?><?=$rs1['Teacher_name'];?> <?=$rs1['Teacher_lastname'];?></option>
<?php
} # while
mysql_free_result($result1);
?>
</select></td>
</tr>
<tr bgcolor="#E5E5E5" class="BORDER-GREY-LIGHT">
<td align="right" valign="top" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">บทคัดย่อ</td>
<td bgcolor="#FFFFFF"> </td>
<td align="left" bgcolor="#FFFFFF"><textarea name="abbStract" cols="60" rows="4" id="abbStract"><? echo $rs['abbStract']; ?></textarea>
<script>QBPATH='../editor'; VISUAL=1; SECURE=0;</script>
<script src='../editor/quickB.js'></script>
<script src='../editor/tabedit.js'></script></td>
</tr>
<tr bgcolor="#EEEEEE">
<td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">ปีที่เริ่มวิจัย</td>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF">วันที่
<select name="mDate" class="select" >
<?php
$Year_start = $rs['Year_start'];
$yearthai = explode("-",$Year_start);
$mDate = intval($yearthai[2]);
$mMonth = intval($yearthai[1]);
$mYear = intval($yearthai[0]);
for($i=0;$i<=31;$i++)
{
if( $i == 0)
echo"\n\t<option value=\"$mDate\" selected>$mDate</option>\n ";
else
echo"\n\t<option value=\"$i\">$i</option>\n ";
}
?>
</select>
เดือน
<select name="mMonth" class="select" >
<?php
$Year_start = $rs['Year_start'];
$yearthai = explode("-",$Year_start);
$mDate= intval($yearthai[2]);
$Month = intval($yearthai[1]);
$mYear = intval($yearthai[0]);
$mMonth = $Month;
$CMonth = TxtThaiMonth($Month);
for($i=-1;$i<=11;$i++)
{
$a = $i+1;
if( $a == 0)
echo"\n\t<option value=\"$mMonth\" selected>$CMonth</option>\n ";
else
echo"\n\t<option value=\"$a\">$ThaiMonth[$i]</option>\n ";
}
?>
</select>
ปี พ.ศ.
<input name="mYear" type="text" class="input1" id="mYear" value="<? echo $mYear; ?>" size="5" maxlength="4" style="text-align:center" /> </td>
</tr>
<tr bgcolor="#EEEEEE">
<td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">ปีที่แล้วเสร็จ</td>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF">วันที่
<select name="mDate2" class="select" >
<?php
$Year_finish = $rs['Year_finish'];
$yearthai = explode("-",$Year_finish);
$mDate2 = intval($yearthai[2]);
$mMonth = intval($yearthai[1]);
$mYear2 = intval($yearthai[0]);
for($i=0;$i<=31;$i++)
{
if( $i == 0)
echo"\n\t<option value=\"$mDate2\" selected>$mDate2</option>\n ";
else
echo"\n\t<option value=\"$i\">$i</option>\n ";
}
?>
</select>
เดือน
<select name="mMonth2" class="select" >
<?php
$Year_finish = $rs['Year_finish'];
$yearthai = explode("-",$Year_finish);
$mDate = intval($yearthai[2]);
$Month2 = intval($yearthai[1]);
$mYear2 = intval($yearthai[0]);
$mMonth2 = $Month2;
$CMonth = TxtThaiMonth($Month2);
for($i=-1;$i<=11;$i++)
{
$a = $i+1;
if( $a == 0)
echo"\n\t<option value=\"$mMonth2\" selected>$CMonth</option>\n ";
else
echo"\n\t<option value=\"$a\">$ThaiMonth[$i]</option>\n ";
}
?>
</select>
ปี พ.ศ.
<input name="mYear2" type="text" class="input1" id="mYear2" value="<? echo $mYear; ?>" size="5" maxlength="4" style="text-align:center" /> </td>
</tr>
<tr bgcolor="#EEEEEE">
<td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">จำนวนเงินทุน</td>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"><input name="Fund" type="text" class="input1" value="<? echo $rs['FundUse'];?>" size="10" maxlength="10" style="text-align:center" disabled />
บาท</td>
</tr>
<tr bgcolor="#EEEEEE">
<td height="20" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">แหล่งเงินทุน</td>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr>
<td width="16%" align="left">
<input name="Fund_resourceIn" type="checkbox" id="Fund_resourceIn" <?php if (!strcmp("$rs[Fund_resourceIn]","ภายใน") ) {echo "checked";} ?> value="ภายใน" />
ภายใน</td>
<td width="84%" align="left">จำนวนเงิน
<input name="FundIn" type="text" class="input" id="FundIn" value="<? echo $rs['FundIn']; ?>" size="10" style="text-align:right; padding-right:5px" onkeypress="checkNumeric()" />
บาท</td>
</tr>
<tr>
<td align="left"><font size="2" face="Tahoma">
<input name="Fund_resourceOut" type="checkbox" id="Fund_resourceOut" <?php if (!strcmp("$rs[Fund_resourceOut]","ภายนอก") ) {echo "checked";} ?> value="ภายนอก" />
</font>
ภายนอก</td>
<td align="left">จำนวนเงิน
<input name="FundOut" type="text" class="input" id="FundOut" size="10" value="<? echo $rs['FundOut']; ?>" style="text-align:right; padding-right:5px" onkeypress="checkNumeric()" />
บาท ระบุ <font color="#0000FF" size="2" face="Tahoma">
<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="<?=$_GET['Resource_des'];?>" size="35" />
</font></td>
</tr>
<tr>
<td colspan="2" align="left"> </td>
</tr>
</table></td>
</tr>
<tr bgcolor="#EEEEEE">
<td height="22" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">การเผยแพร่</td>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"><input type="radio" name="Propagate" <?php if ( !strcmp("$rs[Propagate]","เผยแพร่") ) {echo "checked";} ?> value="เผยแพร่" />
เผยแพร่
<input type="radio" name="Propagate" <?php if ( !strcmp("$rs[Propagate]","ยังไม่เผยแพร่") ) {echo "checked";} ?> value="ยังไม่เผยแพร่" />
ยังไม่เผยแพร่ ระบุ
<font color="#0000FF" size="2" face="Tahoma">
<input name="Propagate_des" type="text" id="Propagate_des" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo $rs['Propagate_des']; ?>" size="30" />
</font></td>
</tr>
<tr bgcolor="#EEEEEE">
<td rowspan="3" align="right" valign="top" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">ลักษณะการเผยแพร่</td>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF">
<input type="radio" name="Prop_type" <?php if ( !strcmp("$rs[Prop_type]","นำเสนอเวทีวิชาการ") ) {echo "checked";} ?> value="นำเสนอเวทีวิชาการ" />
นำเสนอเวทีวิชาการ ระบุ
<font color="#0000FF" size="2" face="Tahoma">
<input name="Prop_type1" type="text" id="Prop_type1" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo $rs['Prop_type1']; ?>" size="30" />
</font></td>
</tr>
<tr bgcolor="#EEEEEE">
<td bgcolor="#FFFFFF"> </td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF">
<input type="radio" name="Prop_type" <?php if ( !strcmp("$rs[Prop_type]","ตีพิมพ์ลงวารสาร") ) {echo "checked";} ?> value="ตีพิมพ์ลงวารสาร" />
ตีพิมพ์ลงวารสาร ระบุ
<font color="#0000FF" size="2" face="Tahoma">
<input name="Prop_type2" type="text" id="Prop_type2" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo $rs['Prop_type2']; ?>" size="30" />
</font></td>
</tr>
<tr bgcolor="#EEEEEE">
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF">
<input type="radio" name="Prop_type" <?php if (!strcmp("$rs[Prop_type]","โปสเตอร์") ) {echo "checked";} ?> value="โปสเตอร์" />
โปสเตอร์ ระบุ
<font color="#0000FF" size="2" face="Tahoma">
<input name="Prop_type3" type="text" id="Prop_type3" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo $rs['Prop_type3']; ?>" size="30" />
</font></td>
</tr>
<tr bgcolor="#EEEEEE">
<td rowspan="4" align="right" valign="top" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">การนำไปใช้</td>
<td height="20" bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF">
<input name="Apply1" type="checkbox" id="Apply1" <?php if (!strcmp("$rs[Apply1]","การพัฒนาประเทศ") ) {echo "checked";} ?> value="การพัฒนาประเทศ" />
การพัฒนาประเทศ</td>
</tr>
<tr bgcolor="#EEEEEE">
<td height="20" bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF">
<input name="Apply2" type="checkbox" id="Apply2" <?php if (!strcmp("$rs[Apply2]","การเรียนการสอน") ) {echo "checked";} ?> value="การเรียนการสอน" />
การเรียนการสอน </td>
</tr>
<tr bgcolor="#EEEEEE">
<td height="20" bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF">
<input name="Apply3" type="checkbox" id="Apply3" <?php if (!strcmp("$rs[Apply3]","ระบบสุขภาพ") ) {echo "checked";} ?> value="ระบบสุขภาพ" />
ระบบสุขภาพ</td>
</tr>
<tr bgcolor="#EEEEEE">
<td height="20" bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF">
<input name="Apply4" type="checkbox" id="Apply4" <?php if (!strcmp("$rs[Apply4]","งานวิจัยอื่น") ) {echo "checked";} ?> value="งานวิจัยอื่น" />
งานวิจัยอื่น ระบุ
<font color="#0000FF" size="2" face="Tahoma">
<input name="Apply_des" type="text" id="Apply_des" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo $rs['Apply_des']; ?>" size="50" />
</font></td>
</tr>
<tr bgcolor="#EEEEEE">
<td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">ปีงบประมาณ</td>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"><input name="Year_prop" type="text" class="input1" id="Year_prop" value="<? echo $rs['Year_prop']; ?>" size="5" maxlength="4" style="text-align:center" disabled="disabled" /></td>
</tr>
<tr bgcolor="#FFCC99">
<td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">สิทธิบัตร</td>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF">
<input name="Research_st" type="checkbox" id="Research_st" <?php if (!strcmp("$rs[Research_st]","จดสิทธิบัตร") ) {echo "checked";} ?> value="จดสิทธิบัตร" /> จดสิทธิบัตร</td>
</tr>
<tr bgcolor="#EEEEEE">
<td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">วันเดือนปที่เผยแพร่</td>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF">วันที่
<select name="mDate3" class="select" >
<?php
$Year_sprop = $rs['Year_sprop'];
$yearthai = explode("-",$Year_sprop);
$mDate3 = intval($yearthai[2]);
$mMonth = intval($yearthai[1]);
$mYear3= intval($yearthai[0]);
for($i=0;$i<=31;$i++)
{
if( $i == 0)
echo"\n\t<option value=\"$mDate3\" selected>$mDate3</option>\n ";
else
echo"\n\t<option value=\"$i\">$i</option>\n ";
}
?>
</select>
เดือน
<select name="mMonth3" class="select" >
<?php
$Year_sporp = $rs['Year_sprop'];
$yearthai = explode("-",$Year_sprop);
$mDate = intval($yearthai[2]);
$Month3 = intval($yearthai[1]);
$mYear3 = intval($yearthai[0]);
$mMonth3 = $Month3;
$CMonth = TxtThaiMonth($Month3);
for($i=-1;$i<=11;$i++)
{
$a = $i+1;
if( $a == 0)
echo"\n\t<option value=\"$mMonth3\" selected>$CMonth</option>\n ";
else
echo"\n\t<option value=\"$a\">$ThaiMonth[$i]</option>\n ";
}
?>
</select>
ปี พ.ศ.
<input name="mYear3" type="text" class="input1" id="mYear3" value="<? echo $mYear2; ?>" size="5" maxlength="4" style="text-align:center" /></td>
</tr>
<?php if( $rs['Filetex'] != "" ) { ?>
<tr bgcolor="#E5E5E5">
<td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">ไฟล์เอกสาร</td>
<td bgcolor="#FFFFFF"> </td>
<td align="left" bgcolor="#FFFFFF"><a href="<?=$doc_path;?>/<?=$rs['Filetex'];?>" target="_blank"><?=$doc_path;?>/<?=$rs['Filetex'];?></a> <?php if( $rs['Filetex'] != "" ) { ?>
<input name="action" type="button" class="TEXT-RED10" onmouseover="this.style.cursor='hand'" style="width:50px" value="Delete" onclick="MM_goToURL('parent','deleteResearchFile.php?Research_code=<?=$rs["Research_code"];?>&Teacher_code=<?=$rs2["Teacher_code"];?>&Year_prop=<?=$Year_prop;?>');return document.MM_returnValue" />
<?php } ?></td>
</tr>
<?php } #if ?>
<tr bgcolor="#E5E5E5">
<td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">อัพโหลดไฟล์เอกสาร</td>
<td bgcolor="#FFFFFF"> </td>
<td align="left" bgcolor="#FFFFFF"><input name="Filetex" type="file" id="Filetex" size="30" /></td>
</tr>
<tr bgcolor="#FFCC99">
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#FFCC99">
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"><input type="hidden" name="Teacher_code" value="<?php echo $rs2['Teacher_code'];?>" />
<input type="hidden" name="Research_code" value="<?php echo $rs['Research_code'];?>" />
<input type="hidden" name="Year_prop" value="<?php echo $Year_prop;?>" />
<input type="hidden" name="r_type" value="1" id="r_type" />
<input type="submit" name="Submit" value="แก้ไขข้อมูล" />
<input type="button" name="button" id="button" value=" ยกเลิก " onclick="window.history.back();" /></td>
</tr>
<tr bgcolor="#FFCC99">
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"> </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($result1);
/** Close the Database */
$dbObj->disconn();
/** Unset Class */
unset($dbObj);
?>
|