2019-01-09 23:18:46 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< div  class = " container " >  
						 
					
						
							
								
									
										
										
										
											2019-01-02 03:14:25 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-01-09 23:18:46 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< br >  
						 
					
						
							
								
									
										
										
										
											2019-01-02 03:14:25 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									< ? php  if ( $this -> session -> flashdata ( 'message' ))  {  ?> 
 
							 
						 
					
						
							
								
									
										
										
										
											2019-01-09 23:18:46 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<!--  Display  Message  --> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										< div  class = " alert-message error " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										  < p >< ? php  echo  $this -> session -> flashdata ( 'message' );  ?> </p>
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</ div > 
							 
						 
					
						
							
								
									
										
										
										
											2019-01-02 03:14:25 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									< ? php  }  ?> 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2020-10-20 22:51:55 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< h2 >< ? php  echo  $page_title ;  ?> </h2>
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-01-09 23:18:46 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< div  class = " card " >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  < div  class = " card-header " > 
							 
						 
					
						
							
								
									
										
										
										
											2021-03-25 01:22:32 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    Station  Locations 
							 
						 
					
						
							
								
									
										
										
										
											2019-01-09 23:18:46 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  < div  class = " card-body " > 
							 
						 
					
						
							
								
									
										
										
										
											2021-03-25 01:22:32 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    < p  class = " card-text " > Station  Locations  define  operating  locations ,  such  as  your  QTH ,  a  friend ' s  QTH ,  or  a  portable  station .</ p > 
							 
						 
					
						
							
								
									
										
										
										
											2020-10-29 02:03:30 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									< p  class = " card-text " > Similar  to  logbooks ,  a  station  profile  keeps  a  set  of  QSOs  together .</ p > 
							 
						 
					
						
							
								
									
										
										
										
											2021-10-17 17:45:21 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									< p  class = " card-text " > Only  one  station  may  be  active  at  a  time .  In  the  table  below  this  is  shown  with  the  " Active Station "  badge .</ p > 
							 
						 
					
						
							
								
									
										
										
										
											2019-01-09 23:18:46 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-03-25 01:22:32 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									  < p >< a  href = " <?php echo site_url('station/create'); ?> "  class = " btn btn-primary " >< i  class = " fas fa-plus " ></ i >  Create  a  Station  Location </ a ></ p > 
							 
						 
					
						
							
								
									
										
										
										
											2021-03-10 00:50:06 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									  
							 
						 
					
						
							
								
									
										
										
										
											2019-01-09 23:18:46 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										< ? php  if  ( $stations -> num_rows ()  >  0 )  {  ?> 
 
							 
						 
					
						
							
								
									
										
										
										
											2019-01-02 03:14:25 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-09-24 00:29:22 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										< ? php  if ( $current_active  ==  0 )  {  ?> 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										< div  class = " alert alert-danger "  role = " alert " > 
							 
						 
					
						
							
								
									
										
										
										
											2021-03-25 01:22:32 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										  Attention :  You  need  to  set  an  active  station  location .  Go  to  Callsign -> Station  Location  to  select  one . 
							 
						 
					
						
							
								
									
										
										
										
											2019-09-24 00:29:22 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										< ? php  }  ?> 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-10-03 19:56:25 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										< ? php  if ( $is_there_qsos_with_no_station_id  >=  1 )  {  ?> 
 
							 
						 
					
						
							
								
									
										
										
										
											2019-09-24 00:29:22 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											< div  class = " alert alert-danger "  role = " alert " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										  		< span  class = " badge badge-pill badge-warning " > Warning </ span >  Due  to  recent  changes  within  Cloudlog  you  need  to  reassign  QSOs  to  your  station  profiles . 
							 
						 
					
						
							
								
									
										
										
										
											2019-10-03 19:56:25 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2020-10-29 02:03:30 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										  		Create  a  station  profile ,  if  you  haven 't already, then <a href="<?php echo site_url(' station / assign_all / '); ?>" class="btn btn-danger" onclick="return confirm(' Assign  All  QSOs  to  Default  Station  ID " ><i class= " fas  fa - trash - alt " ></i> press this button to assign all QSOs to the first Station Profile.</a>
 
							 
						 
					
						
							
								
									
										
										
										
											2019-09-24 00:29:22 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											</ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										< ? php  }  ?> 
 
							 
						 
					
						
							
								
									
										
										
										
											2021-03-10 00:50:06 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									  
							 
						 
					
						
							
								
									
										
										
										
											2020-11-29 04:11:25 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										< div  class = " table-responsive " > 
							 
						 
					
						
							
								
									
										
										
										
											2022-01-20 22:44:32 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										< table  id = " station_locations_table "  class = " table table-striped " > 
							 
						 
					
						
							
								
									
										
										
										
											2019-01-09 23:18:46 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											< thead > 
							 
						 
					
						
							
								
									
										
										
										
											2019-01-02 03:14:25 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
												< tr > 
							 
						 
					
						
							
								
									
										
										
										
											2019-01-09 23:18:46 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
													< th  scope = " col " > Profile  Name </ th > 
							 
						 
					
						
							
								
									
										
										
										
											2019-09-24 00:29:22 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
													< th  scope = " col " > Station  Callsign </ th > 
							 
						 
					
						
							
								
									
										
										
										
											2019-01-09 23:18:46 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
													< th  scope = " col " > Country </ th > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													< th  scope = " col " > Gridsquare </ th > 
							 
						 
					
						
							
								
									
										
										
										
											2019-09-24 00:29:22 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
													< th ></ th > 
							 
						 
					
						
							
								
									
										
										
										
											2019-01-09 23:18:46 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
													< th  scope = " col " ></ th > 
							 
						 
					
						
							
								
									
										
										
										
											2019-10-03 22:12:19 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
													< th  scope = " col " ></ th > 
							 
						 
					
						
							
								
									
										
										
										
											2020-02-07 21:54:49 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                    < th  scope = " col " ></ th > 
							 
						 
					
						
							
								
									
										
										
										
											2019-01-02 03:14:25 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
												</ tr > 
							 
						 
					
						
							
								
									
										
										
										
											2019-01-09 23:18:46 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											</ thead > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											< tbody > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												< ? php  foreach  ( $stations -> result ()  as  $row )  {  ?> 
 
							 
						 
					
						
							
								
									
										
										
										
											2019-01-02 03:14:25 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
												< tr > 
							 
						 
					
						
							
								
									
										
										
										
											2021-03-09 22:04:49 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
													< td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
														< ? php  echo  $row -> station_profile_name ; ?> <br>
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													</ td > 
							 
						 
					
						
							
								
									
										
										
										
											2019-09-24 00:29:22 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
													< td >< ? php  echo  $row -> station_callsign ; ?> </td>
 
							 
						 
					
						
							
								
									
										
										
										
											2019-01-02 03:14:25 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
													< td >< ? php  echo  $row -> station_country ; ?> </td>
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													< td >< ? php  echo  $row -> station_gridsquare ; ?> </td>
 
							 
						 
					
						
							
								
									
										
										
										
											2020-10-26 16:58:49 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
													< td  style = " text-align: center " > 
							 
						 
					
						
							
								
									
										
										
										
											2021-12-05 00:14:57 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
														< ? php  if ( $row -> station_active  !=  1 )  {  ?> 
 
							 
						 
					
						
							
								
									
										
										
										
											2021-10-17 17:42:33 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
															< a  href = " <?php echo site_url('station/set_active/'). $current_active . " / " . $row->station_id ; ?> "  class = " btn btn-outline-secondary btn-sm "  onclick = " return confirm('Are you sure you want to make station <?php echo  $row->station_profile_name ; ?> the active station?'); " > Set  Active </ a > 
							 
						 
					
						
							
								
									
										
										
										
											2019-09-24 00:29:22 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
														< ? php  }  else  {  ?> 
 
							 
						 
					
						
							
								
									
										
										
										
											2021-10-17 17:42:33 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
															< span  class = " badge badge-success " > Active  Station </ span > 
							 
						 
					
						
							
								
									
										
										
										
											2019-09-24 00:29:22 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
														< ? php  }  ?> 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-10-03 22:12:19 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
														< ? php  if ( $is_there_qsos_with_no_station_id  >=  1 )  {  ?> 
 
							 
						 
					
						
							
								
									
										
										
										
											2019-12-04 23:16:56 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
															< a  href = " <?php echo site_url('station/reassign_profile/'). $row->station_id ; ?> "  class = " btn btn-outline-secondary btn-sm "  onclick = " return confirm('Are you sure you want to reassign QSOs to the <?php echo  $row->station_profile_name ; ?> profile?'); " > Reassign </ a > 
							 
						 
					
						
							
								
									
										
										
										
											2019-09-24 00:29:22 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
														< ? php  }  ?> 
 
							 
						 
					
						
							
								
									
										
										
										
											2021-03-09 22:04:49 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
														< br > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
														< span  class = " badge badge-info " > ID :  < ? php  echo  $row -> station_id ; ?> </span>
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
														< span  class = " badge badge-light " >< ? php  echo  $row -> qso_total ; ?>  QSOs</span>
 
							 
						 
					
						
							
								
									
										
										
										
											2019-09-24 00:29:22 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
													</ td > 
							 
						 
					
						
							
								
									
										
										
										
											2019-10-03 22:12:19 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
													< td > 
							 
						 
					
						
							
								
									
										
										
										
											2021-08-23 22:50:19 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
														< ? php  if ( $row -> user_id  ==  " " )  {  ?> 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
															< a  href = " <?php echo site_url('station/claim_user'). " / " . $row->station_id ; ?> "  class = " btn btn-outline-primary btn-sm " >< i  class = " fas fa-user-plus " ></ i >  Claim  Ownership </ a > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
														< ? php  }  ?> 
 
							 
						 
					
						
							
								
									
										
										
										
											2020-10-26 16:58:49 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
														< a  href = " <?php echo site_url('station/edit'). " / " . $row->station_id ; ?> "  class = " btn btn-outline-primary btn-sm " >< i  class = " fas fa-edit " ></ i >  Edit </ a > 
							 
						 
					
						
							
								
									
										
										
										
											2019-10-03 22:12:19 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
													</ td > 
							 
						 
					
						
							
								
									
										
										
										
											2020-02-07 21:54:49 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                    < td > 
							 
						 
					
						
							
								
									
										
										
										
											2020-10-10 01:30:27 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                        < a  href = " <?php echo site_url('station/deletelog'). " / " . $row->station_id ; ?> "  class = " btn btn-danger btn-sm "  onclick = " return confirm('Are you sure you want to delete all QSOs within this station profile?'); " >< i  class = " fas fa-trash-alt " ></ i >  Empty  Log </ a ></ td > 
							 
						 
					
						
							
								
									
										
										
										
											2020-02-07 21:54:49 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                    </ td > 
							 
						 
					
						
							
								
									
										
										
										
											2019-10-03 22:12:19 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
													< td > 
							 
						 
					
						
							
								
									
										
										
										
											2021-12-05 00:14:57 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
														< ? php  if ( $row -> station_active  !=  1 )  {  ?> 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
															< a  href = " <?php echo site_url('station/delete'). " / " . $row->station_id ; ?> "  class = " btn btn-danger btn-sm "  onclick = " return confirm('Are you sure you want delete station profile <?php echo  $row->station_profile_name ; ?> this will delete all QSOs within this station profile?'); " >< i  class = " fas fa-trash-alt " ></ i >  Delete  Profile </ a > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
														< ? php  }  ?> 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													</ td > 
							 
						 
					
						
							
								
									
										
										
										
											2019-09-24 00:29:22 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												</ tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-01-09 23:18:46 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												< ? php  }  ?> 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											</ tbody > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										< table > 
							 
						 
					
						
							
								
									
										
										
										
											2020-11-29 04:11:25 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</ div > 
							 
						 
					
						
							
								
									
										
										
										
											2019-01-09 23:18:46 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										< ? php  }  ?> 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								</ div >  
						 
					
						
							
								
									
										
										
										
											2019-01-02 03:14:25 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-03-10 00:50:06 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								</ div >