"
+ fprintf (Gbl.F.Out,"");
+ fprintf (Gbl.F.Out,""
"%s:"
" ",
The_ClassFormInBox[Gbl.Prefs.Theme],Txt_No_of_questions);
Tbl_EndCell ();
- fprintf (Gbl.F.Out," "
- " ");
+ fprintf (Gbl.F.Out," "
- "%u",
- Gbl.RowEvenOdd,NumQst + 1);
+ fprintf (Gbl.F.Out," ",Gbl.RowEvenOdd);
+ fprintf (Gbl.F.Out,"%u",NumQst + 1);
Tbl_EndCell ();
- fprintf (Gbl.F.Out," "
- "%s",
- Gbl.RowEvenOdd,Txt_Question_removed);
+ fprintf (Gbl.F.Out," ",Gbl.RowEvenOdd);
+ fprintf (Gbl.F.Out,"%s",Txt_Question_removed);
Tbl_EndCell ();
Tbl_EndRow ();
@@ -1045,10 +1043,8 @@ static void Tst_WriteQstAndAnsTest (Tst_ActionToDoWithQuestions_t ActionToDoWith
Tbl_StartRow ();
/***** Write number of question *****/
- fprintf (Gbl.F.Out," "
- "%u
",
- Gbl.RowEvenOdd,
- NumQst + 1);
+ fprintf (Gbl.F.Out," ",Gbl.RowEvenOdd);
+ fprintf (Gbl.F.Out,"%u
",NumQst + 1);
/***** Write answer type (row[2]) *****/
Gbl.Test.AnswerType = Tst_ConvertFromStrAnsTypDBToAnsTyp (row[2]);
@@ -1057,8 +1053,7 @@ static void Tst_WriteQstAndAnsTest (Tst_ActionToDoWithQuestions_t ActionToDoWith
Tbl_EndCell ();
/***** Write stem (row[4]) *****/
- fprintf (Gbl.F.Out," ",
- Gbl.RowEvenOdd);
+ fprintf (Gbl.F.Out," ",Gbl.RowEvenOdd);
Tst_WriteQstStem (row[4],"TEST_EXA");
/***** Get and show media (row[6]) *****/
@@ -1703,23 +1698,23 @@ static void Tst_ShowFormSelTags (unsigned long NumRows,MYSQL_RES *mysql_res,
Tbl_StartRow ();
/***** Label *****/
- fprintf (Gbl.F.Out," "
- "%s:",
- The_ClassFormInBox[Gbl.Prefs.Theme],Txt_Tags);
+ fprintf (Gbl.F.Out," ",The_ClassFormInBox[Gbl.Prefs.Theme]);
+ fprintf (Gbl.F.Out,"%s:",Txt_Tags);
Tbl_EndCell ();
/***** Select all tags *****/
- fprintf (Gbl.F.Out," 1)
- fprintf (Gbl.F.Out," colspan=\"%u\"",NumCols);
- fprintf (Gbl.F.Out," class=\"LEFT_TOP\">");
+ fprintf (Gbl.F.Out," ",NumCols);
+ else
+ fprintf (Gbl.F.Out," ");
+
Tbl_StartTablePadding (2);
Tbl_StartRow ();
if (!ShowOnlyEnabledTags)
Tbl_PutEmptyCells (1);
- fprintf (Gbl.F.Out," "
- ""
+ fprintf (Gbl.F.Out,"");
+ fprintf (Gbl.F.Out,""
" "
- " ");
+ fprintf (Gbl.F.Out," ");
Tbl_EndCell ();
}
- fprintf (Gbl.F.Out,""
- ""
+ fprintf (Gbl.F.Out,"");
+ fprintf (Gbl.F.Out,""
" "
- "%s:",
- The_ClassFormInBox[Gbl.Prefs.Theme],
- Txt_Plugins);
+ fprintf (Gbl.F.Out,"",The_ClassFormInBox[Gbl.Prefs.Theme]);
+ fprintf (Gbl.F.Out,"%s:",Txt_Plugins);
Tbl_EndCell ();
fprintf (Gbl.F.Out," ");
@@ -1952,10 +1944,8 @@ static void Tst_ShowFormConfigTst (void)
/***** Number of questions *****/
Tbl_StartRow ();
- fprintf (Gbl.F.Out," "
- "%s:",
- The_ClassFormInBox[Gbl.Prefs.Theme],
- Txt_No_of_questions);
+ fprintf (Gbl.F.Out," ",The_ClassFormInBox[Gbl.Prefs.Theme]);
+ fprintf (Gbl.F.Out,"%s:",Txt_No_of_questions);
Tbl_EndCell ();
fprintf (Gbl.F.Out," ");
@@ -1974,16 +1964,16 @@ static void Tst_ShowFormConfigTst (void)
/***** Minimum time between consecutive tests, per question *****/
Tbl_StartRow ();
- fprintf (Gbl.F.Out," "
- ""
+ fprintf (Gbl.F.Out,"");
+ fprintf (Gbl.F.Out,""
"%s:"
" ",
The_ClassFormInBox[Gbl.Prefs.Theme],
Txt_Minimum_time_seconds_per_question_between_two_tests);
Tbl_EndCell ();
- fprintf (Gbl.F.Out," "
- " ");
+ fprintf (Gbl.F.Out," ",
@@ -1995,9 +1985,8 @@ static void Tst_ShowFormConfigTst (void)
/***** Feedback to students *****/
Tbl_StartRow ();
- fprintf (Gbl.F.Out," "
- "%s:",
- The_ClassFormInBox[Gbl.Prefs.Theme],Txt_Feedback_to_students);
+ fprintf (Gbl.F.Out," ",The_ClassFormInBox[Gbl.Prefs.Theme]);
+ fprintf (Gbl.F.Out,"%s:",Txt_Feedback_to_students);
Tbl_EndCell ();
fprintf (Gbl.F.Out," ");
@@ -2039,13 +2028,13 @@ static void Tst_PutInputFieldNumQst (const char *Field,const char *Label,
{
Tbl_StartRow ();
- fprintf (Gbl.F.Out," "
- "%s ",
+ fprintf (Gbl.F.Out," ");
+ fprintf (Gbl.F.Out,"%s ",
Field,Label);
Tbl_EndCell ();
- fprintf (Gbl.F.Out," "
- " ");
+ fprintf (Gbl.F.Out," ",
@@ -2341,22 +2330,21 @@ static void Tst_ShowFormAnswerTypes (unsigned NumCols)
Tbl_StartRow ();
/***** Label *****/
- fprintf (Gbl.F.Out," "
- "%s:",
- The_ClassFormInBox[Gbl.Prefs.Theme],Txt_Types_of_answers);
+ fprintf (Gbl.F.Out," ",The_ClassFormInBox[Gbl.Prefs.Theme]);
+ fprintf (Gbl.F.Out,"%s:",Txt_Types_of_answers);
Tbl_EndCell ();
/***** Select all types of answers *****/
- fprintf (Gbl.F.Out," 1)
- fprintf (Gbl.F.Out," colspan=\"%u\"",NumCols);
- fprintf (Gbl.F.Out," class=\"LEFT_TOP\">");
+ fprintf (Gbl.F.Out," ",NumCols);
+ else
+ fprintf (Gbl.F.Out," ");
Tbl_StartTablePadding (2);
Tbl_StartRow ();
- fprintf (Gbl.F.Out," "
- ""
+ fprintf (Gbl.F.Out,"");
+ fprintf (Gbl.F.Out,""
" "
- ""
+ fprintf (Gbl.F.Out,"");
+ fprintf (Gbl.F.Out,""
" "
- "%lu
",
- Gbl.RowEvenOdd,
- NumRow + 1);
+ fprintf (Gbl.F.Out,"",Gbl.RowEvenOdd);
+ fprintf (Gbl.F.Out,"%lu
",NumRow + 1);
/* Write answer type (row[2]) */
Gbl.Test.AnswerType = Tst_ConvertFromStrAnsTypDBToAnsTyp (row[2]);
@@ -2949,33 +2935,29 @@ static void Tst_ListOneOrMoreQuestionsForEdition (unsigned long NumRows,
Tbl_EndCell ();
/* Write question code */
- fprintf (Gbl.F.Out," "
- "%ld ",
- Gbl.RowEvenOdd,Gbl.Test.QstCod);
+ fprintf (Gbl.F.Out," ",Gbl.RowEvenOdd);
+ fprintf (Gbl.F.Out,"%ld ",Gbl.Test.QstCod);
Tbl_EndCell ();
/* Write the date (row[1] has the UTC date-time) */
TimeUTC = Dat_GetUNIXTimeFromStr (row[1]);
- fprintf (Gbl.F.Out," "
- "",
- UniqueId,Gbl.RowEvenOdd,
UniqueId,(long) TimeUTC,
(unsigned) Gbl.Prefs.DateFormat,Txt_Today);
Tbl_EndCell ();
/* Write the question tags */
- fprintf (Gbl.F.Out," ",
- Gbl.RowEvenOdd);
+ fprintf (Gbl.F.Out," ",Gbl.RowEvenOdd);
Tst_GetAndWriteTagsQst (Gbl.Test.QstCod);
Tbl_EndCell ();
/* Write if shuffle is enabled (row[3]) */
- fprintf (Gbl.F.Out," ",
- Gbl.RowEvenOdd);
+ fprintf (Gbl.F.Out," ",Gbl.RowEvenOdd);
if (Gbl.Test.AnswerType == Tst_ANS_UNIQUE_CHOICE ||
Gbl.Test.AnswerType == Tst_ANS_MULTIPLE_CHOICE)
{
@@ -2996,8 +2978,7 @@ static void Tst_ListOneOrMoreQuestionsForEdition (unsigned long NumRows,
Tbl_EndCell ();
/* Write stem (row[4]) */
- fprintf (Gbl.F.Out," ",
- Gbl.RowEvenOdd);
+ fprintf (Gbl.F.Out," ",Gbl.RowEvenOdd);
Tst_WriteQstStem (row[4],"TEST_EDI");
/***** Get and show media (row[6]) *****/
@@ -3031,14 +3012,12 @@ static void Tst_ListOneOrMoreQuestionsForEdition (unsigned long NumRows,
Str_SetDecimalPointToLocal (); // Return to local system
/* Write number of times this question has been answered */
- fprintf (Gbl.F.Out," "
- "%lu",
- Gbl.RowEvenOdd,NumHitsThisQst);
+ fprintf (Gbl.F.Out," ",Gbl.RowEvenOdd);
+ fprintf (Gbl.F.Out,"%lu",NumHitsThisQst);
Tbl_EndCell ();
/* Write average score */
- fprintf (Gbl.F.Out," ",
- Gbl.RowEvenOdd);
+ fprintf (Gbl.F.Out," ",Gbl.RowEvenOdd);
if (NumHitsThisQst)
fprintf (Gbl.F.Out,"%.2f",TotalScoreThisQst /
(double) NumHitsThisQst);
@@ -3047,15 +3026,12 @@ static void Tst_ListOneOrMoreQuestionsForEdition (unsigned long NumRows,
Tbl_EndCell ();
/* Write number of times this question has been answered (not blank) */
- fprintf (Gbl.F.Out," "
- "%lu",
- Gbl.RowEvenOdd,
- NumHitsNotBlankThisQst);
+ fprintf (Gbl.F.Out," ",Gbl.RowEvenOdd);
+ fprintf (Gbl.F.Out,"%lu",NumHitsNotBlankThisQst);
Tbl_EndCell ();
/* Write average score (not blank) */
- fprintf (Gbl.F.Out," ",
- Gbl.RowEvenOdd);
+ fprintf (Gbl.F.Out," ",Gbl.RowEvenOdd);
if (NumHitsNotBlankThisQst)
fprintf (Gbl.F.Out,"%.2f",TotalScoreThisQst /
(double) NumHitsNotBlankThisQst);
@@ -3181,47 +3157,40 @@ static void Tst_ListOneOrMoreQuestionsForSelection (unsigned long NumRows,
Gbl.Test.QstCod);
/* Write number of question */
- fprintf (Gbl.F.Out," "
- "%lu ",
- Gbl.RowEvenOdd,NumRow + 1);
+ fprintf (Gbl.F.Out," ",Gbl.RowEvenOdd);
+ fprintf (Gbl.F.Out,"%lu ",NumRow + 1);
Tbl_EndCell ();
/* Write question code */
- fprintf (Gbl.F.Out," "
- "%ld ",
- Gbl.RowEvenOdd,Gbl.Test.QstCod);
+ fprintf (Gbl.F.Out," ",Gbl.RowEvenOdd);
+ fprintf (Gbl.F.Out,"%ld ",Gbl.Test.QstCod);
Tbl_EndCell ();
/* Write the date (row[1] has the UTC date-time) */
TimeUTC = Dat_GetUNIXTimeFromStr (row[1]);
- fprintf (Gbl.F.Out," "
- "",
- UniqueId,Gbl.RowEvenOdd,
UniqueId,(long) TimeUTC,
(unsigned) Gbl.Prefs.DateFormat,Txt_Today);
Tbl_EndCell ();
/* Write the question tags */
- fprintf (Gbl.F.Out," ",
- Gbl.RowEvenOdd);
+ fprintf (Gbl.F.Out," ",Gbl.RowEvenOdd);
Tst_GetAndWriteTagsQst (Gbl.Test.QstCod);
Tbl_EndCell ();
/* Write the question type (row[2]) */
Gbl.Test.AnswerType = Tst_ConvertFromStrAnsTypDBToAnsTyp (row[2]);
- fprintf (Gbl.F.Out," "
- "%s ",
- Gbl.RowEvenOdd,
- Txt_TST_STR_ANSWER_TYPES[Gbl.Test.AnswerType]);
+ fprintf (Gbl.F.Out," ",Gbl.RowEvenOdd);
+ fprintf (Gbl.F.Out,"%s ",Txt_TST_STR_ANSWER_TYPES[Gbl.Test.AnswerType]);
Tbl_EndCell ();
/* Write if shuffle is enabled (row[3]) */
- fprintf (Gbl.F.Out," ",
- Gbl.RowEvenOdd);
+ fprintf (Gbl.F.Out," ",Gbl.RowEvenOdd);
fprintf (Gbl.F.Out," ",
- Gbl.RowEvenOdd);
+ fprintf (Gbl.F.Out," ",Gbl.RowEvenOdd);
Tst_WriteQstStem (row[4],"TEST_EDI");
/***** Get and show media (row[6]) *****/
@@ -3446,8 +3414,7 @@ void Tst_WriteAnswersEdit (long QstCod)
/* Put an icon that indicates whether the answer
is correct or wrong (row[4]) */
Tbl_StartRow ();
- fprintf (Gbl.F.Out," ",
- Gbl.RowEvenOdd);
+ fprintf (Gbl.F.Out," ",Gbl.RowEvenOdd);
if (row[4][0] == 'Y')
fprintf (Gbl.F.Out," "
- "%c) ",
- 'a' + (char) NumOpt);
+ fprintf (Gbl.F.Out," ");
+ fprintf (Gbl.F.Out,"%c) ",'a' + (char) NumOpt);
Tbl_EndCell ();
/* Write the text of the answer and the image */
- fprintf (Gbl.F.Out," "
- ""
+ fprintf (Gbl.F.Out,"
");
+ fprintf (Gbl.F.Out,""
"%s",
Answer);
Med_ShowMedia (&Gbl.Test.Answer.Options[NumOpt].Media,
@@ -3813,8 +3779,8 @@ static void Tst_WriteChoiceAnsViewTest (unsigned NumQst,long QstCod,bool Shuffle
NumQst,Index);
Tbl_EndCell ();
- fprintf (Gbl.F.Out,"
"
- ""
+ fprintf (Gbl.F.Out,"");
+ fprintf (Gbl.F.Out,""
"%c) "
" ",
NumQst,NumOpt,
@@ -3822,8 +3788,8 @@ static void Tst_WriteChoiceAnsViewTest (unsigned NumQst,long QstCod,bool Shuffle
Tbl_EndCell ();
/***** Write the option text *****/
- fprintf (Gbl.F.Out," "
- ""
+ fprintf (Gbl.F.Out,"");
+ fprintf (Gbl.F.Out,""
"%s"
" ",
NumQst,NumOpt,
@@ -3910,8 +3876,9 @@ static void Tst_WriteChoiceAnsAssessTest (struct UsrData *UsrDat,
Ans.Class = "ANS_0";
Ans.Str = "•";
}
- fprintf (Gbl.F.Out," %s",
- Ans.Class,Txt_TST_Answer_given_by_the_user,Ans.Str);
+ fprintf (Gbl.F.Out," ",
+ Ans.Class,Txt_TST_Answer_given_by_the_user);
+ fprintf (Gbl.F.Out,"%s",Ans.Str);
Tbl_EndCell ();
}
else // This answer has NOT been selected by the user
@@ -3923,8 +3890,9 @@ static void Tst_WriteChoiceAnsAssessTest (struct UsrData *UsrDat,
{
if (Gbl.Test.Answer.Options[Indexes[NumOpt]].Correct)
{
- fprintf (Gbl.F.Out," •",
+ fprintf (Gbl.F.Out," ",
Txt_TST_Answer_given_by_the_teachers);
+ fprintf (Gbl.F.Out,"•");
Tbl_EndCell ();
}
else
@@ -3932,19 +3900,19 @@ static void Tst_WriteChoiceAnsAssessTest (struct UsrData *UsrDat,
}
else
{
- fprintf (Gbl.F.Out," ?");
+ fprintf (Gbl.F.Out," ");
+ fprintf (Gbl.F.Out,"?");
Tbl_EndCell ();
}
/* Answer letter (a, b, c,...) */
- fprintf (Gbl.F.Out," "
- "%c) ",
- 'a' + (char) NumOpt);
+ fprintf (Gbl.F.Out," ");
+ fprintf (Gbl.F.Out,"%c) ",'a' + (char) NumOpt);
Tbl_EndCell ();
/* Answer text and feedback */
- fprintf (Gbl.F.Out," "
- ""
+ fprintf (Gbl.F.Out,"
");
+ fprintf (Gbl.F.Out,""
"%s",
Gbl.Test.Answer.Options[Indexes[NumOpt]].Text);
Med_ShowMedia (&Gbl.Test.Answer.Options[Indexes[NumOpt]].Media,
@@ -4249,8 +4217,8 @@ static void Tst_WriteChoiceAnsViewMatch (long MchCod,unsigned QstInd,long QstCod
Tbl_StartRow ();
/***** Write letter for this option *****/
- fprintf (Gbl.F.Out,"
"
- ""
+ fprintf (Gbl.F.Out,"
");
+ fprintf (Gbl.F.Out,""
"%c"
"
",
'A' + (char) NumOpt,
@@ -4258,8 +4226,8 @@ static void Tst_WriteChoiceAnsViewMatch (long MchCod,unsigned QstInd,long QstCod
Tbl_EndCell ();
/***** Write the option text and the result *****/
- fprintf (Gbl.F.Out," "
- ""
+ fprintf (Gbl.F.Out,"");
+ fprintf (Gbl.F.Out,""
"%s"
" ",
QstInd,NumOpt,
@@ -4417,14 +4385,13 @@ static void Tst_WriteTextAnsAssessTest (struct UsrData *UsrDat,
NumOpt++)
{
/* Answer letter (a, b, c,...) */
- fprintf (Gbl.F.Out," "
- "%c) ",
- 'a' + (char) NumOpt);
+ fprintf (Gbl.F.Out," ");
+ fprintf (Gbl.F.Out,"%c) ",'a' + (char) NumOpt);
Tbl_EndCell ();
/* Answer text and feedback */
- fprintf (Gbl.F.Out," "
- ""
+ fprintf (Gbl.F.Out,"
");
+ fprintf (Gbl.F.Out,""
"%s"
"
",
Gbl.Test.Answer.Options[NumOpt].Text);
@@ -4442,8 +4409,10 @@ static void Tst_WriteTextAnsAssessTest (struct UsrData *UsrDat,
Tbl_EndTable ();
}
else
- fprintf (Gbl.F.Out," "
- "?");
+ {
+ fprintf (Gbl.F.Out," ");
+ fprintf (Gbl.F.Out,"?");
+ }
Tbl_EndCell ();
Tbl_EndRow ();
@@ -4726,14 +4695,12 @@ static void Tst_WriteHeadUserCorrect (struct UsrData *UsrDat)
extern const char *Txt_User[Usr_NUM_SEXS];
extern const char *Txt_ROLES_PLURAL_Abc[Rol_NUM_ROLES][Usr_NUM_SEXS];
- fprintf (Gbl.F.Out," "
- "%s",
- Txt_User[UsrDat->Sex]);
+ fprintf (Gbl.F.Out," ");
+ fprintf (Gbl.F.Out,"%s",Txt_User[UsrDat->Sex]);
Tbl_EndCell ();
- fprintf (Gbl.F.Out," "
- "%s",
- Txt_ROLES_PLURAL_Abc[Rol_TCH][Usr_SEX_UNKNOWN]);
+ fprintf (Gbl.F.Out," ");
+ fprintf (Gbl.F.Out,"%s",Txt_ROLES_PLURAL_Abc[Rol_TCH][Usr_SEX_UNKNOWN]);
Tbl_EndCell ();
}
@@ -4746,9 +4713,8 @@ static void Tst_WriteScoreStart (unsigned ColSpan)
extern const char *Txt_Score;
Tbl_StartRow ();
- fprintf (Gbl.F.Out," "
- "%s: ",ColSpan);
+ fprintf (Gbl.F.Out,"%s: "
- "%s:",
- The_ClassFormInBox[Gbl.Prefs.Theme],Txt_Tags);
+ fprintf (Gbl.F.Out," ",The_ClassFormInBox[Gbl.Prefs.Theme]);
+ fprintf (Gbl.F.Out,"%s:",Txt_Tags);
Tbl_EndCell ();
fprintf (Gbl.F.Out," ");
@@ -5140,8 +5105,8 @@ static void Tst_PutFormEditOneQst (char Stem[Cns_MAX_BYTES_TEXT + 1],
Tbl_StartRow ();
/***** Write the tags already existing in a selector *****/
- fprintf (Gbl.F.Out," "
- "");
+ fprintf (Gbl.F.Out,"",
NumTag,NumTag,NumTag);
fprintf (Gbl.F.Out," ");
@@ -5175,8 +5140,8 @@ static void Tst_PutFormEditOneQst (char Stem[Cns_MAX_BYTES_TEXT + 1],
Tbl_EndCell ();
/***** Input of a new tag *****/
- fprintf (Gbl.F.Out,""
- " ");
+ fprintf (Gbl.F.Out," ",
NumTag,NumTag,Tst_MAX_CHARS_TAG,Gbl.Test.Tags.Txt[NumTag],NumTag);
@@ -5196,14 +5161,14 @@ static void Tst_PutFormEditOneQst (char Stem[Cns_MAX_BYTES_TEXT + 1],
/***** Stem and image *****/
Tbl_StartRow ();
- fprintf (Gbl.F.Out," "
- "%s: ",
+ fprintf (Gbl.F.Out," ");
+ fprintf (Gbl.F.Out,"%s: ",
The_ClassFormInBox[Gbl.Prefs.Theme],
Txt_Wording);
Tbl_EndCell ();
- fprintf (Gbl.F.Out," "
- "