On /station/ next to each profile it gives a QSO count.
这个提交包含在:
父节点
c6d6058043
当前提交
ecd7f7f6ac
共有 2 个文件被更改,包括 8 次插入 和 1 次删除
|
|
@ -9,7 +9,12 @@ class Stations extends CI_Model {
|
|||
}
|
||||
|
||||
function all() {
|
||||
return $this->db->get('station_profile');
|
||||
|
||||
$this->db->select('station_profile.*, count('.$this->config->item('table_name').'.station_id) as qso_total');
|
||||
$this->db->from('station_profile');
|
||||
$this->db->join($this->config->item('table_name'),'station_profile.station_id = '.$this->config->item('table_name').'.station_id','left');
|
||||
$this->db->group_by('station_profile.station_id');
|
||||
return $this->db->get();
|
||||
}
|
||||
|
||||
function profile($id) {
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@
|
|||
<th scope="col">SOTA</th>
|
||||
<th scope="col">CQ</th>
|
||||
<th scope="col">ITU</th>
|
||||
<th scope="col">QSO Count</th>
|
||||
<th></th>
|
||||
<th scope="col"></th>
|
||||
</tr>
|
||||
|
|
@ -58,6 +59,7 @@
|
|||
<td><?php echo $row->station_sota;?></td>
|
||||
<td><?php echo $row->station_cq;?></td>
|
||||
<td><?php echo $row->station_itu;?></td>
|
||||
<td><?php echo $row->qso_total;?></td>
|
||||
<td>
|
||||
<?php if($row->station_active != 1) { ?>
|
||||
<a href="<?php echo site_url('station/set_active/').$current_active."/".$row->station_id; ?>" class="btn btn-outline-secondary btn-sm 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>
|
||||
|
|
|
|||
正在加载…
在新工单中引用