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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

<?
include("dbconfig.php");
include( "function.php" );
if ( $cmdSubmit == "บันทึก" )
{ 
if (empty($material)){
if (empty($comment)){
if ( empty( $driver ) )	{ 
		echo "<script language='JavaScript'>";
		echo "alert('ไม่ได้เลือกชื่อช่าง');";
		echo "history.back(1);";
		echo "</script>";
		}
if ( empty( $car_id2 ) )	{ 
		echo "<script language='JavaScript'>";
		echo "alert('ไม่ได้เลือกวันประมาณการ');";
		echo "history.back(1);";
		echo "</script>";
		}
		
		
}
		
}

mysql_select_db($__db__);
mysql_query(" SET NAMES 'tis620'; ");
$usql="update tran set  car_id2 = '$car_id2',comment = '$comment',driver = '$driver',approv='$approv',complete='$complete' ,chk = '$chk'  ,material='$material 'where no ='$no' ";
$uresult = mysql_query($usql ) or die(msql_error()) ;
	
	 
	if (uresult) {
//	$date   = FormatDateshow($date) ;
	$date1 = FormatDateshow($date1) ;
    $date2 = FormatDateshow($date2) ;
	echo	"<p>&nbsp;</p>" ;
	echo "<script language='JavaScript'>";
	echo "alert('บันทึกเรียบร้อยแล้ว');";
	echo "location='index.php';";
	echo "</script>" ;		
	echo "<p align='center'>&nbsp;</p>";
	exit() ;
	}				
}
?>
<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;}

body,td,th {
	font-size: 12px;
}
</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>
<div align="center">
  <STYLE type=text/css>A.no_de:hover {
	TEXT-DECORATION: none
}
</STYLE>

  <?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;				
			  $u1 = $object ->u1;
			  $u2 = $object ->u2;
			  $u3 = $object ->u3;
			  $u4 = $object ->u4;
			  $u5 = $object ->u5;
			  $reason = $object ->reason;
			  $date = $object ->date ;
			  $date1 = $object ->date1;
			  $time1 = $object ->time1;
    		  $date2 = $object ->date2 ;
			  $time2 = $object ->time2;
			  $approv = $object ->approv;
			   $time = $object ->time;
			   $name = $object ->user_id;
			   $dept_name = $object -> dept_name;
			   $dept_h_full_name = $object ->dept_h_full_name;
			   $complete = $object ->complete;
			   	$assetno = $object -> assetno;
			   $brand = $object -> brand;
			    $material = $object -> material;
			   
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;
						 }
			  }			
			  ?>
			  
  <strong><font color="#0066CC" size="5" face="Microsoft Sans Serif, MS Sans Serif, sans-serif">จัดช่างผู้ดำเนินงาน 
  </font></strong><font color="#0066CC" size="5" face="Microsoft Sans Serif, MS Sans Serif, sans-serif"> 
  </font></div>
<form name="form1" method="post" action="head_car.php">
  <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="21%" height="39"><strong><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif">เลขที่  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></strong> 
                          <input name="no" type="hidden"  value="<? echo $no ; ?>" size="5" maxlength="5" readonly>
                        <? echo "<font color=\"#F94000\"> $no </font><br>"; ?><br></td>
                        <td width="79%"> <div align="right">วันที่ กรอกใบขออนุมัติซ่อม 
                            <input name="date" type="hidden" id="date"  value="<? echo  FormatDateshow($date) ; ?>" size="5" maxlength="5" readonly>
                            <? echo FormatDateshow($date)." เวลา :".$time ; ?> </div></td>
                      </tr>
                      <tr> 
                        <td height="10" colspan="2"><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif"><strong>ชื่อผู้ขออนุมัติซ่อมซ่อม&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong></font> 
                          <input name="name" type="hidden" id="name"  value="<? echo $name ; ?>"> 
                          <? echo "<font color=\"#247BFF\"> $name </font><br>"; ?> <font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif">&nbsp; 
                        </font></td>
                      </tr>
                      <tr>
                        <td height="4" colspan="2"><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif"><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 >
