Viewing file: FrmResearch.php (32.75 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";
$myTable2PK = "ResearchId";
/** 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);
$sql = " SELECT * FROM $myTable7 WHERE Research_code='$Research_code' ";
$result5 = mysql_query($sql) or die("Error".mysql_error());
$rs5= mysql_fetch_array($result5);
/** โฟลเดอร์ไฟล์เอกสาร */
$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>
<script language="javascript" src="../js/calendarDateInput2.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()
{
myForm.Filetex.src = myForm.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>
<form action="EditResearch.php?Research_code=<?=$Research_code;?>" method="post" enctype="multipart/form-data" name="myForm" id="myForm" onsubmit="return checkData();">
<table width="772" border="0" cellspacing="0" cellpadding="0">
<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="ResDetail.php?Research_code=<?=$Research_code;?>&Year_prop=<?=$Year_prop;?>">ข้อมูลผลงาน</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> » <span class="NOTE">แก้ไขข้อมูลผลงาน</span></strong></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td align="left"><span style="padding-bottom:5px">
<!-- <input type="button" name="button2" id="button" value="บันทึการดำเนินการงานวิจัย" style="color:darkgreen; width:150px; cursor:hand" onclick="location.href='AddSuccess.php?Research_code=<?=$Research_code;?>'" /> -->
<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></span></td>
</tr>
<tr>
<td align="center"> </td>
</tr>
<tr>
<td align="center"><table width="749" border="0" cellpadding="1" cellspacing="1" bgcolor="#E5E5E5" class="BORDER-GREY-LIGHT">
<tr bordercolor="#CCCCCC" bgcolor="#ECF5FF">
<td height="100%" align="right" nowrap="nowrap" bordercolor="#CCCCCC" bgcolor="#FFFFFF" class="style14"><font color="#000066" face="Tahoma">หน่วยงาน</font></td>
<td bordercolor="#CCCCCC" bgcolor="#FFFFFF" class="style14">:</td>
<td nowrap="nowrap" bordercolor="#CCCCCC" bgcolor="#FFFFFF" class="style14"><?php
$sql = "Select * From college Where collegeStatus='1' ";
$result2 = mysql_query($sql) or die("Error".mysql_error());
$rss4 = mysql_fetch_array($result2);
echo"<option value=\"$rss4[collegeCode]\" >$rss4[collegeName]</option>\n";
?>
<input name="collegeCode" type="hidden" id="collegeCode" value="<? echo $rss4[collegeCode]?>" /></td>
</tr>
<tr>
<td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">ประเภทผลงาน</td>
<td bgcolor="#FFFFFF">:</td>
<td align="left" bgcolor="#FFFFFF">
<select name="ReTyId" id="ReTyId" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" >
<?php
$strSQL = " SELECT * FROM $myTable3 " ; //Where (ReTyId='1' or ReTyId='11' or ReTyId='12' Or ReTyId='13') ";
$result4 = mysql_query($strSQL);
while( $rs4 = mysql_fetch_array($result4) ) {
?>
<option value="<?=$rs4['ReTyId'];?>" <?php if( $rs4['ReTyId']==$rs5['ReTyId'] ) echo 'selected'; ?>>
<?=$rs4['ReTyname'];?>
</option>
<?php
} # while
?>
</select>
</a></td>
</tr>
<tr>
<td width="19%" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">ชื่อผลงาน </td>
<td width="1%" bgcolor="#FFFFFF">:</td>
<td width="80%" align="left" 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 $rss1['Research_name']; ?>" size="95" />
</font></td>
</tr>
<tr>
<td height="22" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"> </td>
<td bgcolor="#FFFFFF"> </td>
<td align="left" 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 bgcolor="#FFFFFF"> </td>
<td align="left" 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"><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 $rss1['Branch'] ; ?>" size="45" />
</font></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 height="22" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"> </td>
<td bgcolor="#FFFFFF"> </td>
<td align="left" bgcolor="#FFFFFF"><table width="88%" border="0" align="left" cellpadding="1" cellspacing="1" bgcolor="#FFFFFF" style="background-color:#eeeeee; border:0px solid gray">
<tr bgcolor="<?=$bgColor;?>">
<td width="48%" height="22" align="left" bgcolor="#FFFFFF"><input name="Research_char" type="radio" <?php if (!(strcmp("$rss1[Research_char]","1"))) {echo "checked";} ?> value="1" />
ด้านการเรียนการสอน</td>
<td width="52%" align="left" bgcolor="#FFFFFF" class="PADDING-LEFT-5"><input name="Research_char" type="radio" <?php if (!(strcmp("$rss1[Research_char]","4"))) {echo "checked";} ?> value="4" />
ด้านการส่งเสริสุขภาพ</td>
</tr>
<tr bgcolor="<?=$bgColor;?>">
<td height="22" align="left" bgcolor="#FFFFFF"><input name="Research_char" type="radio" <?php if (!(strcmp("$rss1[Research_char]","2"))) {echo "checked";} ?> value="2" />
ด้านคลินิค</td>
<td align="left" bgcolor="#FFFFFF" class="PADDING-LEFT-5"><input name="Research_char" type="radio" <?php if (!(strcmp("$rss1[Research_char]","6"))) {echo "checked";} ?> value="6" />
ด้านวิจัยองค์กร</td>
</tr>
<tr bgcolor="<?=$bgColor;?>">
<td height="22" align="left" bgcolor="#FFFFFF"><input name="Research_char" type="radio" <?php if (!(strcmp("$rss1[Research_char]","3"))) {echo "checked";} ?> value="3" />
ด้านชุมชน</td>
<td align="left" bgcolor="#FFFFFF" class="PADDING-LEFT-5"><input name="Research_char" type="radio" <?php if (!(strcmp("$rss1[Research_char]","7"))) {echo "checked";} ?> value="7" />
ด้านติดตามบัณฑิต</td>
</tr>
<tr bgcolor="<?=$bgColor;?>">
<td height="22" colspan="2" align="left" bgcolor="#FFFFFF"><input name="Research_char" type="radio" <?php if (!(strcmp("$rss1[Research_char]","5"))) {echo "checked";} ?> value="5" />
ด้านอื่นฯ ระบุ
<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 $rss1['Research_char_else'];?>" size="35" />
</font></font></td>
</tr>
<?php
$sql = "Select * From $myTable3 Where ReTyId='5' ";
$result1 = mysql_query($sql) or die("Error".mysql_error());
$rs5 = mysql_fetch_array($result1);
?>
<?php
$sql = "Select * From $myTable3 Where ReTyId='6' ";
$result1 = mysql_query($sql) or die("Error".mysql_error());
$rs6 = mysql_fetch_array($result1);
?>
<?php
$sql = "Select * From $myTable3 Where ReTyId='7' ";
$result1 = mysql_query($sql) or die("Error".mysql_error());
$rs7 = mysql_fetch_array($result1);
?>
<?php
$sql = "Select * From $myTable3 Where ReTyId='8' ";
$result1 = mysql_query($sql) or die("Error".mysql_error());
$rs8 = mysql_fetch_array($result1);
?>
<?php
$sql = "Select * From $myTable3 Where ReTyId='9' ";
$result1 = mysql_query($sql) or die("Error".mysql_error());
$rs9 = mysql_fetch_array($result1);
?>
</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"> </td>
</tr>
<tr>
<td height="22" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"> </td>
<td bgcolor="#FFFFFF"> </td>
<td align="left" bgcolor="#FFFFFF"><table width="88%" border="0" align="left" cellpadding="1" cellspacing="1" bgcolor="#FFFFFF" style="background-color:#eeeeee; border:0px solid gray">
<?php
$query = " SELECT * FROM $myTable3 ";
$result2 = $dbObj->execQuery($query);
$numrows = $dbObj->_numrows;
$collegeCode = $rs->collegeCode;
?>
<?php
$sql = "Select * From $myTable3 Where ReTyId='1' ";
$result1 = mysql_query($sql) or die("Error".mysql_error());
$rs1 = mysql_fetch_array($result1);
?>
<tr bgcolor="<?=$bgColor;?>">
<td height="22" align="left" bgcolor="#FFFFFF"><input name="ReFormId" type="radio" <?php if (!(strcmp("$rss1[ReFormId]","1"))) {echo "checked";} ?> value="1" />
การวิจัยเชิงคุณภาพ</td>
<td width="52%" align="left" bgcolor="#FFFFFF" class="PADDING-LEFT-5"><input name="ReFormId" type="radio" <?php if (!(strcmp("$rss1[ReFormId]","4"))) {echo "checked";} ?> value="4" />
การวิจัยเชิงกึ่งทดลอง</td>
</tr>
<tr bgcolor="<?=$bgColor;?>">
<td height="22" align="left" bgcolor="#FFFFFF"><input name="ReFormId" type="radio" <?php if (!(strcmp("$rss1[ReFormId]","2"))) {echo "checked";} ?> value="2" />
การวิจัยเชิงพรรณา</td>
<td align="left" bgcolor="#FFFFFF" class="PADDING-LEFT-5"><input name="ReFormId" type="radio" <?php if (!(strcmp("$rss1[ReFormId]","5"))) {echo "checked";} ?> value="5" /> การวิจัยและพัฒนา</td>
</tr>
<tr bgcolor="<?=$bgColor;?>">
<td height="22" align="left" bgcolor="#FFFFFF"><input name="ReFormId" type="radio" <?php if (!(strcmp("$rss1[ReFormId]","3"))) {echo "checked";} ?> value="3" /> การวิจัยเชิงทดลอง</td>
<td align="left" bgcolor="#FFFFFF" class="PADDING-LEFT-5"><input name="ReFormId" type="radio" <?php if (!(strcmp("$rss1[ReFormId]","6"))) {echo "checked";} ?> value="6" /> การวิจัยเชิงปฏิบัติการ</td>
</tr>
<tr bgcolor="<?=$bgColor;?>">
<td height="22" colspan="2" align="left" bgcolor="#FFFFFF"><input name="ReFormId" type="radio" <?php if (!(strcmp("$rss1[ReFormId]","7"))) {echo "checked";} ?> value="7" /> อื่นๆ ระบุ
<input name="Research_Form_else" type="text" id="Research_Form_else" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rss1['Research_Form_else'];?>" size="35" />
</td>
</tr>
</table></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"><textarea name="importance" cols="95" rows="4" id="importance"><?=htmlspecialchars_decode( $rss2['importance'] ) ;?></textarea>
<script>QBPATH='../editor'; VISUAL=1; SECURE=0;</script>
<script src='../editor/quickB.js'></script>
<script src='../editor/tabedit.js'></script>
</td>
</tr>
<tr >
<td 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"><textarea name="objective" cols="95" rows="4" id="objective"><?=htmlspecialchars_decode( $rss2['objective'] ) ;?>
</textarea><script>QBPATH='../editor'; VISUAL=1; SECURE=0;</script>
<script src='../editor/quickB.js'></script>
<script src='../editor/tabedit.js'></script></td>
</tr>
<tr >
<td 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"><textarea name="scope" cols="95" rows="4" id="scope"><?=htmlspecialchars_decode( $rss2['scope'] ) ;?>
</textarea><script>QBPATH='../editor'; VISUAL=1; SECURE=0;</script>
<script src='../editor/quickB.js'></script>
<script src='../editor/tabedit.js'></script></td>
</tr>
<tr >
<td 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"><textarea name="receive" cols="95" rows="4" id="receive"><?=htmlspecialchars_decode( $rss2['receive']) ;?>
</textarea><script>QBPATH='../editor'; VISUAL=1; SECURE=0;</script>
<script src='../editor/quickB.js'></script>
<script src='../editor/tabedit.js'></script></td>
</tr>
<tr >
<td colspan="3" align="left" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"> นำไปใช้ในการพัฒนาคุณภาพการศึกษา</td>
</tr>
<tr >
<td align="left" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"> </td>
<td bgcolor="#FFFFFF"> </td>
<td align="left" bgcolor="#FFFFFF"><textarea name="quality" cols="95" rows="4" id="quality"><?=htmlspecialchars_decode( $rss2['quality']) ;?>
</textarea><script>QBPATH='../editor'; VISUAL=1; SECURE=0;</script>
<script src='../editor/quickB.js'></script>
<script src='../editor/tabedit.js'></script></td>
</tr>
<tr >
<td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"> บทคัดย่อ</td>
<td bgcolor="#FFFFFF"> </td>
<td align="left" bgcolor="#FFFFFF"> </td>
</tr>
<tr >
<td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"> </td>
<td bgcolor="#FFFFFF"> </td>
<td align="left" bgcolor="#FFFFFF"><textarea name="abbStract" cols="95" rows="4" id="abbStract"><?=htmlspecialchars_decode( $rss2['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 >
<td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"> </td>
<td bgcolor="#FFFFFF"> </td>
<td align="left" bgcolor="#FFFFFF"> </td>
</tr>
<tr >
<td colspan="3" align="left" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">อัพโหลดไฟล์เอกสาร :
<input name="Filetex" type="file" id="Filetex" size="25" />
<I>เอกสาร Abstract</I> </td>
</tr>
<tr>
<td colspan="3" align="left" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"> </td>
</tr>
<tr>
<td colspan="3" align="left" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">อ้างจากแผนปฏิบัติการ:
<label>
<?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);
*/
?>
<input name="Orderlist" type="text" id="Orderlist" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rs4['Orderlist'];?>" size="6" readonly="readonly" />
</label>
<input name="Project_plan" type="text" id="Project_plan" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rs4['Project_plan'];?>" size="85" readonly="readonly" />
<a href="javascript:;" onclick="MM_openBrWindow('ProjectByYearShow.php','Detail','scrollbars=yes,width=820,height=280')"><img src="../picture/search_ico.gif" alt="เลือกโครงการ" width="16" height="16" border="0" align="absmiddle" /></a>
<input name="proId" type="hidden" id="proId" value="<?=$rs4['proId'];?>" />
<input name="Budget_Year" type="hidden" id="Budget_Year" value="<?=$rs['Budget_Year'];?>" />
<input name="AcademicYear" type="hidden" id="AcademicYear" value="<?=$rs['AcademicYear'];?>" /></td>
</tr>
<tr bgcolor="#F8F8F8">
<td height="16" colspan="3" align="left" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"> บูรณาการกับรายวิชา:
<?php
/*
$dbObj->RegDBConn();
$strSQL33 = " SELECT * FROM Course WHERE courseId='$rs[courseId]' ";
$result33 = mysql_query($strSQL33);
$rs33 = mysql_fetch_array($result33);
$dbObj->DBConn();
*/
?>
<input name="courseCode" type="text" class="input1"style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rs33['courseCode'];?>" size="7" readonly="readonly" />
<input name="courseName" type="text" class="input1" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rs33['courseName'];?>" size="48" readonly="readonly" />
<input name="courseUnit" type="text" class="input1" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rs33['courseUnit'];?>" size="7" readonly="readonly" />
<a href="javascript:;" onclick="NewWindow('ShowTechCose.php','courseInClassTable','860','350','yes')"><img src="../images/icons/search.gif" width="15" height="19" border="0" align="absmiddle" /></a><span class="TEXT-RED10"><sup>*</sup><span class="TEXT-ORANGE9"><-- คลิ๊กที่นี่
<input name="courseId" type="hidden" value="<?=$rs['courseId'];?>" />
<input type="hidden" name="conditionId" />
</span></span></td>
</tr>
<tr>
<td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"> </td>
<td bgcolor="#FFFFFF"> </td>
<? $sql = " SELECT * FROM research_success_tb WHERE Research_code ='$Research_code' ";
$result4 = mysql_query($sql) or die("Error".mysql_error());
$rs4= mysql_fetch_array($result4);
?>
<td align="left" bgcolor="#FFFFFF"><label>
<input name="outreacId" type="checkbox" id="outreacId"<?php if (!strcmp("$rs4[outreacId]","Y") ) {echo "checked";} ?> value="Y" />
</label>
บูรณาการกับโครงการบริการวิชาการ</td>
</tr>
<tr>
<td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"> </td>
<td bgcolor="#FFFFFF"> </td>
<td align="left" bgcolor="#FFFFFF"><input name="outSouse" type="checkbox" id="outSouse"<?php if (!strcmp("$rs4[outSouse]","Y") ) {echo "checked";} ?> value="Y" />
ความร่วมมืองานวิจัยกับบุคคลภายนอก </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="fiscal_year_finish" type="text" id="fiscal_year_finish" size="4" maxlength="4" value="<?=(isset($rss1['fiscal_year_finish']))?$rss1['fiscal_year_finish']:"";?>"/></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="academic_year_finish" type="text" id="academic_year_finish" size="4" maxlength="4" value="<?=(isset($rss1['academic_year_finish']))?$rss1['academic_year_finish']:"";?>"/>
</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="Year_prop" type="text" id="Year_prop" size="4" maxlength="4" value="<?=(isset($rss1['Year_prop']))?$rss1['Year_prop']:"";?>"/>
</td>
</tr>
<tr>
<td height="24" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">วันที่เริ่ม</td>
<td bgcolor="#FFFFFF">:</td>
<td align="left" bgcolor="#FFFFFF">
<script>DateInput('mDate', true,'DD/MM/YYYY','<?=(isset($rss1["Year_start"]))?ymdT2dmyE($rss1["Year_start"]):date("d/m/Y");?>');</script>
</td>
</tr>
<tr>
<td height="24" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">วันที่แล้วเสร็จ</td>
<td bgcolor="#FFFFFF">:</td>
<td align="left" bgcolor="#FFFFFF"><script>DateInput('mDate2', true,'DD/MM/YYYY','<?=(isset($rss1["Year_finish"]))?ymdT2dmyE($rss1["Year_finish"]):date("d/m/Y");?>');</script></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 href="AddAccType.php">
<select name="ResearchDI" id="ResearchDI" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" >
<?php
$strSQL = " SELECT * FROM research_source_tb ";
$result6 = mysql_query($strSQL);
while( $rs6 = mysql_fetch_array($result6) ) {
?>
<option value="<?=$rs6['ResearchDI'];?>" <?php if( $rs6['ResearchDI']==$rss1['ResearchDI'] ) echo 'selected'; ?>>
<?=$rs6['ResearchDetail'];?>
</option>
<?php
} # while
?>
</select>
</a></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="21%" 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="79%" align="left">จำนวนเงิน
<input name="FundIn" type="text" class="input" id="FundIn" value="<? echo $rss1['FundIn'];?>" size="10" style="text-align:right; padding-right:5px" onkeypress="checkNumeric()" />
บาท</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="FundOut" type="text" class="input" id="FundOut" size="10" value="<? echo $rss1['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="<? echo $rss1['Resource_des'];?>" size="30" />
</font></td>
</tr>
<tr>
<td align="left"><span class="TEXT-DARK-BLUE10"> รวมจำนวนเงินทุน</span></td>
<td align="left"><input name="Fund" id="Fund" type="text" size="10" style="text-align:right; padding-right:5px" value="<? echo $rss1['FundUse'];?>" onkeypress="checkNumeric()" disabled= "disabled"/>
บาท</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"> </td>
</tr>
<tr >
<td height="25" bgcolor="#FFFFFF"> </td>
<td height="25" bgcolor="#FFFFFF"> </td>
<td height="25" align="center" bgcolor="#FFFFFF"><input name="Research_code" type="hidden" id="Research_code" value="<?php echo $rss1['Research_code']; ?>" />
<input type="hidden" name="r_type" value="1" id="r_type" />
<input name="action" type="submit" class="WIDTH60 CURSOR-HAND" id="action" onclick="return confirmSubmit(this.form);" value="บันทึก" />
<input name="Reset" type="reset" class="WIDTH60 CURSOR-HAND" id="Reset" value="รีเซ็ต" />
<input name="Button" type="button" id="Reset" value="ยกเลิก" class="CURSOR-HAND WIDTH60" onclick="location.href='ResearchByYear.php?Teacher_code<?=$Teacher_code;?>'" /></td>
</tr>
<tr >
<td height="18" bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"> </td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</form>
</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);
?>
|