Uname:
Linux server.thebazaar99.com 5.14.0-687.17.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jun 22 07:21:26 EDT 2026 x86_64
Software:
Apache
PHP version:
8.3.32 [ PHP INFO ] PHP os:
Linux
Server Ip:
163.227.92.254
Your Ip:
216.73.217.24
User:
gutlooks (1003) | Group:
gutlooks (1005)
Safe Mode:
OFF
Disable Function:
exec,passthru,shell_exec,system
<body onload="window.print()">
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<style>
.table {
width: 100%;
max-width: 100%;
margin-bottom: 20px;
}
<?php
$id =$this->uri->segment('3');
$order_NO =base64_decode($this->uri->segment('3'));
$da = $this->Curd->fetch_where_order_limit('tb_order', '*', array('order_no'=>base64_decode($this->uri->segment('3'))), 'id', '1');
?>
.table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td {
border-top: 1px solid #f4f4f4;
}
.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: 8px;
line-height: 1.42857143;
vertical-align: top;
border-top: 1px solid #ddd;
}
.pull-right{
border-left: 1px solid #ddd;
}
</style>
<section class="content" id="ppg">
<div class="row">
<div class="col-xs-12">
<div class="box box-info">
<div class="box-header">
<h3 class="box-title"><i class="fa fa-shopping-cart"></i> Invoice No. : <?php echo $order_NO;?></h3>
<!--<div class="box-tools pull-right">-->
<!-- <a href="javascript:;" onclick="printDiv('print_box')" data-toggle="tooltip" title="Cancel" class="btn btn-info btn-sm" >-->
<!-- <i class="fa fa-print"></i> Print Invoice</a>-->
<!-- </div>-->
</div>
<?php
// echo $this->db->last_query();
foreach($da as $row){
// print_r($row);
}
$suborder_res = $this->Curd->fetch_where("tb_sub_order",array("*"),array("order_no"=>base64_decode($id)));
// print_r($suborder_res);
?>
<!-- /.box-header -->
<div class="box-body">
<div class="main-content" id="print_box">
<table class="table">
<tr>
<td class="">
<img style="max-height:100px;" src="<?php echo base_url('assets/images/shara_logo.jpg');?>" alt="" />
</td>
<td class="pull-right">
<b>GSTIN : 07ABAFK8791P1ZH</b><br/>
<b>Company Name : K & P</b><br/>
<b>Mobile : +91-8209722282</b><br/>
<b>Email : info@sharadryfruit.com
</b><br/>
<b>Address : VPO - Bakara, Jhunjhunu
Rajasthan - 333001, India</b>
</td>
</tr>
</table>
<table class="table">
<tr>
<td>
<table>
<tr>
<td colspan="2">
<h5 style="font-size: 20px;
font-weight: bold;">Order Payment Details</h5>
</td>
</tr>
<tr>
<td><b style="padding-right:15px;">Invoice No. </b></td>
<td><?php echo $row->order_no?></td>
</tr>
<tr>
<td><b style="padding-right:15px;">Payment Type </b></td>
<td><?php echo $row->payment_method?></td>
</tr>
<tr>
<td><b style="padding-right:15px;">Order Date </b></td>
<td><?php echo $row->order_date?></td>
</tr>
</table>
</td>
<td>
<table class="pull-right">
<tr>
<td colspan="2">
<h5 style="font-size: 20px;
font-weight: bold;">Billing Details</h5>
</td>
</tr>
<tr>
<td><b style="padding-right:15px;">Full Name </b></td>
<td><?php echo $row->full_name?></td>
</tr>
<tr>
<td><b style="padding-right:15px;"> Mobile </b></td>
<td><?php echo $row->mobile?></td>
</tr>
<tr>
<td><b style="padding-right:15px;">Address </b></td>
<td><?php echo $row->address?></td>
</tr>
<tr>
<td><b style="padding-right:15px;">GST No. </b></td>
<td><?php echo $row->address?></td>
</tr>
</table>
</td>
<td>
<table class="pull-right">
<tr>
<td colspan="2">
<h5 style="font-size: 20px;
font-weight: bold;">Shipping Details</h5>
</td>
</tr>
<tr>
<td><b style="padding-right:15px;">Full Name </b></td>
<td><?php echo $row->full_name?></td>
</tr>
<tr>
<td><b style="padding-right:15px;"> Mobile </b></td>
<td><?php echo $row->mobile?></td>
</tr>
<tr>
<td><b style="padding-right:15px;">Address </b></td>
<td><?php echo $row->address?></td>
</tr>
</table>
</td>
</tr>
</table>
<table class="table table-bordered" style="width:100%">
<tr>
<th>Sr No</th>
<th>Product</th>
<th>SKU</th>
<th>Unit Price</th>
<th>qty</th>
<th>Sub Total</th>
</tr>
<tbody style="text-align:center;">
<?php
$p=0;
$tol_pay =0;
$cod_charge = $row->cod_charge;
$delivery_charges = $row->delivery_charges;
foreach($suborder_res as $r2){
$p++;
$tol =$r2->sale_price * $r2->qty;
$tol_pay +=$tol;
echo "<tr><td>$p</td>
<td>$r2->title</td>
<td>$r2->sku</td>
<td>$r2->sale_price</td>
<td>$r2->qty</td>
<td>$tol</td>
</tr>";
// echo "<pre>"; print_r($r2);
// echo "</pre>";
}
?>
<tr>
<td colspan="4"></td>
<td>Grass Total</td>
<td><i class="fa fa-inr"></i> <?php echo $tol_pay;?> </td>
</tr>
<tr>
<td colspan="4"></td>
<td>COD Charge</td>
<td><i class="fa fa-inr"></i> <?php echo $cod_charge;?> </td>
</tr>
<tr>
<td colspan="4"></td>
<td>Delivery Charges</td>
<td><i class="fa fa-inr"></i> <?php echo $delivery_charges;?> </td>
</tr>
<tr>
<td colspan="4"></td>
<td>Grand Total</td>
<td><i class="fa fa-inr"></i> <?php echo $tol_pay+$cod_charge+$delivery_charges;?> </td>
</tr>
</tbody>
</table>
</div><!-- /# main content -->
</div>
<!-- /.box-body -->
</div>
<!-- /.box -->
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</section>
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<script type="text/javascript">
//Print Invoice
function printDiv(divName) {
var printContents = document.getElementById(divName).innerHTML;
document.body.innerHTML = printContents;
window.print();
}
</script>