&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 >
&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="9" colspan="2"><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif"><strong>พัสดุที่ต้องการซ่อม / หมายเลขครุภัณฑ์ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong></font> <input name="target" type="hidden" id="target" size="80" value="<? echo  $target ; ?>" >
                          <? echo "<font color=\"#247BFF\"> $target </font><br>"; ?><br></td>
                      </tr>
                      <tr>
                        <td height="3" colspan="2"><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif"><strong> หมายเลขครุภัณฑ์ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong></font>
                          <input name="target2" type="hidden" id="target2" size="80" value="<? echo  $target ; ?>" >
                          <? echo "<font color=\"#247BFF\"> $assetno </font><br>"; ?><br></td>
                      </tr>
                      <tr>
                        <td height="4" colspan="2"><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif"><strong>รุ่น / ยี่ห้อ / อายุการใช้งาน &nbsp;&nbsp;&nbsp;&nbsp;</strong></font>
                          <input name="reason2" type="hidden" id="reason" size="90" value="<? echo $reason ;?>" readonly>
&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">อาการที่ชำรุด    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></strong> 
                          <input name="reason" type="hidden" id="code22" size="90" value="<? echo $reason ;?>"> 
                          <? echo "<font color=\"#247BFF\"> $reason </font><br>"; ?></td>
                      </tr>
                      <tr> 
                        <td height="31" colspan="2"><p><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif"><strong>ขออนุมัติซ่อมในวันที่ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong></font>
                          <input name="date1" type="hidden" id="date22" value="<? echo $date1 ; ?>" size="12" maxlength="12"> 
                          <? echo formatDateshow($date1) ; ?> <strong>เวลา</strong> 
                          <input name="time1" type="hidden" id="time1" size="6" value="<? echo $time1 ;?>"> 
                          <? echo $time1 ;?></p>
                          <p><strong><font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif">&nbsp;วัสดุอุปกรณ์ที่ใช้
                            
                            <textarea name="material" id="material" cols="45" rows="5"></textarea>
                          </font></strong></td>
                      </tr>
                      <tr> 
                 
                        
                        
                      </tr>
                      <tr> 
                        <td height="20">&nbsp;</td>
                        <td>&nbsp;</td>
                      </tr>
                      <tr> 
                        <td height="22">&nbsp;</td>
                        <td><strong><font face="Microsoft Sans Serif, MS Sans Serif, sans-serif"> 
                          <input name="comment" type="hidden" id="comment" size="50">
                        </font></strong></td>
                      </tr>
                      <tr> 
                        <td height="23"><div align="right">ช่างผู้ดำเนินงาน&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></td>
                        <td> <font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif"> 
                          <select name=driver id="driver">
                            <option value="" selected="selected"> เลือกชื่อพนักงานซ่อมบำรุง</option>
                            <? 
mysql_select_db($__dbwp__);
mysql_query(" SET NAMES 'tis620'; ");
						$plquery="select  id,name from  user  where  position = 'พนักงานซ่อมบำรุง' or  position = 'นักวิชาการคอมพิวเตอร์' and status= '1' ";
						$plresult=mysql_query($plquery);
				
						while ($plobject = mysql_fetch_object($plresult))
						{
							echo "<OPTION VALUE =".$plobject ->id.">" .$plobject ->name."</Option>" ;
						}
							
						?>
                          </select>
                          </font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ประมาณการซ่อมเสร็จเมื่อ&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                          <INPUT id= "car_id2" 
            value= เลือกวันที่ประมาณการซ่อม type=date name="car_id2">
                          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;สถานะ&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font size="2" face="Microsoft Sans Serif, MS Sans Serif, sans-serif">
                          <select name="complete" id="complete">
                         <option> </option>
                           <?
mysql_select_db($__db__);
mysql_query(" SET NAMES 'tis620'; ");
						//$cplquery= select * fromcomplete  where status='".$_POST['id']."'
						$cplquery="select  * from complete  order by id ";
						$cplresult=mysql_query($cplquery);

						while ($cplobject = mysql_fetch_object($cplresult))
						{
							echo "<OPTION VALUE =".$cplobject ->status.">" .$cplobject ->status."</Option>" ;
						}
					 ?>
                          </select>
                          </font></td>
                      </tr>
                      <tr> 
                        <td height="39">&nbsp;</td>
                        <td> <div align="right"> เลือก ชื่อช่างผู้ดำเนินงาน ประมาณการซ่อม และงานซ่อมเสร็จแล้ว 
                            แล้วคลิ๊กปุ่มนี้ &gt;&gt; 
                            <input name="cmdSubmit" type="submit" id="cmdSubmit" value="บันทึก">
                          </div></td>
                      </tr>
                    </table>
                </DIV></TD>
              </TR>
            </TBODY>
          </TABLE>
        </TD>
      </TR>
    </TBODY>
  </TABLE>
  </form>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit