Viewing file: FrmEditCommittee.php (13.13 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 = "committee_tb";
$myTable2PK = "code";
/** Table --> personal_tb */
$query1 = " SELECT *, prefixName as First_name FROM personal_tb LEFT JOIN prefix ON personal_tb.First_name = prefix.prefixId WHERE Username='$Username' ";
$result1 = $dbObj->execQuery($query1);
$rss = $dbObj->fetchArray($result1);
$Teacher_code = $rss['Teacher_code'];
/** Table --> training_tb */
$query = " SELECT * FROM $myTable2 WHERE $myTable2PK='$code' ";
$result = $dbObj->execQuery($query);
$rs = $dbObj->fetchArray($result);
} # 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">
function checkData() {
var formObj = document.myForm;
if( ( formObj.Title.value == "" ) && ( formObj.Year_com.value == "" ) ) { alert("กรุณากรอกข้อมูลให้ครบด้วยค่ะ" ); formObj.Title.style.backgroundColor='#F1F9FC'; formObj.Title.focus(); return false; }
else if( formObj.Title.value == "" ) { alert("กรุณากรอก เรื่อง"); formObj.Title.style.backgroundColor='#F1F9FC'; formObj.Title.focus(); return false; }
else if( formObj.Year_com.value == "" ) { alert("กรุณากรอก ปี พ.ศ."); formObj.Year_com.style.backgroundColor='#F1F9FC'; formObj.Year_com.focus(); return false; }
else return true ;
}
</script>
<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" src="../js/utilities.js"></script>
<title>ข้อมูลทั่วไปบุคลากร - ข้อมูลการบริการวิชาการฒนาบุคลากร -</title>
<style type="text/css">
<!--
.style1 {font-size: 14px}
.style2 { font-size: 14px;
font-family: Tahoma;
}
.style3 {font-size: 14}
.style4 {font-size: 16px}
.style5 {font-family: Tahoma}
-->
</style>
</head>
<body topmargin="0" rightmargin="0" bottommargin="0" leftmargin="0">
<?php
include("../templates/incHeader.php");
?>
<table width="1003" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="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 id="myForm" name="myForm" method="post" enctype="multipart/form-data" action="EditCommittee.php" onSubmit="return checkData();">
<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?Teacher_code=<?=$Teacher_code;?>">ข้อมูลทั่วไปบุคลากร</a> » <a href="CommitteeMe.php?Teacher_code=<?=$Teacher_code;?>">ข้อมูลการบริการวิชาการ</a> » <span class="NOTE">เพิ่มข้อมูลการบริการวิชาการ</span></strong></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td height="150" align="center"><table width="87%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr bgcolor="#DFEBF9">
<td height="24" colspan="3" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#EEEEEE">
<td width="17%" height="26" align="right" bgcolor="#FFFFFF" class="style19"><span class="TEXT-DARK-BLUE10">ชื่อ-นามสกุล</span></td>
<td width="1%" bgcolor="#FFFFFF" class="style19 style5 style1"> </td>
<td width="82%" bgcolor="#FFFFFF" class="style19"><span class="style19 style5 style1"> <font color="#006633"><font color="#003366"> <? echo $rss[First_name] ;?></font> <font color="#003366"><font color="#006633"><font color="#003366"><? echo $rss[Teacher_name] ;?></font></font> <? echo $rss[Teacher_lastname] ;?></font></font></span></td>
</tr>
<tr bgcolor="#EEEEEE">
<td height="26" align="right" bgcolor="#FFFFFF" class="style19"><span class="TEXT-DARK-BLUE10">เรื่อง</span></td>
<td bgcolor="#FFFFFF" class="style19"><span class="style2"><font color="#FF0000">*</font></span></td>
<td bgcolor="#FFFFFF" class="style19"><font color="#0000FF" size="2" face="Tahoma">
<input name="Title" type="text" id="Title" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rs['Title'];?>" size="90" />
</font></td>
</tr>
<tr bgcolor="#EEEEEE">
<td height="26" align="right" bgcolor="#FFFFFF" class="style19"><span class="TEXT-DARK-BLUE10">พ.ศ</span></td>
<td bgcolor="#FFFFFF" class="style19"><span class="style2"><font color="#FF0000">*</font></span></td>
<td bgcolor="#FFFFFF" class="style19"><input name="Year_com" type="text" id="Year_com" value="<?=$rs['Year_com'];?>" size="4" maxlength="4" /></td>
</tr>
<tr >
<td height="26" align="right" class="style19"> </td>
<td class="style19 style3"> </td>
<td bgcolor="#FFFFFF" class="style19"><table width="84%" border="0" align="left" cellpadding="1" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td height="16" colspan="2" align="left" class="style19 style5 style1"><span class="TEXT-DARK-BLUE10"><font color="#FF0000">*</font> แยกประเภท ตาม สมศ</span></td>
</tr>
<tr>
<td width="34%" height="16" class="style19 style5 style1"><span class="TEXT-DARK-BLUE10">กรรมการวิชาการ</span></td>
<td width="66%" class="style19 style5 style1"><input type="radio" name="Edu" <?php if (!(strcmp("$rs[Edu]","Y"))) {echo "checked";} ?> value="Y" />
เป็น
<input type="radio" name="Edu" <?php if (!(strcmp("$rs[Edu]","N"))) {echo "checked";} ?> value="N" />
ไม่ได้เป็น </td>
</tr>
<tr>
<td class="style19 style5 style1"><span class="TEXT-DARK-BLUE10">กรรมการวิชาชีพ</span></td>
<td class="style19 style5 style1"><input type="radio" name="Edu_job" <?php if (!(strcmp("$rs[Edu_job]","Y"))) {echo "checked";} ?> value="Y" />
เป็น
<input type="radio" name="Edu_job" <?php if (!(strcmp("$rs[Edu_job]","N"))) {echo "checked";} ?> value="N" />
ไม่ได้เป็น </td>
</tr>
<tr>
<td class="style19 style5 style1"><span class="TEXT-DARK-BLUE10">กรรมการวิทยานิพนธ์</span></td>
<td class="style19 style5 style1"><input type="radio" name="Tsis" <?php if (!(strcmp("$rs[Tsis]","Y"))) {echo "checked";} ?> value="Y" />
เป็น
<input type="radio" name="Tsis" <?php if (!(strcmp("$rs[Tsis]","N"))) {echo "checked";} ?> value="N" />
ไม่ได้เป็น </td>
</tr>
</table></td>
</tr>
<tr >
<td height="46" align="center" class="style19"> </td>
<td class="style19"> </td>
<td bgcolor="#FFFFFF" class="style19"><table width="84%" border="0" align="left" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td colspan="2" class="style19 style5 style1"> </td>
</tr>
<tr>
<td colspan="2" class="style19 style5 style1"><span class="TEXT-DARK-BLUE10"><font color="#FF0000">* </font>แยกประเภทตามการเป็น
กรรมการบริการวิชาการอื่นๆ</span></td>
</tr>
<tr>
<td class="style19 style5 style1"><span class="TEXT-DARK-BLUE10">ตรวจเครื่องมือ</span></td>
<td class="style19 style5 style1"><input type="radio" name="Check_tool" <?php if (!(strcmp("$rs[Check_tool]","Y"))) {echo "checked";} ?> value="Y" />
เป็น
<input type="radio" name="Check_tool" <?php if (!(strcmp("$rs[Check_tool]","N"))) {echo "checked";} ?> value="N" />
ไม่ได้เป็น </td>
</tr>
<tr>
<td class="style19 style5 style1"><span class="TEXT-DARK-BLUE10">คปสข</span></td>
<td class="style19 style5 style1"><input type="radio" name="Scp10" <?php if (!(strcmp("$rs[Scp10]","Y"))) {echo "checked";} ?> value="Y" />
เป็น
<input type="radio" name="Scp10" <?php if (!(strcmp("$rs[Scp10]","N"))) {echo "checked";} ?> value="N" />
ไม่ได้เป็น </td>
</tr>
<tr>
<td width="34%" class="style19 style5 style1"><span class="TEXT-DARK-BLUE10">ครือข่ายวิทยาลัย</span></td>
<td width="66%" class="style19 style5 style1"><input type="radio" name="Club_bcnlp" <?php if (!(strcmp("$rs[Club_bcnlp]","Y"))) {echo "checked";} ?> value="Y" />
เป็น
<input type="radio" name="Club_bcnlp" <?php if (!(strcmp("$rs[Club_bcnlp]","N"))) {echo "checked";} ?> value="N" />
ไม่ได้เป็น</td>
</tr>
<tr>
<td class="style19 style5 style1"><span class="TEXT-DARK-BLUE10">การเป็นวิทยากร</span></td>
<td class="style19 style5 style1"><input type="radio" name="North_network" <?php if (!(strcmp("$rs[North_network]","Y"))) {echo "checked";} ?> value="Y" />
เป็น
<input type="radio" name="North_network" <?php if (!(strcmp("$rs[North_network]","N"))) {echo "checked";} ?> value="N" />
ไม่ได้เป็น /จำนวนชั่วโมง
<input name="Houn" type="text" id="Houn" value="<?=$rs['Houn'];?>" size="3" maxlength="4" /></td>
</tr>
<tr>
<td height="22" class="style19 style5 style1"><span class="TEXT-DARK-BLUE10">การเป็นกรรมการ
อื่นๆ</span></td>
<td class="style19 style5 style1"><input type="radio" name="Else_commit" <?php if (!(strcmp("$rs[Else_commit]","Y"))) {echo "checked";} ?> value="Y" />
เป็น
<input type="radio" name="Else_commit" <?php if (!(strcmp("$rs[Else_commit]","N"))) {echo "checked";} ?> value="N" />
ไม่ได้เป็น </td>
</tr>
</table></td>
</tr>
<tr bgcolor="#E5E5E5" class="BORDER-GREY-LIGHT" >
<td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"> </td>
<td bgcolor="#FFFFFF"> </td>
<td align="left" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#E5E5E5" class="BORDER-GREY-LIGHT" >
<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" /></td>
</tr>
<tr bgcolor="#DFEBF9">
<td colspan="3" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#DFEBF9">
<td colspan="3" bgcolor="#FFFFFF"><div align="center" class="style2">
<input name="code" type="hidden" id="code" value="<? echo $rs[code]?>" />
<input type="hidden" name="Teacher_code" value="<? echo $rs[Teacher_code]?>" />
<input name="Submit" type="submit" class="button" id="Submit" value="แก้ไขข้อมูล " />
</div></td>
</tr>
</table>
<p> </p></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);
?>
|