Version 22.107.13:May 07, 2023 Changes in edition of exam sessions.

This commit is contained in:
acanas 2023-05-07 23:46:53 +02:00
parent 0530aa5ac7
commit d084861e52
4 changed files with 119 additions and 89 deletions

View File

@ -629,10 +629,12 @@ TODO: Emilce Barrera Mesa: Podr
TODO: Emilce Barrera Mesa: Mis estudiantes presentan muchas dificultades a la hora de poner la foto porque la plataforma es muy exigente respecto al fondo de la imagen.
*/
#define Log_PLATFORM_VERSION "SWAD 22.107.11 (2023-05-07)"
#define Log_PLATFORM_VERSION "SWAD 22.107.13 (2023-05-07)"
#define CSS_FILE "swad22.107.css"
#define JS_FILE "swad22.49.js"
/*
Version 22.107.13:May 07, 2023 Changes in edition of exam sessions. (337957 lines)
Version 22.107.12:May 07, 2023 Changes in edition of rubrics. (337930 lines)
Version 22.107.11:May 07, 2023 Changes in edition of surveys. (337952 lines)
Version 22.107.10:May 07, 2023 Changes in edition of projects. (337973 lines)
Version 22.107.9: May 07, 2023 Changes in edition of rubric criterions. (338015 lines)

View File

@ -959,10 +959,9 @@ void ExaSes_GetAndCheckPars (struct Exa_Exams *Exams,
static void ExaSes_PutFormSession (const struct ExaSes_Session *Session)
{
extern const char *Hlp_ASSESSMENT_Exams_sessions;
extern const char *Txt_Session;
extern const char *Txt_Actions[ActLst_NUM_ACTIONS];
extern const char *Txt_Title;
extern const char *Txt_Create_session;
extern const char *Txt_Create;
extern const char *Txt_Save_changes;
static const Dat_SetHMS SetHMS[Dat_NUM_START_END_TIME] =
{
@ -970,56 +969,62 @@ static void ExaSes_PutFormSession (const struct ExaSes_Session *Session)
[Dat_END_TIME] = Dat_HMS_DO_NOT_SET
};
bool ItsANewSession = Session->SesCod <= 0;
Act_Action_t NextAction = ItsANewSession ? ActNewExaSes :
ActChgExaSes;
/***** Begin section for a new exam session *****/
HTM_SECTION_Begin (ExaSes_NEW_SESSION_SECTION_ID);
/***** Begin form *****/
Frm_BeginForm (ItsANewSession ? ActNewExaSes : // New session
ActChgExaSes); // Existing session
ParCod_PutPar (ParCod_Exa,Session->ExaCod);
if (!ItsANewSession) // Existing session
ParCod_PutPar (ParCod_Ses,Session->SesCod);
/***** Begin fieldset *****/
HTM_FIELDSET_Begin (NULL);
HTM_LEGEND (Txt_Actions[NextAction]);
/***** Begin box and table *****/
Box_BoxTableBegin (NULL,ItsANewSession ? Txt_Session :
Session->Title,
NULL,NULL,
Hlp_ASSESSMENT_Exams_sessions,Box_NOT_CLOSABLE,2);
/***** Begin form *****/
Frm_BeginForm (NextAction);
ParCod_PutPar (ParCod_Exa,Session->ExaCod);
if (!ItsANewSession) // Existing session
ParCod_PutPar (ParCod_Ses,Session->SesCod);
/***** Session title *****/
HTM_TR_Begin (NULL);
/***** Begin table *****/
HTM_TABLE_BeginWidePadding (2);
/* Label */
Frm_LabelColumn ("RT","Title",Txt_Title);
/***** Session title *****/
HTM_TR_Begin (NULL);
/* Data */
HTM_TD_Begin ("class=\"LT\"");
HTM_INPUT_TEXT ("Title",ExaSes_MAX_CHARS_TITLE,Session->Title,
HTM_DONT_SUBMIT_ON_CHANGE,
"id=\"Title\" size=\"45\" class=\"INPUT_%s\""
" required=\"required\"",
The_GetSuffix ());
HTM_TD_End ();
/* Label */
Frm_LabelColumn ("RT","Title",Txt_Title);
HTM_TR_End ();
/* Data */
HTM_TD_Begin ("class=\"LT\"");
HTM_INPUT_TEXT ("Title",ExaSes_MAX_CHARS_TITLE,Session->Title,
HTM_DONT_SUBMIT_ON_CHANGE,
"id=\"Title\" size=\"45\" class=\"INPUT_%s\""
" required=\"required\"",
The_GetSuffix ());
HTM_TD_End ();
/***** Start and end dates *****/
Dat_PutFormStartEndClientLocalDateTimes (Session->TimeUTC,
Dat_FORM_SECONDS_OFF,
SetHMS);
HTM_TR_End ();
/***** Groups *****/
ExaSes_ShowLstGrpsToCreateSession (Session->SesCod);
/***** Start and end dates *****/
Dat_PutFormStartEndClientLocalDateTimes (Session->TimeUTC,
Dat_FORM_SECONDS_OFF,
SetHMS);
/***** End table, send button and end box *****/
if (ItsANewSession)
Box_BoxTableWithButtonEnd (Btn_CREATE_BUTTON,Txt_Create_session);
else
Box_BoxTableWithButtonEnd (Btn_CONFIRM_BUTTON,Txt_Save_changes);
/***** Groups *****/
ExaSes_ShowLstGrpsToCreateSession (Session->SesCod);
/***** End form *****/
Frm_EndForm ();
/***** End table and send button *****/
HTM_TABLE_End ();
if (ItsANewSession)
Btn_PutButton (Btn_CREATE_BUTTON,Txt_Create);
else
Btn_PutButton (Btn_CONFIRM_BUTTON,Txt_Save_changes);
/***** End form *****/
Frm_EndForm ();
/***** End fieldset *****/
HTM_FIELDSET_End ();
/***** End section for a new exam session *****/
HTM_SECTION_End ();
@ -1139,8 +1144,8 @@ void ExaSes_ReqCreatOrEditSes (void)
void ExaSes_ReceiveFormSession (void)
{
extern const char *Txt_Created_new_event_X;
extern const char *Txt_The_event_has_been_modified;
extern const char *Txt_Created_new_session_X;
extern const char *Txt_The_session_has_been_modified;
struct Exa_Exams Exams;
struct ExaSes_Session Session;
bool ItsANewSession;
@ -1203,10 +1208,10 @@ void ExaSes_ReceiveFormSession (void)
/***** Write success message *****/
if (ItsANewSession)
Ale_ShowAlert (Ale_SUCCESS,Txt_Created_new_event_X,
Ale_ShowAlert (Ale_SUCCESS,Txt_Created_new_session_X,
Session.Title);
else
Ale_ShowAlert (Ale_SUCCESS,Txt_The_event_has_been_modified);
Ale_ShowAlert (Ale_SUCCESS,Txt_The_session_has_been_modified);
/***** Get exam data again to update it after changes in session *****/
Exa_GetExamDataByCod (&Exams.Exam);

View File

@ -7262,29 +7262,6 @@ const char *Txt_Create_room =
"Create room"; // Çeviri lazim!
#endif
const char *Txt_Create_session =
#if L==1 // ca
"Crear sessi&oacute;";
#elif L==2 // de
"Sitzung erstellen";
#elif L==3 // en
"Create session";
#elif L==4 // es
"Crear sesi&oacute;n";
#elif L==5 // fr
"Cr&eacute;er session";
#elif L==6 // gn
"Crear sesi&oacute;n"; // Okoteve traducción
#elif L==7 // it
"Crea sessione";
#elif L==8 // pl
"Utw&oacute;rz sesji";
#elif L==9 // pt
"Criar sess&atilde;o";
#elif L==10 // tr
"Create session"; // Çeviri lazim!
#endif
const char *Txt_Create_type_of_degree =
#if L==1 // ca
"Crear tipus de titulaci&oacute;";
@ -7632,7 +7609,7 @@ const char *Txt_Created_new_event_X = // Warning: it is very important to includ
const char *Txt_Created_new_exam_X = // Warning: it is very important to include %s in the following sentences
#if L==1 // ca
"reat nou examen <strong>%s</strong>.";
"Creat nou examen <strong>%s</strong>.";
#elif L==2 // de
"Neues Pr&uuml;fung <strong>%s</strong> eingegeben.";
#elif L==3 // en
@ -7906,6 +7883,29 @@ const char *Txt_Created_new_rubric_X = // Warning: it is very important to inclu
"Yeni de&gbreve;erlendirme listesi <strong>%s</strong> olu&scedil;turuldu.";
#endif
const char *Txt_Created_new_session_X = // Warning: it is very important to include %s in the following sentences
#if L==1 // ca
"Creat nova sessi&oacute; <strong>%s</strong>.";
#elif L==2 // de
"Neue Sitzung <strong>%s</strong> eingegeben.";
#elif L==3 // en
"Created new session <strong>%s</strong>.";
#elif L==4 // es
"Creada nueva sesi&oacute;n <strong>%s</strong>.";
#elif L==5 // fr
"Cr&eacute;&eacute;e nouvelle session <strong>%s</strong>.";
#elif L==6 // gn
"Ojejapo sesi&oacute;n pyahu <strong>%s</strong>.";
#elif L==7 // it
"Creata nuova sessione <strong>%s</strong>.";
#elif L==8 // pl
"Utworzono now&aogon; sesj&eogon; <strong>%s</strong>.";
#elif L==9 // pt
"Criada nova sess&atilde;o <strong>%s</strong>.";
#elif L==10 // tr
"Yeni oturum <strong>%s</strong> olu&scedil;turuldu.";
#endif
const char *Txt_Created_new_set_of_questions_X = // Warning: it is very important to include %s in the following sentences
#if L==1 // ca
"Creat nou conjunt de preguntes <strong>%s</strong>.";
@ -51867,7 +51867,7 @@ const char *Txt_The_rubric_has_been_modified =
#elif L==5 // fr
"La rubrique a &eacute;t&eacute; modifi&eacute;e.";
#elif L==6 // gn
"La r&uacute;brica ha sido modificada."; // Okoteve traducción
"O&ntilde;emoambue pe r&uacute;brica.";
#elif L==7 // it
"La rubrica &egrave; stata modificata.";
#elif L==8 // pl
@ -51934,6 +51934,29 @@ const char *Txt_The_search_text_must_be_longer =
"The search text must be longer."; // Çeviri lazim!
#endif
const char *Txt_The_session_has_been_modified =
#if L==1 // ca
"La sessi&oacute; ha estat modificada.";
#elif L==2 // de
"Die Sitzung wurde ge&auml;ndert.";
#elif L==3 // en
"The session has been modified.";
#elif L==4 // es
"La sesi&oacute;n ha sido modificada.";
#elif L==5 // fr
"La session a &eacute;t&eacute; modifi&eacute;e.";
#elif L==6 // gn
"O&ntilde;emoambue pe sesi&oacute;n.";
#elif L==7 // it
"La sessione &egrave; stata modificata.";
#elif L==8 // pl
"Sesja zosta&lstrok;a zmieniona.";
#elif L==9 // pt
"A sess&atilde;o foi modificada.";
#elif L==10 // tr
"Oturum de&gbreve;i&scedil;tirildi.";
#endif
const char *Txt_The_session_has_expired =
#if L==1 // ca
"La sessi&oacute; ha expirat.";
@ -51954,7 +51977,7 @@ const char *Txt_The_session_has_expired =
#elif L==9 // pt
"A sess&atilde;o expirou.";
#elif L==10 // tr
"The session has expired."; // Çeviri lazim!
"Oturumun s&uuml;resi doldu."; // Çeviri lazim!
#endif
/*
const char *Txt_The_set_of_questions_has_been_modified =

View File

@ -12438,48 +12438,48 @@ const char *Txt_Actions[ActLst_NUM_ACTIONS] =
,
[ActNewExaSes] =
#if L==1 // ca
"Create new exam session" // Necessita traducció
"Crear sessi&oacute; d'examen"
#elif L==2 // de
"Create new exam session" // Need Übersetzung
"Pr&uuml;fungssitzung erstellen"
#elif L==3 // en
"Create new exam session"
"Create exam session"
#elif L==4 // es
"Crear nueva sesi&oacute;n de examen"
"Crear sesi&oacute;n de examen"
#elif L==5 // fr
"Create new exam session" // Besoin de traduction
"Cr&eacute;er session d'examen"
#elif L==6 // gn
"Crear nueva sesi&oacute;n de examen" // Okoteve traducción
"Omohe&ntilde;&oacute;i sesi&oacute;n de examen"
#elif L==7 // it
"Create new exam session" // Bisogno di traduzione
"Crea sessione d'esame"
#elif L==8 // pl
"Create new exam session" // Potrzebujesz tlumaczenie
"Utw&oacute;rz sesj&eogon; egzaminacyjn&aogon;"
#elif L==9 // pt
"Create new exam session" // Precisa de tradução
"Criar sess&atilde;o de exame"
#elif L==10 // tr
"Create new exam session" // Çeviri lazim!
"S&inodot;nav oturumu olu&scedil;tur"
#endif
,
[ActChgExaSes] =
#if L==1 // ca
"Change exam session" // Necessita traducció
"Canviar sessi&oacute; d'examen"
#elif L==2 // de
"Change exam session" // Need Übersetzung
"Pr&uuml;fungssitzung &auml;ndern"
#elif L==3 // en
"Change exam session"
#elif L==4 // es
"Cambiar sesi&oacute;n de examen"
#elif L==5 // fr
"Change exam session" // Besoin de traduction
"Modifier session d'examen"
#elif L==6 // gn
"Cambiar sesi&oacute;n de examen" // Okoteve traducción
"Omoambue sesi&oacute;n de examen"
#elif L==7 // it
"Change exam session" // Bisogno di traduzione
"Cambia sessione d'esame"
#elif L==8 // pl
"Change exam session" // Potrzebujesz tlumaczenie
"Zmieni&cacute; sesj&eogon; egzaminacyjn&aogon;"
#elif L==9 // pt
"Change exam session" // Precisa de tradução
"Alterar sess&atilde;o de exame"
#elif L==10 // tr
"Change exam session" // Çeviri lazim!
"S&inodot;nav oturumu de&gbreve;i&scedil;tir"
#endif
,
[ActReqRemExaSes] =