Viewing file: DetailDurable_bkk.php (22.16 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( "../calendar/check.php" );
/** Create Database Object */
$dbObj = new DBConn;
/** Config Table for This Page */
$myTable = "personal_tb";
$myTable1 = "budget_year_tb";
$myTable2 = "durable_tb";
$query = " SELECT * FROM $myTable WHERE Teacher_code='$Teacher_code' ";
$result = $dbObj->execQuery($query);
$rss = $dbObj->fetchArray($result);
$query1 = " SELECT * FROM $myTable1 ";
$result1 = $dbObj->execQuery($query1);
$rs = $dbObj->fetchObject($result1);
$query2 = " SELECT * FROM $myTable2 WHERE duraId='$duraId' AND Teacher_code='$Teacher_code' ";
$result2 = $dbObj->execQuery($query2);
$rs1 = $dbObj->fetchObject($result2);
} # 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" />
<title>MIS -- Teacher</title>
<link href="../css/default.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="../js/utilities.js"></script>
<script language="javascript">
function checkData() {
var formObj = document.myForm;
if( (formObj.No_in.value == "" ) && (formObj.Day.value == "" ) ) { alert("กรุณากรอกข้อมูลให้ครบด้วยค่ะ" ); formObj.No_in.style.backgroundColor='#F1F9FC'; formObj.No_in.focus(); return false; }
else if(formObj.No_in.value == "" ) { alert("กรุณากรอก เลขที่หนังสือ"); formObj.No_in.style.backgroundColor='#F1F9FC'; formObj.No_in.focus(); return false;}
else if(formObj.Day.value == "" ) { alert("กรุณากรอก จำนวนวัน"); formObj.Day.style.backgroundColor='#F1F9FC'; formObj.Day.focus(); return false;}
else if(formObj.Year_std.value == "" ) { alert("กรุณากรอก ปีงบประมาณ"); formObj.Year_std.style.backgroundColor='#F1F9FC'; formObj.Year_std.focus(); return false;}
else return true ;
}
</script>
<script type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
<style type="text/css">
<!--
.style21 {font-size: 14px}
-->
</style>
</head>
<body topmargin="0" rightmargin="0" bottommargin="0" leftmargin="0">
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="760" height="440" align="center" valign="top" style="padding:10px 0px 5px 10px"><fieldset>
<table width="751" border="0" cellspacing="0" cellpadding="0">
<form id="pc" name="pc" method="post" action="EditDurable.php" onSubmit="return checkData();">
<tr>
<td width="751" align="center">
<table width="742" border="0" cellpadding="0" cellspacing="3">
<tr height="31">
<td height="31" colspan="4" align="center" class="PATRON11"><table width="782" border="0">
<tr>
<th width="108" scope="col"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><span class="style21"><img src="../picture/krud.jpg" width="87" height="86" border="0" align="absmiddle" /></span></font></th>
<th width="434" align="center" scope="col">บันทึกข้อความ</th>
<th width="216" scope="col"> </th>
</tr>
</table></td>
</tr>
<tr height="29">
<td height="29" colspan="4" 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>
<td width="157" height="29" align="left">ที่ สธ.0203.081/พิเศษ.........</td>
<td width="126" height="29" align="left"> </td>
<td height="29" colspan="2" align="left"> <span class="style1">วันที่</span> <span class="style5">*</span></font><font color="#0000FF" size="2" face="Tahoma">
<input name="add_update" type="text" id="add_update" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?php echo dateThai($rs1->add_updated); ?>" size="15" />
</font></td>
</tr>
<tr height="29">
<td height="29" colspan="2" align="left">เรื่อง <font color="#0000FF" size="2" face="Tahoma">
<input type="text" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="รายงานขอซ่อมสิ่งของ/ครุภัณฑ์" size="30" />
</font></td>
<td width="187"></td>
<td width="257"></td>
</tr>
<tr height="29">
<td height="29" colspan="4" 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>
</tr>
<tr height="29">
<td height="25" colspan="4"> เนื่องจาก งาน/ภาค/ฝ่าย
<input name="Faculty_name" type="text" id="Faculty_name" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" 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] ";
?>" size="30" />
<font color="#000000" size="2" face="Tahoma"> </font><font color="#000000" size="2" face="Tahoma">มีความประสงค์ที่จะต้องการซ่อมครุภัณฑ์/สิ่งของ</font></td>
</tr>
<tr height="29">
<td height="29" colspan="4" align="left">ชื่อ ครุภัณฑ์ <font color="#0000FF" size="2" face="Tahoma">
<input name="Acc_name" type="text" id="Acc_name" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rs1->Acc_name;?>" size="30" />
<font color="#000000" size="2" face="Tahoma">รหัส </font><input name="Acc_code" type="text" id="Acc_code" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rs1->Acc_code;?>" size="20" />
</font></td>
</tr>
<tr height="29">
<td height="29" colspan="4" align="left"><font color="#000000" size="2" face="Tahoma">สถานที่ตั้งครุภัณฑ์ เลขที่ห้อง </font>
<input name="Room_code" type="text" id="Room_code" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rs1->Room_code;?>" size="20" /><font color="#000000" size="2" face="Tahoma"> ชื่อ </font></font>
<input name="Room_name" type="text" id="Room_name" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rs1->Room_name;?>" size="30" />
</font></td>
</tr>
<tr height="29">
<td height="26" colspan="4" align="left"><span class="style7">ชำรุดเนื่องจาก<font color="#0000FF" size="2" face="Tahoma"><font color="#0000FF" size="2" face="Tahoma">
<input name="Fix_History" type="text" id="Fix_History" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rs1->Fix_History;?>" size="70" />
</font></font></span></td>
</tr>
<tr height="29">
<td height="26" colspan="4" align="left"><span class="style7">ความเห็นทั่วไปและข้อเสนอแนะ<font color="#0000FF" size="2" face="Tahoma">
<input name="Store" type="text" id="Store" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rs1->Store;?>" size="60" />
</font></span></td>
</tr>
<tr height="29">
<td height="26" colspan="4" align="left"><span class="style7">ขอแต่งตั้งคณะกรรมการตรวจรับ คนที่ </span> 1 <font size="2" face="Tahoma"><strong><font color="#0000FF" size="2" face="Tahoma">
<input name="name1" type="text" id="name1" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?php
$Teacher_code = $rs1->name1;
$sql = "Select * From $myTable Where Teacher_code='$Teacher_code'";
$result8 = mysql_query($sql) or die("Error".mysql_error());
$rs8 = mysql_fetch_array($result8);
echo "$rs8[First_name] $rs8[Teacher_name] $rs8[Teacher_lastname] ";
?>" size="30" />
</font></strong></font></td>
</tr>
<tr height="29">
<td height="26" colspan="4" align="left"> <span class="style7">คณะกรรมการตรวจรับ คนที่</span> 2<font size="2" face="Tahoma"><strong><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" value="<?php
$Teacher_code = $rs1->name2;
$sql = "Select * From $myTable Where Teacher_code='$Teacher_code'";
$result8 = mysql_query($sql) or die("Error".mysql_error());
$rs8 = mysql_fetch_array($result8);
echo "$rs8[First_name] $rs8[Teacher_name] $rs8[Teacher_lastname] ";
?>" size="30" />
</font></strong></font></td>
</tr>
<tr height="29">
<td height="26" colspan="4" align="left"> <span class="style7">คณะกรรมการตรวจรับ คนที่ </span>3<font size="2" face="Tahoma"><strong><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" value="<?php
$Teacher_code = $rs1->name3;
$sql = "Select * From $myTable Where Teacher_code='$Teacher_code'";
$result8 = mysql_query($sql) or die("Error".mysql_error());
$rs8 = mysql_fetch_array($result8);
echo "$rs8[First_name] $rs8[Teacher_name] $rs8[Teacher_lastname] ";
?>" size="30" />
</font></strong></font></td>
</tr>
<tr height="29">
<td height="26" colspan="4" align="left"> </td>
</tr>
<tr height="29">
<td height="26" colspan="4" align="left"> จึงเรียนเสนอมาเพื่อโปรดพิจารณา</td>
</tr>
<tr height="29">
<td height="29" colspan="4" align="left"><table width="479" border="0" align="center" cellspacing="3">
<tr>
<th width="179" scope="col"> </th>
<th width="210" class="ALERT" scope="col"><font color="#000000" size="2" face="Tahoma">ลงชื่อ ...............................</font></th>
<th width="13" scope="col"> </th>
</tr>
<tr>
<td> </td>
<td align="center"> ( <font color="#003366" size="2" face="Tahoma"><? echo $rss[First_name]?> <? echo $rss[Teacher_name]?> <? echo $rss[Teacher_lastname]?> </font>) </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><font face="Tahoma"><span class="style7">ตำแหน่ง</span></font><font size="2" face="Tahoma"> <? echo $rss[Gover_pos]?></font></td>
<td> </td>
</tr>
</table></td>
</tr>
<tr height="29">
<td height="29" colspan="4" align="left">ความเห็นของงานซ่อมบำรุง </td>
</tr>
<tr height="29">
<td height="29" colspan="4" align="left"><table width="616" align="center">
<tr>
<th width="186" scope="col"><label>
<input type="radio" name="Detail" id="Detail" value="1" />
</label> <font color="#000000" size="2" face="Tahoma"> ซ่อมเองได้ </font></th>
<th width="177" scope="col"><label>
<input type="radio" name="Detail" id="Detail" value="2" />
</label>
<font color="#000000" size="2" face="Tahoma">สมควรส่งซ่อมภายนอก</font></th>
<th width="237" scope="col"><label>
<input type="radio" name="Detail" id="Detail" value="3" />
</label><font color="#000000" size="2" face="Tahoma">ไม่สมารถซ่อมใช้งานอีกต่อไปได้</font></th>
</tr>
<tr>
<td colspan="2"><label>
<input type="radio" name="Detail" id="Detail" value="4" />
</label>
<font face="Tahoma" class="ALERT" size="2">ซ่อมเองได้แต่ต้องจัดซื้อวัสดุ( ตามรายละเอียดแนบมา)</font></td>
<td> </td>
</tr>
<tr>
<td colspan="2"><label>
<input type="radio" name="Detail" id="Detail" value="5" />
</label>
<font face="Tahoma" class="ALERT" size="2">ความเห็นอื่นๆ</font><font color="#0000FF" size="2" face="Tahoma">
<input name="Detail_name" type="text" id="Detail_name" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="30" />
</font></td>
<td> </td>
</tr>
<tr>
<td colspan="3">สถานะการดำเนินงาน <font color="#0000FF" size="2" face="Tahoma">
<input name="Status" type="text" id="Status" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rs1->Status;?>" size="15" />
<span class="TEXT-DARK-BLUE10">วันที่/เวลา/ที่ดำเนินการ</span></font><font color="#0000FF" size="2" face="Tahoma">
<input name="Status2" type="text" id="Status2" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rs1->date_updated;?>" size="20" />
</font></td>
</tr>
<tr>
<td>ปีงบประมาณ<font color="#0000FF" size="2" face="Tahoma">
<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="<?=$rs->Budget_year;?>" size="2" maxlength="4" />
</font></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td colspan="2" align="center"><font face="Tahoma"><span class="style7">ลงชื่อ</span></font><font color="#0000FF" size="2" face="Tahoma">
<input name="name4" type="text" id="name4" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?php
$Teacher_code = $rs1->name4;
$sql = "Select * From $myTable Where Teacher_code='$Teacher_code'";
$result8 = mysql_query($sql) or die("Error".mysql_error());
$rs8 = mysql_fetch_array($result8);
echo "$rs8[First_name] $rs8[Teacher_name] $rs8[Teacher_lastname] ";
?>" size="20" />
</font><font color="#003366" size="2" face="Tahoma">เจ้าหน้าที่ตรวจซ่อม</font></td>
</tr>
</table></td>
</tr>
<tr height="29">
<td height="29" colspan="4" align="left"> </td>
</tr>
<tr height="29">
<td height="29" colspan="4" align="left">ความเห็นของงานพัสดุ <font color="#0000FF" size="2" face="Tahoma">
<input name="Description" type="text" id="Description" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="70" />
</font></td>
</tr>
<tr height="29">
<td height="29" colspan="4" align="left"> </td>
</tr>
<tr height="29">
<td height="29" align="left"> </td>
<td align="left"> </td>
<td colspan="2" align="left">ลงชื่อ...............……..</td>
</tr>
<tr height="29">
<td height="29" align="left"> </td>
<td align="left"> </td>
<td colspan="2" align="left">วันที่.......เดือน...........พ.ศ..........…</td>
</tr>
<tr height="29">
<td height="29" align="left"> </td>
<td align="left"> </td>
<td colspan="2" align="left"> </td>
</tr>
<tr height="29">
<td height="29" colspan="2" align="left">ลงชื่อ..........................หัวหน้าภาค/ฝ่าย.</td>
<td colspan="2" align="left"> </td>
</tr>
<tr height="29">
<td height="29" colspan="2">(<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>) </td>
<td align="left">ความเห็นชอบ</td>
<td align="left"> </td>
</tr>
<tr height="29">
<td height="29" colspan="2"><font face="Tahoma"><span class="style7">ตำแหน่ง</span></font><font size="2" face="Tahoma"> <? echo $rs2[Gover_pos];?></font></td>
<td colspan="2" align="left">
<input name="Flag2" type="checkbox" id="Flag2" value="1" disabled="disabled" />
อนมัติ
<input name="Flag2" type="checkbox" id="Flag2" value="2" disabled="disabled" />
ไม่อนุมัติ</td>
</tr>
<tr height="29">
<td height="29" align="left"> </td>
<td align="left"> </td>
<td align="left">ลงชื่อ............................</td>
<td align="left"> </td>
</tr>
<tr height="29">
<td height="28" align="left"> </td>
<td align="left"> </td>
<td align="left">ตำแหน่ง..................................</td>
<td align="left"> </td>
</tr>
<tr height="29">
<td height="29" align="left"> </td>
<td align="left"> </td>
<td align="left"> วันที่......เดือน..............พ.ศ....</td>
<td align="left"> </td>
</tr>
</table>
<hr color="#D5DFE5" size="1px" />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="5"></td>
</tr>
</table></td>
</tr>
</form>
</table>
</fieldset></td>
</tr>
</table>
</body>
</html>
<?php
/** Free Resource */
$dbObj->freeresult($result);
/** Close the Database */
$dbObj->disconn();
/** Unset Class */
unset($dbObj);
?>
|