[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: StockModal.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-body"> <div class="modal-body" style="width: 100%"> <form class="row" id="add_category_bttn"> <div class="col-md-6 col-lg-6"> <div class="form-group row"> <label for="company_name" class="col-sm-5 col-form-label">Product name</label> <div class="col-sm-10"> <?php $stmt = $con->prepare("SELECT * FROM products,supplier WHERE products.supplier = supplier.supplier_id AND products.business_name = ?"); $stmt->execute(array($shopname)); $rows_categories = $stmt->fetchAll(); ?> <select class="form-control" name="pro_id" style="height : 45px;" autocomplete="off"> <option value="">Select Supplier</option> <?php foreach($rows_categories as $category) { echo "<option value = '".$category['pro_id']."'>"; echo $category['product_name'].' -- '.'<br>'.$category['supplier_name']; echo "</option>"; } ?> </select> </div> </div> </div> <div class="col-md-6 col-lg-6"> <div class="form-group row"> <label for="start_date" class="col-sm-5 col-form-label">Item Qty </label> <div class="col-sm-10"><input type="number" name="qty" class="form-control" style="height : 45px;" autocomplete="off"> </div> </div> </div> <br /> <div class="col-md-6 col-lg-6"> <div class="form-group row"> <label for="start_date" class="col-sm-5 col-form-label"> Date</label> <div class="col-sm-10"> <input type="date" name="date" class="form-control" style="height : 45px;"> </div> </div> </div> <div class="form-group col-md-4"> <br/><br/> <button type="submit" class="btn btn-success form-control">Send</button> </div> </div> </form> </div> </div> </div> </div> </div> <script type="text/javascript"> $(document).ready(function() { $('#add_category_bttn').submit(function(event) { event.preventDefault(); $.ajax({ url: 'includes/modals/insertStock.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/insertStock.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