Commit graph

31 commits

Author SHA1 Message Date
ceba
6e40e11fda Add comments for Jcc_model and awards_helper
Signed-off-by: ceba <ceba_robot@outlook.com>
2026-03-28 21:52:20 +08:00
ceba
88076832d4 Improve some query in JCC model
Signed-off-by: ceba <ceba_robot@outlook.com>
2026-03-28 21:52:20 +08:00
ceba
90f3585db4 Refactor export confirmed QSOs for JCC award
This patch introduces a new query which can export all confirmed QSOs
for JCC award. It reuse some existing SQL logic of entity_status.

This new query addresses the issue of 1+N query and is expected to be
much faster.

Signed-off-by: ceba <ceba_robot@outlook.com>
2026-03-28 21:42:55 +08:00
ceba
24ce490d0b Standardize the postdata generation for JCC award
This solves the strange problem of some parameters not taking effect.

Signed-off-by: ceba <ceba_robot@outlook.com>
2026-03-28 21:42:55 +08:00
ceba
e679812276 Fix problems that missing sat when single band
Signed-off-by: ceba <ceba_robot@outlook.com>
2026-03-28 21:42:55 +08:00
ceba
182dcbc717 Refactor JCC sumary and map to use new query
This patch refactors the JCC summary and map generation in Jcc_model
to use the new entity_status query. Now all the JCC infomation relys on
a single query, which should be more efficient and easier to maintain.

Signed-off-by: ceba <ceba_robot@outlook.com>
2026-03-28 21:42:54 +08:00
ceba
10ee8a5da7 Refactor JCC array generation to use new query
This patch refactors the JCC array generation to use the new entity_status
query. Now only one query is needed to get all the necessary information
for the array(table).

This patch also remove the HTML generation from the model. The link will
be generated in the view using a helper function in future commits.

Signed-off-by: ceba <ceba_robot@outlook.com>
2026-03-28 21:42:54 +08:00
ceba
6e756d7935 Refactor entity_status query in Jcc_model
This patch refactors the entity_status query, which will be the basement
of array, summary and map generation.

Signed-off-by: ceba <ceba_robot@outlook.com>
2026-03-28 21:42:54 +08:00
ceba
2f6216d21d Move JCC data from php array to json
It's not a good idea to maintain a huge data array in PHP models. This
patches moves the data to a separate JSON file.

Thanks to this change, the frontend JS could directly access the JSON
file, rather than asks PHP to generate them.

Signed-off-by: ceba <ceba_robot@outlook.com>
2026-03-28 16:04:59 +08:00
ceba
46914cdf0c Remove nonused function in Jcc_model
Signed-off-by: ceba <ceba_robot@outlook.com>
2026-03-28 15:39:07 +08:00
Florian (DF2ET)
c2f98f18fb
Add theme for color impaired hams (based on default) (#2497) 2025-11-16 13:58:58 +01:00
int2001
06e042c2cf
Changed JCC to binding 2024-09-06 12:06:11 +00:00
int2001
354391b027
Restore old counting (SAT not counted in summary but at band) 2024-05-27 14:09:44 +00:00
int2001
b37f595edc
Added CL to JCC and fixed bug where map differs from summary 2024-05-27 10:06:36 +00:00
phl0
98a7d25b81
Fix export function 2024-04-29 19:52:55 +02:00
phl0
96bc3ffa3d
Use one list for JCCs only 2024-04-29 19:42:20 +02:00
phl0
0a15f3575b
Function to show wkd/cnfm/not wkd 2024-04-29 16:58:10 +02:00
phl0
91904cb9d4
Add sort order any also make it filterable by band/mode 2024-04-25 13:51:25 +02:00
phl0
adbfaab361
Add prop_mode if set 2024-04-25 07:46:31 +02:00
phl0
1146beabf0
Refactor model loading 2024-04-25 07:41:50 +02:00
phl0
d30e782083
Revert "Refactor model loading"
This reverts commit 0ace9a48d1.
2024-04-25 07:39:07 +02:00
phl0
0ace9a48d1
Refactor model loading 2024-04-25 07:37:18 +02:00
phl0
4761b935ee
Add JCC names to export 2024-04-25 07:34:56 +02:00
phl0
9f4f5810b9
Bassic export function working 2024-04-25 00:27:49 +02:00
phl0
9e91f6f9c6
Raw function body in model 2024-04-24 22:42:11 +02:00
phl0
16148d22d7
Temporary fix for all other awards 2024-04-14 13:58:23 +02:00
phl0
2542f4ceca
Catch empty JCC bands 2024-04-08 15:40:48 +02:00
phl0
580cfbfa71
Remove non-existent functions 2024-02-26 16:46:35 +01:00
phl0
d2178a5e44
Simplify code (remove redundant list of IDs) 2024-02-26 15:16:11 +01:00
phl0
9e73d80eb4
Only 6-digits starting with 10 are valid for JCC 2024-02-26 15:14:34 +01:00
phl0
f95cf41dea
Rename JCC model 2024-02-24 16:30:53 +01:00
Renamed from application/models/Jcc.php (Browse further)