| 
									
										
										
										
											2020-04-28 16:53:11 +08:00
										 |  |  | <div class="container"> | 
					
						
							|  |  |  |     <h1><?php echo $page_title; ?></h1>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     <form class="form" action="<?php echo site_url('timeline'); ?>" method="post" enctype="multipart/form-data"> | 
					
						
							|  |  |  |         <fieldset> | 
					
						
							|  |  |  |             <!-- Select Basic --> | 
					
						
							|  |  |  |             <div class="form-group row"> | 
					
						
							|  |  |  |                 <label class="col-md-1 control-label" for="band">Band</label> | 
					
						
							|  |  |  |                 <div class="col-md-2"> | 
					
						
							|  |  |  |                     <select id="band2" name="band" class="form-control"> | 
					
						
							|  |  |  |                         <option value="All" <?php if ($this->input->post('band') == "All" || $this->input->method() !== 'post') echo ' selected'; ?> >All</option>
 | 
					
						
							|  |  |  |                         <?php foreach($worked_bands as $band) { | 
					
						
							|  |  |  |                             echo '<option value="' . $band . '"'; | 
					
						
							|  |  |  |                             if ($this->input->post('band') == $band) echo ' selected'; | 
					
						
							|  |  |  |                             echo '>' . $band . '</option>'."\n"; | 
					
						
							|  |  |  |                         } ?>
 | 
					
						
							|  |  |  |                     </select> | 
					
						
							|  |  |  |                 </div> | 
					
						
							|  |  |  |             </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             <!-- Button (Double) --> | 
					
						
							|  |  |  |             <div class="form-group row"> | 
					
						
							|  |  |  |                 <label class="col-md-1 control-label" for="button1id"></label> | 
					
						
							|  |  |  |                 <div class="col-md-10"> | 
					
						
							|  |  |  |                     <button id="button1id" type="submit" name="button1id" class="btn btn-success btn-primary">Show</button> | 
					
						
							|  |  |  |                 </div> | 
					
						
							|  |  |  |             </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         </fieldset> | 
					
						
							|  |  |  |     </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 | 
					
						
							|  |  |  |     $i = count($dxcc_timeline_array); | 
					
						
							|  |  |  |     if ($dxcc_timeline_array) { | 
					
						
							|  |  |  |         echo '<table class="table table-bordered table-hover table-striped table-condensed text-center"> | 
					
						
							|  |  |  |               <thead> | 
					
						
							|  |  |  |                     <tr> | 
					
						
							|  |  |  |                         <td>#</td>
 | 
					
						
							|  |  |  |                         <td>Date</td> | 
					
						
							|  |  |  |                         <td>Prefix</td> | 
					
						
							|  |  |  |                         <td>Country</td> | 
					
						
							|  |  |  |                         <td>Deleted</td> | 
					
						
							|  |  |  |                         <td>End date</td> | 
					
						
							|  |  |  |                         <td>Show QSOs</td> | 
					
						
							|  |  |  |                     </tr> | 
					
						
							|  |  |  |                 </thead> | 
					
						
							|  |  |  |                 <tbody>'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         foreach ($dxcc_timeline_array as $line) { | 
					
						
							| 
									
										
										
										
											2020-09-16 05:04:47 +08:00
										 |  |  |             $date_as_timestamp = strtotime($line->date); | 
					
						
							| 
									
										
										
										
											2020-04-28 16:53:11 +08:00
										 |  |  |             echo '<tr> | 
					
						
							|  |  |  |                 <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>'; | 
					
						
							|  |  |  |             if (!empty($line->end)) echo 'Yes'; | 
					
						
							|  |  |  |             echo '</td> | 
					
						
							|  |  |  |                 <td>' . $line->end . '</td> | 
					
						
							| 
									
										
										
										
											2020-09-26 00:22:13 +08:00
										 |  |  |                 <td><a href=javascript:displayTimelineContacts("' . $line->adif . '","'. $bandselect . '")>Show</a></td> | 
					
						
							| 
									
										
										
										
											2020-04-28 16:53:11 +08:00
										 |  |  |                </tr>'; | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |         echo '</tfoot></table></div>'; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     else { | 
					
						
							|  |  |  |         echo '<div class="alert alert-danger" role="alert"><a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>Nothing found!</div>'; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     ?>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | </div> |