Viewing file: AddFrmHis.php (33.42 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" );
require_once( "../include/FunctionDB.php" );
/** Create Database Object */
$dbObj = new DBConn;
//=== SESSION
$Username = $valid_user;
/** Config Table for This Page */
$myTable1 = "training_tb";
$myTable2 = "dev_his";
$myTable3 = "project_tb";
$myTable4 = "dev_hrperson";
$myTable5 = "budget_year_tb";
/** Table --> personal_tb */
$query = " SELECT * FROM $myTable1 WHERE Training_code='$Training_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);
$rs1_numrows = mysql_num_rows($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);
$query6 = " SELECT * FROM personal_tb WHERE Teacher_code='$Teacher_code'";
$result6 = $dbObj->execQuery($query6);
$rs6 = $dbObj->fetchArray($result6);
} # 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="InsertHisTraining.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>» <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 $rss[maNo];?>" size="15" />
</font></td>
<td width="131" height="29" align="left"> </td>
<td height="29" align="left"> </td>
<td height="29" colspan="2" align="center">
<script>DateInput('mDate', true,'DD/MM/YYYY','<?=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 $rss[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 $rss[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="25" value="<? $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="perid" type="hidden" id="perid" value="<? echo $rs1['perid'];?>" />
ตำแหน่ง <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="#" type="text" id="Name10" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="10" 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="<?=$rss['Training_name'];?>" size="75" />
<input name="Training_code" type="hidden" id="Training_code" value="<? echo $rss['Training_code'] ;?>" />
<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','<?=date("d/m/Y");?>');</script></td>
<td> ถึงวันที่ </td>
<td><script>DateInput('mDate2', true,'DD/MM/YYYY','<?=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 $rss['Total_hour'] ;?>" 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 $rss['Day'] ;?>" size="1" maxlength="5" />
</a>วัน <a>
</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 $rss['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 $rss[CNEU];?>" 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']='140' ) echo 'selected'; ?>>
<?=$rs5['countryname'];?>
</option>
<?php
} # while
mysql_free_result($result1);
?>
</select>
หน่วยงานผู้จัด
<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 $rs3[univName];?>" size="40" />
<input name="univId" type="hidden" id="univId" value="<? echo $rs3['univId'] ; ?>" />
<a href="javascript:;" onclick="MM_openBrWindow('showUniv.php','Detail','scrollbars=yes,width=550,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 $rss[Cradit];?>" 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 $rss['Budget_use'];?>" 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("$rss[Training_std]","Y"))) { echo "checked"; } ?> value="Y" />
พัฒนาตามนโยบาย
<input type="radio" name="Training_std" <?php if (!(strcmp("$rss[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 $rss[Objective];?>" size="80" /></td>
</tr>
<tr height="31">
<td height="31" colspan="6">๓. เนื้อหาสาระด้าน
<label>
<input name="Content" type="radio" id="Content"<?php if (!(strcmp("$rss[Content]","วิชาการ"))) { echo "checked"; } ?> value="401" />
วิชาการ
<input name="Content" type="radio" id="Content" <?php if (!(strcmp("$rss[Content]","บริหาร"))) { echo "checked"; } ?> value="402" />
บริหาร
<input name="Content" type="radio" id="Content5"<?php if (!(strcmp("$rss[Content]","วิชาชีพเฉพาะ"))) { echo "checked"; } ?> value="403" />
วิชาชีพเฉพาะ
<input name="Content" type="radio" id="Content"<?php if (!(strcmp("$rss[Content]","ทัศนคติ"))) { echo "checked"; } ?> value="404" />
ทัศนคติ
<input name="Content" type="radio" id="Content2"<?php if (!(strcmp("$rss[Content]","การเรียนการสอน"))) { echo "checked"; } ?> value="405" />
การเรียนการสอน
<input name="Content" type="radio" id="Content3"<?php if (!(strcmp("$rss[Content]","คุณธรรมจริยธรรม"))) { echo "checked"; } ?> value="406" />
คุณธรรมจริยธรรม
<input name="Content" type="radio" id="Content4"<?php if (!(strcmp("$rss[Content]","อื่นๆ"))) { 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 $rss[Benefits];?>" 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="right">พัฒนาความรู้ความสามารถ : </td>
<td scope="col"><input name="Skills" type="radio" id="Skills" <?php if (!(strcmp("$rss[Capability_1]","ในการปฏิบัติงาน"))) { echo "checked"; } ?> value="501" />
ในการปฏิบัติงาน</td>
<td scope="col"><input name="Skills" type="radio" id="Skills"<?php if (!(strcmp("$rss[Capability_2]","ในเรื่องกฏหมายและระเบียบราชการ"))) { 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="right">พัฒนาสมรรถนะหลัก กพ. : </td>
<td width="287" scope="col"><input name="cdevcode" type="radio" id="cdevcode"<?php if (!(strcmp("$rss[Performance_1]","การมุ่งผลสัมฤทธิ์"))) { echo "checked"; } ?> value="101" />
การมุ่งผลสัมฤทธิ์ </td>
<td width="233" scope="col"><input name="cdevcode" type="radio" id="cdevcode" <?php if (!(strcmp("$rss[Performance_2]","การบริการที่ดี"))) { echo "checked"; } ?> value="102" />
การบริการที่ดี </td>
</tr>
<tr>
<th colspan="4"> </th>
<td scope="col"><input name="cdevcode" type="radio" id="cdevcode" <?php if (!(strcmp("$rss[Performance_3]","การสั่งสมความเชี่ยวชาญในงานอาชีพ"))) { echo "checked"; } ?> value="103" />
การสั่งสมความเชี่ยวชาญในงานอาชีพ</td>
<td scope="col"><input name="cdevcode" type="radio" id="cdevcode"<?php if (!(strcmp("$rs3[Performance_4]","จริยธรรม"))) { echo "checked"; } ?> value="104" />
จริยธรรม</td>
</tr>
<tr>
<th colspan="4"> </th>
<td scope="col"><input name="cdevcode" type="radio" id="cdevcode"<?php if (!(strcmp("$rss[Performance_5]","การทำงานเป็นทีม"))) { 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="right">พัฒนาสมรรถนะองค์กร : </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="right">พัฒนาสมรรถนะกลุ่มงาน : </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="right">พัฒนาสรรถนะในงาน : </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="right">พัฒนาทักษะด้าน : </td>
<td scope="col"><input name="Hiskills" type="radio" id="Hiskills"<?php if (!(strcmp("$rss[Skills_1]","การคิดคำนวณ"))) { echo "checked"; } ?> value="601" />
การคิดคำนวณ </td>
<td scope="col"><input name="Hiskills" type="radio" id="Hiskills"<?php if (!(strcmp("$rss[Skills_2]","การใช้ภาษาอังกฤษ"))) { echo "checked"; } ?> value="602" />
การใช้ภาษาอังกฤษ</td>
</tr>
<tr>
<th colspan="4"> </th>
<td scope="col"><input name="Hiskills" type="radio" id="Hiskills"<?php if (!(strcmp("$rss[Skills_3]","การใช้คอมพิวเตอร์"))) { echo "checked"; } ?> value="603" />
การใช้คอมพิวเตอร์ </td>
<td scope="col"><input name="Hiskills" type="radio" id="Hiskills"<?php if (!(strcmp("$rss[Skills_4]","การจัดการข้อมูล"))) { 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("$rss[Training_type]","1"))) { echo "checked"; } ?> value="1" />
การอบรม
<input type="radio" name="Training_type" <?php if (!(strcmp("$rss[Training_type]","2"))) { echo "checked"; } ?> value="2" />
การศึกษาดูงาน
<input type="radio" name="Training_type" <?php if (!(strcmp("$rss[Training_type]","3"))) { echo "checked"; } ?> value="3" />
ประชุม
<input type="radio" name="Training_type" <?php if (!(strcmp("$rss[Training_type]","4"))) { echo "checked"; } ?> value="4" />
สัมมนา
<input type="radio" name="Training_type" <?php if (!(strcmp("$rss[Training_type]","7"))) { echo "checked"; } ?> value="7" />
วิทยากร
<input type="radio" name="Training_type" <?php if (!(strcmp("$rss[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['traindept']; ?>" 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="Teacher_code" type="hidden" id="Teacher_code" value="<? echo $rss["Teacher_code"]?>" />
<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">ตำแหน่ง<font color="#0000FF" size="2" face="Tahoma">
<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'] ;?>
" />
</font></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"><font size="2" face="Tahoma">
<?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 ='$rs6[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]";
?>
</font> <input name="TeacherId" type="hidden" id="TeacherId" value="<? echo $rs2["Teacher_code"]?>" /></td>
<td align="left"> </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"><input type="hidden" name="codeId" value="<? echo $codeId; ?>&Teacher_code<? echo $Teacher_code;?>&Training_code=<? echo $Training_code;?>" />
<span id="submitBtn"> <input type="submit" name="Submit" value="บันทึก" class="WIDTH60 CURSOR-HAND" <?=($rs1_numrows)?"":"disabled";?>/>
<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 $rs1["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);
?>
|