| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/CAR - Copy/ |
Upload File : |
<?php
$ebits = ini_get('error_reporting');
error_reporting($ebits ^ E_NOTICE);
?>
<?php
include( "function.php" );
include("dbconfig.php");
?>
<?
if ( $cmdSubmit == "Submit" )
{
if ( (empty( $checkbox1)) && (empty( $checkbox2)) && (empty( $checkbox3)) && (empty( $checkbox4)) && (empty( $checkbox5))) {
echo "<script language='JavaScript'>";
echo "alert('ไม่ได้ลงคะแนนข้อใดเลย');";
echo "history.back(1) ;";
echo "exit() ;";
echo "</script>"; }
if ( empty( $user_id) ) {
echo "<script language='JavaScript'>";
echo "alert('ไม่ได้ลงชื่อผู้ประเมิน');";
echo "history.back(1) ;";
echo "exit() ;";
echo "</script>";
}
if ( empty( $driver) ) {
echo "<script language='JavaScript'>";
echo "alert('ไม่ได้เลือกพนักงานขับรถยนต์');";
echo "history.back(1) ;";
echo "exit() ;";
echo "</script>";
}
/*if ( empty( $car_end ) ) {
echo "<script language='JavaScript'>";
echo "alert('ไม่ได้กรอกเลขระยะทางกลับถึง รพ.');";
echo "history.back(1) ;";
echo "</script>";
}
if ( empty( $car_start ) ) {
echo "<script language='JavaScript'>";
echo "alert('ไม่ได้กรอกเลขระยะทางออกจาก รพ.') ;";
echo "history.back(1) ;";
echo "</script>";
}
*/
mysql_select_db($__db__);
mysql_query(" SET NAMES 'tis620'; ");
$datedb = formatDateDB($date);
$dates_real = formatDateDB($dates_real);
$datee_real = formatDateDB($datee_real);
$isql = "insert into auditnew (id_audit,date,a1,a2,a3,a4,a5,a6,audit_name,driver) values ('$no','$datedb','$checkbox1','$checkbox2','$checkbox3','$checkbox4','$checkbox5','$checkbox6','$user_id','$driver')";
$iresult = mysql_query($isql ) or die(mysql_error());
if (!$iresult)
{
echo "<script language='JavaScript'>";
echo "alert('เก็บเข้าฐานข้อมูลไม่ได้') ; ";
echo "</script>";
exit;
}
else
{
echo "<script language='JavaScript'>";
echo "alert('บันทึกข้อมูลเรียบร้อยแล้ว'); ";
echo "</script>";
}
echo "<script language='JavaScript'>";
echo "location = 'rq_chk2.php' ; ";
echo "</script>";
}
?>
<html>
<head>
<title>ประเมินการปฏิบัติงานของ พขร</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<LINK href="style.css" rel=stylesheet>
<STYLE type=text/css>
a:link{color:white;text-decoration:none;font-family:ms sans serif;}
a:visited{color:white;text-decoration:none;font-family:ms sans serif;}
a:hover{color:yellow;text-decoration:none;font-family:ms sans serif;}
td{font-size:10pt;font-family:ms sans serif;}
</STYLE>
<script language="JavaScript1.2">
<!--
/*
Auto Maximize Window Script- By Nick Lowe (nicklowe@ukonline.co.uk)
*/
top.window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layersdocument.getElementById) {
if (top.window.outerHeight<screen.availHeighttop.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
//-->
</script>
</head>
<body>
<STYLE type=text/css>A.no_de:hover {
TEXT-DECORATION: none
}
</STYLE>
<TABLE height=54 cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD style="BACKGROUND-COLOR: #f0f7ff" colSpan=2></TD>
</TR>
<TR bgColor=#c7d2e7>
<TD class=thwbold width="35%" height=28> </TD>
<TD class=thsans vAlign=center align=right bgColor=#c7d1e7 height=28><A
href=""><IMG height=18
alt="" src="picture/youraccount.gif" width=18
align=absMiddle border=0></A> <A
href=""></A> <A
href=""><IMG height=18 alt=Help!
src="picture/q.gif" width=18 align=absMiddle border=0></A>
<A href=""></A> <IMG height=18
alt="" hspace=3 src="picture/cart.gif" width=18
align=absMiddle border=0><A
href=""></A> </TD>
</TR>
<TR>
<TD style="BACKGROUND-COLOR: black" colSpan=2></TD>
</TR>
<TR>
<TD style="BACKGROUND-COLOR: #f0f8ff" colSpan=2></TD>
</TR>
<TR vAlign=center bgColor=#216289>
<TD class=thwbold colSpan=2 height=20> </TD>
</TR>
<TR>
<TD style="BACKGROUND-COLOR: black; heigth: 1"
colSpan=2></TD>
</TR>
</TBODY>
</TABLE>
<form name="form1" method="post" action="">
<TABLE cellSpacing=0 cellPadding=3 width="100%" align=center border=0>
<TBODY>
<TR>
<TD height="126" vAlign=top>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD width="100%" colSpan=2>
<TABLE width="100%" border=0>
<TBODY>
<TR>
<TD
style="BACKGROUND-IMAGE: url(pointsmall.gif); BACKGROUND-REPEAT: repeat-x"></TD>
</TR>
</TBODY>
</TABLE>
<DIV class=thtahomasmall
style="PADDING-RIGHT: 2px; PADDING-LEFT: 2px; PADDING-BOTTOM: 2px; PADDING-TOP: 2px"
align=right> </DIV>
<DIV id=news_newyear
style="BORDER-RIGHT: #c7d2e7 1px solid; PADDING-RIGHT: 3px; BORDER-TOP: #c7d2e7 1px solid; PADDING-LEFT: 3px; MARGIN-BOTTOM: 3px; PADDING-BOTTOM: 3px; BORDER-LEFT: #c7d2e7 1px solid; PADDING-TOP: 3px; BORDER-BOTTOM: #c7d2e7 1px solid; BACKGROUND-COLOR: #f0f8ff">
<table width="95%" border="0" cellpadding="0" cellspacing="2">
<tr>
<td width="17%" height="25"> <!-- เลขที่ขอ
<input name="no" type="hidden" id="no" size="6" value="<? //echo $no ;?>" readonly="yes" >
<?// echo $no ;?></td>-->
<td width="83%"> <div align="right">วันที่ประเมิน
<input name="date" type="hidden" id="date" value="<? echo date("d/m/").(date("Y")+543); ?>" size="12" maxlength="12" >
<? echo date("d/m/").(date("Y")+543); ?> </div></td>
</tr>
<tr>
<td height="23" colspan="2"><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif">
<strong>ชื่อผู้ขอ</strong></font>
<?
$cid = $cookie_id ;
mysql_select_db($__dbwp__);
mysql_query(" SET NAMES 'tis620'; ");
$cquery="select id,name from user where id = '$cid' "; //not sure it's work
$cresult=mysql_query($cquery);
$rs = mysql_fetch_array($cresult);
$cname = $rs["name"];
?>
<select name="user_id" id="select3">
<option value=""></option>
<!--<option value="<? //echo $cid ; ?>"><? //echo $cname ; ?></option> -->
<?
mysql_select_db($__dbwp__);
mysql_query(" SET NAMES 'tis620'; ");
$plquery="select id,name,class from user where status ='1' ORDER BY name ASC, class ASC ";
$plresult=mysql_query($plquery);
while ($plobject = mysql_fetch_object($plresult))
{
echo "<OPTION VALUE =".$plobject ->id.">" .$plobject ->name."</Option>" ;
}
?>
</select>
</font>
<select name="driver" id="driver" >
<option value=""> เลือกชื่อพนักงานขับรถยนต์ </option>
<?
mysql_select_db($__dbwp__);
mysql_query(" SET NAMES 'tis620'; ");
$plquery="select id,name from user where position = 'พนักงานขับรถยนต์' and status= '1' ";
$plresult=mysql_query($plquery);
while ($plobject = mysql_fetch_object($plresult)) {
echo "<OPTION VALUE =".$plobject ->id.">" .$plobject ->name."</Option>" ;
}
?>
</select>
</td>
</tr>
<tr>
<td height="20" colspan="2"><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif">
</td>
</tr>
<tr>
<td height="29" colspan="2"><div align="center">
<table width="86%" border="1">
<tr>
<td colspan="6"><div align="center"><font color="#CC0099" size="3"><strong>แบบประเมินความพึงพอใจ</strong></font></div></td>
</tr>
<tr>
<td> </td>
<td><div align="center">ดีมาก (5)</div></td>
<td><div align="center">ดี (4)</div></td>
<td><div align="center">ปานกลาง (3)</div></td>
<td><div align="center">พอใช้ (2)</div></td>
<td><div align="center">ต้องปรับปรุง (0)</div></td>
</tr>
<tr>
<td width="28%">1. ความตรงเวลา</td>
<td width="15%"> <div align="center">
<input name="checkbox1" type="checkbox" id="checkbox1" value="5">
</div></td>
<td width="14%"> <div align="center">
<input name="checkbox1" type="checkbox" id="checkbox1" value="4">
</div></td>
<td width="14%"> <div align="center">
<input name="checkbox1" type="checkbox" id="checkbox1" value="3">
</div></td>
<td width="13%"><div align="center">
<input name="checkbox1" type="checkbox" id="checkbox35" value="2">
</div></td>
<td width="16%"><div align="center">
<input name="checkbox1" type="checkbox" id="checkbox1" value="0">
</div></td>
</tr>
<tr>
<td>2. ความพร้อมของรถ</td>
<td> <div align="center">
<input name="checkbox2" type="checkbox" id="checkbox2" value="5">
</div></td>
<td> <div align="center">
<input name="checkbox2" type="checkbox" id="checkbox2" value="4">
</div></td>
<td><div align="center">
<input name="checkbox2" type="checkbox" id="checkbox2" value="3">
</div></td>
<td><div align="center">
<input name="checkbox2" type="checkbox" id="checkbox2" value="2">
</div></td>
<td><div align="center">
<input name="checkbox1" type="checkbox" id="checkbox1" value="0">
</div></td>
</tr>
<tr>
<td>3. ความมีน้ำใจ</td>
<td> <div align="center">
<input name="checkbox3" type="checkbox" id="checkbox3" value="5">
</div></td>
<td> <div align="center">
<input name="checkbox3" type="checkbox" id="checkbox3" value="4">
</div></td>
<td> <div align="center">
<input name="checkbox3" type="checkbox" id="checkbox3" value="3">
</div></td>
<td><div align="center">
<input name="checkbox3" type="checkbox" id="checkbox36" value="2">
</div></td>
<td><div align="center">
<input name="checkbox3" type="checkbox" id="checkbox3" value="0">
</div></td>
</tr>
<tr>
<td>4. ปฏิบัติตามกฏจราจร</td>
<td> <div align="center">
<input name="checkbox4" type="checkbox" id="checkbox4" value="5">
</div></td>
<td> <div align="center">
<input name="checkbox4" type="checkbox" id="checkbox4" value="4">
</div></td>
<td> <div align="center">
<input name="checkbox4" type="checkbox" id="checkbox4" value="3">
</div></td>
<td><div align="center">
<input name="checkbox4" type="checkbox" id="checkbox4" value="2">
</div></td>
<td><div align="center">
<input name="checkbox4" type="checkbox" id="checkbox4" value="0">
</div></td>
</tr>
<tr>
<td>5. พฤติกรรมบริการ</td>
<td> <div align="center">
<input name="checkbox5" type="checkbox" id="checkbox5" value="5">
</div></td>
<td> <div align="center">
<input name="checkbox5" type="checkbox" id="checkbox5" value="4">
</div></td>
<td><div align="center">
<input name="checkbox5" type="checkbox" id="checkbox5" value="3">
</div></td>
<td><div align="center">
<input name="checkbox5" type="checkbox" id="checkbox5" value="2">
</div></td>
<td><div align="center">
<input name="checkbox5" type="checkbox" id="checkbox5" value="0">
</div></td>
</tr>
<tr>
<td>6. พฤติกรรมการขับรถ</td>
<td> <div align="center">
<input name="checkbox6" type="checkbox" id="checkbox6" value="5">
</div></td>
<td> <div align="center">
<input name="checkbox6" type="checkbox" id="checkbox6" value="4" dis>
</div></td>
<td><div align="center">
<input name="checkbox6" type="checkbox" id="checkbox6" value="3">
</div></td>
<td><div align="center">
<input name="checkbox5" type="checkbox" id="checkbox5" value="2">
</div></td>
<td><div align="center">
<input name="checkbox5" type="checkbox" id="checkbox5" value="0">
</div></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td height="23" colspan="2"> <div align="center"><!-- ผู้ประเมิน
<input name="audit_name" type="text" id="audit_name" value="<?//
if(!empty($u1))
{
echo $u1;
end ;
}
else if(!empty($u2))
{
echo $u2;
end;
}
else if(!empty($u3))
{
echo $u3 ;
end;
}
else if(!empty($u4))
{
echo $u4 ;
end;
}
else if(!empty($u5))
{
echo $u5 ;
end;
}
else
{
echo $name ;
}
?>"
>--><br>
<input name="cmdSubmit" type="submit" id="cmdSubmit" value="Submit" onClick="cf=confirm('คุณต้องการบันทึก ?');if (cf) return true; return false;" >
</div></td>
</tr>
</table>
</DIV></TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
</TBODY>
</TABLE>
</form>
</body>
</html>