<?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>Institutional Repository Data 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>Barcode</th>
        <th>Title</th>
        <th>Author</th>
        <th>Publication Year</th>
        <th>Publication Name</th>
        <th>Period</th>
        <th>Pages</th>
        <th>PDF Name</th>
        <th>File Path</th>
    </tr>
    <?php $sno = isset($pdf_sno_start) ? (int) $pdf_sno_start : 1; ?>
    <?php foreach ($report as $row) { ?>
    <tr>
        <td><?php echo $sno++; ?></td>
        <td><?php echo htmlspecialchars((string) $row->Barcode); ?></td>
        <td><?php echo htmlspecialchars((string) $row->Title); ?></td>
        <td><?php echo htmlspecialchars((string) $row->Author); ?></td>
        <td><?php echo htmlspecialchars((string) $row->Publication_Year); ?></td>
        <td><?php echo htmlspecialchars((string) $row->Publication_Name); ?></td>
        <td><?php echo htmlspecialchars((string) $row->Period); ?></td>
        <td><?php echo htmlspecialchars((string) $row->Pages); ?></td>
        <td><?php echo htmlspecialchars((string) $row->PDF_Name); ?></td>
        <td><?php echo htmlspecialchars((string) $row->File_Path); ?></td>
    </tr>
    <?php } ?>
</table>
</div>
