| 
									
										
										
										
											2020-04-28 16:53:11 +08:00
										 |  |  | <div class="container"> | 
					
						
							| 
									
										
										
										
											2023-11-08 05:11:12 +08:00
										 |  |  |     <h1><?php echo lang('statistics_timeline'); ?></h1>
 | 
					
						
							| 
									
										
										
										
											2020-04-28 16:53:11 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |     <form class="form" action="<?php echo site_url('timeline'); ?>" method="post" enctype="multipart/form-data"> | 
					
						
							| 
									
										
										
										
											2020-10-23 18:25:16 +08:00
										 |  |  |         <!-- Select Basic --> | 
					
						
							|  |  |  |                 <div class="form-group row"> | 
					
						
							| 
									
										
										
										
											2023-11-08 05:11:12 +08:00
										 |  |  |                     <label class="col-md-1 control-label" for="band"><?php echo lang('gen_hamradio_band') ?></label>
 | 
					
						
							| 
									
										
										
										
											2020-10-23 18:25:16 +08:00
										 |  |  |                     <div class="col-md-3"> | 
					
						
							|  |  |  |                         <select id="band" name="band" class="form-control custom-select"> | 
					
						
							| 
									
										
										
										
											2023-11-08 05:11:12 +08:00
										 |  |  |                             <option value="All" <?php if ($this->input->post('band') == "All" || $this->input->method() !== 'post') echo ' selected'; ?> ><?php echo lang('general_word_all') ?></option>
 | 
					
						
							| 
									
										
										
										
											2020-10-23 18:25:16 +08:00
										 |  |  |                             <?php foreach($worked_bands as $band) { | 
					
						
							|  |  |  |                                 echo '<option value="' . $band . '"'; | 
					
						
							|  |  |  |                                 if ($this->input->post('band') == $band) echo ' selected'; | 
					
						
							|  |  |  |                                 echo '>' . $band . '</option>'."\n"; | 
					
						
							|  |  |  |                             } ?>
 | 
					
						
							|  |  |  |                         </select> | 
					
						
							|  |  |  |                     </div> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-08 05:11:12 +08:00
										 |  |  |                     <label class="col-md-1 control-label" for="mode"><?php echo lang('gen_hamradio_mode') ?></label>
 | 
					
						
							| 
									
										
										
										
											2020-10-23 18:25:16 +08:00
										 |  |  |                     <div class="col-md-3"> | 
					
						
							|  |  |  |                         <select id="mode" name="mode" class="form-control custom-select"> | 
					
						
							| 
									
										
										
										
											2023-11-08 05:11:12 +08:00
										 |  |  |                             <option value="All" <?php if ($this->input->post('mode') == "All" || $this->input->method() !== 'post') echo ' selected'; ?> ><?php echo lang('general_word_all') ?></option>
 | 
					
						
							| 
									
										
										
										
											2020-10-23 18:25:16 +08:00
										 |  |  |                             <?php | 
					
						
							|  |  |  |                             foreach($modes->result() as $mode){ | 
					
						
							|  |  |  |                                 if ($mode->submode == null) { | 
					
						
							|  |  |  |                                     echo '<option value="' . $mode->mode . '"'; | 
					
						
							|  |  |  |                                     if ($this->input->post('mode') == $mode->mode) echo ' selected'; | 
					
						
							|  |  |  |                                     echo '>' . $mode->mode . '</option>'."\n"; | 
					
						
							|  |  |  |                                 } else { | 
					
						
							|  |  |  |                                     echo '<option value="' . $mode->submode . '"'; | 
					
						
							|  |  |  |                                     if ($this->input->post('mode') == $mode->submode) echo ' selected'; | 
					
						
							|  |  |  |                                     echo '>' . $mode->submode . '</option>'."\n"; | 
					
						
							|  |  |  |                                 } | 
					
						
							|  |  |  |                             } | 
					
						
							|  |  |  |                             ?>
 | 
					
						
							|  |  |  |                         </select> | 
					
						
							|  |  |  |                     </div> | 
					
						
							|  |  |  |                 </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         <div class="form-group row"> | 
					
						
							| 
									
										
										
										
											2023-11-08 05:11:12 +08:00
										 |  |  |             <label class="col-md-1 control-label" for="award"><?php echo lang('gen_hamradio_award') ?></label>
 | 
					
						
							| 
									
										
										
										
											2023-02-19 19:34:35 +08:00
										 |  |  |                 <div class="col-md-3"> | 
					
						
							|  |  |  |                     <select id="award" name="award" class="form-control custom-select"> | 
					
						
							| 
									
										
										
										
											2023-02-20 15:16:29 +08:00
										 |  |  |                         <option value="dxcc" <?php if ($this->input->post('award') == "dxcc") echo ' selected'; ?> >DX Century Club (DXCC)</option>
 | 
					
						
							|  |  |  |                         <option value="was" <?php if ($this->input->post('award') == "was") echo ' selected'; ?> >Worked All States (WAS)</option>
 | 
					
						
							|  |  |  |                         <option value="iota" <?php if ($this->input->post('award') == "iota") echo ' selected'; ?> >Islands On The Air (IOTA)</option>
 | 
					
						
							|  |  |  |                         <option value="waz" <?php if ($this->input->post('award') == "waz") echo ' selected'; ?> >Worked All Zones (WAZ)</option>
 | 
					
						
							|  |  |  |                         <option value="vucc" <?php if ($this->input->post('award') == "vucc") echo ' selected'; ?> >VHF / UHF Century Club (VUCC)</option>
 | 
					
						
							| 
									
										
										
										
											2023-02-19 19:34:35 +08:00
										 |  |  |                     </select> | 
					
						
							| 
									
										
										
										
											2023-01-31 02:54:27 +08:00
										 |  |  |                 </div> | 
					
						
							| 
									
										
										
										
											2023-11-08 05:11:12 +08:00
										 |  |  |                 <div class="col-md-1 control-label"><?php echo lang('general_word_confirmation') ?></div>
 | 
					
						
							| 
									
										
										
										
											2023-01-31 02:54:27 +08:00
										 |  |  |                 <div class="col-md-3"> | 
					
						
							| 
									
										
										
										
											2022-10-28 17:24:01 +08:00
										 |  |  |                     <div class="form-check-inline"> | 
					
						
							|  |  |  |                         <input class="form-check-input" type="checkbox" name="qsl" value="1" id="qsl" <?php if ($this->input->post('qsl'))  echo ' checked="checked"'; ?> >
 | 
					
						
							| 
									
										
										
										
											2023-11-08 05:16:26 +08:00
										 |  |  |                         <label class="form-check-label" for="qsl"><?php echo lang('gen_hamradio_qsl') ?></label>
 | 
					
						
							| 
									
										
										
										
											2022-10-28 17:24:01 +08:00
										 |  |  |                     </div> | 
					
						
							|  |  |  |                     <div class="form-check-inline"> | 
					
						
							|  |  |  |                         <input class="form-check-input" type="checkbox" name="lotw" value="1" id="lotw" <?php if ($this->input->post('lotw')) echo ' checked="checked"'; ?> >
 | 
					
						
							| 
									
										
										
										
											2023-11-08 05:16:26 +08:00
										 |  |  |                         <label class="form-check-label" for="lotw"><?php echo lang('general_word_lotw_short') ?></label>
 | 
					
						
							| 
									
										
										
										
											2022-10-28 17:24:01 +08:00
										 |  |  |                     </div> | 
					
						
							|  |  |  |                     <div class="form-check-inline"> | 
					
						
							|  |  |  |                         <input class="form-check-input" type="checkbox" name="eqsl" value="1" id="eqsl" <?php if ($this->input->post('eqsl')) echo ' checked="checked"'; ?> >
 | 
					
						
							| 
									
										
										
										
											2023-11-08 05:16:26 +08:00
										 |  |  |                         <label class="form-check-label" for="eqsl"><?php echo lang('eqsl_short') ?></label>
 | 
					
						
							| 
									
										
										
										
											2022-10-28 17:24:01 +08:00
										 |  |  |                     </div> | 
					
						
							|  |  |  |                 </div> | 
					
						
							|  |  |  |             </div> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-04-28 16:53:11 +08:00
										 |  |  |             <div class="form-group row"> | 
					
						
							|  |  |  |                 <label class="col-md-1 control-label" for="button1id"></label> | 
					
						
							|  |  |  |                 <div class="col-md-10"> | 
					
						
							| 
									
										
										
										
											2023-11-08 05:11:12 +08:00
										 |  |  |                     <button id="button1id" type="submit" name="button1id" class="btn btn-primary"><?php echo lang('filter_options_show') ?></button>
 | 
					
						
							| 
									
										
										
										
											2020-04-28 16:53:11 +08:00
										 |  |  |                 </div> | 
					
						
							|  |  |  |             </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     </form> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-09-16 05:04:47 +08:00
										 |  |  |     <?php  | 
					
						
							|  |  |  |     // Get Date format
 | 
					
						
							|  |  |  |     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/cloudlog.php
 | 
					
						
							|  |  |  |         $custom_date_format = $this->config->item('qso_date_format'); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     ?>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-04-28 16:53:11 +08:00
										 |  |  |     <?php | 
					
						
							| 
									
										
										
										
											2020-10-23 18:25:16 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |     if ($timeline_array) { | 
					
						
							| 
									
										
										
										
											2023-02-19 19:34:35 +08:00
										 |  |  |         switch ($this->input->post('award')) { | 
					
						
							|  |  |  |             case 'dxcc': $result = write_dxcc_timeline($timeline_array, $custom_date_format, $bandselect, $modeselect, $this->input->post('award')); break; | 
					
						
							|  |  |  |             case 'was':  $result = write_was_timeline($timeline_array, $custom_date_format, $bandselect, $modeselect, $this->input->post('award')); break; | 
					
						
							|  |  |  |             case 'iota': $result = write_iota_timeline($timeline_array, $custom_date_format, $bandselect, $modeselect, $this->input->post('award')); break; | 
					
						
							|  |  |  |             case 'waz':  $result = write_waz_timeline($timeline_array, $custom_date_format, $bandselect, $modeselect, $this->input->post('award')); break; | 
					
						
							|  |  |  |             case 'vucc':  $result = write_vucc_timeline($timeline_array, $custom_date_format, $bandselect, $modeselect, $this->input->post('award')); break; | 
					
						
							| 
									
										
										
										
											2020-10-23 18:25:16 +08:00
										 |  |  |         } | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     else { | 
					
						
							|  |  |  |         echo '<div class="alert alert-danger" role="alert"><a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>Nothing found!</div>'; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     ?>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <?php | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | function write_dxcc_timeline($timeline_array, $custom_date_format, $bandselect, $modeselect, $award) { | 
					
						
							| 
									
										
										
										
											2023-04-27 15:23:11 +08:00
										 |  |  |     $ci =& get_instance(); | 
					
						
							| 
									
										
										
										
											2020-10-23 18:25:16 +08:00
										 |  |  |     $i = count($timeline_array); | 
					
						
							|  |  |  |     echo '<table style="width:100%" class="table table-sm timelinetable table-bordered table-hover table-striped table-condensed text-center"> | 
					
						
							| 
									
										
										
										
											2020-04-28 16:53:11 +08:00
										 |  |  |               <thead> | 
					
						
							|  |  |  |                     <tr> | 
					
						
							|  |  |  |                         <td>#</td>
 | 
					
						
							| 
									
										
										
										
											2023-04-27 15:23:11 +08:00
										 |  |  |                         <td>'.$ci->lang->line('general_word_date').'</td> | 
					
						
							| 
									
										
										
										
											2023-11-08 05:11:12 +08:00
										 |  |  |                         <td>'.$ci->lang->line('gen_hamradio_prefix').'</td> | 
					
						
							| 
									
										
										
										
											2023-04-27 15:23:11 +08:00
										 |  |  |                         <td>'.$ci->lang->line('general_word_country').'</td> | 
					
						
							| 
									
										
										
										
											2023-11-08 05:11:12 +08:00
										 |  |  |                         <td>'.$ci->lang->line('station_logbooks_status').'</td> | 
					
						
							|  |  |  |                         <td>'.$ci->lang->line('general_word_enddate').'</td> | 
					
						
							|  |  |  |                         <td>'.$ci->lang->line('gridsquares_show_qsos').'</td> | 
					
						
							| 
									
										
										
										
											2020-04-28 16:53:11 +08:00
										 |  |  |                     </tr> | 
					
						
							|  |  |  |                 </thead> | 
					
						
							|  |  |  |                 <tbody>'; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-10-23 18:25:16 +08:00
										 |  |  |     foreach ($timeline_array as $line) { | 
					
						
							|  |  |  |         $date_as_timestamp = strtotime($line->date); | 
					
						
							|  |  |  |         echo '<tr> | 
					
						
							| 
									
										
										
										
											2020-04-28 16:53:11 +08:00
										 |  |  |                 <td>' . $i-- . '</td> | 
					
						
							| 
									
										
										
										
											2020-09-16 05:04:47 +08:00
										 |  |  |                 <td>' . date($custom_date_format, $date_as_timestamp) . '</td> | 
					
						
							| 
									
										
										
										
											2020-04-28 16:53:11 +08:00
										 |  |  |                 <td>' . $line->prefix . '</td> | 
					
						
							|  |  |  |                 <td>' . $line->col_country . '</td> | 
					
						
							|  |  |  |                 <td>'; | 
					
						
							| 
									
										
										
										
											2023-04-27 15:23:11 +08:00
										 |  |  |         if (!empty($line->end)) echo '<span class="badge badge-danger">'.$ci->lang->line('gen_hamradio_deleted_dxcc').'</span>'; | 
					
						
							| 
									
										
										
										
											2020-10-23 18:25:16 +08:00
										 |  |  |         echo '</td> | 
					
						
							| 
									
										
										
										
											2020-04-28 16:53:11 +08:00
										 |  |  |                 <td>' . $line->end . '</td> | 
					
						
							| 
									
										
										
										
											2020-10-23 18:25:16 +08:00
										 |  |  |                 <td><a href=javascript:displayTimelineContacts("' . $line->adif . '","'. $bandselect . '","'. $modeselect . '","' . $award .'")>Show</a></td> | 
					
						
							| 
									
										
										
										
											2020-04-28 16:53:11 +08:00
										 |  |  |                </tr>'; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2020-10-23 18:25:16 +08:00
										 |  |  |     echo '</tfoot></table></div>'; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | function write_was_timeline($timeline_array, $custom_date_format, $bandselect, $modeselect, $award) { | 
					
						
							| 
									
										
										
										
											2023-04-27 15:23:11 +08:00
										 |  |  |     $ci =& get_instance(); | 
					
						
							| 
									
										
										
										
											2020-10-23 18:25:16 +08:00
										 |  |  |     $i = count($timeline_array); | 
					
						
							|  |  |  |     echo '<table style="width:100%" class="table table-sm timelinetable table-bordered table-hover table-striped table-condensed text-center"> | 
					
						
							|  |  |  |               <thead> | 
					
						
							|  |  |  |                     <tr> | 
					
						
							|  |  |  |                         <td>#</td>
 | 
					
						
							| 
									
										
										
										
											2023-04-27 15:23:11 +08:00
										 |  |  |                         <td>'.$ci->lang->line('general_word_date').'</td> | 
					
						
							|  |  |  |                         <td>'.$ci->lang->line('gen_hamradio_state').'</td> | 
					
						
							| 
									
										
										
										
											2023-11-08 05:11:12 +08:00
										 |  |  |                         <td>'.$ci->lang->line('gridsquares_show_qsos').'</td> | 
					
						
							| 
									
										
										
										
											2020-10-23 18:25:16 +08:00
										 |  |  |                     </tr> | 
					
						
							|  |  |  |                 </thead> | 
					
						
							|  |  |  |                 <tbody>'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     foreach ($timeline_array as $line) { | 
					
						
							|  |  |  |         $date_as_timestamp = strtotime($line->date); | 
					
						
							|  |  |  |         echo '<tr> | 
					
						
							|  |  |  |                 <td>' . $i-- . '</td> | 
					
						
							|  |  |  |                 <td>' . date($custom_date_format, $date_as_timestamp) . '</td> | 
					
						
							|  |  |  |                 <td>' . $line->col_state . '</td> | 
					
						
							| 
									
										
										
										
											2023-11-08 05:11:12 +08:00
										 |  |  |                 <td><a href=javascript:displayTimelineContacts("' . $line->col_state . '","'. $bandselect . '","'. $modeselect . '","' . $award .'")>'.$ci->lang->line('filter_options_show').'</a></td> | 
					
						
							| 
									
										
										
										
											2020-10-23 18:25:16 +08:00
										 |  |  |                </tr>'; | 
					
						
							| 
									
										
										
										
											2020-04-28 16:53:11 +08:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2020-10-23 18:25:16 +08:00
										 |  |  |     echo '</tfoot></table></div>'; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | function write_iota_timeline($timeline_array, $custom_date_format, $bandselect, $modeselect, $award) { | 
					
						
							| 
									
										
										
										
											2023-04-27 15:23:11 +08:00
										 |  |  |     $ci =& get_instance(); | 
					
						
							| 
									
										
										
										
											2020-10-23 18:25:16 +08:00
										 |  |  |     $i = count($timeline_array); | 
					
						
							|  |  |  |     echo '<table style="width:100%" class="table table-sm timelinetable table-bordered table-hover table-striped table-condensed text-center"> | 
					
						
							|  |  |  |               <thead> | 
					
						
							|  |  |  |                     <tr> | 
					
						
							|  |  |  |                         <td>#</td>
 | 
					
						
							| 
									
										
										
										
											2023-04-27 15:23:11 +08:00
										 |  |  |                         <td>'.$ci->lang->line('general_word_date').'</td> | 
					
						
							| 
									
										
										
										
											2023-11-08 05:11:12 +08:00
										 |  |  |                         <td>'.$ci->lang->line('gen_hamradio_iota').'</td> | 
					
						
							|  |  |  |                         <td>'.$ci->lang->line('general_word_name').'</td> | 
					
						
							|  |  |  |                         <td>'.$ci->lang->line('gen_hamradio_prefix').'</td> | 
					
						
							|  |  |  |                         <td>'.$ci->lang->line('gridsquares_show_qsos').'</td> | 
					
						
							| 
									
										
										
										
											2020-10-23 18:25:16 +08:00
										 |  |  |                     </tr> | 
					
						
							|  |  |  |                 </thead> | 
					
						
							|  |  |  |                 <tbody>'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     foreach ($timeline_array as $line) { | 
					
						
							|  |  |  |         $date_as_timestamp = strtotime($line->date); | 
					
						
							|  |  |  |         echo '<tr> | 
					
						
							|  |  |  |                 <td>' . $i-- . '</td> | 
					
						
							|  |  |  |                 <td>' . date($custom_date_format, $date_as_timestamp) . '</td> | 
					
						
							|  |  |  |                 <td>' . $line->col_iota . '</td> | 
					
						
							|  |  |  |                 <td>' . $line->name . '</td> | 
					
						
							|  |  |  |                 <td>' . $line->prefix . '</td> | 
					
						
							|  |  |  |                 <td><a href=javascript:displayTimelineContacts("' . $line->col_iota . '","'. $bandselect . '","'. $modeselect . '","' . $award .'")>Show</a></td> | 
					
						
							|  |  |  |                </tr>'; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     echo '</tfoot></table></div>'; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | function write_waz_timeline($timeline_array, $custom_date_format, $bandselect, $modeselect, $award) { | 
					
						
							| 
									
										
										
										
											2023-04-27 15:23:11 +08:00
										 |  |  |     $ci =& get_instance(); | 
					
						
							| 
									
										
										
										
											2020-10-23 18:25:16 +08:00
										 |  |  |     $i = count($timeline_array); | 
					
						
							|  |  |  |     echo '<table style="width:100%" class="table table-sm timelinetable table-bordered table-hover table-striped table-condensed text-center"> | 
					
						
							|  |  |  |               <thead> | 
					
						
							|  |  |  |                     <tr> | 
					
						
							|  |  |  |                         <td>#</td>
 | 
					
						
							| 
									
										
										
										
											2023-04-27 15:23:11 +08:00
										 |  |  |                         <td>'.$ci->lang->line('general_word_date').'</td> | 
					
						
							| 
									
										
										
										
											2023-11-08 05:11:12 +08:00
										 |  |  |                         <td>'.$ci->lang->line('gen_hamradio_cqzone').'</td> | 
					
						
							|  |  |  |                         <td>'.$ci->lang->line('gridsquares_show_qsos').'</td> | 
					
						
							| 
									
										
										
										
											2020-10-23 18:25:16 +08:00
										 |  |  |                     </tr> | 
					
						
							|  |  |  |                 </thead> | 
					
						
							|  |  |  |                 <tbody>'; | 
					
						
							| 
									
										
										
										
											2020-04-28 16:53:11 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-10-23 18:25:16 +08:00
										 |  |  |     foreach ($timeline_array as $line) { | 
					
						
							|  |  |  |         $date_as_timestamp = strtotime($line->date); | 
					
						
							|  |  |  |         echo '<tr> | 
					
						
							|  |  |  |                 <td>' . $i-- . '</td> | 
					
						
							|  |  |  |                 <td>' . date($custom_date_format, $date_as_timestamp) . '</td> | 
					
						
							|  |  |  |                 <td>' . $line->col_cqz . '</td> | 
					
						
							|  |  |  |                 <td><a href=javascript:displayTimelineContacts("' . $line->col_cqz . '","'. $bandselect . '","'. $modeselect . '","' . $award .'")>Show</a></td> | 
					
						
							|  |  |  |                </tr>'; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     echo '</tfoot></table></div>'; | 
					
						
							| 
									
										
										
										
											2020-11-23 09:58:12 +08:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2023-01-31 02:54:27 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | function write_vucc_timeline($timeline_array, $custom_date_format, $bandselect, $modeselect, $award) { | 
					
						
							| 
									
										
										
										
											2023-04-27 15:23:11 +08:00
										 |  |  |     $ci =& get_instance(); | 
					
						
							| 
									
										
										
										
											2023-01-31 02:54:27 +08:00
										 |  |  |     $i = count($timeline_array); | 
					
						
							|  |  |  |     echo '<table style="width:100%" class="table table-sm timelinetable table-bordered table-hover table-striped table-condensed text-center"> | 
					
						
							|  |  |  |               <thead> | 
					
						
							|  |  |  |                     <tr> | 
					
						
							|  |  |  |                         <td>#</td>
 | 
					
						
							| 
									
										
										
										
											2023-04-27 15:23:11 +08:00
										 |  |  |                         <td>'.$ci->lang->line('general_word_date').'</td> | 
					
						
							|  |  |  |                         <td>'.$ci->lang->line('gen_hamradio_gridsquare').'</td> | 
					
						
							| 
									
										
										
										
											2023-11-08 05:11:12 +08:00
										 |  |  |                         <td>'.$ci->lang->line('gridsquares_show_qsos').'</td> | 
					
						
							| 
									
										
										
										
											2023-01-31 02:54:27 +08:00
										 |  |  |                     </tr> | 
					
						
							|  |  |  |                 </thead> | 
					
						
							|  |  |  |                 <tbody>'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     foreach ($timeline_array as $line) { | 
					
						
							|  |  |  |         $date_as_timestamp = strtotime($line['date']); | 
					
						
							|  |  |  |         echo '<tr> | 
					
						
							|  |  |  |                 <td>' . $i-- . '</td> | 
					
						
							|  |  |  |                 <td>' . date($custom_date_format, $date_as_timestamp) . '</td> | 
					
						
							|  |  |  |                 <td>' . $line['gridsquare'] . '</td> | 
					
						
							|  |  |  |                 <td><a href=javascript:displayTimelineContacts("' . $line['gridsquare'] . '","'. $bandselect . '","'. $modeselect . '","' . $award .'")>Show</a></td> | 
					
						
							|  |  |  |                </tr>'; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     echo '</tfoot></table></div>'; | 
					
						
							|  |  |  | } |