This commit introduces a new feature for managing participant status within the mobile registration interface. It includes updates to the PHP functions for handling status changes, new JavaScript for dynamic updates, and corresponding CSS styles for improved layout. The version code is incremented to 4.72.673 to reflect these enhancements, further optimizing the user experience in managing participant registrations.
33 lines
2.5 KiB
SQL
33 lines
2.5 KiB
SQL
-- Inscriptions mobile — statut coureur (colonne + choix info)
|
|
|
|
ALTER TABLE resultats_participants
|
|
ADD COLUMN par_statut_course VARCHAR(20) NOT NULL DEFAULT 'CONF' AFTER no_bib_remis_par;
|
|
|
|
UPDATE resultats_participants SET par_statut_course = 'CONF' WHERE par_statut_course = '' OR par_statut_course IS NULL;
|
|
|
|
DELETE FROM info WHERE info_clef = 'inscr_statut_course' AND info_prg = 'compte.php';
|
|
|
|
INSERT INTO info (info_clef, info_langue, info_texte, info_aide, info_prg, info_description, info_trie, info_actif, info_option1, info_option2, info_option3, info_creation) VALUES
|
|
('inscr_statut_course', 'fr', 'Statut du coureur', '', 'compte.php', 'radio', 0, 1, '', 'par_statut_course', '', NOW()),
|
|
('inscr_statut_course', 'en', 'Runner status', '', 'compte.php', 'radio', 0, 1, '', 'par_statut_course', '', NOW()),
|
|
('inscr_statut_course', 'fr', 'Confirmé', '', 'compte.php', 'opt', 1, 1, '', 'CONF', '', NOW()),
|
|
('inscr_statut_course', 'en', 'Confirmed', '', 'compte.php', 'opt', 1, 1, '', 'CONF', '', NOW()),
|
|
('inscr_statut_course', 'fr', 'Disqualifié', '', 'compte.php', 'opt', 2, 1, '', 'DQ', '', NOW()),
|
|
('inscr_statut_course', 'en', 'Disqualified', '', 'compte.php', 'opt', 2, 1, '', 'DQ', '', NOW()),
|
|
('inscr_statut_course', 'fr', 'Non partant', '', 'compte.php', 'opt', 3, 1, '', 'NP', '', NOW()),
|
|
('inscr_statut_course', 'en', 'Non starter', '', 'compte.php', 'opt', 3, 1, '', 'NP', '', NOW()),
|
|
('inscr_statut_course', 'fr', 'Did Not Start', '', 'compte.php', 'opt', 4, 1, '', 'DNS', '', NOW()),
|
|
('inscr_statut_course', 'en', 'Did Not Start', '', 'compte.php', 'opt', 4, 1, '', 'DNS', '', NOW()),
|
|
('inscr_statut_course', 'fr', 'Abandon', '', 'compte.php', 'opt', 5, 1, '', 'ABANDON', '', NOW()),
|
|
('inscr_statut_course', 'en', 'Abandon', '', 'compte.php', 'opt', 5, 1, '', 'ABANDON', '', NOW()),
|
|
('inscr_statut_course', 'fr', 'Unranked', '', 'compte.php', 'opt', 6, 1, '', 'UNRANKED', '', NOW()),
|
|
('inscr_statut_course', 'en', 'Unranked', '', 'compte.php', 'opt', 6, 1, '', 'UNRANKED', '', NOW()),
|
|
('inscr_statut_course', 'fr', 'Deferred', '', 'compte.php', 'opt', 7, 1, '', 'DEFERRED', '', NOW()),
|
|
('inscr_statut_course', 'en', 'Deferred', '', 'compte.php', 'opt', 7, 1, '', 'DEFERRED', '', NOW());
|
|
|
|
DELETE FROM info WHERE info_clef = 'inscr_mobile_statut_soon' AND info_prg = 'compte.php';
|
|
|
|
-- Si la colonne existait déjà avec DEFAULT '' :
|
|
-- ALTER TABLE resultats_participants MODIFY COLUMN par_statut_course VARCHAR(20) NOT NULL DEFAULT 'CONF';
|
|
-- UPDATE resultats_participants SET par_statut_course = 'CONF' WHERE par_statut_course = '' OR par_statut_course IS NULL;
|