<?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>Top <?php echo isset($limit) ? (int) $limit : count($report); ?> Books
    <?php if (!empty($fdate) && !empty($tdate)) { ?>
      (<?php echo htmlspecialchars($fdate); ?> to <?php echo htmlspecialchars($tdate); ?>)
    <?php } else { ?>
      on <?php echo date("d/m/Y", strtotime($today)); ?>
    <?php } ?>
    </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>Rank</th>                  
                  <th>Barcode</th>
                  <th>Title</th>
                  <th>Author</th>
                  <th>Issue Count</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 $row->RANK; ?></td>
                  <td><?php echo $row->Barcode; ?></td>
                  <td><?php echo $row->Title; ?></td>
                  <td><?php echo $row->Author; ?></td>
                  <td><?php echo $row->Issue_Count; ?></td>
				                 
				                 
                </tr>
					
			<?php }?>
</table>
