From dd2eb13e547a84b89d96448c34ced5dc1b7caac1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Wed, 9 Oct 2019 23:49:29 +0200 Subject: [PATCH] Version19.31.33 --- swad_changelog.h | 3 +- swad_record.c | 154 ++++++++++++------------ swad_statistic.c | 283 ++++++++++++++++++++++----------------------- swad_survey.c | 184 ++++++++++++++--------------- swad_syllabus.c | 16 +-- swad_test_import.c | 42 +++---- swad_timetable.c | 31 +++-- 7 files changed, 347 insertions(+), 366 deletions(-) diff --git a/swad_changelog.h b/swad_changelog.h index e6ee4b587..fea118c95 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -487,7 +487,7 @@ enscript -2 --landscape --color --file-align=2 --highlight --line-numbers -o - * En OpenSWAD: ps2pdf source.ps destination.pdf */ -#define Log_PLATFORM_VERSION "SWAD 19.31.32 (2019-10-08)" +#define Log_PLATFORM_VERSION "SWAD 19.31.33 (2019-10-08)" #define CSS_FILE "swad19.29.css" #define JS_FILE "swad19.30.js" /* @@ -495,6 +495,7 @@ ps2pdf source.ps destination.pdf // TODO: Un TFG preasignado sin estudiante tiene que salir un triángulo amarillo // TODO: Hacer un nuevo rol en los TFG: tutor externo (profesor de áreas no vinculadas con el centro, profesionales de empresas, etc.) + Version 19.31.33: Oct 08, 2019 Code refactoring in HTML tables. (246688 lines) Version 19.31.32: Oct 08, 2019 Code refactoring in HTML tables. (246718 lines) Version 19.31.31: Oct 08, 2019 Code refactoring in HTML tables. (246762 lines) Version 19.31.30: Oct 08, 2019 Code refactoring in HTML tables. (246731 lines) diff --git a/swad_record.c b/swad_record.c index 7ab811446..58b8b9188 100644 --- a/swad_record.c +++ b/swad_record.c @@ -383,7 +383,7 @@ void Rec_ShowFormCreateRecordField (void) Tbl_EndCell (); /***** Field name *****/ - fprintf (Gbl.F.Out,""); + Tbl_StartCellAttr ("class=\"LEFT_MIDDLE\""); fprintf (Gbl.F.Out,"", @@ -391,7 +391,7 @@ void Rec_ShowFormCreateRecordField (void) Tbl_EndCell (); /***** Number of lines in form ******/ - fprintf (Gbl.F.Out,""); + Tbl_StartCellAttr ("class=\"CENTER_MIDDLE\""); fprintf (Gbl.F.Out,"", @@ -399,7 +399,7 @@ void Rec_ShowFormCreateRecordField (void) Tbl_EndCell (); /***** Visibility to students *****/ - fprintf (Gbl.F.Out,""); + Tbl_StartCellAttr ("class=\"CENTER_MIDDLE\""); fprintf (Gbl.F.Out,"", Txt); @@ -2718,14 +2725,11 @@ static void Svy_ShowFormEditOneQst (long SvyCod,struct SurveyQuestion *SvyQst, /***** Type of answer *****/ Tbl_StartRow (); - fprintf (Gbl.F.Out,"" - "%s:", - The_ClassFormInBox[Gbl.Prefs.Theme], - Txt_Type); + fprintf (Gbl.F.Out,"",The_ClassFormInBox[Gbl.Prefs.Theme]); + fprintf (Gbl.F.Out,"%s:",Txt_Type); Tbl_EndCell (); - fprintf (Gbl.F.Out,"", - The_ClassFormInBox[Gbl.Prefs.Theme]); + fprintf (Gbl.F.Out,"",The_ClassFormInBox[Gbl.Prefs.Theme]); for (AnsType = (Svy_AnswerType_t) 0; AnsType < Svy_NUM_ANS_TYPES; AnsType++) @@ -2760,14 +2764,14 @@ static void Svy_ShowFormEditOneQst (long SvyCod,struct SurveyQuestion *SvyQst, Tbl_StartRow (); /* Label with the number of the answer */ - fprintf (Gbl.F.Out,"" - "", + fprintf (Gbl.F.Out,""); + fprintf (Gbl.F.Out,"", NumAns,The_ClassFormInBox[Gbl.Prefs.Theme],NumAns + 1); Tbl_EndCell (); /* Answer text */ - fprintf (Gbl.F.Out,"" - "