kopia lustrzana https://github.com/magicbug/Cloudlog
				
				
				
			Station Name Column is optional
							rodzic
							
								
									4cedaf3d55
								
							
						
					
					
						commit
						76c2198cd1
					
				|  | @ -338,6 +338,8 @@ class Options extends CI_Controller { | |||
| 
 | ||||
| 		$global_oqrs_text = $this->optionslib->update('groupedSearch', $this->input->post('groupedSearch'), null); | ||||
| 
 | ||||
| 		$global_oqrs_text = $this->optionslib->update('groupedSearchShowStationName', $this->input->post('groupedSearchShowStationName'), null); | ||||
| 
 | ||||
| 		if($global_oqrs_text == TRUE) { | ||||
| 			$this->session->set_flashdata('success', $this->lang->line('options_oqrs_options_have_been_saved')); | ||||
| 		} | ||||
|  |  | |||
|  | @ -49,6 +49,15 @@ | |||
|                             <small id="groupedSearchHelp" class="form-text text-muted"><?php echo lang('options_when_this_is_on_all_station_locations_with_oqrs_active_will_be_searched_at_once'); ?></small>
 | ||||
|                         </div> | ||||
| 
 | ||||
|                         <div class="mb-3"> | ||||
|                             <label for="groupedSearchShowStationName"><?php echo lang('options_grouped_search_show_station_name'); ?></label>
 | ||||
|                             <select name="groupedSearchShowStationName" class="form-select" id="groupedSearchShowStationName"> | ||||
|                                 <option value="off" <?php if($this->optionslib->get_option('groupedSearchShowStationName') == "off") { echo "selected=\"selected\""; } ?>>Off</option>
 | ||||
|                                 <option value="on" <?php if($this->optionslib->get_option('groupedSearchShowStationName') == "on") { echo "selected=\"selected\""; } ?>>On</option>
 | ||||
|                             </select> | ||||
|                             <small id="groupedSearchShowStationNameHelp" class="form-text text-muted"><?php echo lang('options_grouped_search_show_station_name_hint'); ?></small>
 | ||||
|                         </div> | ||||
| 
 | ||||
|                         <!-- Save the Form --> | ||||
|                         <input class="btn btn-primary" type="submit" value="<?php echo lang('options_save'); ?>" /> | ||||
|                     </form> | ||||
|  |  | |||
|  | @ -10,6 +10,11 @@ The following QSO(s) were found. Please fill out the date and time and submit yo | |||
|             <th class="center"><span class="larger_font band">Band</th> | ||||
|             <th class="center">Mode</th> | ||||
|             <th class="center">Callsign</th> | ||||
|             <?php | ||||
|             $showStationName = $this->optionslib->get_option('groupedSearchShowStationName'); | ||||
|             if ($showStationName == 'on'): ?>
 | ||||
|                 <th class="center">Station Name</th> | ||||
|             <?php endif; ?>
 | ||||
|         </tr> | ||||
|     </thead> | ||||
|     <tbody> | ||||
|  | @ -23,6 +28,10 @@ The following QSO(s) were found. Please fill out the date and time and submit yo | |||
|                     echo '<td id="band">'. $qso->col_band .'</td>'; | ||||
|                     echo '<td id="mode">'; echo $qso->col_submode == null ? strtoupper($qso->col_mode) : strtoupper($qso->col_submode);  echo '</td>';       | ||||
|                     echo '<td>'. $qso->station_callsign .'</td>'; | ||||
|                     $showStationName = $this->optionslib->get_option('groupedSearchShowStationName'); | ||||
|                     if ($showStationName == 'on'): | ||||
|                         echo '<td>'. $qso->station_profile_name .'</td>'; | ||||
|                     endif; | ||||
|                 echo '</tr>'; | ||||
|             } | ||||
|         ?>
 | ||||
|  |  | |||
		Ładowanie…
	
		Reference in New Issue
	
	 HB9HIL
						HB9HIL