Version19.248.2

This commit is contained in:
acanas 2020-05-30 20:03:00 +02:00
parent 2e30c73367
commit 1ae290a24a
3 changed files with 33 additions and 2 deletions

View File

@ -556,10 +556,11 @@ enscript -2 --landscape --color --file-align=2 --highlight --line-numbers -o - *
En OpenSWAD:
ps2pdf source.ps destination.pdf
*/
#define Log_PLATFORM_VERSION "SWAD 19.248.1 (2020-05-25)"
#define Log_PLATFORM_VERSION "SWAD 19.248.2 (2020-05-25)"
#define CSS_FILE "swad19.238.2.css"
#define JS_FILE "swad19.246.1.js"
/*
Version 19.248.2: May 30, 2020 Selection of all questions to add to a set. Suggested by Nuria Torres Rosell. (302854 lines)
Version 19.248.1: May 30, 2020 Exam session results can not be marked as visible if end of time is not in the past. (302825 lines)
Version 19.248: May 30, 2020 New API function getLastLocation. (302787 lines)
Version 19.247.1: May 29, 2020 Do not show exam results in hidden exams or hidden exam sessions. (302646 lines)

View File

@ -2597,7 +2597,9 @@ static void Tst_ListOneOrMoreQuestionsForSelectionForSet (struct Exa_Exams *Exam
MYSQL_RES *mysql_res)
{
extern const char *Hlp_ASSESSMENT_Exams_questions;
extern const char *The_ClassFormInBox[The_NUM_THEMES];
extern const char *Txt_Questions;
extern const char *Txt_All_questions;
extern const char *Txt_No_INDEX;
extern const char *Txt_Code;
extern const char *Txt_Date;
@ -2619,6 +2621,13 @@ static void Tst_ListOneOrMoreQuestionsForSelectionForSet (struct Exa_Exams *Exam
Frm_StartForm (ActAddQstToExa);
ExaSet_PutParamsOneSet (Exams);
/***** Select all questions *****/
HTM_LABEL_Begin ("class=\"%s\"",The_ClassFormInBox[Gbl.Prefs.Theme]);
HTM_INPUT_CHECKBOX ("AllQsts",HTM_DONT_SUBMIT_ON_CHANGE,
"value=\"Y\" onclick=\"togglecheckChildren(this,'QstCods');\"");
HTM_TxtF (" %s",Txt_All_questions);
HTM_LABEL_End ();
/***** Write the heading *****/
HTM_TABLE_BeginWideMarginPadding (5);
HTM_TR_Begin (NULL);
@ -2774,7 +2783,7 @@ static void Tst_WriteQuestionRowForSelection (unsigned NumQst,
/* Write checkbox to select the question */
HTM_INPUT_CHECKBOX ("QstCods",HTM_DONT_SUBMIT_ON_CHANGE,
"value=\"%ld\"",
"value=\"%ld\" onclick=\"checkParent(this,'AllQsts');\"",
Question->QstCod);
/* Write number of question */

View File

@ -1403,6 +1403,27 @@ const char *Txt_All_places =
"Todas as localizaçoes";
#endif
const char *Txt_All_questions =
#if L==1 // ca
"Totes les preguntes";
#elif L==2 // de
"Alle Fragen";
#elif L==3 // en
"All questions";
#elif L==4 // es
"Todas las preguntas";
#elif L==5 // fr
"Toutes les questions";
#elif L==6 // gn
"Todas las preguntas"; // Okoteve traducción
#elif L==7 // it
"Tutte le domande";
#elif L==8 // pl
"Wszystkie pytania";
#elif L==9 // pt
"Todas as perguntas";
#endif
const char *Txt_All_tags = // Tags used in test
#if L==1 // ca
"Tots els descriptors";