mirror of https://github.com/acanas/swad-core.git
Version19.223.2
This commit is contained in:
parent
5bb6533e38
commit
300cc89f57
|
@ -548,10 +548,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.223.1 (2020-05-11)"
|
||||
#define Log_PLATFORM_VERSION "SWAD 19.223.2 (2020-05-11)"
|
||||
#define CSS_FILE "swad19.217.css"
|
||||
#define JS_FILE "swad19.223.js"
|
||||
/*
|
||||
Version 19.223.2: May 11, 2020 Stored T/F answers in exam print. (303034 lines)
|
||||
Version 19.223.1: May 11, 2020 Code refactoring in exam print. Stored float and text answers. (303023 lines)
|
||||
Version 19.223: May 11, 2020 Store int answer and refresh exam print. (303024 lines)
|
||||
Version 19.222.2: May 10, 2020 Fixed bugs in exams. (302852 lines)
|
||||
|
|
|
@ -748,17 +748,27 @@ static void ExaPrn_WriteTFAnsToFill (const struct ExaPrn_Print *Print,
|
|||
unsigned NumQst)
|
||||
{
|
||||
extern const char *Txt_TF_QST[2];
|
||||
char Id[3 + Cns_MAX_DECIMAL_DIGITS_UINT + 1]; // "Ansxx...x"
|
||||
|
||||
/***** Write selector for the answer *****/
|
||||
/* Initially user has not answered the question ==> initially all the answers will be blank.
|
||||
If the user does not confirm the submission of their exam ==>
|
||||
==> the exam may be half filled ==> the answers displayed will be those selected by the user. */
|
||||
HTM_SELECT_Begin (HTM_DONT_SUBMIT_ON_CHANGE,
|
||||
"name=\"Ans%010u\"",NumQst);
|
||||
snprintf (Id,sizeof (Id),
|
||||
"Ans%010u",
|
||||
NumQst);
|
||||
HTM_TxtF ("<select id=\"%s\" name=\"%s\"",Id,Id);
|
||||
HTM_TxtF (" onchange=\"updateExamPrint('examprint','%s','%s',"
|
||||
"'act=%ld&ses=%s&EvtCod=%ld&NumQst=%u');"
|
||||
" return false;\"", // return false is necessary to not submit form
|
||||
Id,Id,
|
||||
Act_GetActCod (ActAnsExaPrn),
|
||||
Gbl.Session.Id,Print->EvtCod,NumQst);
|
||||
HTM_Txt (" />");
|
||||
HTM_OPTION (HTM_Type_STRING,"" ,Print->PrintedQuestions[NumQst].StrAnswers[0] == '\0',false," ");
|
||||
HTM_OPTION (HTM_Type_STRING,"T",Print->PrintedQuestions[NumQst].StrAnswers[0] == 'T' ,false,"%s",Txt_TF_QST[0]);
|
||||
HTM_OPTION (HTM_Type_STRING,"F",Print->PrintedQuestions[NumQst].StrAnswers[0] == 'F' ,false,"%s",Txt_TF_QST[1]);
|
||||
HTM_SELECT_End ();
|
||||
HTM_Txt ("</select>");
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
|
|
@ -3096,7 +3096,7 @@ static void Tst_ListOneOrMoreQuestionsForSelectionForSet (struct Exa_Exams *Exam
|
|||
HTM_TABLE_End ();
|
||||
|
||||
/***** Button to add questions *****/
|
||||
Btn_PutConfirmButton (Txt_Add_questions);
|
||||
Btn_PutCreateButton (Txt_Add_questions);
|
||||
|
||||
/***** End form *****/
|
||||
Frm_EndForm ();
|
||||
|
@ -3178,7 +3178,7 @@ static void Tst_ListOneOrMoreQuestionsForSelectionForGame (struct Gam_Games *Gam
|
|||
HTM_TABLE_End ();
|
||||
|
||||
/***** Button to add questions *****/
|
||||
Btn_PutConfirmButton (Txt_Add_questions);
|
||||
Btn_PutCreateButton (Txt_Add_questions);
|
||||
|
||||
/***** End form *****/
|
||||
Frm_EndForm ();
|
||||
|
|
Loading…
Reference in New Issue