<div class="container">
        <!-- Award Info Box -->
        <br>
        <div id="awardInfoButton">
            <script>
            var lang_awards_info_button = "<?php echo lang('awards_info_button'); ?>";
            var lang_award_info_ln1 = "<?php echo lang('awards_wwff_description_ln1'); ?>";
            var lang_award_info_ln2 = "<?php echo lang('awards_wwff_description_ln2'); ?>";
            var lang_award_info_ln3 = "<?php echo lang('awards_wwff_description_ln3'); ?>";
            var lang_award_info_ln4 = "<?php echo lang('awards_wwff_description_ln4'); ?>";
            </script>
            <h2><?php echo $page_title; ?></h2>
            <button type="button" class="btn btn-sm btn-primary me-1" id="displayAwardInfo"><?php echo lang('awards_info_button'); ?></button>
        </div>
        <!-- End of Award Info Box -->
	<?php
		if ($wwff_all) {
   if($this->session->userdata('user_date_format')) {
      // If Logged in and session exists
      $custom_date_format = $this->session->userdata('user_date_format');
   } else {
      // Get Default date format from /config/wavelog.php
      $custom_date_format = $this->config->item('qso_date_format');
   }
	?>
	
	<table style="width: 100%" id="wwfftable" class="wwfftable table table-sm table-striped table-hover">
	<thead>
		
	<tr>
		<th style="text-align: center"><?php echo lang('gen_hamradio_wwff_reference') ?></th>
		<th style="text-align: center"><?php echo lang('general_word_date') ?></th>
		<th style="text-align: center"><?php echo lang('general_word_time') ?></th>
		<th style="text-align: center"><?php echo lang('gen_hamradio_callsign') ?></th>
		<th style="text-align: center"><?php echo lang('gen_hamradio_band') ?></th>
		<th style="text-align: center"><?php echo lang('gen_hamradio_rsts') ?></th>
		<th style="text-align: center"><?php echo lang('gen_hamradio_rstr') ?></th>
	</tr>
	</thead>
	
	<tbody>
	<?php
		if ($wwff_all->num_rows() > 0) {
			foreach ($wwff_all->result() as $row) {
	?>
	
	<tr>
		<td style="text-align: center"><?php echo $row->COL_WWFF_REF; ?></td>
		<td style="text-align: center"><?php $timestamp = strtotime($row->COL_TIME_ON); echo date($custom_date_format, $timestamp); ?></td>
		<td style="text-align: center"><?php $timestamp = strtotime($row->COL_TIME_ON); echo date('H:i', $timestamp); ?></td>
		<td style="text-align: center"><?php echo $row->COL_CALL; ?></td>
		<td style="text-align: center"><?php if($row->COL_SAT_NAME != null) { echo $row->COL_SAT_NAME; } else { echo $row->COL_BAND; } ?></td>
		<td style="text-align: center"><?php echo $row->COL_RST_SENT; ?></td>
		<td style="text-align: center"><?php echo $row->COL_RST_RCVD; ?></td>
	</tr>
	<?php
		  }
		}
	?>
	
	</tbody>
	</table>
	<?php } else {
        echo '<div class="alert alert-danger" role="alert">Nothing found!</div>';
    }?>
</div>
