File manager - Edit - /home/autoph/public_html/ahglegal/includes/checkchangefunds_new.php
Back
<?php //CHECK CASHIER CHANGE FUND ENTRY $compCode = $user_data['company_assignment']; //echo $compCode; $checkCashierFund = mysql_result(mysql_query("SELECT COUNT('id') FROM `cashier_cash_on_hand` WHERE `date_applied`='$toDate' AND `branch_code`='$compCode'"),0); if($checkCashierFund == 0){ $checkCashierFund = mysql_result(mysql_query("SELECT `amount` FROM `cashier_cash_on_hand` WHERE `date_applied`='$toDate'"),0); echo " <center> <div id ='dragme' style='top:80px;left:200px;position:absolute;width:450px;height:220px;border:1px solid red;border-radius:5px;background:white;z-index:100000'> <h3 align='left' style='border-radius: 5px 5px 0px 0px;padding-left:10px'>ENTER CHANGE FUND</h3> <table> <tr> <td align='center' style='font-size:12px;font-weight:bold;color:red;width:500px;height:140px;background:white;border:1px solid white'> Please enter Cashier's Change Fund for today's date <b style='font-size:14px;color:blue'>".$toDate."</b><br><br> <form action='' method='POST'> <input type='text' name='xcash' value='' style='padding-right:10px;text-align:right;font-size:25px;width:250px;height:30px; border:1px solid red;' required placeholder='0.00'> <br><br><textarea rows='2' name='remarks' style='width:250px'></textarea><br> <br> <input type='submit' name='fundsubmit' value='Save' style='width:80px;height:30px;font-size:16px;'> </td> </form> </tr> </table> </div> </center>"; }else{ } //update change fund to table if(isset($_POST['fundsubmit'])){ $amount=$_POST['xcash']; $remarks=$_POST['remarks']; //$checkIfExist = mysql_result(mysql_query("SElECT COUNT('pay_id') FROM `payment_vouchers` WHERE `payment_ref`= '$reference'"),0); $sql="INSERT INTO `cashier_cash_on_hand` (`id`, `amount`,`date_applied`,`encoded_by`,`branch_code`,`remarks`) VALUES('','$amount','$toDate','$user','$compCode','$remarks')"; if(!mysql_query($sql)){ die('Error: ' . mysql_error()); }else{ echo "<div style='top:90px;left:200px;top:110px;position:absolute;width:450px;height:185x;border:1px solid red;border-radius:5px;background:white;z-index:100001'> <h3 align='left' style='border-radius: 5px 5px 0px 0px'>CASHIER CHANGE FUND</h3> <table> <tr> <td align='center' style='font-size:12px;font-weight:bold;color:red;width:500px;height:140px;background:white;border:1px solid white'><br> Registered Cashier`s Change Fund was . ".number_format($amount,2,'.',',')." <br><br>Thank you!</font> <br> <br> <a href='main_new.php?view=300&sid=PA1&sview=300&tab=2#id-2'><input type='button' name='close' value='CLOSE' style='width:80px;height:30px;font-size:16px;'></a> <br><br> </td> </tr> </table> </div>"; } } ?>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings