| 
									
										
										
										
											2020-02-18 17:49:27 +08:00
										 |  |  | <div class="container"> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     <br> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-06 02:31:23 +08:00
										 |  |  |     <h2><?php echo lang('statistics_distances_worked'); ?></h2>
 | 
					
						
							| 
									
										
										
										
											2023-10-08 14:55:45 +08:00
										 |  |  |     <script> | 
					
						
							|  |  |  |         var lang_general_word_qso_data = '<?php echo lang('general_word_qso_data'); ?>'; | 
					
						
							| 
									
										
										
										
											2023-11-06 02:31:23 +08:00
										 |  |  |         var lang_statistics_distances_worked = '<?php echo lang('statistics_distances_worked'); ?>'; | 
					
						
							|  |  |  |         var lang_statistics_distances_part1_contacts_were_plotted_furthest = '<?php echo lang('statistics_distances_part1_contacts_were_plotted_furthest'); ?>'; | 
					
						
							|  |  |  |         var lang_statistics_distances_part2_contacts_were_plotted_furthest = '<?php echo lang('statistics_distances_part2_contacts_were_plotted_furthest'); ?>'; | 
					
						
							|  |  |  |         var lang_statistics_distances_part3_contacts_were_plotted_furthest = '<?php echo lang('statistics_distances_part3_contacts_were_plotted_furthest'); ?>'; | 
					
						
							| 
									
										
										
										
											2024-06-17 01:40:24 +08:00
										 |  |  |         var lang_statistics_distances_part4_contacts_were_plotted_furthest = '<?php echo lang('statistics_distances_part4_contacts_were_plotted_furthest'); ?>'; | 
					
						
							| 
									
										
										
										
											2023-11-06 02:31:23 +08:00
										 |  |  |         var lang_statistics_distances_number_of_qsos = '<?php echo lang('statistics_distances_number_of_qsos'); ?>'; | 
					
						
							|  |  |  |         var lang_gen_hamradio_distance = '<?php echo lang('gen_hamradio_distance'); ?>'; | 
					
						
							|  |  |  |         var lang_statistics_distances_callsigns_worked = '<?php echo lang('statistics_distances_callsigns_worked'); ?>'; | 
					
						
							|  |  |  |         var lang_statistics_distances_qsos_with = '<?php echo lang('lang_statistics_distances_qsos_with'); ?>'; | 
					
						
							| 
									
										
										
										
											2023-10-08 14:55:45 +08:00
										 |  |  |     </script> | 
					
						
							| 
									
										
										
										
											2020-02-18 17:49:27 +08:00
										 |  |  |     <div id="distances_div"> | 
					
						
							| 
									
										
										
										
											2023-11-14 20:35:53 +08:00
										 |  |  |         <form class="d-flex align-items-center"> | 
					
						
							| 
									
										
										
										
											2024-09-03 06:03:06 +08:00
										 |  |  |             <label class="my-1 me-2" for="distplot_bands"><?php echo lang('gridsquares_band'); ?></label>
 | 
					
						
							| 
									
										
										
										
											2023-11-16 01:00:11 +08:00
										 |  |  |             <select class="form-select my-1 me-sm-2 w-auto"  id="distplot_bands"> | 
					
						
							| 
									
										
										
										
											2024-06-17 01:40:24 +08:00
										 |  |  |                 <option value="all"><?php echo lang('statistics_distances_bands_all')?></option>
 | 
					
						
							| 
									
										
										
										
											2021-11-18 04:48:44 +08:00
										 |  |  |                 <?php if (count($sats_available) != 0) { ?>
 | 
					
						
							|  |  |  |                     <option value="sat">SAT</option> | 
					
						
							|  |  |  |                 <?php } ?>
 | 
					
						
							| 
									
										
										
										
											2021-01-31 06:25:13 +08:00
										 |  |  |                 <?php foreach($bands_available as $band) { | 
					
						
							|  |  |  |                     echo '<option value="' . $band . '"' . '>' . $band . '</option>'."\n"; | 
					
						
							|  |  |  |                 } ?>
 | 
					
						
							|  |  |  |             </select> | 
					
						
							| 
									
										
										
										
											2021-11-18 04:48:44 +08:00
										 |  |  |             <?php if (count($sats_available) != 0) { ?>
 | 
					
						
							| 
									
										
										
										
											2024-11-17 23:31:27 +08:00
										 |  |  |                 <label class="my-1 me-2" for="distplot_sats" id="distplot_sats_lbl" style="display: none"><?php echo lang('general_word_satellite')?></label>
 | 
					
						
							|  |  |  |                 <select class="form-select my-1 me-sm-2 w-auto" disabled id="distplot_sats" style="display: none"> | 
					
						
							| 
									
										
										
										
											2024-09-03 06:03:06 +08:00
										 |  |  |                     <option value="All"><?php echo lang('statistics_distances_modes_all')?></option>
 | 
					
						
							| 
									
										
										
										
											2021-11-18 04:48:44 +08:00
										 |  |  |                     <?php foreach($sats_available as $sat) { | 
					
						
							|  |  |  |                         echo '<option value="' . $sat . '"' . '>' . $sat . '</option>'."\n"; | 
					
						
							|  |  |  |                     } ?>
 | 
					
						
							|  |  |  |                 </select> | 
					
						
							|  |  |  |             <?php } else { ?>
 | 
					
						
							|  |  |  |                 <input id="distplot_sats" type="hidden" value="All"></input> | 
					
						
							|  |  |  |             <?php } ?>
 | 
					
						
							| 
									
										
										
										
											2024-09-03 06:03:06 +08:00
										 |  |  | 			<label class="my-1 me-2" for="distplot_modes"><?php echo lang('gridsquares_mode'); ?></label>
 | 
					
						
							|  |  |  |             <select class="form-select my-1 me-sm-2 w-auto" id="distplot_modes"> | 
					
						
							|  |  |  | 			<option value="all"><?php echo lang('general_word_all')?></option>
 | 
					
						
							|  |  |  |                     <?php | 
					
						
							|  |  |  |                     foreach($modes as $mode) { | 
					
						
							|  |  |  |                         if ($mode->submode ?? '' == '') { | 
					
						
							|  |  |  |                             echo '<option value="' . $mode . '">' . strtoupper($mode) . '</option>'."\n"; | 
					
						
							|  |  |  |                         } | 
					
						
							|  |  |  |                     } | 
					
						
							|  |  |  |                     ?>
 | 
					
						
							| 
									
										
										
										
											2024-11-17 23:31:27 +08:00
										 |  |  |             </select> | 
					
						
							|  |  |  |             <?php | 
					
						
							|  |  |  |                 // Sort translated propagation modes alphabetically
 | 
					
						
							|  |  |  |                 $prop_modes = ['AS' => lang('gen_hamradio_propagation_AS'), | 
					
						
							|  |  |  |                                'AUR' => lang('gen_hamradio_propagation_AUR'), | 
					
						
							|  |  |  |                                'AUE' => lang('gen_hamradio_propagation_AUE'), | 
					
						
							|  |  |  |                                'BS' => lang('gen_hamradio_propagation_BS'), | 
					
						
							|  |  |  |                                'ECH' => lang('gen_hamradio_propagation_ECH'), | 
					
						
							|  |  |  |                                'EME' => lang('gen_hamradio_propagation_EME'), | 
					
						
							|  |  |  |                                'ES' => lang('gen_hamradio_propagation_ES'), | 
					
						
							|  |  |  |                                'FAI' => lang('gen_hamradio_propagation_FAI'), | 
					
						
							|  |  |  |                                'F2' => lang('gen_hamradio_propagation_F2'), | 
					
						
							|  |  |  |                                'INTERNET' => lang('gen_hamradio_propagation_INTERNET'), | 
					
						
							|  |  |  |                                'ION' => lang('gen_hamradio_propagation_ION'), | 
					
						
							|  |  |  |                                'IRL' => lang('gen_hamradio_propagation_IRL'), | 
					
						
							|  |  |  |                                'MS' => lang('gen_hamradio_propagation_MS'), | 
					
						
							|  |  |  |                                'RPT' => lang('gen_hamradio_propagation_RPT'), | 
					
						
							|  |  |  |                                'RS' => lang('gen_hamradio_propagation_RS'), | 
					
						
							|  |  |  |                                'SAT' => lang('gen_hamradio_propagation_SAT'), | 
					
						
							|  |  |  |                                'TEP' => lang('gen_hamradio_propagation_TEP'), | 
					
						
							|  |  |  |                                'TR' => lang('gen_hamradio_propagation_TR')]; | 
					
						
							|  |  |  |                 asort($prop_modes); | 
					
						
							|  |  |  |             ?>
 | 
					
						
							|  |  |  | 			<label class="my-1 me-2" for="distplot_propag"><?php echo lang('gen_hamradio_propagation_mode') ?></label>
 | 
					
						
							|  |  |  |             <select class="form-select my-1 me-sm-2 w-auto" id="distplot_propag"> | 
					
						
							|  |  |  |                 <option value="all" <?php if ($this->input->post('prop_mode') == "all" || $this->input->method() !== 'post') echo ' selected'; ?>><?php echo lang('general_word_all') ?></option>
 | 
					
						
							|  |  |  |                 <option value="" <?php if ($this->input->post('prop_mode') == "" && $this->input->method() == 'post') echo ' selected'; ?>><?php echo lang('general_word_undefined') ?></option>
 | 
					
						
							|  |  |  |                 <?php | 
					
						
							|  |  |  |                     foreach($prop_modes as $key => $label) { | 
					
						
							|  |  |  |                         echo '<option value="' . $key . '">' . $label . '</option>'; | 
					
						
							|  |  |  |                     } | 
					
						
							|  |  |  |                 ?>
 | 
					
						
							| 
									
										
										
										
											2024-09-03 06:03:06 +08:00
										 |  |  |             </select> | 
					
						
							|  |  |  | 			<label class="my-1 me-2" for="distplot_powers"><?php echo lang('gen_hamradio_transmit_power'); ?></label>
 | 
					
						
							|  |  |  |             <select class="form-select my-1 me-sm-2 w-auto" id="distplot_powers"> | 
					
						
							|  |  |  | 			<option value="all"><?php echo lang('statistics_distances_bands_all')?></option>
 | 
					
						
							|  |  |  |                     <?php foreach($powers as $power) { | 
					
						
							|  |  |  |                         echo '<option value="' . $power . '">' . ($power ? $power : lang('general_word_undefined'))  . '</option>'."\n"; | 
					
						
							|  |  |  |                     } | 
					
						
							|  |  |  |                     ?>
 | 
					
						
							|  |  |  |             </select> | 
					
						
							| 
									
										
										
										
											2023-11-06 02:31:23 +08:00
										 |  |  |             <button id="plot" type="button" name="plot" class="btn btn-primary" onclick="distPlot(this.form)"><?php echo lang('filter_options_show')?></button>
 | 
					
						
							| 
									
										
										
										
											2020-02-18 17:49:27 +08:00
										 |  |  |         </form> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | </div> |