File: //home/cafsindia/allyindian_com/sbltt/application/views/operation/print_tp.php
<?php
$base_url = "http://".$_SERVER['SERVER_NAME'].dirname($_SERVER["REQUEST_URI"].'?').'/';
$url = str_replace("index.php/","","$base_url");
$this->load->view('partial/print_receipt', array('print_after_sale'=>$print_after_sale, 'selected_printer'=>'invoice_printer'));
$this->load->view("partial/header");
$tour_no = $trip_info->tour_no;
$customer_name = $trip_info->customer_name;
$billing_name = $trip_info->billing_name;
$report_address = $trip_info->report_address;
$phone_number = $trip_info->phone_number;
$alt_number = $trip_info->alt_number;
$land_line = $trip_info->land_line;
$cust_email = $trip_info->cust_email;
$cust_address = $trip_info->cust_address;
$city = $trip_info->city;
$state = $trip_info->state;
$state_name = $trip_info->state_name;
$includ_gst = $trip_info->includ_gst;
$cust_info = "$city,$state_name.";
$from_date = date('d-m-Y',strtotime($trip_info->from_date));
$to_date = date('d-m-Y',strtotime($trip_info->to_date));
$trip_days = $trip_info->trip_days;
$rout_info = $trip_info->rout_info;
$vehicle_no = $trip_info->vehicle_no;
$model = $trip_info->model;
$chasis_no = $trip_info->chasis_no;
$engine_no = $trip_info->engine_no;
$permit_no = $trip_info->permit_no;
$fc_date = date('d-m-Y',strtotime($trip_info->fc_date));
$permit_date = date('d-m-Y',strtotime($trip_info->permit_date));
$insur_date = date('d-m-Y',strtotime($trip_info->insur_date));
$pollution_date = date('d-m-Y',strtotime($trip_info->pollution_date));
$tax_date = date('d-m-Y',strtotime($tax_info->doc_to));
?>
<style>
table{border-collapse:collapse !important;border-spacing:0 !important;color:#000000 !important;margin: 0px auto !important;font-family:inherit;font-size:inherit !important;width: 100% !important;text-transform: none !important;}
td{padding:4px !important;height:20px;vertical-align: -webkit-baseline-middle;vertical-align: middle !important;}
td.tdclass{border: 0;padding: 8px !important; height: 20px;vertical-align: -webkit-baseline-middle; border-right: 1px solid !important; border-left: 1px solid !important;}
td.border{border:1px solid !important}
.center{text-align:center !important;}
.left{text-align:left !important;}
.right{text-align:right !important;}
.bold{font-weight:bold !important;}
</style>
<div class="print_hide" style="text-align:right;padding: 8px;">
<a href="<?php echo base_url(); ?>index.php/operation" class="btn btn-info btn-sm", id="show_booking"><i class="fa fa-tags fa-lg" aria-hidden="true"></i> Go Back to Operation</a>
<a href="javascript:printdoc();" class="btn btn-info btn-sm", id="show_print_button"> <i class="fa fa-print fa-lg"></i> Print</a>
</div>
<div id="table_holder" style='min-height:500px;'>
<table class='bold'>
<tr>
<td colspan='2' class='center'>P.S.P.L.P</td>
</tr>
<tr>
<td colspan='2' class='center'>(Special permit in respect of Contract Carriage)</td>
</tr>
<tr>
<td colspan='2' class='center'>(See Rule 171)</td>
</tr>
<tr>
<td colspan='2' class='center'>Office of the Secretary State Transport Authority, Chennai</td>
</tr>
<tr>
<td class='left'>
<table class='bold'>
<tr>
<td class='left' style='width:75px;'>R.No.</td>
<td class='left' style='width:100px;'>: A4/</td>
<td class='left'>/<?php echo date("Y");?></td>
</tr>
</table>
</td>
<td class='right'>Date:<?php echo date("d-m-Y");?></td>
</tr>
<tr>
<td colspan='2' class='left'>
<table class='bold'>
<tr>
<td class='left' style='width:75px;'>Spl.P.No.</td>
<td class='left' style='width:100px;'>: </td>
<td class='left'>/STA/<?php echo date("Y");?></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan='2' class='left' style='padding:8px 4px !important;'>
Certified that the Vehicle bearing Engine Number: <?php echo $engine_no;?>, Chassis Number: <?php echo $chasis_no;?>, Regn Mark: <?php echo $vehicle_no;?>
</td>
</tr>
<tr>
<td colspan='2' class='left' style='padding:8px 4px !important;'>
Registered by the Registering Authority, Sriperumbudur and owned by Thiru. D.Elangovan, S/o. G.Dayalan, No.19, Vinayaga Nagar, Nemili Road, Sriperumbudur Tk, Kancheepuram.
</td>
</tr>
<tr>
<td colspan='2' class='left' style='padding:8px 4px !important;'>
Covered by permit No.P.C. <?php echo $permit_no;?>, dated <?php echo $permit_date;?> issued by the State Transport Authority, Chennai has been engaged by the persons whose particulars are given below:
</td>
</tr>
<tr>
<td colspan='2' class='left' style='padding-left:25px !important;'>
<table class='bold'>
<tr>
<td class='left' style='width:150px;'>1. Full Name</td>
<td class='left'>: <?php echo $customer_name;?></td>
</tr>
<tr>
<td class='left' style='width:150px;'>2. Father Name</td>
<td class='left'>:</td>
</tr>
<tr>
<td class='left' style='width:150px;'>3. Age</td>
<td class='left'>:</td>
</tr>
<tr>
<td class='left' style='width:150px;'>4. Address</td>
<td class='left'>: <?php echo $cust_info;?></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan='2' class='left' style='padding:8px 4px !important;'>
This above person along with his party consisting of <div style="display:inline-block;width:50px;border-bottom:1px solid;padding:5px;"></div> persons will be visiting the following places:
</td>
</tr>
<tr>
<td colspan='2' class='left' style='padding:8px 4px !important;font-weight: normal !important;'>
<?php echo $rout_info;?>
</td>
</tr>
<tr>
<td colspan='2' class='left' style='padding:8px 4px !important;'>
This permit is valid from <?php echo $from_date;?> To <?php echo $to_date;?> - <?php echo $trip_days;?> Days only
certified that, in respect of the vehicle mentioned taxes and fees that are payable in this state upto the date of expiry of this permit have been paid. This permit is valid throughout india without counter signature by any other state / state transport authority is shall be produced on demand by any police department in uniform.
</td>
</tr>
<tr>
<td colspan='2' class='left'>
<table class='bold'>
<tr>
<td class='left' style='width:25px;'>F.C.</td>
<td class='left' >: <?php echo $fc_date;?></td>
</tr>
<tr>
<td class='left' style='width:25px;'>I.C.</td>
<td class='left'>: <?php echo $insur_date;?></td>
</tr>
<tr>
<td class='left' style='width:25px;'>Tax</td>
<td class='left'>: <?php echo $tax_date;?></td>
</tr>
<tr>
<td class='left' style='width:25px;'>P.E.</td>
<td class='left'>: <?php echo $permit_date;?></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan='2' class='right'>
For Secretary<br/>
State Transport Authority<br/>
Chennai-5<br/>
</td>
</tr>
</table>
</div>
<script type="text/javascript">
$(window).on("load", function(){
//YV3R6M422E8163431C17 - 11446615
// install firefox addon in order to use this plugin
if (window.jsPrintSetup) {
<?php if (!$this->Appconfig->get('print_header')){?>
// set page header
jsPrintSetup.setOption('headerStrLeft', '');
jsPrintSetup.setOption('headerStrCenter', '');
jsPrintSetup.setOption('headerStrRight', '');
<?php
}
if (!$this->Appconfig->get('print_footer')){
?>
// set empty page footer
jsPrintSetup.setOption('footerStrLeft', '');
jsPrintSetup.setOption('footerStrCenter', '');
jsPrintSetup.setOption('footerStrRight', '');
<?php
}
?>
}
});
</script>