📁
SKYSHELL MANAGER-
🛒
PHP v7.4.33
Create Folder
Create File
Current Path:
home
/
oshofree
/
public_html
/
chbluxuries.com
/
boot
/
Name
Size
Permissions
Actions
📁
..
-
0755
🗑️
🔒
📁
css
-
0755
🗑️
🔒
📁
js
-
0755
🗑️
🔒
📄
config.php
7.06 KB
0444
🗑️
⬇️
✏️
🔒
📄
error_log
164.36 KB
0644
🗑️
⬇️
✏️
🔒
Editing: invo.php
<?php include "header.php"; ?> <style> .invoice-container { padding: 1rem; margin-bottom:200px; background: #121212; } .invoice-container .invoice-header .invoice-logo { margin: 0.8rem 0 0 0; display: inline-block; font-size: 1.6rem; font-weight: 700; color: #fff; } .invoice-container .invoice-header .invoice-logo img { max-width: 130px; } .invoice-container .invoice-header address { font-size: 0.8rem; color: #FF339A;; margin: 0; } .invoice-container .invoice-details { margin: 1rem 0 0 0; padding: 1rem; line-height: 180%; background: black; } .invoice-container .invoice-details .invoice-num { text-align: right; font-size: 0.8rem; } .invoice-container .invoice-body { padding: 1rem 0 0 0; } .invoice-container .invoice-footer { text-align: center; font-size: 0.7rem; margin: 5px 0 0 0; } .invoice-status { text-align: center; padding: 1rem; background: #FF339A; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; margin-bottom: 1rem; } .invoice-status h2.status { margin: 0 0 0.8rem 0; } .invoice-status h5.status-title { margin: 0 0 0.8rem 0; color: #FF339A; } .invoice-status p.status-type { margin: 0.5rem 0 0 0; padding: 0; line-height: 150%; } .invoice-status i { font-size: 1.5rem; margin: 0 0 1rem 0; display: inline-block; padding: 1rem; background: #FF339A; -webkit-border-radius: 50px; -moz-border-radius: 50px; border-radius: 50px; } .invoice-status .badge { text-transform: uppercase; } @media (max-width: 767px) { .invoice-container { padding: 1rem; } } .card { background: #121212; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; border: 0; margin-bottom: 1rem; } .custom-table { border: 1px solid #FF339A; } .custom-table thead { background: #FF339A; } .custom-table thead th { border: 1px solid #FF339A; color: #ffffff; } .custom-table > tbody tr:hover { background: #172033; } .custom-table > tbody tr:nth-of-type(even) { background-color: #121212; } .custom-table > tbody td { border: 1px solid #FF339A; } .table { background: #121212; color: #FF339A; font-size: .75rem; } .text-success { color: #fff !important; } .custom-actions-btns { margin: auto; display: flex; justify-content: flex-end; } .custom-actions-btns .btn { margin: .3rem 0 .3rem .3rem; } </style> <?php include "connect_to_mysqli.php"; // Get images from the database $user = $_POST['ordid']; $check = "select all* from parcel where id = '".$user."'"; $query = mysqli_query($con,$check); if (mysqli_affected_rows($con) == 0) { echo ""; } else { $sql ="select all* from parcel where id = '".$user."' "; $sql2 = mysqli_query($con,$sql); while($row = mysqli_fetch_array($sql2)) { $id = $row["s"]; $drid=$row['did']; $numa=$row['dnum']; $sta = $row["status"]; $date = $row["date"]; $add = $row['address']; $ad = $row["adress"]; $sad = $row['size']; $ad = $row["adress"]; $cst = $row['coster']; $er=$row['fem']; $esr=$row['user']; $ped = $row['gin']; } } $sql = "SELECT all* from user where user='$esr'"; $sql2 = mysqli_query($con,$sql); while($row = mysqli_fetch_array($sql2)) { $mem= $row['member']; } $sql = "SELECT all* from count "; $sql2 = mysqli_query($con,$sql); while($row = mysqli_fetch_array($sql2)) { $gad= $row['gold']; $sev= $row['sliver']; $gd= $row['bronze']; } if ($mem == "Best") { $fin =$ped*($gad/100); } else if ($mem == "Better") {$fin =$ped*($sev/100);} else if ($mem == "Good") {$fin=$ped*($gd/100);} else if ($mem == "") {$fin=0;} ?> <div class="container"> <div class="row gutters"> <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12"> <div class="card"> <div class="card-body p-0"> <div class="invoice-container"> <div class="invoice-header"> <!-- Row start --> <div class="row gutters"> <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12"> <div class="custom-actions-btns mb-5"> <a href="#" class="btn btn-primary" style="background-color:#FF339A; border:none; outline:none;" onclick="window.print()" > <i class="icon-download"></i> Print Invoice </a> </div> </div> </div> <!-- Row end --> <!-- Row start --> <div class="row gutters"> <div class="col-xl-6 col-lg-6 col-md-6 col-sm-6"> <a href="index.php" class="invoice-logo"> Chblogistics </a> </div> <div class="col-lg-6 col-md-6 col-sm-6"> <address class="text-right"> 19 Olowu St,Opebi 101233,Ikeja.<br> Lagos,Nigeria.<br> +234 905 744 4448 </address> </div> </div> <!-- Row end --> <!-- Row start --> <div class="row gutters"> <div class="col-xl-9 col-lg-9 col-md-12 col-sm-12 col-12"> <div class="invoice-details"> <address> <?php echo $name; ?> <?php echo $name2; ?><br> <?php echo $email; ?> </address> </div> </div> <div class="col-xl-3 col-lg-3 col-md-12 col-sm-12 col-12"> <div class="invoice-details"> <div class="invoice-num"> <div>Invoice - CHB<?php echo $user; ?></div> <div><?php echo $date; ?></div> </div> </div> </div> </div> <!-- Row end --> </div> <div class="invoice-body"> <!-- Row start --> <div class="row gutters"> <div class="col-lg-12 col-md-12 col-sm-12"> <div class="table-responsive"> <table class="table custom-table m-0"> <thead> <tr> <th>DETAILS</th> <th>Total Km Cost</th> <th>Discount</th> <th>Final Km Cost</th> </tr> </thead> <tbody> <tr> <td> FROM <p class="m-0 text-muted"> <?php echo $add; ?> </p> </td> <td>₦<?php echo $ped; ?></td> <td>₦<?php echo $fin; ?></td> <td>₦<?php $k=$ped-$fin; echo $k; ?></</td> </tr> <tr> <td> TO <p class="m-0 text-muted"> <?php echo $ad; ?> </p> </td> </tr> <tr> <td> PACKAGE SIZE <p class="m-0 text-muted"> <?php echo $sad; ?> </p> </td> </tr> <tr> <td> </td> <td colspan="2"> <p> Subtotal<br> Handling Fee<br> Tax<br> </p> <h5 class="text-success"><strong>Total Amount Paid</strong></h5> </td> <td> <p> ₦<?php $k=$ped-$fin; echo $k; ?><br> ₦<?php echo $er; ?><br> ₦0.00<br> </p> <h5 class="text-success"><strong> ₦<?php echo $cst; ?></strong></h5> </td> </tr> </tbody> </table> </div> </div> </div> <!-- Row end --> </div> <div class="invoice-footer" style="color:#FF339A;"> Thank you. </div> </div> </div> </div> </div> </div> </div> <a href="#" class="back-to-top"><i class="ri-arrow-up-line"></i></a> <div id="preloader"></div> <!-- Vendor JS Files --> <script src="assets/vendor/jquery/jquery.min.js"></script> <script src="assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script> <script src="assets/vendor/jquery.easing/jquery.easing.min.js"></script> <script src="assets/vendor/php-email-form/validate.js"></script> <script src="assets/vendor/waypoints/jquery.waypoints.min.js"></script> <script src="assets/vendor/counterup/counterup.min.js"></script> <script src="assets/vendor/venobox/venobox.min.js"></script> <script src="assets/vendor/owl.carousel/owl.carousel.min.js"></script> <script src="assets/vendor/isotope-layout/isotope.pkgd.min.js"></script> <script src="assets/vendor/aos/aos.js"></script> <!-- Template Main JS File --> <script src="assets/js/main.js"></script> </body> </html>
💾 Save Changes