diff --git a/swad_changelog.h b/swad_changelog.h index d70daa21a..e6ee4b587 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.31 (2019-10-08)" +#define Log_PLATFORM_VERSION "SWAD 19.31.32 (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.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) Version 19.31.29: Oct 08, 2019 Code refactoring in HTML tables. (246740 lines) diff --git a/swad_record.c b/swad_record.c index 333d70c25..7ab811446 100644 --- a/swad_record.c +++ b/swad_record.c @@ -383,24 +383,24 @@ void Rec_ShowFormCreateRecordField (void) Tbl_EndCell (); /***** Field name *****/ - fprintf (Gbl.F.Out,"" - ""); + fprintf (Gbl.F.Out,"", Rec_MAX_CHARS_NAME_FIELD,Gbl.Crs.Records.Field.Name); Tbl_EndCell (); /***** Number of lines in form ******/ - fprintf (Gbl.F.Out,"" - ""); + fprintf (Gbl.F.Out,"", Gbl.Crs.Records.Field.NumLines); Tbl_EndCell (); /***** Visibility to students *****/ - fprintf (Gbl.F.Out,"" - ""); for (Vis = (Rec_VisibilityRecordFields_t) 0; Vis < (Rec_VisibilityRecordFields_t) Rec_NUM_TYPES_VISIBILITY; Vis++) @@ -1759,8 +1759,8 @@ static void Rec_ShowCrsRecord (Rec_CourseRecordViewType_t TypeOfView, Gbl.Hierarchy.Deg.ShrtName,Rec_DEGREE_LOGO_SIZE,NULL,true); Tbl_EndCell (); - fprintf (Gbl.F.Out,"" - "%s
%s
%s", + fprintf (Gbl.F.Out,""); + fprintf (Gbl.F.Out,"%s
%s
%s", Gbl.Hierarchy.Deg.FullName,Gbl.Hierarchy.Crs.FullName, UsrDat->FullName); Tbl_EndCell (); @@ -1800,12 +1800,11 @@ static void Rec_ShowCrsRecord (Rec_CourseRecordViewType_t TypeOfView, /* Name of the field */ Tbl_StartRow (); - fprintf (Gbl.F.Out,"" - "%s:", + fprintf (Gbl.F.Out,"", ICanEditThisField ? The_ClassFormInBox[Gbl.Prefs.Theme] : "REC_DAT_SMALL", - Gbl.RowEvenOdd, - Gbl.Crs.Records.LstFields.Lst[NumField].Name); + Gbl.RowEvenOdd); + fprintf (Gbl.F.Out,"%s:",Gbl.Crs.Records.LstFields.Lst[NumField].Name); if (TypeOfView == Rec_CRS_LIST_ONE_RECORD || TypeOfView == Rec_CRS_LIST_SEVERAL_RECORDS) fprintf (Gbl.F.Out," (%s)", @@ -2752,8 +2751,8 @@ static void Rec_ShowPhoto (struct UsrData *UsrDat) static void Rec_ShowFullName (struct UsrData *UsrDat) { - fprintf (Gbl.F.Out,"" - "
"); + fprintf (Gbl.F.Out,""); + fprintf (Gbl.F.Out,"
"); /***** First name *****/ fprintf (Gbl.F.Out,"%s
",UsrDat->FirstName); @@ -2778,8 +2777,8 @@ static void Rec_ShowNickname (struct UsrData *UsrDat,bool PutFormLinks) extern const char *Txt_Another_user_s_profile; bool ItsMe; - fprintf (Gbl.F.Out,"" - "
"); + fprintf (Gbl.F.Out,""); + fprintf (Gbl.F.Out,"
"); if (UsrDat->Nickname[0]) { if (PutFormLinks) @@ -2840,9 +2839,8 @@ static void Rec_ShowEmail (struct UsrData *UsrDat,const char *ClassForm) Tbl_StartRow (); - fprintf (Gbl.F.Out,"" - "%s:", - ClassForm,Txt_Email); + fprintf (Gbl.F.Out,"",ClassForm); + fprintf (Gbl.F.Out,"%s:",Txt_Email); Tbl_EndCell (); fprintf (Gbl.F.Out,""); @@ -2875,9 +2873,8 @@ static void Rec_ShowUsrIDs (struct UsrData *UsrDat,const char *ClassForm, Tbl_StartRow (); - fprintf (Gbl.F.Out,"" - "%s:", - ClassForm,Txt_ID); + fprintf (Gbl.F.Out,"",ClassForm); + fprintf (Gbl.F.Out,"%s:",Txt_ID); Tbl_EndCell (); fprintf (Gbl.F.Out,""); @@ -2916,8 +2913,8 @@ static void Rec_ShowRole (struct UsrData *UsrDat, /* Get user's roles if not got */ Rol_GetRolesInAllCrssIfNotYetGot (UsrDat); - fprintf (Gbl.F.Out,"" - "", + fprintf (Gbl.F.Out,""); + fprintf (Gbl.F.Out,"", ClassForm,Txt_Role); Tbl_EndCell (); @@ -3114,9 +3111,8 @@ static void Rec_ShowRole (struct UsrData *UsrDat, else if (SexForm) { /***** Form to select a sex *****/ - fprintf (Gbl.F.Out,"" - "%s*:", - ClassForm,Txt_Sex); + fprintf (Gbl.F.Out,"",ClassForm); + fprintf (Gbl.F.Out,"%s*:",Txt_Sex); Tbl_EndCell (); fprintf (Gbl.F.Out,""); @@ -3139,14 +3135,12 @@ static void Rec_ShowRole (struct UsrData *UsrDat, else // RoleForm == false, SexForm == false { /***** No form, only text *****/ - fprintf (Gbl.F.Out,"" - "%s:", - ClassForm, - Txt_Role); + fprintf (Gbl.F.Out,"",ClassForm); + fprintf (Gbl.F.Out,"%s:",Txt_Role); Tbl_EndCell (); - fprintf (Gbl.F.Out,"" - "%s", + fprintf (Gbl.F.Out,""); + fprintf (Gbl.F.Out,"%s", Txt_ROLES_SINGUL_Abc[UsrDat->Roles.InCurrentCrs.Role][UsrDat->Sex]); Tbl_EndCell (); } @@ -3166,8 +3160,8 @@ static void Rec_ShowSurname1 (struct UsrData *UsrDat, extern const char *Txt_Surname_1; Tbl_StartRow (); - fprintf (Gbl.F.Out,"" - "