Bandplan used from database, cluster data moved to bottom menu

This commit is contained in:
Szymon Porwolik
2025-10-23 23:02:45 +02:00
parent d34ae84f87
commit 5d4bc31a65
5 changed files with 411 additions and 463 deletions

View File

@@ -51,7 +51,12 @@ class Band extends CI_Controller {
{
$this->load->model('bands');
$data = $this->bands->get_all_bandedges_for_user();
// Get region parameter from query string, default to 1 (IARU Region 1)
// Note: Region selection is not yet fully implemented in the code
$region = $this->input->get('region');
$region = is_numeric($region) ? (int)$region : 1;
$data = $this->bands->get_all_bandedges_for_user($region);
header('Content-Type: application/json');
echo json_encode($data);