<?php $this->load->view('report_pdf/pdf_header'); ?>
<?php $show_title = !isset($show_title) ? true : (bool) $show_title; if ($show_title) { ?>
<p style="text-align:center;font-size:14px;margin:5px 0;">
    <b>Patent Report</b>
</p>

<p style="text-align:right;font-size:13px;margin:5px 0;">
    Date: <?php echo date("d/m/Y", strtotime($today)); ?>
</p>

<p style="text-align:left ;font-size:13px;margin:5px 0;">
    Total Records : <?php echo report_pdf_total_rows(isset($report) ? $report : array(), isset($pdf_total_rows) ? $pdf_total_rows : null); ?>
</p>
<?php } ?>
<div id="content">
<br><br>
<table style="border-collapse: collapse;width:100%;text-align:left;" border="1" class="table">
    <tr>
        <th>S.No</th>
        <th>Acc No</th>
        <th>Author</th>
        <th>Title</th>
        <th>Country</th>
        <th>Patent No</th>
        <th>Subject</th>
    </tr>
    <?php foreach ($report as $row) { ?>
        <tr>
            <td><?php echo $row->S_No; ?></td>
            <td><?php echo $row->ACCNO; ?></td>
            <td><?php echo $row->AUTHOR; ?></td>
            <td><?php echo $row->TITLE; ?></td>
            <td><?php echo $row->COUNTRY; ?></td>
            <td><?php echo $row->PATENT_NO; ?></td>
            <td><?php echo $row->SUBJECT; ?></td>
        </tr>
    <?php } ?>
</table>
</div>
