<?php
$this->load->view('partials/report_start', $this->data);
$report = isset($report) ? $report : array();
?>
<form method="post">
<?php if (!empty($searched)) { ?>
  <div class="report-results-toolbar">
  <p class="report-summary mb-0"><strong><?php echo count($report); ?></strong> report book(s)</p>
  <?php $this->load->view('partials/report_exports'); ?>
</div>
  <?php
  $this->load->view('partials/report_datatable', array(
      'columns' => array(
          'S.No.' => 'S_No',
          'Accession No.' => 'Accession_No',
          'REPORTNO' => 'REPORTNO',
          'TITLE' => 'TITLE',
          'SUBTITLE' => 'SUBTITLE',
          'NOOFPAGES' => 'NOOFPAGES',
          'PERORGREPN' => 'PERORGREPN',
          'REPORTTYPE' => 'REPORTTYPE',
          'PERORGID' => 'PERORGID',
          'SPONBODYID' => 'SPONBODYID',
          'LANGID' => 'LANGID',
          'PUBLISHER' => 'PUBLISHER',
          'REPDATE' => 'REPDATE',
      ),
      'rows' => $report,
      'table_id' => 'reportsBookTable',
  ));
  ?>
<?php } ?>
</form>
<?php $this->load->view('partials/report_end'); ?>
