Viewing file: AddPosition.php (7.09 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" );
/** Chart */
include ("../includes/charts.php");
/** Create Database Object */
$dbObj = new DBConn;
$sql = " SELECT *, prefixName as First_name FROM personal_tb LEFT JOIN prefix ON personal_tb.First_name = prefix.prefixId WHERE Teacher_code='$Teacher_code' ";
$result = mysql_query($sql);
$rss = mysql_fetch_array($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>
<title>ข้อมูลการพัฒนาบุคลากร - ประวัติการรับพระราชทานเครื่องราชอิสริยาภรณ์บุคลากรทั้งหมด</title>
<style type="text/css">
<!--
.style4 { font-family: Tahoma;
font-size: 14px;
}
.style5 {font-size: 14px}
-->
</style>
</head>
<body topmargin="0" rightmargin="0" bottommargin="0" leftmargin="0">
<br />
<table width="624" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="624" height="229"><fieldset>
<form id="form1" name="form1" method="post" action="InsertPositionSave.php">
<br />
<table width="86%" border="0" align="center" cellpadding="0" cellspacing="1" style="background-color:#eeeeee; border:0px solid gray"size="12">
<tr bgcolor="#D9ECFF">
<td colspan="3" bgcolor="#FFFFFF"><div align="center" class="style5"><font color="#000000" face="Tahoma">เพิ่มข้อมูลประวัติการดำรงตำแหน่ง</font></div></td>
</tr>
<tr bgcolor="#eeeeee">
<td bordercolor="#CCCCCC" bgcolor="#FFFFFF"><div align="center" class="style5"><font face="Tahoma">ชื่อ-
นามสกุล</font></div></td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"> </td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><font color="#993333"><strong><font color="#993333"><strong><font size="2" face="Tahoma"> <?php echo $rss['First_name'] ;?> <?php echo $rss['Teacher_name'] ;?> <? echo $rss['Teacher_lastname'];?></font></strong></font></strong></font></td>
</tr>
<tr bgcolor="#eeeeee">
<td width="30%" bordercolor="#CCCCCC" bgcolor="#FFFFFF"><div align="center" class="style5"><font face="Tahoma">วัน/เดือน/ปี</font></div></td>
<td width="2%" bordercolor="#FFFFCC" bgcolor="#FFFFFF"> </td>
<td width="68%" bordercolor="#FFFFCC" bgcolor="#FFFFFF"><font color="#000000" size="2" face="Tahoma">วัน
<select name="mDate" id="mDate" class="select" onkeypress="return handleEnter(this, event)" >
<? getDay1to31();?>
</select>
เดือน
<select name="mMonth" id="mMonth" class="select" onkeypress="return handleEnter(this, event)">
<? getThaiMonth();?>
</select>
ปี พ.ศ
<input name="mYear" type="text" class="style5" id="mYear" size="3" maxlength="4" />
</font></td>
</tr>
<tr bgcolor="#eeeeee">
<td bordercolor="#CCCCCC" bgcolor="#FFFFFF"><div align="center" class="style5"><font face="Tahoma">เลขที่ตำแหน่ง</font></div></td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"> </td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><input name="Position_id" type="text" class="style5" id="Position_id" size="30" /></td>
</tr>
<tr bgcolor="#eeeeee">
<td bordercolor="#CCCCCC" bgcolor="#FFFFFF"><div align="center" class="style5"><font face="Tahoma">ตำแหน่ง</font></div></td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"> </td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><input name="Gover_pos" type="text" id="Gover_pos" size="40" class="style5" />
<font size="2" face="Tahoma">ระดับ
<input name="Level" type="text" class="style5" id="Level" size="2" maxlength="3" />
</font></td>
</tr>
<tr bgcolor="#eeeeee">
<td bordercolor="#CCCCCC" bgcolor="#FFFFFF"><div align="center" class="style5"><font face="Tahoma">เงินเดือน</font></div></td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"> </td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><font size="2" face="Tahoma">
<input name="Salary" type="text" class="style5" id="Salary" size="6" maxlength="9" />
บาท <font color="#FF0000">(ไม่ต้องใส่เครื่องหมาย , )</font></font></td>
</tr>
<tr bgcolor="#eeeeee">
<td bordercolor="#CCCCCC" bgcolor="#FFFFFF"><div align="center" class="style5"><font face="Tahoma">คำสั่ง</font></div></td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"> </td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><label>
<textarea name="Order_id" cols="45" id="Order_id"></textarea>
</label></td>
</tr>
<tr bgcolor="#D9ECFF">
<td colspan="3" align="center" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#D9ECFF">
<td colspan="3" align="center" bgcolor="#FFFFFF"><input type="hidden" name="Teacher_code" value="<? echo $rss[Teacher_code]?>" />
<input name="Submit3" type="submit" class="WIDTH60" id="Submit2" value="บันทึก" />
<input name="Reset2" type="reset" class="WIDTH60" id="Reset2" value="Reset" />
<input type="button" name="Submit22" value="ปิดหน้าต่าง" onclick="javascript:parent.close();" class="CURSOR-HAND" /></td>
</tr>
</table>
<p> </p>
</form>
</label>
</fieldset>
<font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2"> </font></td>
</tr>
</table>
</body>
</html>
<?php
/** Free Resource */
$dbObj->freeresult($result);
/** Close the Database */
$dbObj->disconn();
/** Unset Class */
unset($dbObj);
?>
|