Viewing file: FrmEditFormCar_old.php (28.8 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 = "formcaroffice";
$myTable3 = "project_tb";
$myTable4 = "training_tb";
/** Table --> personal_tb */
$query = " SELECT * FROM $myTable1 WHERE Username='$Username' ";
$result = $dbObj->execQuery($query);
$rss = $dbObj->fetchArray($result);
$Teacher_code = $rss['Teacher_code'];
/** Table --> tech_plan_tb */
$query1 = " SELECT * FROM $myTable2 WHERE carId='$carId' ";
$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 */
} # 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>
</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="734" border="0" cellspacing="0" cellpadding="0">
<form id="pc" name="pc" method="post" action="EditFromCar.php?Teacher_code=<?=$Teacher_code;?>&carId=<?=$carId;?>">
<tr>
<td width="734" 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_Form.php?Teacher_code=<?=$Teacher_code;?>">แบบฟอร์ราชการ</a> » <a href="FormCarList.php?Teacher_code=<?=$Teacher_code;?>">แบบฟอร์มบันทึกขอใช้รถยนต์</a> » <span class="NOTE">แก้ไขข้อมูลการขออนุมัติรถยนต์</span></strong></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td align="center">
<?php
?>
<table width="712" border="0" align="center" cellpadding="0" cellspacing="3">
<tr height="31">
<td height="31" colspan="6" align="center" class="PATRON11">ใบขออนุมัติใช้รถยนต์ของทางราชการ</td>
</tr>
<tr height="29">
<td height="21" colspan="6">เขียนที่ <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>
<input name="Teacher_code" type="hidden" id="Teacher_code" value="<? echo $rss["Teacher_code"]?>" />
</tr>
<tr height="29">
<td height="29" colspan="6" align="center"> <span class="style1">วันที่
<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+543 ; ?>" 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="Da " type="text" id="Da " style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="ขอใช้รถยนต์ราชการ" size="20" />
</font></td>
<td width="31"></td>
<td width="248"></td>
<td width="48"></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="108" 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="30" 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="20" 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"><label>ขออนุมัติใช้รถยนต์ไปราชการที่<font color="#0000FF" size="2" face="Tahoma">
<input name="makeWord" type="text" id="makeWord" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="40" value="<?=$rs1["makeWord"]; ?>"/>
</font><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" onclick="MM_openBrWindow('bookCodeCar.php?Faculty_code=<? echo $rss["Faculty_code"]?>','Detail','width=820,height=280,scrollbars=yes')"><a href="#" ><img src="../picture/search.gif" width="15" height="19" border="0" align="absmiddle" /></a></font><font color="#0000FF" size="2" face="Tahoma">
<input name="code" type="hidden" id="code" />
</font> <font face="Tahoma">จังหวัด</strong><font color="#003366" size="2" face="Tahoma"></font><font face="Tahoma"><font color="#003366" size="2" face="Tahoma">
<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>
</font></font></font></label></td>
</tr>
<tr height="29">
<td height="29" colspan="6" align="left">เพื่อ<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" size="70" value="<? echo $rs1["Training_name"]; ?>"/>
</font><font face="Tahoma"><span class="style14">จำนวนผู้ร่วมเดินทาง </span></font><font color="#0000FF" size="2" face="Tahoma">
<input name="Make" type="text" id="Make" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="2" value="<? echo $rs1["Make"]; ?>" onkeypress="return checkNumeric();" />
</font><font face="Tahoma"><span class="style14">คน</span></font></td>
</tr>
<tr height="29">
<td height="29" colspan="6" 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="<? echo $rs1["Detail"]; ?>" size="70" />
</font></td>
</tr>
<tr height="29">
<td height="29" colspan="6" align="left">ประเภทในการขอใช้รถยนต์
<input type="radio" name="Training_type" value="1" <? if ($rs1["Training_type"] == 1) echo "checked"; ?> />
การอบรม
<input type="radio" name="Training_type" value="2" <? if ($rs1["Training_type"] == 2) echo "checked"; ?> />
การศึกษาดูงาน
<input type="radio" name="Training_type" value="3" <? if ($rs1["Training_type"] == 3) echo "checked"; ?> />
ประชุม
<input type="radio" name="Training_type" value="4" <? if ($rs1["Training_type"] == 4) echo "checked"; ?> />
สัมมนา
<input type="radio" name="Training_type" value="5" <? if ($rs1["Training_type"] == 5) echo "checked"; ?> />
วิทยากร
<input type="radio" name="Training_type" value="6" <? if ($rs1["Training_type"] == 6) echo "checked"; ?> />
นิเทศงาน
<input type="radio" name="Training_type" value="7" <? if ($rs1["Training_type"] == 7) echo "checked"; ?> />
อื่นๆ
</td>
</tr>
<tr height="29">
<td height="29" colspan="6" align="left">สถานะการเดินทาง
<input name="object" type="radio" id="object2" value="1" <? if ($rs1["object"] == 1) echo "checked"; ?> />
ค้างคืน
<input name="object" type="radio" id="object2" value="2" <? if ($rs1["object"] == 2) echo "checked"; ?> />
ไปกลับ
<input name="object" type="radio" id="object2" value="3" <? if ($rs1["object"] == 3) echo "checked"; ?> />
ส่งอย่างเดียว </a>
<input name="object" type="radio" id="object" value="4" <? if ($rs1["object"] == 4) echo "checked"; ?> />
รับอย่างเดียว
<input name="object" type="radio" id="object" value="5" <? if ($rs1["object"] == 5) echo "checked"; ?> />
รับส่ง </a> ปีงบประมาณ</a>*</a>
<input name="Budget_year" type="text" id="Budget_year" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo $rs1[Budget_year]; ?>" size="4" maxlength="4" />
</font></td>
</tr>
<tr height="29">
<td height="29" colspan="6" align="left"><input name="PersonIn" type="checkbox" id="PersonIn" value="รับวิทยากร" <?php if($rs1["PersonIn"] == "รับวิทยากร" ) echo 'checked'; ?> onclick="checkAssign1(this,myForm.PersonIy)" />
รับวิทยากร ชื่อ </a>
<input name="Personly" type="text" id="Personly" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rs1['Personly'];?>" size="30" />
เวลารับ
<input name="Time_startName" type="text" id="Time_startName" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" onkeypress="return checkNumeric();" value="<?=$rs1['Time_startName'];?>" size="5" maxlength="5" />
เวลาส่ง
<input name="Time_finishName" type="text" id="Time_finishName" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" onkeypress="return checkNumeric();" value="<?=$rs1['Time_finishName'];?>" size="5" maxlength="5" />
</font></td>
<input name="ProjectId" type="hidden" id="ProjectId" />
</tr>
<tr height="29">
<td height="29" colspan="6" align="left">สถานที่<font color="#0000FF" size="2" face="Tahoma">
<input name="Place" type="text" id="Place" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo $rs1["Place"]; ?>" size="50" />
</font> โทรศัพท์<font color="#0000FF" size="2" face="Tahoma">
<input name="TelNo" type="text" id="TelNo" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="10" maxlength="9" value="<? echo $rs1["TelNo"]; ?>" />
</font></td>
</tr>
<tr height="29">
<td height="29" colspan="6" align="left">อ้างการขอใช้รถวันที่<font color="#000000">
วันที่
<select name="mDate2" id="mDate2" class="select" >
<?php
$Date = $rs1[Date_start];
$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="mMonth2" id="mMonth2" class="select" >
<?php
$Date = $rs1[Date_start];
$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="mYear2" type="text" id="mYear2" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo $mYear+543 ?>" size="4" maxlength="4" />
</font><font color="#000000">เวลา<font color="#0000FF" size="2" face="Tahoma">
<input name="Time_start" type="text" id="Time_start" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rs1['Time_start'];?>" size="5" maxlength="5" onkeypress="return checkNumeric();" />
</font>น. </font></td>
</tr>
<tr height="29">
<td height="29" colspan="6" align="left">ถึงวันที่
<select name="mDate3" id="mDate3" class="select" >
<?php
$Date = $rs1[Date_finish];
$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="mMonth3" id="mMonth3" class="select" >
<?php
$Date = $rs1[Date_finish];
$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><font color="#000000" size="2" face="Tahoma">ปี พ.ศ.</font>
<input name="mYear3" type="text" id="mYear3" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo $mYear +543 ;?>" size="4" maxlength="4" />
เวลา <font color="#0000FF" size="2" face="Tahoma">
<input name="Time_finish" type="text" id="Time_finish" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="5" maxlength="5" value="<?=$rs1['Time_finish'];?>" onkeypress="return checkNumeric();" />
</font>น. โดย
<label>
<input type="radio" name="usecar" value="1" <? if ($rs1["usecar"] == 1) echo "checked"; ?>/>
</label>
ใช้ พขร
<label>
<input name="usecar" type="radio" value="2" <? if ($rs1["usecar"] == 2) echo "checked"; ?> />
</label>
ไม่ใช้ พขร </font></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="29">
<td height="29"></td>
<td width="91"></td>
<td width="165"></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr height="31">
<td height="31"> </td>
<td> </td>
<td></td>
<td colspan="3" align="left"> <span class="style1">ขอแสดงความนับถือ</span></td>
</tr>
<tr height="29">
<td height="29" colspan="3" align="left"> </td>
<td></td>
<td></td>
<td></td>
</tr>
<tr height="31">
<td height="31" align="left"> </td>
<td> </td>
<td> </td>
<td> </td>
<td>(ลงชื่อ)..................................</td>
<td></td>
</tr>
<tr height="29">
<td height="29"> </td>
<td> </td>
<td> </td>
<td></td>
<td align="center">(</a> </a><? echo $rss[First_name]?> <? echo $rss[Teacher_name]?> <? echo $rss[Teacher_lastname]?></a> )</td>
<td></td>
</tr>
<tr height="31">
<td height="31"> </td>
<td> </td>
<td> </td>
<td colspan="3" align="left"><span class="style13">ความเห็นหัวหน้าฝ่าย/ภาค</span></td>
</tr>
<tr height="29">
<td height="28" colspan="2"><strong> </strong>จึงเรียนมาเพื่อโปรดอนุมัติ</td>
<td></td>
<td colspan="3" align="center">
<input name="Info_name" type="text" id="Info_name" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="30" />
</a></td>
</tr>
<tr height="29">
<td height="29" colspan="3" align="left"> </td>
<td></td>
<td></td>
<td></td>
</tr>
<tr height="29">
<td height="29" colspan="3" align="left">ลงชื่อ............................................ผู้จัดยานพาหนะ </td>
<td></td>
<td>..............................................</td>
<td></td>
</tr>
<tr height="29">
<td height="29" colspan="2" align="left"><div align="center">(.........................................) </div></td>
<td align="left"> </td>
<td colspan="3" align="left"> ลงชื่อ....<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>
</tr>
<tr height="29">
<td height="29" colspan="3" align="left">ลงชื่อ่........................................หัวหน้ายานพาหนะ </td>
<td colspan="3" align="left">ตำแหน่ง.<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 = $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>
</tr>
<tr height="29">
<td height="29" colspan="2"><div align="center">(...........................................)</div></td>
<td></td>
<td colspan="3" align="left">วันที่..........เดือน..........................พ.ศ............
.</td>
</tr>
<tr height="29">
<td height="29"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr height="31">
<td height="31"></td>
<td></td>
<td></td>
<td align="left"><div align="center">คำสั่ง</div></td>
<td></td>
<td></td>
</tr>
<tr height="29">
<td height="29"></td>
<td></td>
<td></td>
<td align="left"></td>
<td colspan="2" align="left"><label>
<input type="checkbox" name="checkbox" value="checkbox" />
</label>
อนมัติ
<input type="checkbox" name="checkbox2" value="checkbox" />
ไม่อนุมัติ</td>
</tr>
<tr height="29">
<td height="29"></td>
<td></td>
<td></td>
<td></td>
<td colspan="2" align="left"> </td>
</tr>
<tr height="29">
<td height="29"></td>
<td></td>
<td></td>
<td colspan="3" align="left"> (ลงชื่อ)......................................................
..</td>
</tr>
<tr height="29">
<td height="29"></td>
<td></td>
<td></td>
<td colspan="3" align="left">(ตำแหน่ง)............................................................
.</td>
</tr>
<tr height="29">
<td height="29"></td>
<td></td>
<td></td>
<td colspan="3" align="left">วันที่..........เดือน..........................พ.ศ............
.</td>
</tr>
<tr height="31">
<td height="10" colspan="6" align="center"> </td>
</tr>
<tr height="31">
<td height="31" colspan="6" align="center"> </td>
</tr>
</table></td>
</tr>
<tr>
<td align="center"> </td>
</tr>
<tr>
<td align="center"><input name="carId" type="hidden" id="carId" value="<? echo $carId; ?>&Teacher_code<? echo $Teacher_code;?>" />
<input type="submit" name="Submit" value="บันทึก" class="WIDTH60 CURSOR-HAND" />
<input type="reset" name="Reset" value="รีเซ็ต" class="WIDTH60 CURSOR-HAND" />
<input type="button" name="Button" value="ยกเลิก" class="WIDTH60 CURSOR-HAND" onclick="location.href='FormCarList.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);
?>
|