Added Station-ID to label-qso-view

这个提交包含在:
int2001 2023-08-03 11:15:02 +00:00
父节点 3974fba6bb
当前提交 126d781baa
找不到此签名对应的密钥
GPG 密钥 ID: DFB1C13CD2DB037B
共有 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');
@ -28,10 +28,15 @@ class QSLPrint extends CI_Controller {
redirect('user/login');
}
$this->load->model('stations');
$data['station_id'] = $this->security->xss_clean($station_id);
$data['station_profile'] = $this->stations->all_of_user();
$this->load->model('qslprint_model');
$data['qsos'] = $this->qslprint_model->get_qsos_for_print();
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['page_title'] = "Print Requested QSLs";

查看文件

@ -131,7 +131,7 @@
echo '<td>' . $qso->station_profile_name . '</td>';
echo '<td>' . $qso->station_gridsquare . '</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 '</tr>';
} ?>

查看文件

@ -21,7 +21,7 @@
<select name="station_profile" class="station_id custom-select mb-3 mr-sm-3" style="width: 20%;">
<option value="All">All</option>
<?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 } ?>
</select>
</form>