Show radio info updated every 5mins on public display
这个提交包含在:
父节点
857f8b2485
当前提交
33edeb7d72
共有 2 个文件被更改,包括 8 次插入 和 3 次删除
|
|
@ -74,8 +74,6 @@ class Visitor extends CI_Controller {
|
|||
|
||||
$this->load->model('cat');
|
||||
|
||||
$data['radio_status'] = $this->cat->recent_status();
|
||||
|
||||
// Store info
|
||||
$data['todays_qsos'] = $this->logbook_model->todays_qsos($logbooks_locations_array);
|
||||
$data['total_qsos'] = $this->logbook_model->total_qsos($logbooks_locations_array);
|
||||
|
|
@ -442,4 +440,11 @@ class Visitor extends CI_Controller {
|
|||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function radio_display_component() {
|
||||
$this->load->model('cat');
|
||||
|
||||
$data['radio_status'] = $this->cat->recent_status();
|
||||
$this->load->view('components/radio_display_table', $data);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -161,7 +161,7 @@ function echoQrbCalcLink($mygrid, $grid, $vucc) {
|
|||
<div class="table-responsive">
|
||||
|
||||
|
||||
<div id="radio_display" hx-get="<?php echo site_url('dashboard/radio_display_component'); ?>" hx-trigger="load, every 5s"></div>
|
||||
<div id="radio_display" hx-get="<?php echo site_url('visitor/radio_display_component'); ?>" hx-trigger="load, every 5s"></div>
|
||||
|
||||
<table class="table table-striped">
|
||||
<tr class="titles">
|
||||
|
|
|
|||
正在加载…
在新工单中引用