Viewing file: AddResearch_old.php (41.2 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;
//=== SESSION
$Username = $valid_user;
/** Config Table for This Page */
$myTable1 = "personal_tb";
$myTable2 = "research_tb";
$myTable3 =" researchtype_tb";
$myTable4 ="researchpublic_tb";
$myTable2PK = "Research_code";
/** Table --> personal_tb */
$query0 = " SELECT * FROM $myTable1 WHERE Username='$Username' ";
$result0 = $dbObj->execQuery($query0);
$rss = $dbObj->fetchArray($result0);
$Teacher_code = $rss['Teacher_code'];
} # 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>
</head>
<script language="javascript">
function checkData() {
var formObj = document.form1;
if( (formObj.Research_name.value == "" ) && (formObj.Budget_year.value == "" ) ) { alert("กรุณากรอกข้อมูลให้ครบด้วยค่ะ" ); formObj.Research_name.style.backgroundColor='#F1F9FC'; formObj.Budget_year.focus(); return false; }
else if(formObj.Research_name.value == "" ) { alert("กรุณากรอก ชื่อผลงานวิจัย"); formObj.Research_name.style.backgroundColor='#F1F9FC'; formObj.Research_name.focus(); return false;}
// if(formObj.importance.value == "" ) { alert("กรุณากรอก ความสำคัญและที่มาของปัญหา"); formObj.importance.style.backgroundColor='#F1F9FC'; formObj.importance.focus(); return false;}
else return true;
}
</script>
<script type="text/javascript" src="../js/nicEdit/nicEdit.js"></script>
<script type="text/javascript">
// bkLib.onDomLoaded(function() { nicEditors.allTextAreas() });
</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>
<form action="InsertResearch.php" method="post" enctype="multipart/form-data" name="form1" id="form1" 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>» <span class="NOTE">บันทึกผลงาน</span></strong></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 >
<td height="18" colspan="3" align="center"> </td>
</tr>
<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";
// echo "$rss4[collegeName] ";
?>
<input name="collegeCode" type="hidden" id="collegeCode" value="<? echo $rss4[collegeCode]?>" />
</font></td>
</tr>
<tr>
<td width="17%" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">ชื่อโครงการ <span class="TEXT-RED10">*</span></td>
<td width="1%" bgcolor="#FFFFFF"> </td>
<td width="82%" 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="<?=$_GET['Research_name'];?>" size="90" />
</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"><p>
<input name="Research_type" type="radio" value="1" checked/>
เป็นผลงานที่อยู่ในแผนส่งเสริมการนำเสนอผลงานวิชาการของวิทยาลัย
</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" 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="<?=$_GET['Branch'];?>" size="30" />
</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="89%" 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 width="5%" height="22" align="center" bgcolor="#FFFFFF"><input name="Research_char" type="radio" checked="checked" value="1" /> </td>
<td width="95%" align="left" bgcolor="#FFFFFF" class="PADDING-LEFT-5"></a>ด้านการเรียนการสอน</td>
</tr>
<?php
$sql = "Select * From $myTable3 Where ReTyId='2' ";
$result1 = mysql_query($sql) or die("Error".mysql_error());
$rs2 = mysql_fetch_array($result1);
?>
<tr bgcolor="<?=$bgColor;?>">
<td height="22" align="center" bgcolor="#FFFFFF"><input name="Research_char" type="radio" value="2" /></td>
<td align="left" bgcolor="#FFFFFF" class="PADDING-LEFT-5">ด้านคลินิค</a></td>
</tr>
<?php
$sql = "Select * From $myTable3 Where ReTyId='3' ";
$result1 = mysql_query($sql) or die("Error".mysql_error());
$rs3 = mysql_fetch_array($result1);
?>
<tr bgcolor="<?=$bgColor;?>">
<td height="22" align="center" bgcolor="#FFFFFF"><input name="Research_char" type="radio" value="3" /></td>
<td align="left" bgcolor="#FFFFFF" class="PADDING-LEFT-5">ด้านชุมชน</td>
</tr>
<?php
$sql = "Select * From $myTable3 Where ReTyId='4' ";
$result1 = mysql_query($sql) or die("Error".mysql_error());
$rs4= mysql_fetch_array($result1);
?>
<tr bgcolor="<?=$bgColor;?>">
<td height="22" align="center" bgcolor="#FFFFFF"><input name="Research_char" type="radio" value="4" /></td>
<td align="left" bgcolor="#FFFFFF" class="PADDING-LEFT-5">ด้านการส่งเสริสุขภาพ</td>
</tr>
<tr bgcolor="<?=$bgColor;?>">
<td height="22" align="center" bgcolor="#FFFFFF"><input name="Research_char" type="radio" value="5" /></td>
<td align="left" bgcolor="#FFFFFF" class="PADDING-LEFT-5">ด้านอื่นฯ ระบุ<font color="#0000FF" size="2" face="Tahoma"><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="<?=$_GET['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" 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">
<textarea name="importance" cols="95" rows="4" id="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 height="22" colspan="3" align="left" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"> วัตถุประสงค์ของโครงการ</td>
</tr>
<tr>
<td height="22" align="left" 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"></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 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"><textarea name="scope" cols="95" rows="4" id="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 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"><textarea name="receive" cols="95" rows="4" id="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 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"><textarea name="quality" cols="95" rows="4" id="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 height="22" colspan="3" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"> </td>
</tr>
<tr>
<td height="22" colspan="3" align="left" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"> ประเภทผลงาน<span class="TEXT-RED10"> *</span></td>
</tr>
<tr>
<td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"> </td>
<td bgcolor="#FFFFFF"> </td>
<td align="left" bgcolor="#FFFFFF"><table width="98%" 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 width="5%" height="22" align="center" bgcolor="#FFFFFF"><input name="ReTyId" type="radio" id="ReTyId1" title=" เลือกประเภทผลงาน <?php echo $rs1['ReTyId']; ?> " onclick="highlightRow(this);" value="1" checked /></td>
<td width="95%" align="left" bgcolor="#FFFFFF" class="PADDING-LEFT-5"><?php echo "$rs1[ReTyname] "; ?> </a></td>
</tr>
<?php
$sql = "Select * From $myTable3 Where ReTyId='2' ";
$result1 = mysql_query($sql) or die("Error".mysql_error());
$rs2 = mysql_fetch_array($result1);
?>
<tr bgcolor="<?=$bgColor;?>">
<td height="22" align="center" bgcolor="#FFFFFF"><input name="ReTyId" type="radio" id="ReTyId2" title=" เลือกประเภทผลงาน <?php echo $rs2['ReTyId']; ?> " onclick="highlightRow(this);" value="2" /></td>
<td align="left" bgcolor="#FFFFFF" class="PADDING-LEFT-5"><?php echo "$rs2[ReTyname] "; ?></a></td>
</tr>
<?php
$sql = "Select * From $myTable3 Where ReTyId='3' ";
$result1 = mysql_query($sql) or die("Error".mysql_error());
$rs3 = mysql_fetch_array($result1);
?>
<tr bgcolor="<?=$bgColor;?>">
<td height="22" align="center" bgcolor="#FFFFFF"><input name="ReTyId" type="radio" id="ReTyId3" title=" เลือกประเภทผลงาน <?php echo $rs3['ReTyId']; ?> " onclick="highlightRow(this);" value="3" /></td>
<td align="left" bgcolor="#FFFFFF" class="PADDING-LEFT-5"><?php echo "$rs3[ReTyname] ";?></td>
</tr>
<?php
$sql = "Select * From $myTable3 Where ReTyId='4' ";
$result1 = mysql_query($sql) or die("Error".mysql_error());
$rs4= mysql_fetch_array($result1);
?>
<tr bgcolor="<?=$bgColor;?>">
<td height="22" align="center" bgcolor="#FFFFFF"><input name="ReTyId" type="radio" id="ReTyId4" title=" เลือกประเภทผลงาน <?php echo $rs4['ReTyId']; ?> " onclick="highlightRow(this);" value="4" /></td>
<td align="left" bgcolor="#FFFFFF" class="PADDING-LEFT-5"><?php echo "$rs4[ReTyname] "; ?></td>
</tr>
<?php
$sql = "Select * From $myTable3 Where ReTyId='5' ";
$result1 = mysql_query($sql) or die("Error".mysql_error());
$rs5 = mysql_fetch_array($result1);
?>
<tr bgcolor="<?=$bgColor;?>">
<td height="22" align="center" bgcolor="#FFFFFF"><input name="ReTyId" type="radio" id="ReTyId5" title=" เลือกประเภทผลงาน <?php echo $rs5['ReTyId']; ?> " onclick="highlightRow(this);" value="5" /></td>
<td align="left" bgcolor="#FFFFFF" class="PADDING-LEFT-5"><?php echo "$rs5[ReTyname] "; ?></td>
</tr>
<?php
$sql = "Select * From $myTable3 Where ReTyId='6' ";
$result1 = mysql_query($sql) or die("Error".mysql_error());
$rs6 = mysql_fetch_array($result1);
?>
<tr bgcolor="<?=$bgColor;?>">
<td height="22" align="center" bgcolor="#FFFFFF"><input name="ReTyId" type="radio" id="ReTyId6" title=" เลือกประเภทผลงาน <?php echo $rs6['ReTyId']; ?> " onclick="highlightRow(this);" value="6" /></td>
<td align="left" bgcolor="#FFFFFF" class="PADDING-LEFT-5"><?php echo "$rs6[ReTyname] "; ?></td>
</tr>
<?php
$sql = "Select * From $myTable3 Where ReTyId='7' ";
$result1 = mysql_query($sql) or die("Error".mysql_error());
$rs7 = mysql_fetch_array($result1);
?>
<tr bgcolor="<?=$bgColor;?>">
<td height="22" align="center" bgcolor="#FFFFFF"><input name="ReTyId" type="radio" id="ReTyId7" title=" เลือกประเภทผลงาน <?php echo $rs7['ReTyId']; ?> " onclick="highlightRow(this);" value="7" /></td>
<td align="left" bgcolor="#FFFFFF" class="PADDING-LEFT-5"><?php echo "$rs7[ReTyname] "; ?></td>
</tr>
<?php
$sql = "Select * From $myTable3 Where ReTyId='8' ";
$result1 = mysql_query($sql) or die("Error".mysql_error());
$rs8 = mysql_fetch_array($result1);
?>
<tr bgcolor="<?=$bgColor;?>">
<td height="22" align="center" bgcolor="#FFFFFF"><input name="ReTyId" type="radio" id1="ReTyId8" title=" เลือกประเภทผลงาน <?php echo $rs8['ReTyId']; ?> " onclick="highlightRow(this);" value="8" /></td>
<td align="left" bgcolor="#FFFFFF" class="PADDING-LEFT-5"><?php echo "$rs8[ReTyname] "; ?></td>
</tr>
<?php
$sql = "Select * From $myTable3 Where ReTyId='9' ";
$result1 = mysql_query($sql) or die("Error".mysql_error());
$rs9 = mysql_fetch_array($result1);
?>
<tr bgcolor="<?=$bgColor;?>">
<td height="22" align="center" bgcolor="#FFFFFF"><input name="ReTyId" type="radio" id="ReTyId9" title=" เลือกประเภทผลงาน <?php echo $rs9['ReTyId']; ?> " onclick="highlightRow(this);" value="9" /></td>
<td align="left" bgcolor="#FFFFFF" class="PADDING-LEFT-5"><?php echo "$rs9[ReTyname] ";?></td>
</tr>
</table></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"><table width="98%" border="0" align="left" cellpadding="1" cellspacing="1" bgcolor="#FFFFFF" style="background-color:#eeeeee; border:0px solid gray">
<?php
$sql = "Select * From $myTable4 Where RePbId='1' ";
$result = mysql_query($sql) or die("Error".mysql_error());
$rs1= mysql_fetch_array($result);
?>
<tr bgcolor="<?=$bgColor;?>">
<td width="5%" height="22" align="center" bgcolor="#FFFFFF"><input name="RePbId1" type="checkbox" id2="RePbId1" title=" เลือกการเผยแพร่ <?php echo $rs1['RePbId']; ?> " value="1" onclick="checkAssign1(this,form1.AreaRePbId1)" /></td>
<td width="95%" align="left" bgcolor="#FFFFFF" class="PADDING-LEFT-5"><?php echo "$rs1[RePbname] ";?> </a> ระบุสถานที่
<input name="AreaRePbId1" type="text" id="AreaRePbId1" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="30" disabled="disabled" />
</font></td>
</tr>
<?php
$sql = "Select * From $myTable4 Where RePbId='2' ";
$result = mysql_query($sql) or die("Error".mysql_error());
$rs2= mysql_fetch_array($result);
?>
<tr bgcolor="<?=$bgColor;?>">
<td height="22" align="center" bgcolor="#FFFFFF"><input name="RePbId2" type="checkbox" id2="RePbId2" title=" เลือกการเผยแพร่ <?php echo $rs2['RePbId']; ?> " value="2" onclick="checkAssign1(this,form1.AreaRePbId2)" /></td>
<td align="left" bgcolor="#FFFFFF" class="PADDING-LEFT-5"><?php echo "$rs2[RePbname] "; ?> </a> ระบุสถานที่
<input name="AreaRePbId2" type="text" id="AreaRePbId2" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="30" disabled="disabled" /></td>
</tr>
<?php
$sql = "Select * From $myTable4 Where RePbId='3' ";
$result = mysql_query($sql) or die("Error".mysql_error());
$rs4= mysql_fetch_array($result);
?>
<?php
$sql = "Select * From $myTable4 Where RePbId='3' ";
$result = mysql_query($sql) or die("Error".mysql_error());
$rs3= mysql_fetch_array($result);
?>
<tr bgcolor="<?=$bgColor;?>">
<td height="22" align="center" bgcolor="#FFFFFF"><input name="RePbId3" type="checkbox" id2="RePbId3" title=" เลือกการเผยแพร่ <?php echo $rs3['RePbId']; ?> " value="3" onclick="checkAssign1(this,form1.AreaRePbId3)" /></td>
<td align="left" bgcolor="#FFFFFF" class="PADDING-LEFT-5"><?php echo "$rs3[RePbname] "; ?> </a> ระบุสถานที่
<input name="AreaRePbId3" type="text" id="AreaRePbId3" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="30" disabled="disabled" /> </td>
</tr>
<?php
$sql = "Select * From $myTable4 Where RePbId='4' ";
$result = mysql_query($sql) or die("Error".mysql_error());
$rs4= mysql_fetch_array($result);
?>
<tr bgcolor="<?=$bgColor;?>">
<td height="22" align="center" bgcolor="#FFFFFF"><input name="RePbId4" type="checkbox" id2="RePbId4" title=" เลือกการเผยแพร่ <?php echo $rs4['RePbId']; ?> " value="4" onclick="checkAssign1(this,form1.AreaRePbId4)" /></td>
<td align="left" bgcolor="#FFFFFF" class="PADDING-LEFT-5"><?php echo "$rs4[RePbname] ";?> </a> ระบุสถานที่
<input name="AreaRePbId4" type="text" id="AreaRePbId4" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="30" disabled="disabled" /></td>
</tr>
<?php
$sql = "Select * From $myTable4 Where RePbId='5' ";
$result = mysql_query($sql) or die("Error".mysql_error());
$rs5= mysql_fetch_array($result);
?>
<tr bgcolor="<?=$bgColor;?>">
<td height="22" align="center" bgcolor="#FFFFFF"><input name="RePbId5" type="checkbox" id2="RePbId5" title=" เลือกการเผยแพร่ <?php echo $rs5['RePbId']; ?> " value="5" onclick="checkAssign1(this,form1.AreaRePbId5)" /></td>
<td align="left" bgcolor="#FFFFFF" class="PADDING-LEFT-5"><?php echo "$rs2[RePbname] "; ?> </a> ระบุสถานที่
<input name="AreaRePbId5" type="text" id="AreaRePbId5" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="30" disabled="disabled" /></td>
</tr>
<?php
$sql = "Select * From $myTable4 Where RePbId='6' ";
$result = mysql_query($sql) or die("Error".mysql_error());
$rs6= mysql_fetch_array($result);
?>
<tr bgcolor="<?=$bgColor;?>">
<td height="22" align="center" bgcolor="#FFFFFF"><input name="RePbId6" type="checkbox" id2="RePbId6" title=" เลือกการเผยแพร่ <?php echo $rs6['RePbId']; ?> " value="6" /></td>
<td align="left" bgcolor="#FFFFFF" class="PADDING-LEFT-5"><?php echo "$rs6[RePbname] "; ?></td>
</tr>
<?php
$sql = "Select * From $myTable4 Where RePbId='7' ";
$result = mysql_query($sql) or die("Error".mysql_error());
$rs7= mysql_fetch_array($result);
?>
<tr bgcolor="<?=$bgColor;?>">
<td height="22" align="center" bgcolor="#FFFFFF"><input name="RePbId7" type="checkbox" id2="RePbId7" title=" เลือกการเผยแพร่ <?php echo $rs7['RePbId']; ?> " value="7" /></td>
<td align="left" bgcolor="#FFFFFF" class="PADDING-LEFT-5">
<?php echo "$rs7[RePbname] "; ?></td>
</tr>
<?php
$sql = "Select * From $myTable4 Where RePbId='8' ";
$result = mysql_query($sql) or die("Error".mysql_error());
$rs8= mysql_fetch_array($result);
?>
<tr bgcolor="<?=$bgColor;?>">
<td height="22" align="center" bgcolor="#FFFFFF"><input name="RePbId8" type="checkbox" id2="RePbId8" title=" เลือกการเผยแพร่ <?php echo $rs8['RePbId']; ?> " value="8" /></td>
<td align="left" bgcolor="#FFFFFF" class="PADDING-LEFT-5"><?php echo "$rs8[RePbname] ";?></td>
</tr>
<!-- <?php
$sql = "Select * From $myTable4 Where RePbId='9' ";
$result = mysql_query($sql) or die("Error".mysql_error());
$rs9= mysql_fetch_array($result);
?>
<tr bgcolor="<?=$bgColor;?>">
<td height="22" align="center" bgcolor="#FFFFFF"><input name="RePbId9" type="checkbox" id2="RePbId8" title=" เลือกการเผยแพร่ <?php echo $rs9['RePbId']; ?> " onclick="highlightRow(this);" value="8" /></td>
<td align="left" bgcolor="#FFFFFF" class="PADDING-LEFT-5"><?php
echo "$rs9[RePbname] ";
?></td>
</tr>
<?php
$sql = "Select * From $myTable4 Where RePbId='10' ";
$result = mysql_query($sql) or die("Error".mysql_error());
$rs10= mysql_fetch_array($result);
?>
<tr bgcolor="<?=$bgColor;?>">
<td height="22" align="center" bgcolor="#FFFFFF"><input name="RePbId10" type="checkbox" id2="RePbId8" title=" เลือกการเผยแพร่ <?php echo $rs10['RePbId']; ?> "onclick="checkAssign1(this,form1.AreaRePbId10)" value="8" /></td>
<td align="left" bgcolor="#FFFFFF" class="PADDING-LEFT-5"><?php
echo "$rs10[RePbname] ";
?>
ระบุสถานที่
<input name="AreaRePbId10" type="text" id="AreaRePbId10" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="30" disabled="disabled" /></td>
</tr>
<?php
$sql = "Select * From $myTable4 Where RePbId='11' ";
$result = mysql_query($sql) or die("Error".mysql_error());
$rs11= mysql_fetch_array($result);
?>
<tr bgcolor="<?=$bgColor;?>">
<td height="22" align="center" bgcolor="#FFFFFF"><input name="RePbId11" type="checkbox" id2="RePbId8" title=" เลือกการเผยแพร่ <?php echo $rs11['RePbId']; ?> " onclick="highlightRow(this);" value="8" /></td>
<td align="left" bgcolor="#FFFFFF" class="PADDING-LEFT-5"><?php
echo "$rs11[RePbname] ";
?></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 colspan="3" align="left" valign="top" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"> บทคัดย่อ</td>
</tr>
<tr>
<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="95" rows="4" id="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 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="20" />
<I>เอกสาร Abstract</I>
</td>
</tr>
<tr>
<td height="18" 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">วัน/เดือน/ปี ที่เผยแพร่ </a></td>
<td bgcolor="#FFFFFF">:</td>
<td align="left" bgcolor="#FFFFFF">
<script>DateInput('mDate3', true,'DD/MM/YYYY','<?=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">
<input name="fiscal_year_finish" type="text" id="fiscal_year_finish" size="5" maxlength="4"/>
</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="5" maxlength="4"/>
</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="5" maxlength="4"/>
</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','<?=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','<?=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"><table width="98%" border="0" cellspacing="1" cellpadding="1">
<tr>
<td width="18%" align="left"><input name="Fund_resourceIn" type="checkbox" id="Fund_resourceIn" value="ภายใน" <?php if( $_GET['Fund_resourceIn'] == "ภายใน" ) echo 'checked'; ?> onclick="checkAssign1(this,form1.FundIn)" />
ภายใน</td>
<td width="82%" align="left">จำนวนเงิน
<input name="FundIn" type="text" class="input" id="FundIn" value="<?=$_GET['FundIn'];?>" size="10" style="text-align:right; padding-right:5px" onkeypress="checkNumeric()" disabled="disabled" />
บาท</td>
</tr>
<tr>
<td align="left"><input name="Fund_resourceOut" type="checkbox" id="Fund_resourceOut" 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="<?=$_GET['FundOut'];?>" style="text-align:right; padding-right:5px" onkeypress="checkNumeric()" disabled="disabled" />
บาท ระบุ<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'];?>" />
</font></td>
</tr>
</table></td>
</tr>
<tr>
<td align="right" valign="top" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"> </td>
<td bgcolor="#FFFFFF"> </td>
<td align="left" bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td align="right" valign="top" 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"> </td>
</tr>
<tr >
<td height="25" bgcolor="#FFFFFF"> </td>
<td height="25" bgcolor="#FFFFFF"> </td>
<td height="25" align="center" bgcolor="#FFFFFF">
<input type="hidden" name="Teacher_code" value="<?php echo $rss['Teacher_code']; ?>" />
<input type="hidden" name="r_type" value="1" id="r_type" />
<input name="Submit" type="Submit" class="WIDTH60 CURSOR-HAND" id="Submit" 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);
?>
|