Server IP : 162.214.80.37 / Your IP : 216.73.216.83 Web Server : Apache System : Linux sh013.webhostingservices.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : imyrqtmy ( 2189) PHP Version : 8.2.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home2/imyrqtmy/public_html/clickonn/Admin/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php session_start(); $se = $_SESSION["id"]; if (!isset($_SESSION['id'])) { header("Location: login.php"); } include("Includes/db.php");; $bid = $_GET['id']; $sql = "select * from tbl_vendore where id='$bid'"; $sql_res = mysqli_query($con, $sql) or die(mysqli_error($con)); $sql_row = mysqli_fetch_assoc($sql_res); $package = $sql_row['package']; $sqls = "select * from tbl_package where id='$package'"; $sql_ress = mysqli_query($con, $sqls) or die(mysqli_error($con)); $sql_rows = mysqli_fetch_assoc($sql_ress); $amt = $sql_rows['mamt']; $a = ($amt*9); $a1 = ($a/100); $a2 = round($a1); $fa = $amt + $a2 + $a2 ; ?> <?php // Create a function for converting the amount in words function AmountInWords(float $amount) { $amount_after_decimal = round($amount - ($num = floor($amount)), 2) * 100; // Check if there is any number after decimal $amt_hundred = null; $count_length = strlen($num); $x = 0; $string = array(); $change_words = array(0 => '', 1 => 'One', 2 => 'Two', 3 => 'Three', 4 => 'Four', 5 => 'Five', 6 => 'Six', 7 => 'Seven', 8 => 'Eight', 9 => 'Nine', 10 => 'Ten', 11 => 'Eleven', 12 => 'Twelve', 13 => 'Thirteen', 14 => 'Fourteen', 15 => 'Fifteen', 16 => 'Sixteen', 17 => 'Seventeen', 18 => 'Eighteen', 19 => 'Nineteen', 20 => 'Twenty', 30 => 'Thirty', 40 => 'Forty', 50 => 'Fifty', 60 => 'Sixty', 70 => 'Seventy', 80 => 'Eighty', 90 => 'Ninety'); $here_digits = array('', 'Hundred','Thousand','Lakh', 'Crore'); while( $x < $count_length ) { $get_divider = ($x == 2) ? 10 : 100; $amount = floor($num % $get_divider); $num = floor($num / $get_divider); $x += $get_divider == 10 ? 1 : 2; if ($amount) { $add_plural = (($counter = count($string)) && $amount > 9) ? 's' : null; $amt_hundred = ($counter == 1 && $string[0]) ? ' and ' : null; $string [] = ($amount < 21) ? $change_words[$amount].' '. $here_digits[$counter]. $add_plural.' '.$amt_hundred:$change_words[floor($amount / 10) * 10].' '.$change_words[$amount % 10]. ' '.$here_digits[$counter].$add_plural.' '.$amt_hundred; } else $string[] = null; } $implode_to_Rupees = implode('', array_reverse($string)); $get_paise = ($amount_after_decimal > 0) ? "And " . ($change_words[$amount_after_decimal / 10] . " " . $change_words[$amount_after_decimal % 10]) . ' Paise' : ''; return ($implode_to_Rupees ? $implode_to_Rupees . 'Rupees ' : '') . $get_paise; } ?> <!-- call the function here --> <?php $amt_words=485500; // nummeric value in variable $get_amount= AmountInWords($fa); $get_amount; ?> <!doctype html> <html lang="en"> <head> <?php include 'Includes/head.php'; ?> </head> <body data-sidebar="dark"> <!-- <body data-layout="horizontal" data-topbar="dark"> --> <!-- Begin page --> <div id="layout-wrapper"> <?php include 'Includes/header.php'; ?> <!-- ========== Left Sidebar Start ========== --> <div class="vertical-menu"> <div data-simplebar class="h-100"> <!--- Sidemenu --> <?php include 'Includes/sidebar.php'; ?> <!-- Sidebar --> </div> </div> <!-- Left Sidebar End --> <!-- ============================================================== --> <!-- Start right Content here --> <!-- ============================================================== --> <div class="main-content"> <div class="page-content"> <div class="container-fluid"> <!-- start page title --> <div class="row"> <div class="col-12"> <div class="page-title-box d-sm-flex align-items-center justify-content-between"> <h4 class="mb-sm-0 font-size-18"> Order View</h4> </div> </div> </div> <!-- end page title --> <div class="row"> <div class="col-lg-12"> <div class="card"> <div class="card-body"> <div class="invoice-title"> <table style="width: 100%;max-width: 100%;margin-bottom: 5px;border-collapse: collapse;"> <tr style=""> <td style="width: 30%;padding: 8px;line-height: 1.42857143;vertical-align: top;"> <img src="https://leadriding.com/assets/img/logow1r.png" style="height: 110px; display: block;margin-left: auto;margin-right: auto;"> </td> </tr> </table> <table style="width: 100%;max-width: 100%;margin-bottom: 20px;border-collapse: collapse;"> <tbody> <tr> <td style="width: 50%;border:1px solid #000;padding: 8px;line-height: 1.42857143;vertical-align: top;"> <h4 style="border-bottom:1px solid #000;">Vendor Details</h4> <h5 class="font-size-15 mb-2">Company Name : <?php echo $sql_row['cname']; ?></h5> <h5 class="font-size-15 mb-2">Billing Address : <?php echo $sql_row['address']; ?></h5> <h5 class="font-size-15 mb-2">City : <?php echo $sql_row['city']; ?></h5> <h5 class="font-size-15 mb-2">Email : <?php echo $sql_row['email']; ?></h5> <h5 class="font-size-15 mb-2">Contact No : <?php echo $sql_row['phone']; ?></h5> <h5 class="font-size-15 mb-2">Date : <?php echo $sql_row['add_date']; ?></h5> </td> <td style="width: 50%;border:1px solid #000;padding: 8px;line-height: 1.42857143;vertical-align: top;"> <h4 style="border-bottom:1px solid #000;">LeadRiding Details</h4> <h5 class="font-size-15 mb-2">PAN No :AAECL9306M </h5> <h5 class="font-size-15 mb-2">Office Address : Jamia Nagar, Okhla, Delhi, India, 110025 </h5> <h5 class="font-size-15 mb-2">Email : leadriding@gmail.com </h5> <h5 class="font-size-15 mb-2">Contact No : +91 9359195202 </h5> <h5 class="font-size-15 mb-2">GST : 07AAECL9306M1Z5 </h5> </td> </tr> </tbody> </table> <table style="width: 100%;max-width: 100%;margin-bottom: 20px;border-collapse: collapse;"> <tbody> <tr> <td style="width: 50%;padding: 8px;line-height: 1.42857143;vertical-align: top;"> <h4 style="border-bottom:1px solid #000;">Package Name</h4> <h5 class="font-size-15 mb-2"> <?php echo $sql_rows['name']; ?></h5> </td> <td style="width: 50%;padding: 8px;line-height: 1.42857143;vertical-align: top;"> <h4 style="border-bottom:1px solid #000;">Payment Details</h4> </td> </tr> <tr> <td style="width: 50%;padding: 8px;line-height: 1.42857143;vertical-align: top;"> <h4 class="m-0"> Invoice Amount In Words</h4> <span style="background-color: gainsboro;"><?php echo $get_amount; ?></span> <br><br> <h4 class="m-0"> Terms & Condition </h4> <span style="background-color: gainsboro;">Thanks for doing business with us!</span> </td> <td style="width: 50%;padding: 8px;line-height: 1.42857143;vertical-align: top;"> <table style="width: 100%;max-width: 100%;margin-bottom: 5px;border-collapse: collapse;"> <tbody> <tr> <td class="no-line" ></td> <td class="no-line" ></td> <td class="no-line" ></td> <td class="no-line text-center" style=""><h4 class="m-0"> Sub Total</h4></td> <td class="no-line" style=""> <h4 class="m-0" style="text-align: center;"> <i class="fa fa-rupee"></i><?php echo $amt; ?></h4> </td> </tr> <tr> <td class="no-line" ></td> <td class="no-line" ></td> <td class="no-line" ></td> <td class="no-line text-center" style=""><h4 class="m-0"> CGst (9%)</h4></td> <td class="no-line" style=""> <h4 class="m-0" style="text-align: center;"> <i class="fa fa-rupee"></i><?php echo $a2; ?></h4> </td> </tr> <tr> <td class="no-line" ></td> <td class="no-line" ></td> <td class="no-line" ></td> <td class="no-line text-center" style=""><h4 class="m-0"> SGst (9%)</h4></td> <td class="no-line" style=""> <h4 class="m-0" style="text-align: center;"> <i class="fa fa-rupee"></i><?php echo $a2; ?></h4> </td> </tr> <tr> <td class="no-line" ></td> <td class="no-line" ></td> <td class="no-line" ></td> <td class="no-line text-center" style=""><h4 class="m-0"> Total</h4></td> <td class="no-line" style=""> <h4 class="m-0" style="text-align: center;"> <i class="fa fa-rupee"></i><?php echo $fa; ?></h4> </td> </tr> </tbody> </table> <hr> <br> <h5 class="m-0" style="text-align: center;">For, :LEADRIDING MEDIA PRIVATE LIMITED</h5> <br> <br> <h5 class="m-0" style="text-align: center;">Authorized Signatory</h5> </td> </tr> </tbody> </table> </div> <div class="d-print-none"> <div class="float-end"> <a href="javascript:window.print()" class="btn btn-success waves-effect waves-light me-1"><i class="fa fa-print"></i></a> </div> </div> </div> </div> </div> </div><!-- end row --> <!-- end row --> <!-- end row --> <!-- end row --> </div> <!-- container-fluid --> </div> <!-- End Page-content --> <footer class="footer"> <?php include 'Includes/footer.php'; ?> </footer> </div> <!-- end main content--> </div> <!-- END layout-wrapper --> <!-- Right Sidebar --> <!-- /Right-bar --> <!-- Right bar overlay--> <div class="rightbar-overlay"></div> <?php include 'Includes/bscript.php'; ?> </body> </html>