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  }  ?> 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-01-09 23:18:46 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< div  class = " card " >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  < div  class = " card-header " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < ? php  echo  $page_title ;  ?> 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  < div  class = " card-body " > 
							 
						 
					
						
							
								
									
										
										
										
											2019-09-24 00:29:22 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    < p  class = " card-text " > Station  Profiles  define  locations  of  operating ,  useful  for  portable  operating  or  using  a  friends  QTH .</ p > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < p  class = " card-text " > Within  Cloudlog  these  act  in  a  similar  way  to  logbooks ,  a  Station  Profile  keeps  a  set  of  QSOs  together .</ p > 
							 
						 
					
						
							
								
									
										
										
										
											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 " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										  Attention  you  need  to  set  an  active  station  profile . 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</ 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 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										  		If  you  haven 't any station profiles, create a profile 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 the #1 station ID</a>
 
							 
						 
					
						
							
								
									
										
										
										
											2019-09-24 00:29:22 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											</ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										< ? php  }  ?> 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-01-09 23:18:46 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										< table  class = " table table-striped " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											< 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 > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													< th  scope = " col " > City </ th > 
							 
						 
					
						
							
								
									
										
										
										
											2019-09-25 05:19:49 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
													< th  scope = " col " > QSO  Count </ 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 > 
							 
						 
					
						
							
								
									
										
										
										
											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 > 
							 
						 
					
						
							
								
									
										
										
										
											2019-09-24 00:29:22 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
													< td >< ? php  echo  $row -> station_profile_name ; ?>  (#<?php echo $row->station_id;?>)</td>
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													< 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>
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													< td >< ? php  echo  $row -> station_city ; ?> </td>	
 
							 
						 
					
						
							
								
									
										
										
										
											2019-09-25 05:19:49 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
													< td >< ? php  echo  $row -> qso_total ; ?> </td>
 
							 
						 
					
						
							
								
									
										
										
										
											2019-09-24 00:29:22 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
													< td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
														< ? php  if ( $row -> station_active  !=  1 )  {  ?> 			
 
							 
						 
					
						
							
								
									
										
										
										
											2019-10-03 22:12:19 +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 logbook <?php echo  $row->station_profile_name ; ?> the active logbook?'); " > Set  Active </ a > 
							 
						 
					
						
							
								
									
										
										
										
											2019-09-24 00:29:22 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
														< ? php  }  else  {  ?> 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
															< span  class = " badge badge-success " > Active  Logbook </ span > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
														< ? php  }  ?> 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-10-03 22:12:19 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
														< ? php  if ( $is_there_qsos_with_no_station_id  >=  1 )  {  ?> 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
															< 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  }  ?> 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													</ td > 
							 
						 
					
						
							
								
									
										
										
										
											2019-10-03 22:12:19 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
													< td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
														< a  href = " <?php echo site_url('station/edit'). " / " . $row->station_id ; ?> "  class = " btn btn-info btn-sm " >< i  class = " fas fa-edit-alt " ></ i >  Edit </ a > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													</ td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													< td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
														< 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 QSO <?php echo  $row->station_profile_name ; ?>?'); " >< i  class = " fas fa-trash-alt " ></ i >  Delete </ a ></ td > 
							 
						 
					
						
							
								
									
										
										
										
											2019-09-24 00:29:22 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												</ tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-01-09 23:18:46 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												< ? php  }  ?> 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											</ tbody > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										< table > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										< ? php  }  ?> 
 
							 
						 
					
						
							
								
									
										
										
										
											2019-01-02 03:14:25 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-10-03 19:56:25 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-09-24 00:29:22 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										< p >< a  href = " <?php echo site_url('station/create'); ?> "  class = " btn btn-primary " >< i  class = " fas fa-plus " ></ i >  Create  a  Station  Profile </ a ></ p > 
							 
						 
					
						
							
								
									
										
										
										
											2019-01-09 23:18:46 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								</ div >  
						 
					
						
							
								
									
										
										
										
											2019-01-02 03:14:25 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-01-09 23:18:46 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								</ div >