@@ -6,18 +6,19 @@ function __construct() {
6
6
parent ::__construct ();
7
7
}
8
8
9
- public function index () {
9
+ public function index () {
10
10
$ data ['page_title ' ] = "Activated Gridsquare Map " ;
11
11
12
- $ this ->load ->model ('bands ' );
13
- $ this ->load ->model ('activated_gridmap_model ' );
12
+ $ this ->load ->model ('bands ' );
13
+ $ this ->load ->model ('activated_gridmap_model ' );
14
14
$ this ->load ->model ('stations ' );
15
15
16
16
$ data ['visitor ' ] = false ;
17
17
$ data ['homegrid ' ] = explode (', ' , $ this ->stations ->find_gridsquare ());
18
18
19
19
$ data ['modes ' ] = $ this ->activated_gridmap_model ->get_worked_modes ();
20
20
$ data ['bands ' ] = $ this ->bands ->get_worked_bands ();
21
+ $ data ['orbits ' ] = $ this ->bands ->get_worked_orbits ();
21
22
$ data ['sats_available ' ] = $ this ->bands ->get_worked_sats ();
22
23
23
24
$ data ['user_default_band ' ] = $ this ->session ->userdata ('user_default_band ' );
@@ -32,7 +33,7 @@ public function index() {
32
33
$ data ['gridsquares_gridsquares_not_confirmed ' ] = lang ('gridsquares_gridsquares_not_confirmed ' );
33
34
$ data ['gridsquares_gridsquares_total_activated ' ] = lang ('gridsquares_gridsquares_total_activated ' );
34
35
35
- $ footerData = [];
36
+ $ footerData = [];
36
37
$ footerData ['scripts ' ] = [
37
38
'assets/js/leaflet/geocoding.js ' ,
38
39
'assets/js/leaflet/L.MaidenheadColouredGridMap.js ' ,
@@ -45,13 +46,14 @@ public function index() {
45
46
}
46
47
47
48
public function getGridsjs () {
48
- $ band = $ this ->security ->xss_clean ($ this ->input ->post ('band ' ));
49
- $ mode = $ this ->security ->xss_clean ($ this ->input ->post ('mode ' ));
50
- $ qsl = $ this ->security ->xss_clean ($ this ->input ->post ('qsl ' ));
51
- $ lotw = $ this ->security ->xss_clean ($ this ->input ->post ('lotw ' ));
52
- $ eqsl = $ this ->security ->xss_clean ($ this ->input ->post ('eqsl ' ));
53
- $ qrz = $ this ->security ->xss_clean ($ this ->input ->post ('qrz ' ));
49
+ $ band = $ this ->security ->xss_clean ($ this ->input ->post ('band ' ));
50
+ $ mode = $ this ->security ->xss_clean ($ this ->input ->post ('mode ' ));
51
+ $ qsl = $ this ->security ->xss_clean ($ this ->input ->post ('qsl ' ));
52
+ $ lotw = $ this ->security ->xss_clean ($ this ->input ->post ('lotw ' ));
53
+ $ eqsl = $ this ->security ->xss_clean ($ this ->input ->post ('eqsl ' ));
54
+ $ qrz = $ this ->security ->xss_clean ($ this ->input ->post ('qrz ' ));
54
55
$ sat = $ this ->security ->xss_clean ($ this ->input ->post ('sat ' ));
56
+ $ orbit = $ this ->security ->xss_clean ($ this ->input ->post ('orbit ' ));
55
57
$ this ->load ->model ('activated_gridmap_model ' );
56
58
57
59
$ array_grid_2char = array ();
@@ -70,7 +72,7 @@ public function getGridsjs() {
70
72
$ grid_4char_confirmed = "" ;
71
73
$ grid_6char_confirmed = "" ;
72
74
73
- $ query = $ this ->activated_gridmap_model ->get_band_confirmed ($ band , $ mode , $ qsl , $ lotw , $ eqsl , $ qrz , $ sat );
75
+ $ query = $ this ->activated_gridmap_model ->get_band_confirmed ($ band , $ mode , $ qsl , $ lotw , $ eqsl , $ qrz , $ sat, $ orbit );
74
76
75
77
if ($ query && $ query ->num_rows () > 0 ) {
76
78
foreach ($ query ->result () as $ row ) {
@@ -100,7 +102,7 @@ public function getGridsjs() {
100
102
}
101
103
}
102
104
103
- $ query = $ this ->activated_gridmap_model ->get_band ($ band , $ mode , $ qsl , $ lotw , $ eqsl , $ qrz , $ sat );
105
+ $ query = $ this ->activated_gridmap_model ->get_band ($ band , $ mode , $ qsl , $ lotw , $ eqsl , $ qrz , $ sat, $ orbit );
104
106
105
107
if ($ query && $ query ->num_rows () > 0 ) {
106
108
foreach ($ query ->result () as $ row ) {
@@ -130,7 +132,7 @@ public function getGridsjs() {
130
132
}
131
133
}
132
134
}
133
- $ query_vucc = $ this ->activated_gridmap_model ->get_band_worked_vucc_squares ($ band , $ mode , $ qsl , $ lotw , $ eqsl , $ qrz , $ sat );
135
+ $ query_vucc = $ this ->activated_gridmap_model ->get_band_worked_vucc_squares ($ band , $ mode , $ qsl , $ lotw , $ eqsl , $ qrz , $ sat, $ orbit );
134
136
135
137
if ($ query_vucc && $ query_vucc ->num_rows () > 0 ) {
136
138
foreach ($ query_vucc ->result () as $ row ) {
@@ -155,7 +157,7 @@ public function getGridsjs() {
155
157
}
156
158
157
159
// // Confirmed Squares
158
- $ query_vucc = $ this ->activated_gridmap_model ->get_band_confirmed_vucc_squares ($ band , $ mode , $ qsl , $ lotw , $ eqsl , $ qrz , $ sat );
160
+ $ query_vucc = $ this ->activated_gridmap_model ->get_band_confirmed_vucc_squares ($ band , $ mode , $ qsl , $ lotw , $ eqsl , $ qrz , $ sat, $ orbit );
159
161
160
162
if ($ query_vucc && $ query_vucc ->num_rows () > 0 ) {
161
163
foreach ($ query_vucc ->result () as $ row ) {
@@ -179,15 +181,15 @@ public function getGridsjs() {
179
181
}
180
182
}
181
183
182
- $ data ['grid_2char_confirmed ' ] = ($ array_grid_2char_confirmed );
184
+ $ data ['grid_2char_confirmed ' ] = ($ array_grid_2char_confirmed );
183
185
$ data ['grid_4char_confirmed ' ] = ($ array_grid_4char_confirmed );
184
186
$ data ['grid_6char_confirmed ' ] = ($ array_grid_6char_confirmed );
185
187
186
188
$ data ['grid_2char ' ] = ($ array_grid_2char );
187
189
$ data ['grid_4char ' ] = ($ array_grid_4char );
188
190
$ data ['grid_6char ' ] = ($ array_grid_6char );
189
191
190
- header ('Content-Type: application/json ' );
191
- echo json_encode ($ data );
192
- }
192
+ header ('Content-Type: application/json ' );
193
+ echo json_encode ($ data );
194
+ }
193
195
}
0 commit comments