Viewing file: FrmEditFormA.php (29.88 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 = "personal_tb";
$myTable2 = "formaoffice";
$myTable3 = "project_tb";
$myTable4 = "training_tb";
/** Table --> personal_tb */
$query = " SELECT * FROM $myTable1 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 $myTable2 WHERE codeId='$codeId' ";
$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 $myTable4 WHERE Training_code='$Training_code' ";
$result3 = $dbObj->execQuery($query3);
$rs3 = $dbObj->fetchArray($result3);
} # 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 type="text/javascript" src="../js/ajaxScript.js"></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="EditFromA.php?Teacher_code=<?=$Teacher_code;?>&Training_code=<?=$Training_code;?>&codeId=<?=$codeId;?>">
<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_plan.php?Year_std=<?=$rs1[Year_std]; ?>">เมนูแสดงรายละเอียดของแผน</a> » <span class="NOTE">แก้ไขข้อมูลขอลาเดินทางไปราชการ</span></strong></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td align="center">
<?php
?>
<table width="750" 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'";
$result1 = mysql_query($sql) or die("Error".mysql_error());
$rs2 = mysql_fetch_array($result1);
echo "$rs2[collegeName] ";
?>
</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" />
<input name="Flag" type="hidden" id="Flag" value="<? echo $rs1["Flag"]?>" />
</font></td>
<td width="148" height="29" align="left"> </td>
<td height="29" align="left"> </td>
<td height="29" colspan="2" align="left"><font color="#000000" size="2" face="Tahoma">วันที่
<select name="mDate" id="mDate" class="select" >
<?php
$Date = $rs1[Date];
$yearthai = explode("-",$Date);
$mDate = intval($yearthai[2]);
$mMonth = intval($yearthai[1]);
$mYear = intval($yearthai[0]);
for($i=0;$i<=31;$i++)
{
if( $i == 0)
echo"\n\t<option value=\"$mDate\" selected>$mDate</option>\n ";
else
echo"\n\t<option value=\"$i\">$i</option>\n ";
}
// getDay1to31();
?>
</select>
เดือน
<select name="mMonth" id="mMonth" class="select" >
<?php
$Date = $rs1[Date];
$yearthai = explode("-",$Date);
$mDate= intval($yearthai[2]);
$Month = intval($yearthai[1]);
$mYear = intval($yearthai[0]);
$mMonth = $Month;
$CMonth = TxtThaiMonth($Month);
for($i=-1;$i<=11;$i++)
{
$a = $i+1;
if( $a == 0)
echo"\n\t<option value=\"$mMonth\" selected>$CMonth</option>\n ";
else
echo"\n\t<option value=\"$a\">$ThaiMonth[$i]</option>\n ";
}
// getThaiMonth();
?>
</select>
</font><font color="#0000FF" size="2" face="Tahoma">
</font><font color="#000000" size="2" face="Tahoma">ปี พ.ศ.</font><font color="#0000FF" size="2" face="Tahoma">
<input name="mYear" type="text" id="mYear" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo $mYear ?>" size="4" maxlength="4" />
</font></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="35"></td>
<td width="202"></td>
<td width="155"></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'";
$result1 = mysql_query($sql) or die("Error".mysql_error());
$rs2 = mysql_fetch_array($result1);
echo "$rs2[collegeName] ";
?>
</font></td>
<td></td>
</tr>
<tr height="29">
<td width="125" height="25"></td>
<td colspan="5" align="left">ข้าพเจ้า.<font color="#0000FF" size="2" face="Tahoma">
<input name="Name" type="text" id="Name" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="25" value="<? echo $rss[First_name]?> <? echo $rss[Teacher_name]?> <? echo $rss[Teacher_lastname]?> " />
</font> ตำแหน่ง<font color="#0000FF" size="2" face="Tahoma">
<input name="Name2" type="text" id="Name2" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="25" value=" <? $PositionId = $rss["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>
</tr>
<tr height="29">
<td height="29" colspan="6" align="left">สังกัด<font color="#0000FF" size="2" face="Tahoma">
<input name="Name3" type="text" id="Name3" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="20" value="<?php $Faculty_code = $rss["Faculty_code"];
$sql = "Select * From faculty_tb Where Faculty_code='$Faculty_code'";
$result1 = mysql_query($sql) or die("Error".mysql_error());
$rs2 = mysql_fetch_array($result1);
echo "$rs2[Faculty_name] "; ?>" />
</font><font color="#0000FF" size="2" face="Tahoma">
<input name="Name3" type="text" id="Name4" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="40" value="<?php
$collegeCode = $rss["collegeCode"];
$sql = "Select * From college Where collegeStatus ='1'";
$result1 = mysql_query($sql) or die("Error".mysql_error());
$rs2 = mysql_fetch_array($result1);
echo "$rs2[collegeName] "; ?> " />
</font><span class="style1">สถาบันพระบรมราชชนก</span></td>
</tr>
<tr height="29">
<td height="29" colspan="6" align="left">ขออนุมัติเดินทางไปราชการ เรื่อง <font size="2" face="Tahoma"><span class="style9">*</span></font><font color="#0000FF" size="2" face="Tahoma">
<input name="Training_name" type="text" id="Training_name" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rs1['Training_name'];?>" size="60" />
</font></td>
</tr>
<tr height="29">
<td height="29" colspan="6" align="left">เดินทางโดย <font size="2" face="Tahoma">
<input type="radio" name="Travel" <?php if (!(strcmp("$rs1[Travel]","1"))){echo "checked";} ?> value="1" />
</font>โดยรถยนต์ของทางราชการ <font size="2" face="Tahoma">
<input type="radio" name="Travel" <?php if (!(strcmp("$rs1[Travel]","2"))){echo "checked";} ?> value="2" />
</font> รถยนต์ปรับอากาศ <font size="2" face="Tahoma">
<input type="radio" name="Travel" <?php if (!(strcmp("$rs1[Travel]","3"))){echo "checked";} ?> value="3" />
</font>รถไฟ <font size="2" face="Tahoma">
<input type="radio" name="Travel" <?php if (!(strcmp("$rs1[Travel]","4"))){echo "checked";} ?> value="4" />
</font>เครื่องบิน <font size="2" face="Tahoma">
<input type="radio" name="Travel" <?php if (!(strcmp("$rs1[Travel]","5"))){echo "checked";} ?> value="5" />
</font>รถยนต์ส่วนตัว <font color="#0000FF" size="2" face="Tahoma"> </font></td>
</tr>
<tr height="29">
<td height="29" colspan="6" align="left"><label>อ้างตามหนังสือราชการเลขที่</label>
<font size="2" face="Tahoma">
<?php
// $ProjectId = $rs1["ProjectId"];
// $sql = "Select * From project_tb Where ProjectId='$ProjectId' ";
// $result2 = mysql_query($sql) or die("Error".mysql_error());
// $rs2 = mysql_fetch_array($result2);
//echo "$rs2[Orderlist]";
?>
</font> <span class="style5">*</span><font color="#0000FF" size="2" face="Tahoma">
<input name="No_in" type="text" id="No_in" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo $rs1[No_in];?>" size="25" />
<input name="Status" type="text" id="Status" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo $rs1[Status];?>" size="45" />
</font>
<input name="code" type="hidden" id="code" value=<?php echo $rs1[code];?>" /></td>
</tr>
<tr height="29">
<td height="37" colspan="6" align="left">อ้างตามแผนดำเนินการ ข้อที่<font size="2" face="Tahoma">
<?php
$ProjectId = $rs1["ProjectId"];
$sql = "Select * From project_tb Where ProjectId='$ProjectId' ";
$result2 = mysql_query($sql) or die("Error".mysql_error());
$rs2 = mysql_fetch_array($result2);
//echo "$rs2[Orderlist]";
?>
</a>*</a>
<input name="Orderlist" type="text" id="Orderlist" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?php echo $rs2[Orderlist];?>" size="6" readonly /> </a>
รายละเอียด
</a>
<input name="Project_plan" type="text" id="Project_plan" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?php echo $rs2[Project_plan];?>" size="38" readonly />
</font><font face="Tahoma"><span class="style11">ปี พ.ศ</span></font>
<input name="Year_std" type="text" id="Year_std" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rs1['Year_std'];?>" size="3" readonly />
<input name="Budget_Year" type="hidden" id="Budget_Year" value="<?php echo $rs2[Budget_Year];?>" />
<input name="MoneyS_C" type="hidden" id="MoneyS_C" value="<?php echo $rs2[MoneyS_C];?>" />
<input name="MoneyId" type="hidden" id="MoneyId" value=" <?php echo $rs2[MoneyId];?> " />
<input name="ProjectId" type="hidden" id="ProjectId" value="<?php echo $rs2[ProjectId];?>" />
<input name="Project_code" type="hidden" id="Project_code" value="<?php echo $rs2[Project_code];?>" /></td>
</tr>
<tr height="29">
<td height="29" colspan="6" align="left">จำนวนเงิน </a>*</a>
<input name="Budget_use" type="text" id="Budget_use" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rs1['Budget_use'];?>" size="6" onkeypress="checkNumeric()" onkeyup="checkBudget()" />บาท </a><span id="budgetOver"></span> </a>วันที่
<select name="mDate1" id="mDate1" class="select" >
<?php
$Date_start = $rs1[Date_start];
$yearthai = explode("-",$Date_start );
$mDate = intval($yearthai[2]);
$mMonth = intval($yearthai[1]);
$mYear = intval($yearthai[0]);
for($i=0;$i<=31;$i++)
{
if( $i == 0)
echo"\n\t<option value=\"$mDate\" selected>$mDate</option>\n ";
else
echo"\n\t<option value=\"$i\">$i</option>\n ";
}
// getDay1to31();
?>
</select>
เดือน
<select name="mMonth1" id="mMonth1" class="select" >
<?php
$Date_start = $rs1[Date_start ];
$yearthai = explode("-",$Date_start );
$mDate= intval($yearthai[2]);
$Month = intval($yearthai[1]);
$mYear = intval($yearthai[0]);
$mMonth = $Month;
$CMonth = TxtThaiMonth($Month);
for($i=-1;$i<=11;$i++)
{
$a = $i+1;
if( $a == 0)
echo"\n\t<option value=\"$mMonth\" selected>$CMonth</option>\n ";
else
echo"\n\t<option value=\"$a\">$ThaiMonth[$i]</option>\n ";
}
// getThaiMonth();
?>
</select>
</font><font color="#0000FF" size="2" face="Tahoma"> </font><font color="#000000" size="2" face="Tahoma">ปี พ.ศ.</font><font color="#0000FF" size="2" face="Tahoma">
<input name="mYear1" type="text" id="mYear1" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo $mYear ?>" size="3" maxlength="4" />
</font>ถึงวันที่<font color="#000000"> </font><span class="style5">*</span><font color="#000000" size="2" face="Tahoma">
<select name="mDate2" id="mDate2" class="select" >
<?php
$Date_finish = $rs1[Date_finish];
$yearthai = explode("-",$Date_finish );
$mDate = intval($yearthai[2]);
$mMonth = intval($yearthai[1]);
$mYear = intval($yearthai[0]);
for($i=0;$i<=31;$i++)
{
if( $i == 0)
echo"\n\t<option value=\"$mDate\" selected>$mDate</option>\n ";
else
echo"\n\t<option value=\"$i\">$i</option>\n ";
}
// getDay1to31();
?>
</select>
เดือน
<select name="mMonth2" id="mMonth2" class="select" >
<?php
$Date_start = $rs1[Date_start ];
$yearthai = explode("-",$Date_start );
$mDate= intval($yearthai[2]);
$Month = intval($yearthai[1]);
$mYear = intval($yearthai[0]);
$mMonth = $Month;
$CMonth = TxtThaiMonth($Month);
for($i=-1;$i<=11;$i++)
{
$a = $i+1;
if( $a == 0)
echo"\n\t<option value=\"$mMonth\" selected>$CMonth</option>\n ";
else
echo"\n\t<option value=\"$a\">$ThaiMonth[$i]</option>\n ";
}
// getThaiMonth();
?>
</select>
</a>ปี พ.ศ.</a>
<input name="mYear2" type="text" id="mYear2" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo $mYear ?>" size="3" maxlength="4" />
</a></td>
</tr>
<tr height="31">
<td height="31" colspan="6">มีกำหนด</a>
<input name="Day" type="text" id="Day" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rs1['Day'];?>" size="2" maxlength="3" />
</a>วัน โดยขอเบิกค่าใช้จ่ายในการเดินทางไปราชการและในระหว่างการเดินทางไปราชการ</a></td>
</tr>
<tr height="31">
<td height="31" colspan="6">ข้าพเจ้าขอมอบหมายในหน้าที่ </a>
<input name="assignMent" type="text" id="assignMent" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?php echo $rs1[assignMent];?>" size="30" />
ให้ </a>
<input name="assignmentName" type="text" id="Name7" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="25" value="<?php echo $rs1[assignmentName];?> " />
</a> ผู้รับปฏิบัติงานแทน</a></td>
</tr>
<tr height="31">
<td height="31" colspan="6"><strong> ประวัติการพัฒนาตนเอง</a></strong></td>
</tr>
<tr height="29">
<td height="29" colspan="6" align="left"><span class="style7">วัตถุประสงค์เพื่อ</span><font size="2" face="Tahoma">
<input type="radio" name="Training_type" <?php if (!(strcmp("$rs3[Training_type]","1"))){echo "checked";} ?> value="1" />
</font><span class="style7"> การอบรม</span><font size="2" face="Tahoma">
<input type="radio" name="Training_type" <?php if (!(strcmp("$rs3[Training_type]","2"))){echo "checked";} ?> value="2" />
</font><span class="style7"> การศึกษาดูงาน</span><font size="2" face="Tahoma">
<input type="radio" name="Training_type" <?php if (!(strcmp("$rs3[Training_type]","3"))){echo "checked";} ?> value="3" />
</font><span class="style7">ประชุม</span><font size="2" face="Tahoma">
<input type="radio" name="Training_type" <?php if (!(strcmp("$rs3[Training_type]","4"))){echo "checked";} ?> value="4" />
</font><span class="style7">สัมมนา</span> <font size="2" face="Tahoma">
<input type="radio" name="Training_type" <?php if (!(strcmp("$rs3[Training_type]","5"))){echo "checked";} ?> value="6" />
</font><span class="style7">นิเทศงาน </span><font size="2" face="Tahoma">
<input type="radio" name="Training_type" <?php if (!(strcmp("$rs3[Training_type]","7"))){echo "checked";} ?> value="7" />
</font><span class="style7">การเป็นวิทยากร</span></td>
</tr>
<tr height="29">
<td height="29" colspan="6" align="left">ประเภทของการพัฒนา
<input name="Training_std" type="radio" <?php if (!(strcmp("$rs3[Training_std]","Y"))){echo "checked";} ?> value="Y" />
พัฒนาตามสายงาน
<input name="Training_std" type="radio" <?php if (!(strcmp("$rs3[Training_std]","N"))){echo "checked";} ?> value="N" />
พัฒนาตนเอง</td>
</tr>
<tr height="29">
<td height="29" colspan="6" align="left">จำนวนชั่วโมง
<input name="Total_hour" type="text" id="Total_hour" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?php echo $rs3[Total_hour];?>" size="4" />
แหล่งเงินสนับสนุน <font color="#0000FF" size="2" face="Tahoma">
<input name="Fund_resource" type="text" id="Fund_resource" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?php echo $rs3[Fund_resource];?>" size="50" />
</font></td>
</tr>
<tr height="29">
<td height="29" colspan="6" align="left">หน่วยงานที่จัด
<input name="Organiz" type="text" id="Organiz" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?php echo $rs3[Organiz];?>" size="50" /></td>
</tr>
<tr height="29">
<td height="29" colspan="6" align="left">สถานที่จัด</a>
<input name="CNEU" type="text" id="CNEU" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?php echo $rs3[CNEU];?>" size="50" />
</a>จังหวัด </a>
<select name="provinceId" id="provinceId" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" >
<?php
$strSQL3 = " SELECT * FROM province ";
$result3 = mysql_query($strSQL3);
while( $rs3 = mysql_fetch_array($result3) ) {
?>
<option value="<?=$rs3['provinceId'];?>" <?php if( $rs3['provinceId']==$rs1['provinceId'] ) echo 'selected'; ?>>
<?=$rs3['provinceName'];?>
</option>
<?php
} # while
?>
</select>
</a></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">(<font color="#003366" size="2" face="Tahoma"><? echo $rss[First_name]?> <? echo $rss[Teacher_name]?> <? echo $rss[Teacher_lastname]?></font>)
<input name="Teacher_code2" type="hidden" id="Teacher_code2" 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=" <? $PositionId = $rss["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></td>
</tr>
<tr height="29">
<td height="29" colspan="2" align="left"><label>
<input name="Flag1" type="checkbox" id="Flag1" value="1" disabled="disabled" />
อนุญาต
<input name="Flag1" type="checkbox" id="Flag1" value="2" disabled="disabled" />
ไม่อนุญาต</label></td>
<td align="left"> </td>
<td colspan="3" align="left">*
<select name="Teacher_code" id="Teacher_code" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" >
<?php
$strSQL3 = " SELECT * FROM $myTable1 ";
$result3 = mysql_query($strSQL3);
while( $rs3 = mysql_fetch_array($result3) ) {
?>
<option value="<?=$rs3['Teacher_code'];?>" <?php if( $rs3['Teacher_code']==$rs1['Teacher_code'] ) echo 'selected'; ?>>
<?=$rs3['First_name'];?><?=$rs3['Teacher_name'];?> <?=$rs3['Teacher_lastname'];?>
</option>
<?php
} # while
?>
</select></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="2" align="center">(<font size="2" face="Tahoma">
<?php
//$Teacher_code = $rss["TeacherId"];
$sql = "Select * From personal_tb Where Faculty_code ='$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"><div align="center">คำสั่ง</div></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"><input name="Flag2" type="checkbox" id="Flag2"<?php if (!(strcmp("$rs1[Flag2]","อนุมัติ"))){echo "checked";} ?> value="อนุมัติ" disabled="disabled" />
อนุมัติ
<input name="Flag2" type="checkbox" id="Flag2" <?php if (!(strcmp("$rs1[Flag2]","ไม่อนุมัติ"))){echo "checked";} ?> value="ไม่อนุมัติ" disabled="disabled" />
ไม่อนุมัติ</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="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="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="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" 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;?>'" /></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);
?>
|