Use last worked sat for preset of flightpath selected satellite

This commit is contained in:
phl0
2025-03-21 14:49:06 +01:00
parent 00e436157a
commit f1f24ee169
3 changed files with 19 additions and 4 deletions

View File

@@ -192,6 +192,7 @@ class Satellite extends CI_Controller {
$this->load->model('stations');
$pageData['satellites'] = $this->satellite_model->get_all_satellites_with_tle();
$data['lastworkedsat'] = $this->satellite_model->get_last_worked_sat();
$footerData = [];
$footerData['scripts'] = [
@@ -207,11 +208,10 @@ class Satellite extends CI_Controller {
$this->load->library('Qra');
$pageData['latlng'] = $this->qra->qra2latlong($homegrid[0]);
$data['selsat']=strtoupper($sat ?? '');
// Render Page
$pageData['page_title'] = "Satellite Flightpath";
$this->load->view('interface_assets/header', $pageData);
$this->load->view('satellite/flightpath',$data);
$this->load->view('satellite/flightpath', $data);
$this->load->view('interface_assets/footer', $footerData);
}