[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: SalesModal1.php
<?php $shopname = $_SESSION['business_name_Xw211qAAsq4'];?> <div class="modal fade bd-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myExtraLargeModalLabel" aria-hidden="true"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title h4" id="myExtraLargeModalLabel">In House Sales</h5> <button type="button" class="close waves-effect waves-light" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <form method="POST" id="add_category_bttn"> <div class="row"> <div class="col-md-6"> <?php $stmt = $con->prepare("SELECT * FROM employees WHERE business_name = ? order by employee_id DESC"); $stmt->execute(array($shopname)); $rows_categories = $stmt->fetchAll(); ?> <div class="form-group"> <label for="employee_id"> Employee</label> <br /> <select class="select2" name="employee_id" style="width: 330px;" required> <option value="">Select Employee</option> <?php foreach($rows_categories as $category) { echo "<option value = '".$category['employee_id']."'>"; echo $category['first_name'].' '.$category['last_name']; echo "</option>"; } ?> </select> </div> </div> <div class="col-md-6"> <?php $stmt = $con->prepare("SELECT * FROM clients WHERE business_name = ? ORDER BY client_id DESC"); $stmt->execute(array($shopname)); $rows_categories = $stmt->fetchAll(); ?> <div class="form-group"> <label for="employee_id"> Clients</label> <br /> <select class="select2" name="client_id" style="width: 330px;" required> <option value="">Select clients</option> <?php foreach($rows_categories as $client) { echo "<option value = '".$client['client_id']."'>"; echo $client['first_name'].' '.$client['last_name']; echo "</option>"; } ?> </select> </div> </div> </div> <div class="row"> <div class="col-md-6"> <?php $stmt = $con->prepare("SELECT * FROM services WHERE business_name = ? order by service_name"); $stmt->execute(array($shopname)); $rows_categories = $stmt->fetchAll(); ?> <div class="form-group"> <label for="employee_id"> Select Service</label> <br /> <select multiple name="service_id[]" id="mySelect" style="width: 330px;color: #000;"> <option value="">Select Service</option> <?php foreach($rows_categories as $service){ ?> <option value="<?php echo $service['service_id'];?>"><?php echo $service['service_name'];?> - <?php echo $service['service_price'];?></option> <?php }?> </select> </div> <!-- <label for="client_id"> Discount code</label> <br/> <input type="text" name="" class="form-control" style="width: 330px"> <br/><br/> --> </div> <div class="col-md-6"> <div class="form-group"> <label for="client_id"> Work Status</label> <br /> <select class="select2" name="active12" style="width: 330px;" required> <option value="">Select option</option> <option value="Yes">Done</option> <option value="Progress">Progress</option> <option value="Cancelled">Cancelled</option> </select> </div> <label for="client_id"> Paid by</label> <br /> <select class="select2" name="payment" style="width: 330px;" required> <option value="">Select option</option> <option value="Cash">Cash</option> <option value="Momo(MTN)">Momo(MTN)</option> <option value="Momo(Voda)">Momo(Voda)</option> <option value="Bank Transfer">Bank Transfer</option> <option value="Card payment">Card payment</option> </select> </div> </div> <!-- SUBMIT BUTTON --> <button type="submit" name="insert" class="btn btn-primary">Add sales</button> <button type="button" class="btn btn-success" data-toggle="modal" data-target="#modalCoupon">Add Client</button> <script src="https://code.jquery.com/jquery-3.6.4.min.js" integrity="sha256-oP6HI9z1XaZNBrJURtCoUT5SUnxFr8s3BzRl+cbzUq8=" crossorigin="anonymous"></script> <script src='https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js'></script> <link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.css'/> </form> </div> </div> </div> </div> <script> $(document).ready(function() { $('.select2').select2(); }); </script> <head> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.13/css/select2.min.css" /> <script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.13/js/select2.min.js"></script> </head> <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 Vendor</h5> <button type="button" class="close waves-effect waves-light" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> <div id="responsesales"></div> </div> <div class="modal-body"> <form method="post" accept-charset="utf-8" id="add_category_bttn22"> <div class="row"> <div class="form-group col-md-6"> <label>Vendor name</label> <input type="text" name="vendor_name" class="form-control" style="height:40px"> </div> <div class="form-group col-md-6"> <label>Email</label> <input type="email" name="vendor_email" class="form-control" style="height:40px"> </div> <div class="form-group col-md-6"> <label>Phone number</label> <input type="number" name="phone" class="form-control" style="height:40px"> </div> <div class="form-group col-md-6"> <label>Address/Location</label> <input type="text" name="address" class="form-control" style="height:40px"> </div> <div class="form-group col-md-4"> <button type="submit" id="insert" class="btn btn-success form-control">Send</button> </div> </div> </form> </div> </div> </div> </div> <script type="text/javascript"> $(document).ready(function() { $('#add_category_bttn').submit(function(event) { event.preventDefault(); var form_data = $(this).serialize(); $.ajax({ url: 'includes/modals/insertSales.php', method: 'POST', data: form_data, dataType:"html", success: function(strMessage){ $('#responsesales').html(strMessage); //$("form").trigger("reset"); } }); }); }); </script> <script> $(document).ready(function() { $('#mySelect').select2(); }); </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.85 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