halohalo
bnmbnmbnhjkhjkhjkhjktyutyutyuytutyutyutyhgjgjghjgjghjguytutyry
/
home
/
aramiyarkai
/
public_html
/
admin
/
Upload FileeE
HOME
<?php session_start(); include "dbc.php"; $default_currency = "inr"; $company_name = "Aram Iyarkai"; $company_logo = "images/logo1.png"; $company_address = "5/129 A Type 65th Street, Sidco Nagar,Villivakkam, Chennai 600 049."; $company_mobileno = "+91 99620 49899"; $company_emailid = "aramiyarkai369@gmail.com"; $company_url = "https://www.aramiyarkai.com/"; $company_details = $company_address.", Mobile No: ".$company_mobileno.".<br> Email Id: ".$company_emailid.", ".$company_regno; ?> <!doctype html> <html lang="en"> <head> <title><?php echo $company_name; ?></title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="description" content="<?php echo $company_name; ?> Invoice"> <meta name="author" content="<?php echo $company_name; ?> Invoice"> <link rel="shortcut icon" href="images/faviicon.ico"> <link rel="stylesheet" href="../css/bootstrap.min.css" type="text/css" media='screen,print'> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"> <link href='css/font-awesome.min.css' rel='stylesheet' type='text/css' /> <link rel="stylesheet" href="css/bootstrap.min.css"> <link rel="stylesheet" href="css/main.min.css"> <style> .fa-aud:before { content: "AU$"; } .col-md-6{ padding:0px; } .table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th{ padding: 2px; } </style> </head> <body> <div class="container"> <div style=""> <center> <img src="<?php echo $company_logo; ?>" class="img-responsive" style="width:300px;"> </center> <center><?php echo $company_details; ?></center> <center><?php echo $company_url; ?></center> </div> <hr> <div class="row"> <div class="col-xs-12 col-md-12"> <div class="col-xs-6 col-md-6"> <table class="table table-bordered"> <thead> <tr> <th>Vendor Details</th> </tr> </thead> <tbody> <?php $ggetpurchase_id = $_GET['id']; $sel_purchase = mysqli_query($link,"select * from purchase_tbl where purchase_id='$ggetpurchase_id'"); $rw_details = mysqli_fetch_object($sel_purchase); //$product_id = $rw_details->product_id; $purchase_id = $rw_details->purchase_id; $vendor_id = $rw_details->vendor_id; $vendor_name = $rw_details->vendor_name; list($address,$mobile,$email,$gst_no) = mysqli_fetch_row(mysqli_query($link,"select `vendor_address`,`vendor_mobile`,`vendor_email`,`gst_no` from vendor_tbl where vendor_id='$vendor_id'")); ?> <tr> <td><?php echo $vendor_name;?></td> </tr> <tr> <td><?php echo $address; ?></td> </tr> <tr> <td><?php echo $mobile;?></td> </tr> <tr> <td><?php echo $email;?></td> </tr> <tr> <td><?php echo $gst_no;?></td> </tr> </tbody> </table> </div> <div class="col-xs-6 col-md-6"> <table class="table table-bordered"> <thead> <tr> <th>Invoice Details</th> </tr> </thead> <tbody> <tr> <td>Vendor Invoice No : <?php echo $rw_details->invoice_no;?></td> </tr> <tr> <td>Purchase No : <?php echo $rw_details->purchase_id;?></td> </tr> <tr> <td>Purchase Date :<?php echo $dateinvoice = date("d/m/Y", strtotime($rw_details->purchase_date)); ?></td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <?php /*<tr> <td>Order Status : <?php echo $rw_details->order_status;?></td> </tr>*/ ?> </tbody> </table> </div> </div> </div> <div class="row"> <div class="col-xs-12 col-md-12"> <table class="table table-bordered"> <thead> <tr> <th>#</th> <th>Item</th> <th align="center" style="text-align:center;">Price</th> <th align="center" style="text-align:center;">Quantity</th> <th align="center" style="text-align:center;">Total</th> </tr> </thead> <tbody> <?php $sel_purchase1 = mysqli_query($link,"select * from purchasedetails_tbl where purchase_id='$ggetpurchase_id'"); $sno=1; while($rw_details1 = mysqli_fetch_object($sel_purchase1)){ $proid = $rw_details1->product_id; $product_name = $rw_details1->product_name; ?> <tr> <th scope="row"><?php echo $sno;?></th> <td><?php echo $product_name;?></td> <td align="center"><i class="fa fa-<?php echo $default_currency; ?>"></i> <?php echo $rw_details1->cost_price;?></td> <td align="center"><?php echo $rw_details1->quantity;?></td> <td align="center"><i class="fa fa-<?php echo $default_currency; ?>"></i> <?php echo $rw_details1->line_total;?></td> </tr> <?php $sno++;} ?> </tbody> </table> </div> </div> <div class="row"> <div class="col-xs-4 col-md-4"> </div> <div class="col-xs-4 col-md-4"> </div> <div class="col-xs-4 col-md-4"> <table class="table table-bordered"> <tbody> <tr> <th scope="row">Sub Total</th> <td><i class="fa fa-<?php echo $default_currency; ?>"></i> <?php echo $rw_details->sub_total; ?></td> </tr> <tr> <th scope="row">Discount Total</th> <td><i class="fa fa-<?php echo $default_currency; ?>"></i> <?php echo $rw_details->discount_total; ?></td> </tr> <tr> <th scope="row">Tax Total</th> <td><i class="fa fa-<?php echo $default_currency; ?>"></i> <?php echo $rw_details->tax_total; ?></td> </tr> <tr> <th scope="row">Transport Total</th> <td><i class="fa fa-<?php echo $default_currency; ?>"></i> <?php echo $rw_details->transport_total; ?></td> </tr> <tr> <th scope="row">Grand Total</th> <td><i class="fa fa-<?php echo $default_currency; ?>"></i> <?php echo $rw_details->grand_total; ?></td> </tr> </tbody> </table> </div> <div class="col-xs-12 col-md-12"> <center> <h3>Thank you for your support!</h3> </center> </div> </div> <br><br> <center id="printarea"> <a href="dashboard.php" class="btn btn-success"><i class="fa fa-check"> </i> Proceed</a> <button name="print" type="button" value="Print" id="printButton" onClick="printpage()" class="btn btn-danger" > <i class="fa fa-print"> </i> Print Invoice</button> </center> <br><br> <script type="text/javascript"> function printpage() { document.getElementById('printarea').style.visibility="hidden"; window.print(); document.getElementById('printarea').style.visibility="visible"; } </script> </div> <script type="text/javascript" src="js/jquery.min.js"></script> <script type="text/javascript" src="js/bootstrap.min.js"></script> </body> </html>