diff --git a/swad_changelog.h b/swad_changelog.h index 6cfdd4366..a206d9585 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.29 (2019-10-08)" +#define Log_PLATFORM_VERSION "SWAD 19.31.30 (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.30: Oct 08, 2019 Code refactoring in HTML tables. (246731 lines) Version 19.31.29: Oct 08, 2019 Code refactoring in HTML tables. (246740 lines) Version 19.31.28: Oct 08, 2019 Code refactoring in HTML tables. (246783 lines) Version 19.31.27: Oct 08, 2019 Code refactoring in HTML tables. (246823 lines) diff --git a/swad_match.c b/swad_match.c index f1a9f7b3e..708225d81 100644 --- a/swad_match.c +++ b/swad_match.c @@ -511,7 +511,7 @@ static bool Mch_CheckIfICanEditThisMatch (const struct Match *Match) static void Mch_ListOneOrMoreMatchesIcons (const struct Match *Match) { - fprintf (Gbl.F.Out,"",Gbl.RowEvenOdd); + Tbl_StartCellAttr ("class=\"BT%u\"",Gbl.RowEvenOdd); /***** Put icon to remove the match *****/ if (Mch_CheckIfICanEditThisMatch (Match)) @@ -536,7 +536,7 @@ static void Mch_ListOneOrMoreMatchesIcons (const struct Match *Match) static void Mch_ListOneOrMoreMatchesAuthor (const struct Match *Match) { /***** Match author (teacher) *****/ - fprintf (Gbl.F.Out,"",Gbl.RowEvenOdd); + Tbl_StartCellAttr ("class=\"LEFT_TOP COLOR%u\"",Gbl.RowEvenOdd); Usr_WriteAuthor1Line (Match->UsrCod,false); Tbl_EndCell (); } @@ -554,12 +554,11 @@ static void Mch_ListOneOrMoreMatchesTimes (const struct Match *Match,unsigned Un StartEndTime <= (Dat_StartEndTime_t) (Dat_NUM_START_END_TIME - 1); StartEndTime++) { - fprintf (Gbl.F.Out,"", - (unsigned) StartEndTime,UniqueId, - Match->Status.QstInd >= Mch_AFTER_LAST_QUESTION ? "DATE_RED" : - "DATE_GREEN", - Gbl.RowEvenOdd); + Tbl_StartCellAttr ("id=\"mch_time_%u_%u\" class=\"%s LEFT_TOP COLOR%u\"", + (unsigned) StartEndTime,UniqueId, + Match->Status.QstInd >= Mch_AFTER_LAST_QUESTION ? "DATE_RED" : + "DATE_GREEN", + Gbl.RowEvenOdd); fprintf (Gbl.F.Out,"