Viewing file: FrmAddHis.php (33.35 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" );
require_once( "../includes/FunctionDB.php" );
/** Create Database Object */
$dbObj = new DBConn;
//=== SESSION
$Username = $valid_user;
/** Config Table for This Page */
$myTable1 = "personal_tb";
$myTable2 = "dev_his";
$myTable3 = "project_tb";
$myTable4 = "dev_hrperson";
$myTable5 = "budget_year_tb";
/** Table --> personal_tb */
$query = " SELECT * FROM $myTable4 WHERE Teacher_code='$Teacher_code' ";
$result = $dbObj->execQuery($query);
$rss = $dbObj->fetchArray($result);
$Teacher_code = $rss['Teacher_code'];
/** Table --> tech_plan_tb */
$query1 = " SELECT * FROM dev_hrperson WHERE perid='$perid' Or Teacher_code='$Teacher_code' ";
$result1 = $dbObj->execQuery($query1);
$rs1 = $dbObj->fetchArray($result1);
/** Table --> techplan_method_tb */
$query2 = " SELECT * FROM $myTable3 WHERE codeId='$codeId' ";
$result2 = $dbObj->execQuery($query2);
$rs2 = $dbObj->fetchArray($result2);
/** Table --> tech_spec_tb */
$query3 = " SELECT * FROM dev_his WHERE HisId ='$HisId' ";
$result3 = $dbObj->execQuery($query3);
$rs3 = $dbObj->fetchArray($result3);
$query = " SELECT * FROM $myTable5 ";
$result5 = $dbObj->execQuery($query);
$rs5 = $dbObj->fetchArray($result5);
$query22 = " SELECT * FROM personal_tb WHERE Teacher_code='$Teacher_code'";
$result22 = $dbObj->execQuery($query22);
$rs22 = $dbObj->fetchArray($result22);
} # 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>
<script language="javascript">
function checkData() {
var formObj = document.form1;
if( ( formObj.Training_name.value == "" ) && ( formObj.Day.value == "" ) ) { alert("กรุณากรอกข้อมูลให้ครบด้วยค่ะ" ); formObj.Training_name.style.backgroundColor='#F1F9FC'; formObj.Day.focus(); return false; }
if(formObj.Training_name.value == "" ) { alert("กรุณากรอก ชื่อเรื่อง"); formObj.Training_name.style.backgroundColor='#F1F9FC'; formObj.Training_name.focus(); return false;}
if(formObj.Day.value == "" ) { alert("กรุณากรอก จำนวนวัน"); formObj.Day.style.backgroundColor='#F1F9FC'; formObj.Day.focus(); return false;}
if(formObj.Organiz.value == "" ) { alert("กรุณากรอก หน่วยงานที่จัด"); formObj.Organiz.style.backgroundColor='#F1F9FC'; formObj.Organiz.focus(); return false;}
if(formObj.CNEU.value == "" ) { alert("กรุณากรอก สถานที่"); formObj.CNEU.style.backgroundColor='#F1F9FC'; formObj.CNEU.focus(); return false;}
else return true ;
}
</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 id="form1" name="form1" method="post" action="EditHisTraining.php" onSubmit="return checkData();">
<tr>
<td height="5">
<INPUT TYPE="hidden" NAME="Teacher_code" value="<?=(isset($rs3['Teacher_code']))?$rs3['Teacher_code']:"";?>">
<INPUT TYPE="hidden" NAME="perid" value="<?=(isset($rs3['perid']))?$rs3['perid']:"";?>">
<INPUT TYPE="hidden" NAME="HisId" value="<?=(isset($rs3['HisId']))?$rs3['HisId']:"";?>">
</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">
<?php
?>
<table width="773" cellpadding="0" cellspacing="0">
<tr height="31">
<td height="31" colspan="6" align="center" class="PATRON11">บันทึกข้อความ</td>
</tr>
<tr height="29">
<td height="29" colspan="6" l="l">ส่วนราชการ <font size="2" face="Tahoma">
<?php
//$collegeCode = $rss["collegeCode"];
//$sql = "Select * From college Where collegeStatus ='1'";
$sql = "select * from dev_config";
$result1 = mysql_query($sql) or die("Error".mysql_error());
$rs2 = mysql_fetch_array($result1);
echo "$rs2[longpre] $rs2[deptname]";
?>
</font></td>
</tr>
<tr>
<td height="29" colspan="2" align="left">ที่ <font color="#0000FF" size="2" face="Tahoma">
<input name="maNo" type="text" id="maNo" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo $rs1[maNo];?>" size="15" />
</font></td>
<td width="131" height="29" align="left"><input name="codeId" type="hidden" id="codeId" value="<? echo $rs1["codeId"]?>" /> <input name="Year_std" type="hidden" id="Year_std" value="<? echo $rs1["Year_std"]?>" /></td>
<td height="29" align="left"> </td>
<td height="29" colspan="2" align="center">
<script>DateInput('mDate', true,'DD/MM/YYYY','<?=(isset($rs3["Date"]))?ymdE2dmyE2($rs3["Date"]):date("d/m/Y");?>');</script>
</td>
</tr>
<tr height="29">
<td height="29" colspan="3" align="left">เรื่อง <font color="#0000FF" size="2" face="Tahoma">
<input name="Detail" type="text" id="Detail" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="รายงานผลการอบรม/ประชุม/สัมนา" size="25" />
</font></td>
<td width="72"></td>
<td width="214"></td>
<td width="181"></td>
</tr>
<tr height="29">
<td height="29" colspan="5" align="left">เรียน ผู้อำนวยการ <font size="2" face="Tahoma">
<?php
//$collegeCode = $rss["collegeCode"];
//$sql = "Select * From college Where collegeStatus ='1'";
$sql = "select * from dev_config";
$result1 = mysql_query($sql) or die("Error".mysql_error());
$rs2 = mysql_fetch_array($result1);
echo "$rs2[longpre] $rs2[deptname]";
?>
</font></td>
<td></td>
</tr>
<tr height="29">
<td width="148" height="25"></td>
<td colspan="5" align="left">ตามคำสั่ง/หนังสือที่</a>
<input name="No_in" type="text" id="No_in" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="20" value="<? echo $rs3[No_in];?>" /></a>
ลงวันที่</a>
<input name="Dated" type="text" id="Dated" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="25" value="<? echo $rs3[Dated];?>" />
</a></td>
</tr>
<tr height="29">
<td height="29" colspan="6" align="left">ได้อนุมัติให้ข้าพเจ้า<a>
<input name="Name6" type="text" id="Name8" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="30" value="<?php
$sql = " SELECT * FROM prefix Where prefixId='$rs1[pcode]' ";
$result6 = mysql_query($sql);
$rs6 = $dbObj->fetchArray($result6);
echo $rs6['prefixName'];
?><? echo $rs1['fname']; ?> <? echo $rs1['lname']; ?> " />
</a> ตำแหน่ง<a>
<input name="Name6" type="text" id="Name9" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="25" value="<?
$sql = " SELECT * FROM dev_adlinepos Where adlineId ='$rs1[poscode]' ";
$result4 = mysql_query($sql);
$rs4 = mysql_fetch_array($result4) ;
echo $rs4['adlineName'] ;
$sql = " SELECT * FROM dev_clevelpos Where levelcode ='$rs1[levelcode]' ";
$result5 = mysql_query($sql);
$rs5 = mysql_fetch_array($result5) ;
echo $rs5['kplevel'] ;
?>
" />
เลขที่สภาวิชาชีพ
<input name="cerid" type="text" id="Name10" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="7" value="<? echo $rs1['cerid'] ;?>" />
</a></td>
</tr>
<tr height="29">
<td height="29" colspan="6" align="left">เข้ารับการอบรม/ประชุม/สัมนา เรื่อง</a>
<input name="cname" type="text" id="cname" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rs3['cname'];?>" size="75" />
<input type="checkbox" name="checkbox" id="checkbox" /><a>นับหลักสูตร
</a></a></td>
</tr>
<tr height="29">
<td height="29" colspan="6" align="left">
<table>
<tr>
<td>ระหว่างวันที่ </td>
<td><script>DateInput('mDate1',true,'DD/MM/YYYY','<?=(isset($rs3["startdate"]))?ymdE2dmyE2($rs3["startdate"]):date("d/m/Y");?>');</script></td>
<td> ถึงวันที่ </td>
<td><script>DateInput('mDate2', true,'DD/MM/YYYY','<?=(isset($rs3["enddate"]))?ymdE2dmyE2($rs3["enddate"]):date("d/m/Y");?>');</script></td>
<td>(ไม่รวมวันเดินทาง)</td>
</tr>
</table>
</td>
</tr>
<tr height="31">
<td height="31" colspan="6">จำนวน<a>
<input name="daycount" type="text" id="daycount" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value=" <? echo $rs3['daycount'] ;?>" size="1" maxlength="5" />
</a>ชั่วโมง จำนวน <a>
<input name="Day" type="text" id="Day" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo $rs3['Day'] ;?>" size="1" maxlength="5" readonly="readonly" />
</a>วัน ปีงบประมาณ
<input name="Year_std" type="text" id="Year_std" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" onkeypress="checkNumeric()" onkeyup="checkBudget()" value="<? echo $rs3['Year_std'] ;?>" size="2" maxlength="4" />
ณ สถานที่จัด</a>
<input name="traincenter" type="text" id="traincenter" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?php echo $rs3[traincenter];?>" size="30" />
</a>จังหวัด </a>
<select name="provcode" id="provcode" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" >
<option value=""> --- เลือก --- </option>
<?php
$strSQL = " SELECT * FROM province ";
$result4 = mysql_query($strSQL);
while( $rs4 = mysql_fetch_array($result4) ) {
?>
<option value="<?=$rs4['provinceId'];?>" <?php if( $rs4['provinceId']==$rs3['provcode'] ) echo 'selected'; ?>>
<?=$rs4['provinceName'];?>
</option>
<?php
} # while
?>
</select>
</a></td>
</tr>
<tr height="31">
<td height="29" colspan="6">ประเทศ
<select name="countrycode" id="countrycode">
<option value=""></option>
<?php
$sql = " SELECT * FROM dev_ccountry ORDER BY countryname ASC ";
$result5 = mysql_query($sql);
while( $rs5 = mysql_fetch_array($result5) ) {
?>
<option value="<?=$rs5['countrycode'];?>" <?php if( $rs5['countrycode']==$rs3['countrycode'] ) echo 'selected'; ?>>
<?=$rs5['countryname'];?>
</option>
<?php
} # while
mysql_free_result($result1);
?>
</select>
<?
$query = " SELECT * FROM dev_univ WHERE univId ='$rs3[univId]' ";
$result5 = $dbObj->execQuery($query);
$rs5 = $dbObj->fetchArray($result5);
?>
หน่วยงานผู้จัด
<input name="univName" type="text" id="univName" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed"value="<?php echo $rs5[univName];?>" size="40" readonly="readonly" />
<input name="univId" type="hidden" id="univId" value="<? echo $rs3['univId'] ; ?>" />
<a href="javascript:;" onclick="MM_openBrWindow('showUniv.php','Detail','scrollbars=yes,width=820,height=350')"><img src="../images/icons/search.gif" alt="เลือกหน่วยงาน" width="14" height="16" border="0" align="absmiddle" /></a></font></strong></font> หน่วยคะแนน
<input name="unit" type="text" id="unit" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?php echo $rs3[unit];?>" size="4" /> </a></td>
</tr>
<tr height="31">
<td height="31" colspan="6">จำนวนเงินที่ใช้ในการพัฒนาตามแหล่งเงิน</td>
</tr>
<tr height="31">
<td height="31" colspan="6">
เงินงบประมาณ
<input name="moneybudget1" type="text" id="moneybudget1" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo $rs3['moneybudget1'];?>" size="6" onkeypress="checkNumeric()" onkeyup="checkBudget()" />
บาท เงินรายได้
<input name="moneybudget2" type="text" id="moneybudget2" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo $rs3['moneybudget2'];?>" size="6" onkeypress="checkNumeric()" onkeyup="checkBudget()" />
บาท
เงินที่จ่ายเอง
<input name="moneybudget3" type="text" id="moneybudget3" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo $rs3['moneybudget3'];?>" size="6" onkeypress="checkNumeric()" onkeyup="checkBudget()" />
บาท
เงินสนับสนุนอื่นๆ
<input name="moneybudget4" type="text" id="moneybudget4" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo $rs3['moneybudget4'];?>" size="6" onkeypress="checkNumeric()" onkeyup="checkBudget()" />
บาท </td>
</tr>
<tr height="31">
<td height="31" colspan="6">รวมจำนวนเงินทั้งหมด
<input name="money_old" type="text" id="money_old" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" onkeypress="checkNumeric()" onkeyup="checkBudget()" value="<? echo $rs3['money'];?>" size="6" readonly="readonly" />
บาท</td>
</tr>
<tr height="31">
<td height="31" colspan="6">มีรายละเอียดดังนี้</a></td>
</tr>
<tr height="31">
<td height="31" colspan="6">๑. ประเภทโครงการ <font size="2" face="Tahoma">
<input type="radio" name="Training_std" <?php if (!(strcmp("$rs3[Training_std]","Y"))) { echo "checked"; } ?> value="Y" />
พัฒนาตามนโยบาย
<input type="radio" name="Training_std" <?php if (!(strcmp("$rs3[Training_std]","N"))) { echo "checked"; } ?> value="N" />
พัฒนาตามความต้องการของตนเอง (สมรรถนะ)</font></td>
</tr>
<tr height="31">
<td height="31" colspan="6">๒. วัตถุประสงค์ของการอบรม/ประชุม/สัมนา
<input name="moneycenter" type="text" id="moneycenter" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?php echo $rs3[moneycenter];?>" size="80" /></td>
</tr>
<tr height="31">
<td height="31" colspan="6">๓. เนื้อหาสาระด้าน
<label>
<input name="Content" type="radio" id="Content"<?php if (!(strcmp("$rs3[Content]","401"))) { echo "checked"; } ?> value="401" />
วิชาการ
<input name="Content" type="radio" id="Content" <?php if (!(strcmp("$rs3[Content]","402"))) { echo "checked"; } ?> value="402" />
บริหาร
<input name="Content" type="radio" id="Content5"<?php if (!(strcmp("$rs3[Content]","403"))) { echo "checked"; } ?> value="403" />
วิชาชีพเฉพาะ
<input name="Content" type="radio" id="Content"<?php if (!(strcmp("$rs3[Content]","404"))) { echo "checked"; } ?> value="404" />
ทัศนคติ
<input name="Content" type="radio" id="Content2"<?php if (!(strcmp("$rs3[Content]","405"))) { echo "checked"; } ?> value="405" />
การเรียนการสอน
<input name="Content" type="radio" id="Content3"<?php if (!(strcmp("$rs3[Content]","406"))) { echo "checked"; } ?> value="406" />
คุณธรรมจริยธรรม
<input name="Content" type="radio" id="Content4"<?php if (!(strcmp("$rs3[Content]","407"))) { echo "checked"; } ?> value="407" />
อื่นๆ
</label></td>
</tr>
<tr height="31">
<td height="31" colspan="6">๔. ประโยชน์ที่ได้รับ
<input name="unitpoint" type="text" id="unitpoint" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed"value="<?php echo $rs3[unitpoint];?>" size="90" /></td>
</tr>
<tr height="31">
<td height="16" colspan="6"> </td>
</tr>
<tr height="31">
<td height="31" colspan="6"><table width="676" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="4" align="left">พัฒนาความรู้ความสามารถ : </td>
<td scope="col"><input name="Skills" type="radio" id="Skills" <?php if (!(strcmp("$rs3[Skills]","501"))) { echo "checked"; } ?> value="501" />
ในการปฏิบัติงาน</td>
<td scope="col"><input name="Skills" type="radio" id="Skills"<?php if (!(strcmp("$rs3[Skills]","502"))) { echo "checked"; } ?> value="502" />
ในเรื่องกฏหมายและระเบียบราชการ</td>
</tr>
<tr>
<th colspan="4"> </th>
<th scope="col"> </th>
<th scope="col"> </th>
</tr>
<tr>
<td colspan="4" align="left">พัฒนาสมรรถนะหลัก กพ. :</td>
<td width="287" scope="col"><input name="cdevcode" type="radio" id="cdevcode"<?php if (!(strcmp("$rs3[cdevcode]","101"))) { echo "checked"; } ?> value="101" />
การมุ่งผลสัมฤทธิ์ </td>
<td width="233" scope="col"><input name="cdevcode" type="radio" id="cdevcode" <?php if (!(strcmp("$rs3[cdevcode]","102"))) { echo "checked"; } ?> value="102" />
การบริการที่ดี </td>
</tr>
<tr>
<th colspan="4"> </th>
<td scope="col"><input name="cdevcode" type="radio" id="cdevcode" <?php if (!(strcmp("$rs3[cdevcode]","103"))) { echo "checked"; } ?> value="103" />
การสั่งสมความเชี่ยวชาญในงานอาชีพ</td>
<td scope="col"><input name="cdevcode" type="radio" id="cdevcode"<?php if (!(strcmp("$rs3[cdevcode]","104"))) { echo "checked"; } ?> value="104" />
จริยธรรม</td>
</tr>
<tr>
<th colspan="4"> </th>
<td scope="col"><input name="cdevcode" type="radio" id="cdevcode"<?php if (!(strcmp("$rs3[cdevcode]","105"))) { echo "checked"; } ?> value="105" />
ความร่วมแรงร่วมใจ</td>
<th scope="col"> </th>
</tr>
<tr>
<th colspan="4"> </th>
<th scope="col"> </th>
<th scope="col"> </th>
</tr>
<tr>
<td colspan="4" align="left">พัฒนาสมรรถนะองค์กร :</td>
<td colspan="2" scope="col">
<select name="Orgskills" id="Orgskills">
<option value=""> --- เลือก --- </option>
<?php
$sql4 = " SELECT * FROM dev_cdev Where codeDv ='Func' ORDER BY cdevcode ASC ";
$result4 = mysql_query($sql4);
while( $rs4 = mysql_fetch_array($result4) ) {
?>
<option value="<?=$rs4['cdevcode'];?>" <?php if( $rs4['cdevcode']==$rs3['Orgskills'] ) echo 'selected';?>>
<?=$rs4['cdevname'];?>
</option>
<?php
} # while
mysql_free_result($result1);
?>
</select>
</font></strong></font></td>
</tr>
<tr>
<th colspan="4"> </th>
<td scope="col"> </td>
<td scope="col"> </td>
</tr>
<tr>
<td colspan="4" align="left">พัฒนาสมรรถนะกลุ่มงาน :</td>
<td colspan="2" scope="col">
<select name="Groskills" id="Groskills">
<option value=""> --- เลือก --- </option>
<?php
$sql4 = " SELECT * FROM dev_cdev Where codeDv ='Func' ORDER BY cdevcode ASC ";
$result4 = mysql_query($sql4);
while( $rs4 = mysql_fetch_array($result4) ) {
?>
<option value="<?=$rs4['cdevcode'];?>" <?php if( $rs4['cdevcode']==$rs3['Groskills'] ) echo 'selected';?>>
<?=$rs4['cdevname'];?>
</option>
<?php
} # while
mysql_free_result($result1);
?>
</select></th>
</tr>
<tr>
<th colspan="4"> </th>
<th scope="col"> </th>
<th scope="col"> </th>
</tr>
<tr>
<td colspan="4" align="left">พัฒนาสรรถนะในงาน :</td>
<td colspan="2" scope="col"><select name="Perskills" id="Perskills">
<option value=""> --- เลือก --- </option>
<?php
$sql4 = " SELECT * FROM dev_cdev Where codeDv ='Func' ORDER BY cdevcode ASC ";
$result4 = mysql_query($sql4);
while( $rs4 = mysql_fetch_array($result4) ) {
?>
<option value="<?=$rs4['cdevcode'];?>" <?php if( $rs4['cdevcode']==$rs3['Perskills'] ) echo 'selected';?>>
<?=$rs4['cdevname'];?>
</option>
<?php
} # while
mysql_free_result($result1);
?>
</select></th>
</tr>
<tr>
<th colspan="4"> </th>
<th scope="col"> </th>
<th scope="col"> </th>
</tr>
<tr>
<td colspan="4" align="left">พัฒนาทักษะด้าน :</td>
<td scope="col"><input name="Hiskills" type="radio" id="Hiskills"<?php if (!(strcmp("$rs3[Hiskills]","601"))) { echo "checked"; } ?> value="601" />
การคิดคำนวณ </td>
<td scope="col"><input name="Hiskills" type="radio" id="Hiskills"<?php if (!(strcmp("$rs3[Hiskills]","602"))) { echo "checked"; } ?> value="602" />
การใช้ภาษาอังกฤษ</td>
</tr>
<tr>
<th colspan="4"> </th>
<td scope="col"><input name="Hiskills" type="radio" id="Hiskills"<?php if (!(strcmp("$rs3[Hiskills]","603"))) { echo "checked"; } ?> value="603" />
การใช้คอมพิวเตอร์ </td>
<td scope="col"><input name="Hiskills" type="radio" id="Hiskills"<?php if (!(strcmp("$rs3[Hiskills]","604"))) { echo "checked"; } ?> value="604" />
การจัดการข้อมูล</td>
</tr>
<tr>
<th colspan="4"> </th>
<td scope="col"> </td>
<td scope="col"> </td>
</tr>
</table></td>
</tr>
<tr height="29">
<td height="16" colspan="6" align="left"> </td>
</tr>
<tr height="29">
<td height="16" colspan="6" align="left">๕. การนำความรู้ที่ได้รับมาประยุกต์ใช้ในการเรียนการสอน/การวิจัย/การบริการวิชาการ/การปฏิบัติงาน</td>
</tr>
<tr height="29">
<td height="16" colspan="6" align="left"> </td>
</tr>
<tr height="29">
<td height="29" colspan="6" align="left"><table width="448" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<th scope="col"> </th>
<th scope="col">
<textarea name="Apply" cols="80" rows="5" id="Apply" class="d">
<?=(!empty($rs3['Apply']))?htmlspecialchars_decode($rs3['Apply']):"";?>
</textarea>
</th>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table></td>
</tr>
<tr height="29">
<td height="29" colspan="6" align="left">๖. ประเภทการพัฒนา <font size="2" face="Tahoma">
<input type="radio" name="Training_type" <?php if (!(strcmp("$rs3[Training_type]","1"))) { echo "checked"; } ?> value="1" />
การอบรม
<input type="radio" name="Training_type" <?php if (!(strcmp("$rs3[Training_type]","2"))) { echo "checked"; } ?> value="2" />
การศึกษาดูงาน
<input type="radio" name="Training_type" <?php if (!(strcmp("$rs3[Training_type]","3"))) { echo "checked"; } ?> value="3" />
ประชุม
<input type="radio" name="Training_type" <?php if (!(strcmp("$rs3[Training_type]","4"))) { echo "checked"; } ?> value="4" />
สัมมนา
<input type="radio" name="Training_type" <?php if (!(strcmp("$rs3[Training_type]","7"))) { echo "checked"; } ?> value="7" />
วิทยากร
<input type="radio" name="Training_type" <?php if (!(strcmp("$rs3[Training_type]","6"))) { echo "checked"; } ?> value="6" />
อื่นๆ
</font></td>
</tr>
<tr height="29">
<td height="29" colspan="6" align="left">๗. สาขาวิชาการ
<input name="traindept" type="text" id="traindept" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo $rs3['traindeptr']; ?>" size="40" /></td>
</tr>
<tr height="29">
<td height="29" colspan="6" align="left">๘. รายละเอียดอื่นๆ </td>
</tr>
<tr height="29">
<td height="29" colspan="6" align="left"> </td>
</tr>
<tr height="31">
<td height="31" colspan="3" align="left"> </td>
<td colspan="2">ลงชื่อ .................................................</td>
<td></td>
</tr>
<tr height="29">
<td height="29" colspan="3"> </td>
<td colspan="2" align="center">( <? $sql = " SELECT * FROM prefix Where prefixId='$rs1[pcode]' ";
$result6 = mysql_query($sql);
$rs6 = $dbObj->fetchArray($result6);
echo $rs6['prefixName'];
?><? echo $rs1['fname']; ?> <? echo $rs1['lname']; ?></a> )
<input name="Faculty_code" type="hidden" id="Faculty_code" value="<? echo $rss["Faculty_code"]?>" /></td>
<td></td>
</tr>
<tr height="29">
<td height="29" colspan="3" align="left"> </td>
<td colspan="2">ตำแหน่ง</a>
<input name="Name4" type="text" id="Name5" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="25" value="<? $sql = " SELECT * FROM dev_adlinepos Where adlineId ='$rs1[poscode]' ";
$result4 = mysql_query($sql);
$rs4 = mysql_fetch_array($result4) ;
echo $rs4['adlineName'] ;
$sql = " SELECT * FROM dev_clevelpos Where levelcode ='$rs1[levelcode]' ";
$result5 = mysql_query($sql);
$rs5 = mysql_fetch_array($result5) ;
echo $rs5['kplevel'] ;?>
" />
</a></td>
<td></td>
</tr>
<tr height="29">
<td height="29" colspan="2" align="left"> </td>
<td align="left"> </td>
<td colspan="3" align="left"> </td>
</tr>
<tr height="29">
<td height="29" colspan="3" align="left">ลงชื่อ........................................หัวหน้าภาค/ฝ่าย</td>
<td colspan="3" align="left"> </td>
</tr>
<tr height="29">
<td height="29" colspan="3" align="center">(
<?php
//$Teacher_code = $rss["TeacherId"];
$sql = "Select *, prefixName as First_name FROM personal_tb LEFT JOIN prefix ON personal_tb.First_name = prefix.prefixId Where Faculty_code ='$rs22[Faculty_code]' and TeacherId='1' ";
$result1 = mysql_query($sql) or die("Error".mysql_error());
$rs2 = mysql_fetch_array($result1);
echo "$rs2[First_name]$rs2[Teacher_name] $rs2[Teacher_lastname]";
?>
</a>)
<input name="TeacherId" type="hidden" id="TeacherId" value="<? echo $rs2["Teacher_code"]?>" /></td>
<td align="center"> </td>
<td align="left"> </td>
<td align="left"> </td>
</tr>
<tr height="29">
<td height="29" colspan="3" align="left">ตำแหน่ง<font color="#0000FF" size="2" face="Tahoma">
<input name="Name5" type="text" id="Name6" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="25" value="<? $PositionId = $rs2["PositionId"];
$sql = "Select * From position_tb Where PositionId ='$PositionId' ";
$result1 = mysql_query($sql) or die("Error".mysql_error());
$rs2 = mysql_fetch_array($result1);
echo "$rs2[Position_name] ";?>
" />
</font></td>
<td align="left"> </td>
<td colspan="2" align="left"> </td>
</tr>
<tr height="29">
<td height="28" colspan="2" align="left"> </td>
<td align="left"> </td>
<td colspan="2" align="left"> </td>
<td align="left"> </td>
</tr>
<tr height="29">
<td height="29" colspan="2" align="left"> </td>
<td align="left"> </td>
<td colspan="3" align="left">ลงชื่อ.........................................……..</td>
</tr>
<tr height="29">
<td height="29" colspan="2" align="left"> </td>
<td align="left"> </td>
<td colspan="2" align="left"> วันที่..........เดือน......................พ.ศ..........…</td>
<td align="left"> </td>
</tr>
<tr height="29">
<td height="28" colspan="2" align="left"> </td>
<td align="left"> </td>
<td colspan="2" align="left"> </td>
<td align="left"> </td>
</tr>
</table></td>
</tr>
<tr>
<td align="center"> </td>
</tr>
<tr>
<td align="center">
<span id="submitBtn"> <input type="submit" name="Submit" value="บันทึก" class="WIDTH60 CURSOR-HAND" disbale />
<input type="reset" name="Reset" value="รีเซ็ต" class="WIDTH60 CURSOR-HAND" />
<input type="button" name="Button" value="ยกเลิก" class="WIDTH60 CURSOR-HAND" onclick="location.href='PlanList.php?Teacher_code=<?=$Teacher_code;?>'" />
<input name="Training_code" type="hidden" id="Training_code" value="<? echo $rs3["Training_code"]?>" />
</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);
?>
|