Merge remote-tracking branch 'upstream/dev' into bootstrap_5
这个提交包含在:
当前提交
14dbea9398
共有 4 个文件被更改,包括 17 次插入 和 5 次删除
|
|
@ -14,11 +14,13 @@ class Components extends CI_Controller {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function index() {
|
public function index() {
|
||||||
|
$this->load->model('stations');
|
||||||
$url = 'https://oscarwatch.org/scripts/hamsat_json.php';
|
$url = 'https://oscarwatch.org/scripts/hamsat_json.php';
|
||||||
$json = file_get_contents($url);
|
$json = file_get_contents($url);
|
||||||
$data['rovedata'] = json_decode($json, true);
|
$data['rovedata'] = json_decode($json, true);
|
||||||
|
$data['gridsquare'] = strtoupper($this->stations->find_gridsquare());
|
||||||
|
|
||||||
// load view
|
// load view
|
||||||
$this->load->view('components/hamsat/table', $data);
|
$this->load->view('components/hamsat/table', $data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@
|
||||||
<th>Satellite</th>
|
<th>Satellite</th>
|
||||||
<th>Gridsquare(s)</th>
|
<th>Gridsquare(s)</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
@ -92,6 +93,15 @@
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
<td><a href="<?php echo $rove['track_link']; ?>" target="_blank">Track</a></td>
|
<td><a href="<?php echo $rove['track_link']; ?>" target="_blank">Track</a></td>
|
||||||
|
<?php
|
||||||
|
$sat = $rove['satellite'];
|
||||||
|
switch (strtoupper($rove['satellite'])) {
|
||||||
|
case "GREENCUBE":
|
||||||
|
$sat = 'IO-117';
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<td><a href="https://sat.fg8oj.com/sked.php?s%5B%5D=<?php echo $sat; ?>&l=<?php echo strtoupper($gridsquare); ?>&el1=0&l2=<?php echo $rove['gridsquare']; ?>&el2=0&duration=1&start=0&OK=Search" target="_blank">Sked</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div id="hamsat_display" hx-get="<?php echo site_url('components'); ?>" hx-trigger="load, every 60s"></div>
|
<div id="hamsat_display" hx-get="<?php echo site_url('components'); ?>" hx-trigger="load, every 60s"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -567,9 +567,9 @@ div#station_logbooks_linked_table_paginate {
|
||||||
margin-right: 30px;
|
margin-right: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sfletable {
|
.sfletable{
|
||||||
height: 470px;
|
height: 470px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sfletable table {
|
.sfletable table {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用