<?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>Reports Book Report on <?php echo date("d/m/Y", strtotime($today)); ?></b>
</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>Accession No.</th>
        <th>REPORTNO</th>
        <th>TITLE</th>
        <th>SUBTITLE</th>
        <th>NOOFPAGES</th>
        <th>PERORGREPN</th>
        <th>REPORTTYPE</th>
        <th>PERORGID</th>
        <th>SPONBODYID</th>
        <th>LANGID</th>
        <th>PUBLISHER</th>
        <th>REPDATE</th>
    </tr>
    <?php foreach ($report as $row) { ?>
    <tr>
        <td><?php echo htmlspecialchars((string) $row->S_No); ?></td>
        <td><?php echo htmlspecialchars((string) $row->Accession_No); ?></td>
        <td><?php echo htmlspecialchars((string) $row->REPORTNO); ?></td>
        <td><?php echo htmlspecialchars((string) $row->TITLE); ?></td>
        <td><?php echo htmlspecialchars((string) $row->SUBTITLE); ?></td>
        <td><?php echo htmlspecialchars((string) $row->NOOFPAGES); ?></td>
        <td><?php echo htmlspecialchars((string) $row->PERORGREPN); ?></td>
        <td><?php echo htmlspecialchars((string) $row->REPORTTYPE); ?></td>
        <td><?php echo htmlspecialchars((string) $row->PERORGID); ?></td>
        <td><?php echo htmlspecialchars((string) $row->SPONBODYID); ?></td>
        <td><?php echo htmlspecialchars((string) $row->LANGID); ?></td>
        <td><?php echo htmlspecialchars((string) $row->PUBLISHER); ?></td>
        <td><?php echo htmlspecialchars((string) $row->REPDATE); ?></td>
    </tr>
    <?php } ?>
</table>
</div>
