Added Station-ID to label-qso-view
这个提交包含在:
		
							父节点
							
								
									3974fba6bb
								
							
						
					
					
						当前提交
						126d781baa
					
				
					共有  3 个文件被更改,包括 10 次插入 和 5 次删除
				
			
		|  | @ -17,7 +17,7 @@ class QSLPrint extends CI_Controller { | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	public function index() | 	public function index($station_id = 'All') | ||||||
| 	{ | 	{ | ||||||
| 		$this->load->model('user_model'); | 		$this->load->model('user_model'); | ||||||
| 
 | 
 | ||||||
|  | @ -28,10 +28,15 @@ class QSLPrint extends CI_Controller { | ||||||
| 			redirect('user/login'); | 			redirect('user/login'); | ||||||
| 		} | 		} | ||||||
| 		$this->load->model('stations'); | 		$this->load->model('stations'); | ||||||
|  | 		$data['station_id'] = $this->security->xss_clean($station_id); | ||||||
| 		$data['station_profile'] = $this->stations->all_of_user(); | 		$data['station_profile'] = $this->stations->all_of_user(); | ||||||
| 
 | 
 | ||||||
| 		$this->load->model('qslprint_model'); | 		$this->load->model('qslprint_model'); | ||||||
|  | 		if ( ($station_id != 'All') && ($this->stations->check_station_is_accessible($station_id)) ) { | ||||||
|  | 			$data['qsos'] = $this->qslprint_model->get_qsos_for_print($station_id); | ||||||
|  | 		} else { | ||||||
| 			$data['qsos'] = $this->qslprint_model->get_qsos_for_print(); | 			$data['qsos'] = $this->qslprint_model->get_qsos_for_print(); | ||||||
|  | 		} | ||||||
| 
 | 
 | ||||||
| 		$data['page_title'] = "Print Requested QSLs"; | 		$data['page_title'] = "Print Requested QSLs"; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -131,7 +131,7 @@ | ||||||
| 						echo '<td>' . $qso->station_profile_name . '</td>'; | 						echo '<td>' . $qso->station_profile_name . '</td>'; | ||||||
| 						echo '<td>' . $qso->station_gridsquare . '</td>'; | 						echo '<td>' . $qso->station_gridsquare . '</td>'; | ||||||
| 						echo '<td>' . $qso->count . '</td>'; | 						echo '<td>' . $qso->count . '</td>'; | ||||||
| 						echo '<td><a href="'. site_url('qslprint') . '" class="btn btn-outline-info btn-sm"><i class="fas fa-search"></i></a></td>'; | 						echo '<td><a href="'. site_url('qslprint') . '/index/'.$qso->station_id.'" class="btn btn-outline-info btn-sm"><i class="fas fa-search"></i></a></td>'; | ||||||
| 						echo '<td><button class="btn btn-outline-success btn-sm printbutton" onclick="printat('.$qso->station_id.')"><i class="fas fa-print"></i></button></td>'; | 						echo '<td><button class="btn btn-outline-success btn-sm printbutton" onclick="printat('.$qso->station_id.')"><i class="fas fa-print"></i></button></td>'; | ||||||
| 						echo '</tr>'; | 						echo '</tr>'; | ||||||
| 					} ?>
 | 					} ?>
 | ||||||
|  |  | ||||||
|  | @ -21,7 +21,7 @@ | ||||||
| 				<select name="station_profile" class="station_id custom-select mb-3 mr-sm-3" style="width: 20%;"> | 				<select name="station_profile" class="station_id custom-select mb-3 mr-sm-3" style="width: 20%;"> | ||||||
| 					<option value="All">All</option> | 					<option value="All">All</option> | ||||||
| 					<?php foreach ($station_profile->result() as $station) { ?>
 | 					<?php foreach ($station_profile->result() as $station) { ?>
 | ||||||
| 						<option value="<?php echo $station->station_id; ?>">Callsign: <?php echo $station->station_callsign; ?> (<?php echo $station->station_profile_name; ?>)</option>
 | 						<option <?php if ($station->station_id == $station_id) { echo "selected "; } ?>value="<?php echo $station->station_id; ?>">Callsign: <?php echo $station->station_callsign; ?> (<?php echo $station->station_profile_name; ?>)</option>
 | ||||||
| 					<?php } ?>
 | 					<?php } ?>
 | ||||||
| 				</select> | 				</select> | ||||||
| 			</form> | 			</form> | ||||||
|  |  | ||||||
		正在加载…
	
		在新工单中引用