| Server IP : 172.67.187.206 / Your IP : 172.71.28.155 Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30 System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586 User : SYSTEM ( 0) PHP Version : 5.6.30 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Inetpub/www/myschool/triamudom/check/id-plan/ |
Upload File : |
<?php
session_start();
$path = "../";
include ($path.'include/config_db.php');
include ($path.'include/class_db.php');
include ($path.'include/class_display.php');
include ($path.'include/function.php');
$CLASS['db'] = new db();
$CLASS['db']->connect();
$CLASS['disp'] = new display();
$db = $CLASS['db'];
$disp = $CLASS['disp'];
if($_SESSION['sessionuser_id'] !=''){
//--------------------ส่วนบนใช้สำหรับประกาศตัวแปรและ Config เท่านั้น----------------------------//
?>
<!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>
<title>ระบบบันทึกแผนการพัฒนาตนเอง (ของครู) โรงเรียนแกลง''วิทยสถาวร'' จังหวัดระยอง</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="images/cbcscbmenu.css" type="text/css" />
<link href="css/default.CSS" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="js/salary.js"></script>
<script language="JavaScript" src="js/idformat.js"></script>
<script type="text/javascript" src="../ckeditor/ckeditor.js"></script>
<style type="text/css">
<!--
.style1 {color: #FF0000}
-->
</style>
<script language="javascript">
function chknull(c){
if(c.tb_teacher_name.value==""){
alert('กรุณากรอก ชื่อ - สกุล');
c.tb_teacher_name.focus();
return false;
}
if(c.tb_teacher_position.value==""){
alert('กรุณาเลือก ตำแหน่ง');
c.tb_teacher_position.focus();
return false;
}
if(c.tb_academic_id.value==""){
alert('กรุณาเลือก วิทยฐานะ');
c.tb_academic_id.focus();
return false;
}
}
</script>
</head>
<body>
<table width="988" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="200" valign="top" bgcolor="#3882F6"><?php include("header.php");?></td>
</tr>
<tr>
<td height="100%" align="center" valign="top" bgcolor="#FFFFFF"><table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="100%" align="center" valign="top"> </td>
<td width="1" align="center" valign="top" background="images/hdot.gif"></td>
<td align="left" valign="top" bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td width="230" height="100%" align="center" valign="top"><?php include('com_left.php');?></td>
<td width="1" align="center" valign="top" background="images/hdot.gif"></td>
<td width="757" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="3" cellpadding="3">
<tr>
<td><a href="display_main.php"><img src="images/ebbtcbmenu1_0.gif" width="81" height="26" border="0" align="absmiddle" /></a></td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<form action="function_user_detail.php" method="post" enctype="multipart/form-data" name="user_detail" onsubmit="return chknull(this);">
<?php
$sql_userdetail = $db->query("select * from tb_teachers where tb_teacher_id='".$_SESSION['sessionuser_id']."' ");
$fetch_userdetail = $db->fetch_array($sql_userdetail);
?>
<tr>
<td valign="top" bgcolor="#FFFFFF"><fieldset style="border-color:#03b4fe"><legend><div align="left"><strong>ส่วนที่ 1 ข้อมูลส่วนบุคคล </strong></div></legend>
<table width="100%" border="0" cellspacing="2" cellpadding="5">
<tr>
<td colspan="4" align="left" nowrap="nowrap" bgcolor="#FFFFFF"></td>
</tr>
<tr>
<td width="24%" align="left" nowrap="NOWRAP" bgcolor="#FFFFFF"><strong>รหัสบัตรประจำตัวประชาชน</strong> :</td>
<td colspan="3" align="left" nowrap="NOWRAP" bgcolor="#FFFFFF"><input name="tb_teacher_idcard" type="text" class="f_black" id="tb_teacher_idcard" onkeyup="autoTab(this)" value="<?php print $fetch_userdetail['tb_teacher_idcard'];?>" size="20" maxlength="17" /></td>
</tr>
<tr>
<td align="left" nowrap="NOWRAP" bgcolor="#FFFFFF"><strong>เลขที่ตำแหน่ง : </strong></td>
<td width="31%" nowrap="nowrap" bgcolor="#FFFFFF"> <input name="tb_teacher_number" type="text" class="f_pink" id="tb_teacher_number" value="<?php print $fetch_userdetail['tb_teacher_number'];?>" size="5" readonly=""></td>
<td width="13%" align="right" nowrap="NOWRAP" bgcolor="#FFFFFF"><strong>ชื่อ - สกุล : </strong></td>
<td width="32%" nowrap="nowrap" bgcolor="#FFFFFF"> <input name="tb_teacher_name" type="text" class="f_black" id="tb_teacher_name" size="30" value="<?php print $fetch_userdetail['tb_teacher_name'];?>">
<span class="style1">* </span> </td>
</tr>
<tr>
<td align="left" nowrap="NOWRAP" bgcolor="#FFFFFF"><strong>ตำแหน่ง : </strong></td>
<td valign="top" nowrap="nowrap" bgcolor="#FFFFFF"><label><strong>
<select name="tb_teacher_position" class="f_black" id="tb_teacher_position">
<option value="" >= เลือกตำแหน่ง =</option>
<?php
$query_position=$db->query("select * from tb_positions where tb_position_status ='1' order by tb_position_id asc");
while($fetch_position=$db->fetch_array($query_position)){
?>
<option value="<?php echo $fetch_position['tb_position_id'];?>" <?php if($fetch_userdetail['tb_teacher_position']==$fetch_position['tb_position_id']){echo "selected";}?>><?php echo $fetch_position['tb_position_name'];?></option>
<?php } ?>
</select>
<span class="style1">* </span></strong></label></td>
<td align="right" valign="top" nowrap="NOWRAP" bgcolor="#FFFFFF"><strong>วิทยฐานะ : </strong></td>
<td valign="top" nowrap="nowrap" bgcolor="#FFFFFF"><strong>
<select name="tb_academic_id" class="f_black" id="tb_academic_id">
<option value="">= เลือกวิทยฐานะ =</option>
<?php
$query_position1=$db->query("select * from tb_academics where tb_academic_status ='1' order by tb_academic_id asc");
while($fetch_position1=$db->fetch_array($query_position1)){
?>
<option value="<?php echo $fetch_position1['tb_academic_id'];?>" <?php if($fetch_userdetail['tb_academic_id']==$fetch_position1['tb_academic_id']){echo "selected";}?>><?php echo $fetch_position1['tb_academic_name'];?></option>
<?php } ?>
</select>
<span class="style1">* </span></strong></td>
</tr>
<tr>
<td colspan="2" align="left" nowrap="nowrap" bgcolor="#FFFFFF"><strong>ระยะเวลาดำรงตำแหน่งปัจจุบัน :
<select name="tb_teacher_time" class="f_black" id="tb_teacher_time">
<option value="">= เลือกเวลา =</option>
<?php for ($i = 1; $i <= 50; $i++) { ?>
<option value="<?php echo $i;?>" <?php if($fetch_userdetail['tb_teacher_time']==$i){echo "selected";}?>><?php echo $i;?></option>
<?php }?>
</select>
</strong></td>
<td align="right" nowrap="nowrap" bgcolor="#FFFFFF"><strong>เบอร์โทร : </strong></td>
<td align="left" nowrap="nowrap" bgcolor="#FFFFFF"><input name="tb_teacher_phone" type="text" class="f_black" id="tb_teacher_phone" size="20" value="<?php print $fetch_userdetail['tb_teacher_phone'];?>" /></td>
</tr>
<tr>
<td align="left" nowrap="nowrap" bgcolor="#FFFFFF"><strong>กลุ่มสาระฯ :
</strong></td>
<td colspan="3" align="left" nowrap="nowrap" bgcolor="#FFFFFF"><strong>
<select name="tb_department_id" class="f_black" id="tb_department_id">
<option value="">= เลือกกลุ่มสาระฯ =</option>
<?php
$query_department=$db->query("select * from tb_departments where tb_department_status ='1' order by tb_department_id asc");
while($fetch_department=$db->fetch_array($query_department)){
?>
<option value="<?php echo $fetch_department['tb_department_id'];?>" <?php if($fetch_userdetail['tb_department_id']==$fetch_department['tb_department_id']){echo "selected";}?>><?php echo $fetch_department['tb_department_name'];?></option>
<?php } ?>
</select>
</strong></td>
</tr>
<tr bgcolor="#FFFFFF">
<td align="left" nowrap="nowrap"><strong>รูปภาพประจำตัว :</strong></td>
<td colspan="3" align="left" nowrap="nowrap"><input name="tb_teacher_picture" type="file" class="f_black" id="tb_teacher_picture" />
<input type="hidden" name="tb_teacher_picture_me" value="<?php print $fetch_userdetail['tb_teacher_picture'];?>">
<a href="file_uploads/<?php print $fetch_userdetail['tb_teacher_picture'];?>" target="_blank"><img src="images/card.png" alt="ดูภาพแทนตัวเอง" width="16" height="16" border="0" align="absmiddle" /></a></td>
</tr>
<tr bgcolor="#03b4fe">
<td colspan="4" align="left" nowrap="nowrap"><strong>วุฒิการศึกษา</strong></td>
</tr>
<tr>
<td colspan="4" align="left" nowrap="nowrap" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td width="22%" nowrap="nowrap"><strong>ต่ำกว่าปริญญาตรี </strong></td>
<td width="28%" align="center" nowrap="nowrap"><input name="tb_teacher_edudown" type="text" class="f_black" id="tb_teacher_edudown" value="<?php print $fetch_userdetail['tb_teacher_edudown'];?>" size="30"></td>
<td width="12%" align="center" nowrap="nowrap"><strong>วิชาเอก</strong></td>
<td width="38%" nowrap="nowrap"><input name="tb_teacher_majordown" type="text" class="f_black" id="tb_teacher_majordown" size="30" value="<?php print $fetch_userdetail['tb_teacher_majordown'];?>"></td>
</tr>
<tr>
<td nowrap="nowrap"><strong>ปริญญาตรี หรือ เทียบเท่า </strong></td>
<td align="center" nowrap="nowrap"><input name="tb_teacher_edutee" type="text" class="f_black" id="tb_teacher_edutee" value="<?php print $fetch_userdetail['tb_teacher_edutee'];?>" size="30"></td>
<td align="center" nowrap="nowrap"><strong>วิชาเอก</strong></td>
<td nowrap="nowrap"><input name="tb_teacher_majortee" type="text" class="f_black" id="tb_teacher_majortee" size="30" value="<?php print $fetch_userdetail['tb_teacher_majortee'];?>"></td>
</tr>
<tr>
<td nowrap="nowrap"><strong>ปริญญาโทหรือ เทียบเท่า </strong></td>
<td align="center" nowrap="nowrap"><input name="tb_teacher_edutro" type="text" class="f_black" id="tb_teacher_edutro" value="<?php print $fetch_userdetail['tb_teacher_edutro'];?>" size="30"></td>
<td align="center" nowrap="nowrap"><strong>วิชาเอก</strong></td>
<td nowrap="nowrap"><input name="tb_teacher_majortro" type="text" class="f_black" id="tb_teacher_majortro" size="30" value="<?php print $fetch_userdetail['tb_teacher_majortro'];?>"></td>
</tr>
<tr>
<td nowrap="nowrap"><strong>ปริญญาเอก หรือ เทียบเท่า </strong></td>
<td align="center" nowrap="nowrap"><input name="tb_teacher_eduek" type="text" class="f_black" id="tb_teacher_eduek" value="<?php print $fetch_userdetail['tb_teacher_eduek'];?>" size="30"></td>
<td align="center" nowrap="nowrap"><strong>วิชาเอก</strong></td>
<td nowrap="nowrap"><input name="tb_teacher_majorek" type="text" class="f_black" id="tb_teacher_majorek" size="30" value="<?php print $fetch_userdetail['tb_teacher_majorek'];?>"></td>
</tr>
<tr>
<td nowrap="nowrap"><strong>อื่นๆ(โปรดระบุ)</strong></td>
<td align="center" nowrap="nowrap"><input name="tb_teacher_eduother" type="text" class="f_black" id="tb_teacher_eduother" value="<?php print $fetch_userdetail['tb_teacher_eduother'];?>" size="30"></td>
<td align="center" nowrap="nowrap"><strong>วิชาเอก</strong></td>
<td nowrap="nowrap"><input name="tb_teacher_majorother" type="text" class="f_black" id="tb_teacher_majorother" size="30" value="<?php print $fetch_userdetail['tb_teacher_majorother'];?>"></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="4" align="left" nowrap="nowrap" bgcolor="#FFFFFF"><strong>เงินเดือน อันดับ คศ
<input name="tb_teacher_money1" type="text" class="f_black" id="tb_teacher_money1" size="20" value="<?php print $fetch_userdetail['tb_teacher_money1'];?>">
ขั้น
<input name="tb_teacher_money2" type="text" class="f_black" id="tb_teacher_money2" size="10" value="<?php print $fetch_userdetail['tb_teacher_money2'];?>">
อัตราเงินเดือน
<input name="tb_teacher_money3" type="text" class="f_black" id="tb_teacher_money3" size="10" value="<?php print $fetch_userdetail['tb_teacher_money3'];?>" onBlur="this.value=formatCurrency(this.value);"/>
บาท</strong></td>
</tr>
<tr bgcolor="#03b4fe">
<td colspan="4" align="left" nowrap="nowrap"><strong>สถานที่ทำงาน ( 3 ลำดับล่าสุด ) </strong></td>
</tr>
<tr>
<td colspan="4" align="left" nowrap="nowrap"><table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td width="25%" nowrap="nowrap"><strong>1. โรงเรียน / หน่วยงาน <br />
(โรงเรียนปัจจุบัน)</strong></td>
<td width="75%"><strong>
<textarea name="tb_teacher_school1" cols="60" class="f_black" id="tb_teacher_school1"><?php print $fetch_userdetail['tb_teacher_school1'];?></textarea>
</strong></td>
</tr>
<tr>
<td nowrap="nowrap"><strong>2. โรงเรียน / หน่วยงาน<br />
(หากมีการโอนย้าย)</strong></td>
<td><strong>
<textarea name="tb_teacher_school2" cols="60" class="f_black" id="tb_teacher_school2"><?php print $fetch_userdetail['tb_teacher_school2'];?></textarea>
</strong></td>
</tr>
<tr>
<td nowrap="nowrap"><strong>3. โรงเรียน / หน่วยงาน<br />
(หากมีการโอนย้าย)</strong></td>
<td><strong>
<textarea name="tb_teacher_school3" cols="60" class="f_black" id="tb_teacher_school3"><?php print $fetch_userdetail['tb_teacher_school3'];?></textarea>
</strong></td>
</tr>
</table></td>
</tr>
<tr bgcolor="#03b4fe">
<td colspan="4" align="left" nowrap="nowrap"><strong>งานพิเศษที่ได้รับมอบหมาย</strong></td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="4" align="center" nowrap="nowrap"><textarea class="ckeditor" name="tb_teacher_workother" id="tb_teacher_workother"><?php print $fetch_userdetail['tb_teacher_workother'];?></textarea></td>
</tr>
</table>
</fieldset></td>
</tr>
<tr>
<td align="center" valign="top" bgcolor="#FFFFFF"></td>
</tr>
<tr>
<td align="center" valign="top" bgcolor="#FFFFFF"><input name="Submit" type="submit" value="บันทึกข้อมูล" /></td>
</tr></form>
</table></td>
</tr>
<tr>
<td height="100%" align="center" valign="top"> </td>
<td width="1" align="center" valign="top" background="images/hdot.gif"></td>
<td align="center" valign="top" bgcolor="#FFFFFF"> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="50" valign="bottom"><?php include("footer.php");?></td>
</tr>
</table>
</body>
</html>
<?php
}else{
?>
<script language="javascript">window.location.href = 'login.php'</script>
<?php
}
?>
<script type="text/javascript">
//<![CDATA[
CKEDITOR.replace( 'tb_teacher_workother',{
enterMode : CKEDITOR.ENTER_BR,
} );
//]]>
</script>