/* Decoded by unphp.net */ include("head.php"); $Ref=$_REQUEST['Ref']; if ($Ref!=NULL){ echo ''; } $Account=$_REQUEST['Account']; $Amt=$_REQUEST['Amt']; $Detail=$_REQUEST['Detail']; $del=$_REQUEST['del']; if ($del!=NULL){ $rs=mysql_query("select * from atemp where aTemp_Id='$del'"); while($newArray=mysql_fetch_array($rs)) { $Date= $newArray['Date']; } $rs=mysql_query("delete from atemp where aTemp_Id='$del'"); } if ($Amt!=NULL && $Account!=NULL){ $Date=$_REQUEST['Date']; $Date = date("Y-m-d", strtotime($Date)); $Time=$_REQUEST['Time']; $Cash=$_REQUEST['Cash']; if ($Date>=$Start_Financial_Date && $Date<=$End_Financial_Date){ $rs=mysql_query("select * from atemp where Account1='$Account'"); while($newArray=mysql_fetch_array($rs)) { $Temp_Id= $newArray['aTemp_Id']; $Amount= $newArray['Amount']; } if ($Temp_Id!=NULL){ $UPDQTY=$Amount+$Amt; $rs=mysql_query("UPDATE temp SET Amount='$UPDQTY' where aTemp_Id='$Temp_Id'"); $Product_Code=''; } else { $rs=mysql_query("insert into atemp (Date,Time,Account1,Account2,Amount,Detail) values ('$Date','$Time','$Cash','$Account','$Amt','$Detail')"); } } else { echo ''; } } if ($Cash==NULL){ $CAS='02-60-01-01-0001'; } else { $CAS=$Cash; } if($_REQUEST['Date']==NULL && $_REQUEST['Cash']==NULL && $_REQUEST['Account']==NULL && $_REQUEST['Amt']==NULL && $_REQUEST['Detail']==NULL && $_REQUEST['del']==NULL){ $rs=mysql_query("delete from atemp"); } ?>
CP
Date " tabindex="2" onKeyUp="doNext(this);"/>    
Account Amount  
Description  

SR CODE Account Name Description Amount Del
TOTAL