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/reportservice - Copy/3/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/reportservice - Copy/3/edit.php
<?php
$ebits = ini_get('error_reporting');
error_reporting($ebits ^ E_NOTICE);
?>

<?php
include("dbconfig.php");
include( "function.php" );
$no=$_GET['no'];
echo $no.'<br>';
$name=$_GET['name'];
echo $name.'<br>';
$dept_name=$_GET['dept_name'];
echo $dept_name.'<br>';

$target1=$_GET['target1'];
echo $target1.'<br>';
$assetno1=$_GET['assetno1'];
echo $assetno1.'<br>';
$brand1=$_GET['brand1'];
echo $brand1.'<br>';
$reason1=$_GET['reason1'];
echo $reason1.'<br>';

if ( $Submit == "บันทึกการขออนุมัติซ่อม" )
{	

mysql_select_db($__db__);
mysql_query(" SET NAMES 'tis620'; ");
$usql="update tran set  target='$target1',assetno='$assetno1',brand='$brand1',reason ='$reason1' where no ='$no' ";
echo $usql.'<br>';
$uresult = mysql_query($usql );
echo $uresult .'<br>';	

echo "<script language='JavaScript'>";
echo "alert('บันทึกเรียบร้อยแล้ว');";
echo "location='index.php';";
echo "</script>";
}
if ( $Submit == "ลบคำขอ" )
{	

mysql_select_db($__db__);
mysql_query(" SET NAMES 'tis620'; ");
$datedb1 = formatDateDB($date1);
$datedb2 = formatDateDB($date2);
$usql="update tran set  status='N' where no ='$no' ";
$uresult = mysql_query($usql );
echo "<script language='JavaScript'>";
echo "alert('ลบคำขอเรียบร้อยแล้ว');";
echo "location='index.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:black;text-decoration:none;font-family:ms sans serif;}
a:visited{color:black;text-decoration:none;font-family:ms sans serif;}
a:hover{color:blue;text-decoration:none;font-family:ms sans serif;}
td{font-size:10pt;font-family:ms sans serif;}

.style4 {	font-size: 16pt;
	color: #3399FF;
}
.style5 {font-family: Verdana, Arial, Helvetica, sans-serif}
.style6 {
	font-size: 16pt;
	color: #FFFFFF;
}
</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><br><p>กำลังดำเนินการ ยังไม่พร้อมใช้</p>
<TABLE height=47 cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
    <TR>
      <TD style="BACKGROUND-COLOR: #f0f7ff" colSpan=2></TD>
    </TR>
    <TR bgColor=#c7d2e7>
      <TD width="8%" height=21 bgcolor="#FFFFFF" class=thwbold><div align="center"><img src="../img/service_icon.jpg" width="102" height="111"></div></TD>
      <TD width="92%" height=21 align=right vAlign=center bgColor=#FFFFFF class=thsans><A 
      href=""></A>
          <table width="41%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td><div align="center"><span class="style4">บันทึกการขอซ่อม</span></div></td>
            </tr>
          </table>
        <A href=""></A> <A 
      href=""></A>&nbsp; </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 height=20 colSpan=2 bgcolor="#00CCCC" class=thwbold><a href="index.php" target="_parent"> 
                <span class="style5"><font color="#FFFFFF" size="4">หน้าแรก</font></span></a><span class="style5"><span class="style6">&nbsp; ||</span></span></TD></TD>
    </TR>
    <TR>
      <TD style="BACKGROUND-COLOR: black; heigth: 1" 
colSpan=2></TD>
    </TR>
  </TBODY>
</TABLE>
<?php
mysql_select_db($__db__);
mysql_query(" SET NAMES 'tis620'; ");
			$sql="select  *  from tran  where no = '$no'  ";
			$result=mysql_query($sql);
					
			while ($object = mysql_fetch_object($result))
			  {
			  $user_id = $object ->user_id;
			  $target = $object ->target;
			  $person = $object ->person;				
			  $reason = $object ->reason;
			  $date = $object ->date ;
			  $date1 = $object ->date1;
			   $time = $object ->time;
			  $time1 = $object ->time1;
    		  $date2 = $object ->date2 ;
			  $date3 = $object ->date3 ;
			  //$time = $object ->time;
			  $time2 = $object ->time2;
			   $approv = $object ->approv;
			   $car_id = $object ->car_id;
			   $driver = $object ->driver;
			   $comment = $object ->comment;
			   $dept_h_full_name = $object ->dept_h_full_name;
			   $name = $object ->user_id;
			   $car_id2 = $object ->car_id2;
			   $dept_name = $object -> dept_name;
			   $station = $object -> station;
			   $stationno = $object -> stationno;
			   $assetno = $object -> assetno;
			   $brand = $object -> brand;
			   $complete = $object -> complete;	
			   $material = $object ->material;	
			   $datesreal = $object ->datesreal;
			   $timesreal  = $object ->	timesreal;   
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;
						 }			   
			  }			
			  ?>
<form name="form1" method="GET" action="edit.php">
  <table cellspacing=0 cellpadding=0 width="100%" border=0>
    <tbody>
      <tr> 
        <td width="100%" height="334" 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="12%" height="25"><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif"><strong>เลขที่ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong></font> 
                  <input name="no" type="hidden" id="no" size="6" value="<? echo $no ;?>" readonly="yes"> 
                
				  <? echo "<font color=\"#F94000\"> $no </font><br>"; ?>
                <td width="88%"> <div align="right"> วันที่ <? echo FormatDateshow($date) ." เวลา : ".$time ; ?> 
                  </div></td>
              </tr>
              <tr> 
                <td height="23" colspan="2"><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif"><strong>ชื่อผู้อนุมัติส่งซ่อม</strong></font> 
                  <input type="hidden" name="textfield"  value="<? echo $name ; ?>" readonly="yes" > 
				  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<? echo "<font color=\"#247BFF\"> $name </font><br>"; ?>
				  <font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif">&nbsp; <br>
				  <font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif"><strong>แผนก </strong></font> 
                  <input type="hidden" name="textfield"  value="<? echo $dept_name; ?>" readonly="yes" > 
				  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<? echo "<font color=\"#247BFF\"> $dept_name </font><br>"; ?>
                  <br>
				  <font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif"><strong>ชื่อหัวหน้าแผนก </strong></font> 
                  <input type="hidden" name="textfield"  value="<? echo $dept_h_full_name  ; ?>" readonly="yes" > 
				  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<? echo "<font color=\"#247BFF\"> $dept_h_full_name </font><br>"; ?>
                  <br>
				  </font></td>
              </tr>
              <tr> 
                <td height="3" colspan="2"><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif"><strong>พัสดุที่ต้องการซ่อม </strong></font> 
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                  <input name="target1" type="text" id="target1" size="80" value="<? echo  $target ; ?>"  > 
               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<? //echo "<font color=\"#247BFF\"> $target </font><br>"; ?><br></td>
              </tr>
              <tr>
                <td height="4" colspan="2"><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif"><strong>หมายเลขครุภัณฑ์</strong></font>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                  <input name="assetno1" type="text" id="asetno1" size="80" value="<? echo  $assetno ; ?>" >
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<? //echo "<font color=\"#247BFF\"> $assetno </font><br>"; ?><br></td>
              </tr>
              <tr>
                <td height="9" colspan="2"><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif"><strong>รุ่น / ยี่ห้อ / อายุการใช้งาน &nbsp;&nbsp;&nbsp;&nbsp; </strong></font> 
                  <input name="brand1" type="text" id="$brand1" size="75" value="<? echo $$brand ;?>">
&nbsp;&nbsp;&nbsp;&nbsp;<? //echo "<font color=\"#247BFF\"> $brand </font><br>"; ?><br></td>
              </tr>
              <tr> 
			  
                <td height="31" colspan="2"><strong><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif">อาการที่ชำรุด </font></strong> 
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                  <input name="reason1" type="text"  size="82" value="<? echo $reason ;?>" > 
                  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<? //echo "<font color=\"#247BFF\"> $reason </font><br>"; ?><br></td>
              </tr> 
              <tr> 
                <td height="31" colspan="2"><p><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif"><strong>แจ้งซ่อมเมื่อวันที่</strong></font> 
                    <input name="date1" type="hidden" id="date22" value="<? echo formatDateshow1($date1) ; ?>" size="7"   readonly="yes">
					 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<? echo  formatDateshow1($date1) ; ?> &nbsp;&nbsp;
                    <strong>เวลา</strong> 
                    <input name="time1" type="hidden" id="time1" size="2" value="<? echo $time1 ;?>"   readonly="yes">
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<? echo  $time1 ; ?> 
                    <br>
                    <br>
                </p>                </td>
              </tr>
              <tr> 
                <td height="25" colspan="2"><div align="left"><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif"><strong><br>
                  ช่างผู้ดำเนินงาน&nbsp; </strong></font><? 
mysql_select_db($__dbwp__);
mysql_query(" SET NAMES 'tis620'; ");
					  $sqll="select  id,name  from user  where id = '$driver'";
					   $lresult=mysql_query($sqll);
					   while ($objectl = mysql_fetch_object($lresult))
			  			{
						 $driver = $objectl->name;
						 }
						  ?>&nbsp;
				  <? 
						  if(($car_id2=="0")  || ($car_id2 =="เลือกท"))
									 echo "  &nbsp; &nbsp;      ยังไม่ได้จัดช่าง";
							
						?>				  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<? echo "<font color=\"#247BFF\"> $driver </font><br>"; ?>
                  &nbsp; <div align="left"><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif"><strong><br>
                  ประมาณระยะเวลาในการซ่อมแล้วเสร็จวันที่ &nbsp;</strong></font>
				    <input name="car_id" type="hidden" id="u5" value="<? echo $car_id ;?>">
				    <input type="hidden" name="textfield"  value="<? echo $car_id ; ?>" readonly="yes" > 
				  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;          <input name="car_id2" type="hidden" id="car_id2" value="<? echo $car_id2 ;?>">
          <input type="hidden" name="textfield2"  value="<? echo $car_id2 ; ?>" readonly="yes" >
		   <?  $car_id2 = FormatDateshow( $car_id2); ?>
          <? echo "<font color=\"#247BFF\">   $car_id2 </font>"; ?></p>
                  </div>
                  <br>
                  <strong><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif">วัสดุอุปกรณ์ที่ใช้</font></strong>
                  <input name="material" type="hidden" id="material" size="90" value="<? echo $material ;?>" readonly>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<? echo "<font color=\"#247BFF\"> $material </font><br>"; ?></td>
              </tr>
              <tr> 
                <td height="25" colspan="2"><div align="right"> 
                    <p align="left"> 
											<font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif">
												 <? echo "<font color=\"#FF0000\"> $complete </font>"; ?>
												 <? $datesreal = FormatDateshow($datesreal); ?>
												 <? echo "<font color=\"#FF0000\"> วันที่  $date3 </font>"; ?>
												 <? echo "<font color=\"#FF0000\"> เวลา $time น.</font>"; ?>
											</font>
					</p>
                  </div></td>
              </tr>
              <tr> 
                <td height="20">&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              <tr> 
                <td height="20">&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              
              <tr> 
                 <td height="23">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				 <input name="Submit" type="submit" id="Submit" value="บันทึกการขออนุมัติซ่อม">
				 </td>
                <td>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                 <input name="Submit" type="submit" id="Submit" value="ลบคำขอ">
				  </td>
				  </tr>
				  <tr>
				  <td></td><td></td>
              </tr>
            </table>
          </div></td>
      </tr>
    </tbody>
  </table>
  <TABLE cellSpacing=0 cellPadding=3 width="100%" align=center border=0>
    <TBODY>
      <TR> 
        <TD height="126" vAlign=top>&nbsp; </TD>
      </TR>
    </TBODY>
  </TABLE>
</form>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit