[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: PayrunModal.php
<?php $shopname = $_SESSION['business_name_Xw211qAAsq4'];?> <div class="modal fade bd-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title h4" id="myLargeModalLabel">Add New Payrun</h5> <button type="button" class="close waves-effect waves-light" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> <div id="response"></div> </div> <div class="modal-body" data-ng-form="newcustomer1"> <div class="setting-steps"> <form accept-charset="utf-8" id="add_category_bttn"> <div class="row"> <div class="col-sm-4"> <div class="form-group"> <label for="exampleInputEmail1" class="form-label">Employee name</label> <select class="form-control" name="employee_id" required> <option>Select Employee</option> <?php $sel = mysqli_query($new,"SELECT * FROM employees WHERE business_name = '$shopname' and status = 'active'"); while($fo = mysqli_fetch_array($sel)){ ?> <option value="<?php echo $fo['employee_id'];?>"><?php echo $fo['first_name'].' , '.$fo['last_name'];?></option> <?php }?> </select> </div> </div> <div class="col-sm-4"> <div class="form-group"> <label for="exampleInputEmail1" class="form-label">Allowance<span class="req"></span></label> <input type="number" name="allowance" min="0" class="form-control"> </div> </div> <div class="col-sm-4"> <div class="form-group"> <label for="exampleInputEmail1" class="form-label">Bonus</label> <input type="number" name="bonus" min="0" class="form-control"> </div> </div> </div> <div class="row"> <div class="col-sm-5"> <div class="form-group"> <label class="form-label">Salary (Leave empty to use basic salary)</label> <input type="number" min="0" name="monthly_salary" id="monthly_salary" class="form-control"> </div> </div> <div class="col-sm-3"> <div class="form-group"> <label for="exampleInput" class="form-label">Over Time</label> <input type="number" name="overtime" min="0" class="form-control"> </div> </div> <div class="col-sm-4"> <div class="form-group"> <label class="form-label">Payment Date</label> <div class="input-group date dobWrap cal-container"> <input type="text" class="form-control" name="payment_date" data-provide="datepicker" data-date-format="M-d-yyyy" required> </div> </div> </div> </div> <div class="row"> <div class="col-sm-4"> <div class="form-group"> <label class="form-label">Deductions</label> <input type="number" name="salary_deduction" min="0" class="form-control"> </div> </div> <div class="col-sm-4"> <div class="form-group"> <label class="form-label">Reimbursement</label> <input type="number" name="reimbursement" min="0" class="form-control"> </div> </div> <div class="col-sm-4"> <div class="form-group"> <label class="form-label">Tax(%)</label> <input type="number" name="tax_amount" class="form-control" min="0"> </div> </div> </div> <div class="row"> <div class="col-sm-4"> <div class="form-group"> <label class="form-label">Status</label> <select class="form-control" name="status" required> <option value="">Select status</option> <option value="Pending">Pending</option> <option value="Processing">Processing</option> <option value="Approved">Approved</option> </select> </div> </div> <div class="col-sm-8"> <div class="form-group"> <label class="form-label">Comment</label> <textarea cols="5" class="form-control" name="comment"></textarea> </div> </div> </div> <button type="submit" id="insert" class="btn btn-success">Submit</button> </form> </div> </div> </div> </form> </div> </div> </div> </div> <script type="text/javascript"> $(document).ready(function() { $('#add_category_bttn').submit(function(event) { event.preventDefault(); $.ajax({ url: 'includes/modals/insertSalary.php', type: 'post', headers: {'X-CSRF-Token': $('#csrf_token').val()}, data: $('#add_category_bttn').serialize(), dataType: 'json', success: function(response) { if (response.status == 'success') { swal("Success!", response.message, "success").then(() => { location.reload(); }); //window.location.href = response.redirect; $('#registration-form')[0].reset(); } else { swal("Error!", response.message, "error").then(() => { location.reload(); }); } } }); }); }); </script> <!-- <script type="text/javascript"> $(document).ready(function() { $('#add_category_bttn').submit(function(event) { event.preventDefault(); var form_data = $(this).serialize(); $.ajax({ url: 'includes/modals/insertEmployment.php', method: 'post', data: form_data, dataType:"html", success: function(strMessage){ $('#response').html(strMessage); $("form").trigger("reset"); } }); }); }); </script> -->
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.81 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002