478 lines
25 KiB
PHP
478 lines
25 KiB
PHP
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_admin/css/invoice.css">
|
|
|
|
<div class="wraper responsive-width">
|
|
<main class="printdiv1" id="main">
|
|
<div class="main-wrap">
|
|
<div class="dashboard-cover">
|
|
<button type="button" class="btn btn-success btn-sm btn-dark back_btn">Back</button>
|
|
<div class="common-heading">
|
|
<h2>Transactions Details</h2>
|
|
</div>
|
|
<?php
|
|
// echo '<pre>';
|
|
$invoice_no = '';
|
|
$billPrintCountArray = [];
|
|
$invoiceIds = [];
|
|
foreach ($invoice_data['invoices'] as $i_key => $i_value) {
|
|
$invoice_no = $i_value['invoice_no'];
|
|
|
|
array_push($invoiceIds, strval($i_value['id']));
|
|
|
|
array_push(
|
|
$billPrintCountArray,
|
|
$i_value['bill_print_count']
|
|
);
|
|
}
|
|
// print_r($invoiceIds);
|
|
?>
|
|
<div class="invoice_wrap">
|
|
<div class="invoice_head" id="printableArea">
|
|
<div class="invoice_head_left">
|
|
Bill Details
|
|
</div>
|
|
<div class="invoice_head_right" style="cursor: pointer;">
|
|
<p id="printSection"><img src="<?php echo base_url(); ?>assets_admin/images/print.png" /></p>
|
|
</div>
|
|
</div>
|
|
<div id="printpage">
|
|
<div class="invoice_main">
|
|
<?php
|
|
if (empty($school_info['markscard_header'])) {
|
|
$logo_img = base_url() . 'common_assets/black_logo.png';
|
|
} else if (file_exists('common_assets/' . $school_info['markscard_header'])) {
|
|
$logo_img = base_url() . 'common_assets/' . $school_info['markscard_header'];
|
|
} else {
|
|
$logo_img = base_url() . 'common_assets/black_logo.png';
|
|
}
|
|
//
|
|
//
|
|
?><?php
|
|
// print_r($invoice_data);
|
|
?>
|
|
<div class="invoice_head_row">
|
|
<table width="100%" class="head_tbl">
|
|
<tr>
|
|
<td style="width:40%">
|
|
<div class="top_logo">
|
|
<img class="logo_img" src="<?= $logo_img; ?>" alt="Logo Here" width="60px">
|
|
<hr align="left" style="width:50%;">
|
|
<h4 style="margin:0;padding:0;"><?= $school_info['school_name']; ?></h4>
|
|
<p class="address" style="width:250px;word-wrap: break-word;margin:0;padding:0;"><?= $school_info['address']; ?></p>
|
|
</div>
|
|
</td>
|
|
<td style="width:20%">
|
|
<div class="bill-type">
|
|
<p><label for="">Bill Type</label> : <span>Original</span></p>
|
|
</div>
|
|
</td>
|
|
<td style="width:30%">
|
|
<ul>
|
|
<li><label for="">Phone :</label><span><?= $school_info['phone']; ?></span></li>
|
|
<li><label for="">Email :</label><span><?= $school_info['email']; ?></span></li>
|
|
<li><label for="">Website :</label><span><?= $school_info['website_link']; ?></span></li>
|
|
<li><label for="">School PAN :</label><span><?= (!empty($school_info['pan'])) ? $school_info['pan'] : "-"; ?></span></li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<hr />
|
|
</div>
|
|
<div class="invoice_body">
|
|
<div class="row">
|
|
<div class="col"><b>Student Name : </b><span style="font-size: 18px;"><?= $invoice_data['studentname'] ?></span></div>
|
|
<div class="col"><b>Parent PAN: </b><span style="font-size: 18px;"><?= $invoice_data['parent_pan'] ?></span></div>
|
|
<div class="col" style="font-size: 18px;"><b> Invoice Number : </b><?= $invoice_no ?></div>
|
|
</div>
|
|
<div class="row mt-1">
|
|
|
|
<div class="col"><b>Classroom : </b>
|
|
<span style="font-size: 18px;">
|
|
<?php
|
|
$section_id = (!empty($invoice_data['section_id']) && isset($invoice_data['section_id'])) ? $invoice_data['section_id'] : 0;
|
|
if ($section_id != 0)
|
|
$section_name = $this->db->get_where('section', array('id' => $section_id))->row()->section_name;
|
|
else
|
|
$section_name = '';
|
|
|
|
$course_name = $this->db->get_where('course', array('id' => $invoice_data['course_id']))->row()->course_name;
|
|
echo (!empty($section_name)) ? $course_name . ' - ' . $section_name : $course_name;
|
|
?>
|
|
</span>
|
|
</div>
|
|
<div class="col"><b>Student ID : </b><span style="font-size: 18px;"><?= $invoice_data['studentId'] ?></span></div>
|
|
<div class="col"><b>Batch : </b><span style="font-size: 18px;"><?= str_replace('Batch ', '', $invoice_data['batch_name']) ?></span></div>
|
|
</div>
|
|
<div class="row mt-1">
|
|
|
|
<div class="px-3" style="width: 33.33%">
|
|
<b> Bill Count : </b><span style="font-size: 18px;"><?= $billPrintCountArray[0] ?></span>
|
|
</div>
|
|
|
|
<div class="col"><b>Transaction Date & Time : </b><span style="font-size: 18px;"><?= $invoice_data['tdt'] ?></span></div>
|
|
</div>
|
|
</div>
|
|
<div class="invoice_footer_row" style="padding-top:10px;">
|
|
<table class="footer_tbl_main" width="100%" style="border:1px solid #000;border-collapse: collapse;text-align:center;font-size:16px;">
|
|
<tr>
|
|
<th style="width:5%; text-align:center;border:1px solid #000;color: #212529; font-size:16px; padding: 8px;">S.NO</th>
|
|
<th style="width:25%; text-align:center;border:1px solid #000;color: #212529; font-size:16px; padding: 8px;">Description Fee</th>
|
|
|
|
<th style="width:10%; text-align:center;border:1px solid #000;color: #212529; font-size:16px; padding: 8px;">Billed By</th>
|
|
<th style="width:15%; text-align:center;border:1px solid #000;color: #212529;font-size:16px; padding: 8px;">Mode of Payment</th>
|
|
<th style="width:10%; text-align:center;border:1px solid #000;color: #212529; font-size:16px;padding: 8px;">Paid Date</th>
|
|
<th style="width:8%; text-align:center;border:1px solid #000;color: #212529; font-size:16px;padding: 8px;">Discount</th>
|
|
<th style="width:10%; text-align:center;border:1px solid #000;color: #212529; font-size:16px;padding: 8px;">Fine</th>
|
|
<th style="width:10%; text-align:center;border:1px solid #000;color: #212529; font-size:16px;padding: 8px;">Amount</th>
|
|
</tr>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
|
|
<?php
|
|
$totalAmt = 0;
|
|
if (!empty($invoice_data['invoices'])) {
|
|
|
|
|
|
|
|
$sno = 1;
|
|
|
|
foreach ($invoice_data['invoices'] as $i_key => $ivalue) {
|
|
// echo '<pre>';
|
|
// print_r($ivalue['course_fee']['fee_name']);
|
|
$totalAmt = $totalAmt + $ivalue['payment_amt'];
|
|
?>
|
|
<tr>
|
|
<td style="width:5%; text-align:center;border:1px solid #000;color: #212529;padding: 5px; font-size:18px;"><?= $sno; ?></td>
|
|
<td style="width:25%; text-align:center;border:1px solid #000;color: #212529;padding: 5px; font-size:18px;"><?= $ivalue['course_fee']['fee_name'] ?><small>(<?= $ivalue['payment_for'] ?>)</small></td>
|
|
|
|
|
|
|
|
<td style="width:10%; text-align:center;border:1px solid #000;color: #212529;padding: 5px; font-size:18px;"><?= $ivalue['payment_recived_id'] ?></td>
|
|
<td style="width:10%; text-align:center;border:1px solid #000;color: #212529;padding: 5px; font-size:18px;"><?= $ivalue['payment_method'] ?></td>
|
|
<td style="width:10%; text-align:center;border:1px solid #000;color: #212529;padding: 5px; font-size:18px;"><?= date('d-m-Y', strtotime($ivalue['payment_date'])); ?></td>
|
|
<td style="width:8%; text-align:center;border:1px solid #000;color: #212529;padding: 5px; font-size:18px;"><?= $ivalue['deduction_amount']; ?></td>
|
|
<td style="width:10%; text-align:center;border:1px solid #000;color: #212529;padding: 5px; font-size:18px;"><?= $ivalue['fine_amount']; ?></td>
|
|
<td style="width:10%; text-align:center;border:1px solid #000;color: #212529;padding: 5px; font-size:18px;"><?= $ivalue['payment_amt'] ?></td>
|
|
|
|
|
|
</tr>
|
|
<?php
|
|
$sno++;
|
|
}
|
|
} else {
|
|
?>
|
|
<tr>
|
|
<td colspan=5> No Data Found</td>
|
|
</tr>
|
|
<?php } ?>
|
|
</tbody>
|
|
|
|
<?php
|
|
$totalAmt = 0;
|
|
$fine_amount = 0;
|
|
$disc_amount = 0;
|
|
if (!empty($invoice_data['invoices'])) {
|
|
$sno = 1;
|
|
foreach ($invoice_data['invoices'] as $ivalue) {
|
|
$totalAmt = $totalAmt + $ivalue['payment_amt'];
|
|
$fine_amount = $fine_amount + $ivalue['fine_amount'];
|
|
$disc_amount = $disc_amount + $ivalue['deduction_amount'];
|
|
}
|
|
?>
|
|
<tr style="border:1px solid;">
|
|
<th colspan="5" style="border:1px solid #000;padding:5px;text-align:center; font-size:16px;"></th>
|
|
<th style="border:1px solid #000;padding:5px;text-align:center;font-size:16px;"><?php echo $disc_amount ?></th>
|
|
<th style="border:1px solid #000;padding:5px;text-align:center;font-size:16px;"><?php echo $fine_amount ?></th>
|
|
<th style="border:1px solid #000;padding:5px;text-align:center;font-size:16px;"><?php echo $totalAmt ?></th>
|
|
</tr>
|
|
<?php } ?>
|
|
|
|
|
|
</table>
|
|
|
|
<table class="footer_tbl_sub" style="border-collapse: collapse;" width=100%>
|
|
<tr>
|
|
<td colspan="7" width=65% style="border:1px solid #000;text-align:left;border-right:0;border-top: 0;padding-left:35px;">
|
|
<label for="" style="font-size: 12px;width: 100px;font-weight: 600;font-size:12px;">Amount In Word</label> :
|
|
<span style="font-size: 12px;width: 100px;font-weight: 600;font-size:16px;"><?php echo '"' . amountInWords((float)$totalAmt + $fine_amount - $disc_amount) . '"'; ?></span>
|
|
<p style="color: #212529;padding-top:5px; font-size: 10px; text-align: start;">“This is computer generated receipt, no signature required.”</p>
|
|
</td>
|
|
<td width=45% style="border:1px solid #000;padding:16px 5px;border-left:0;border-top: 0;">
|
|
<table class="bottom-tbl" width=100% style="border: 2px solid #000;">
|
|
|
|
<tr>
|
|
<th style="padding:8px;text-align:left;width:65%; font-size: 16px;">Total Paid Amount </th>
|
|
<th style="padding:8px;text-align:left;width:5%;font-size: 16px;">:</th>
|
|
<td style="width:30%;padding:8px;text-align:right;font-size: 16px;"><?= $school_info['currency_symbol']; ?>. <?= (number_format($totalAmt + $fine_amount - $disc_amount)) ?></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</table>
|
|
|
|
<div class="row">
|
|
<div class="row"></div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr>
|
|
<div class="invoice_main">
|
|
<?php
|
|
if (empty($school_info['markscard_header'])) {
|
|
$logo_img = base_url() . 'common_assets/black_logo.png';
|
|
} else if (file_exists('common_assets/' . $school_info['markscard_header'])) {
|
|
$logo_img = base_url() . 'common_assets/' . $school_info['markscard_header'];
|
|
} else {
|
|
$logo_img = base_url() . 'common_assets/black_logo.png';
|
|
}
|
|
//
|
|
//
|
|
?><?php
|
|
// print_r($invoice_data);
|
|
?>
|
|
<div class="invoice_head_row">
|
|
<table width="100%" class="head_tbl">
|
|
<tr>
|
|
<td style="width:40%">
|
|
<div class="top_logo">
|
|
<img class="logo_img" src="<?= $logo_img; ?>" alt="Logo Here" width="60px">
|
|
<hr align="left" style="width:50%;">
|
|
<h4 style="margin:0;padding:0;"><?= $school_info['school_name']; ?></h4>
|
|
<p class="address" style="width:250px;word-wrap: break-word;margin:0;padding:0;"><?= $school_info['address']; ?></p>
|
|
</div>
|
|
</td>
|
|
<td style="width:20%">
|
|
<div class="bill-type">
|
|
<p><label for="">Bill Type</label> : <span>Copy</span></p>
|
|
</div>
|
|
</td>
|
|
<td style="width:30%">
|
|
<ul>
|
|
<li><label for="">Phone :</label><span><?= $school_info['phone']; ?></span></li>
|
|
<li><label for="">Email :</label><span><?= $school_info['email']; ?></span></li>
|
|
<li><label for="">Website :</label><span><?= $school_info['website_link']; ?></span></li>
|
|
<li><label for="">School PAN :</label><span><?= (!empty($school_info['pan'])) ? $school_info['pan'] : "-"; ?></span></li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<hr />
|
|
</div>
|
|
<div class="invoice_body">
|
|
<div class="row">
|
|
<div class="col"><b>Student Name : </b><span style="font-size: 18px;"><?= $invoice_data['studentname'] ?></span></div>
|
|
<div class="col"><b>Parent PAN: </b><span style="font-size: 18px;"><?= $invoice_data['parent_pan'] ?></span></div>
|
|
<div class="col" style="font-size: 18px;"><b> Invoice Number : </b><?= $invoice_no ?></div>
|
|
</div>
|
|
<div class="row mt-1">
|
|
|
|
<div class="col"><b>Classroom : </b>
|
|
<span style="font-size: 18px;">
|
|
<?php
|
|
$section_id = (!empty($invoice_data['section_id']) && isset($invoice_data['section_id'])) ? $invoice_data['section_id'] : 0;
|
|
if ($section_id != 0)
|
|
$section_name = $this->db->get_where('section', array('id' => $section_id))->row()->section_name;
|
|
else
|
|
$section_name = '';
|
|
|
|
$course_name = $this->db->get_where('course', array('id' => $invoice_data['course_id']))->row()->course_name;
|
|
echo (!empty($section_name)) ? $course_name . ' - ' . $section_name : $course_name;
|
|
?>
|
|
</span>
|
|
</div>
|
|
<div class="col"><b>Student ID : </b><span style="font-size: 18px;"><?= $invoice_data['studentId'] ?></span></div>
|
|
<div class="col"><b>Batch : </b><span style="font-size: 18px;"><?= str_replace('Batch ', '', $invoice_data['batch_name']) ?></span></div>
|
|
</div>
|
|
<div class="row mt-1">
|
|
|
|
<div class="px-3" style="width: 33.33%">
|
|
<b> Bill Count : </b><span style="font-size: 18px;"><?= $billPrintCountArray[0] ?></span>
|
|
</div>
|
|
|
|
<div class="col"><b>Transaction Date & Time : </b><span style="font-size: 18px;"><?= $invoice_data['tdt'] ?></span></div>
|
|
</div>
|
|
</div>
|
|
<div class="invoice_footer_row" style="padding-top:10px;">
|
|
<table class="footer_tbl_main" width="100%" style="border:1px solid #000;border-collapse: collapse;text-align:center;font-size:16px;">
|
|
<tr>
|
|
<th style="width:5%; text-align:center;border:1px solid #000;color: #212529; font-size:16px; padding: 8px;">S.NO</th>
|
|
<th style="width:25%; text-align:center;border:1px solid #000;color: #212529; font-size:16px; padding: 8px;">Description Fee</th>
|
|
|
|
<th style="width:10%; text-align:center;border:1px solid #000;color: #212529; font-size:16px; padding: 8px;">Billed By</th>
|
|
<th style="width:15%; text-align:center;border:1px solid #000;color: #212529;font-size:16px; padding: 8px;">Mode of Payment</th>
|
|
<th style="width:10%; text-align:center;border:1px solid #000;color: #212529; font-size:16px;padding: 8px;">Paid Date</th>
|
|
<th style="width:8%; text-align:center;border:1px solid #000;color: #212529; font-size:16px;padding: 8px;">Discount</th>
|
|
<th style="width:10%; text-align:center;border:1px solid #000;color: #212529; font-size:16px;padding: 8px;">Fine</th>
|
|
<th style="width:10%; text-align:center;border:1px solid #000;color: #212529; font-size:16px;padding: 8px;">Amount</th>
|
|
</tr>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
|
|
<?php
|
|
$totalAmt = 0;
|
|
if (!empty($invoice_data['invoices'])) {
|
|
$sno = 1;
|
|
|
|
foreach ($invoice_data['invoices'] as $i_key => $ivalue) {
|
|
|
|
$totalAmt = $totalAmt + $ivalue['payment_amt'];
|
|
?>
|
|
<tr>
|
|
<td style="width:5%; text-align:center;border:1px solid #000;color: #212529;padding: 5px; font-size:18px;"><?= $sno; ?></td>
|
|
<td style="width:25%; text-align:center;border:1px solid #000;color: #212529;padding: 5px; font-size:18px;"><?= $ivalue['course_fee']['fee_name'] ?><small>(<?= $ivalue['payment_for'] ?>)</small></td>
|
|
|
|
|
|
|
|
<td style="width:10%; text-align:center;border:1px solid #000;color: #212529;padding: 5px; font-size:18px;"><?= $ivalue['payment_recived_id'] ?></td>
|
|
<td style="width:10%; text-align:center;border:1px solid #000;color: #212529;padding: 5px; font-size:18px;"><?= $ivalue['payment_method'] ?></td>
|
|
<td style="width:10%; text-align:center;border:1px solid #000;color: #212529;padding: 5px; font-size:18px;"><?= date('d-m-Y', strtotime($ivalue['payment_date'])); ?></td>
|
|
<td style="width:8%; text-align:center;border:1px solid #000;color: #212529;padding: 5px; font-size:18px;"><?= $ivalue['deduction_amount']; ?></td>
|
|
<td style="width:10%; text-align:center;border:1px solid #000;color: #212529;padding: 5px; font-size:18px;"><?= $ivalue['fine_amount']; ?></td>
|
|
<td style="width:10%; text-align:center;border:1px solid #000;color: #212529;padding: 5px; font-size:18px;"><?= $ivalue['payment_amt'] ?></td>
|
|
|
|
|
|
</tr>
|
|
<?php
|
|
$sno++;
|
|
}
|
|
} else {
|
|
?>
|
|
<tr>
|
|
<td colspan=5> No Data Found</td>
|
|
</tr>
|
|
<?php } ?>
|
|
</tbody>
|
|
|
|
<?php
|
|
$totalAmt = 0;
|
|
$fine_amount = 0;
|
|
$disc_amount = 0;
|
|
if (!empty($invoice_data['invoices'])) {
|
|
$sno = 1;
|
|
foreach ($invoice_data['invoices'] as $ivalue) {
|
|
$totalAmt = $totalAmt + $ivalue['payment_amt'];
|
|
$fine_amount = $fine_amount + $ivalue['fine_amount'];
|
|
$disc_amount = $disc_amount + $ivalue['deduction_amount'];
|
|
}
|
|
?>
|
|
<tr style="border:1px solid;">
|
|
<th colspan="5" style="border:1px solid #000;padding:5px;text-align:center; font-size:16px;"></th>
|
|
<th style="border:1px solid #000;padding:5px;text-align:center;font-size:16px;"><?php echo $disc_amount ?></th>
|
|
<th style="border:1px solid #000;padding:5px;text-align:center;font-size:16px;"><?php echo $fine_amount ?></th>
|
|
<th style="border:1px solid #000;padding:5px;text-align:center;font-size:16px;"><?php echo $totalAmt ?></th>
|
|
</tr>
|
|
<?php } ?>
|
|
|
|
|
|
</table>
|
|
|
|
<table class="footer_tbl_sub" style="border-collapse: collapse;" width=100%>
|
|
<tr>
|
|
<td colspan="7" width=65% style="border:1px solid #000;text-align:left;border-right:0;border-top: 0;padding-left:35px;">
|
|
<label for="" style="font-size: 12px;width: 100px;font-weight: 600;font-size:12px;">Amount In Word</label> :
|
|
<span style="font-size: 12px;width: 100px;font-weight: 600;font-size:16px;"><?php echo '"' . amountInWords((float)$totalAmt + $fine_amount - $disc_amount) . '"'; ?></span>
|
|
<p style="color: #212529;padding-top:5px; font-size: 10px; text-align: start;">“This is computer generated receipt, no signature required.”</p>
|
|
</td>
|
|
<td width=45% style="border:1px solid #000;padding:16px 5px;border-left:0;border-top: 0;">
|
|
<table class="bottom-tbl" width=100% style="border: 2px solid #000;">
|
|
|
|
<tr>
|
|
<th style="padding:8px;text-align:left;width:65%; font-size: 16px;">Total Paid Amount </th>
|
|
<th style="padding:8px;text-align:left;width:5%;font-size: 16px;">:</th>
|
|
<td style="width:30%;padding:8px;text-align:right;font-size: 16px;"><?= $school_info['currency_symbol']; ?>. <?= (number_format($totalAmt + $fine_amount - $disc_amount)) ?></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</table>
|
|
|
|
<div class="row">
|
|
<div class="row"></div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
$("#printSection").on("click", function() {
|
|
var element = $(".bill_count").text();
|
|
$(".bill_count").text(parseInt(element) + 1);
|
|
$.ajax({
|
|
url: "<?= base_url() . 'admin/printcount_increment'; ?>",
|
|
method: "POST",
|
|
data: {
|
|
inoviceids: <?php echo $invoiceIds[0]; ?>
|
|
},
|
|
success: function(response) {
|
|
console.log('done');
|
|
}
|
|
});
|
|
|
|
var frame1 = $('<iframe />').attr("id", "printDiv");
|
|
frame1[0].name = "frame1";
|
|
frame1.css({
|
|
"position": "absolute",
|
|
"top": "-1000000px"
|
|
});
|
|
var divContents = $("#printpage").html();
|
|
$("body").append(frame1);
|
|
var frameDoc = frame1[0].contentWindow ? frame1[0].contentWindow : frame1[0].contentDocument.document ? frame1[0].contentDocument.document : frame1[0].contentDocument;
|
|
frameDoc.document.open();
|
|
//Create a new HTML document.
|
|
frameDoc.document.write('<html>');
|
|
frameDoc.document.write('<head>');
|
|
frameDoc.document.write('<title></title>');
|
|
|
|
// frameDoc.document.write('<link rel="stylesheet" href="<?php echo base_url(); ?>assets_admin/css/bootstrap.min.css">');
|
|
frameDoc.document.write('<link rel="stylesheet" href="<?php echo base_url(); ?>assets_admin/css/invoice.css">');
|
|
frameDoc.document.write('<link rel="stylesheet" href="<?php echo base_url(); ?>assets_admin/css/bootstrap.min.css">');
|
|
frameDoc.document.write('<link rel="stylesheet" href="<?php echo base_url(); ?>assets_admin/css/all.css">');
|
|
// frameDoc.document.write('<style rel="stylesheet" type="text/css" media="print">@page { size: landscape; }</style>');
|
|
frameDoc.document.write('</head>');
|
|
frameDoc.document.write('<body>');
|
|
frameDoc.document.write(divContents);
|
|
frameDoc.document.write('</body>');
|
|
frameDoc.document.write('</html>');
|
|
frameDoc.document.close();
|
|
setTimeout(function() {
|
|
document.getElementById('printDiv').contentWindow.focus();
|
|
document.getElementById('printDiv').contentWindow.print();
|
|
// frame1.remove();
|
|
if (winload) {
|
|
window.location.reload(true);
|
|
}
|
|
}, 500);
|
|
|
|
|
|
return true;
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
|
$('.back_btn').click(function() {
|
|
parent.history.back();
|
|
return false;
|
|
});
|
|
});
|
|
</script>
|