diff --git a/swad_changelog.h b/swad_changelog.h index b37f31b17..a9fddc377 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -172,19 +172,18 @@ // TODO: List only confirmed emails to send a message with MESSAGES > Email ? -// TODO: Link "Show office hours" in bold when activated - /*****************************************************************************/ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 16.72.2 (2016-11-27)" +#define Log_PLATFORM_VERSION "SWAD 16.73 (2016-11-27)" #define CSS_FILE "swad16.69.css" #define JS_FILE "swad16.46.1.js" // Number of lines (includes comments but not blank lines) has been got with the following command: // nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*?.h sql/swad*.sql | tail -1 /* + Version 16.73: Nov 27, 2016 Changes in teacher's record card. (207711 lines) Version 16.72.2: Nov 27, 2016 Fixed bug in answers of survey. (207704 lines) Version 16.72.1: Nov 27, 2016 Fixed bug in answers of test questions, reported by Javier Fernández Baldomero. (207704 lines) Version 16.72: Nov 27, 2016 Link to show all users' data. diff --git a/swad_record.c b/swad_record.c index 5be5cb09c..e0c5bb579 100644 --- a/swad_record.c +++ b/swad_record.c @@ -78,7 +78,10 @@ static void Rec_ShowRecordOneTchCrs (void); static void Rec_ShowLinkToPrintPreviewOfRecords (void); static void Rec_GetParamRecordsPerPage (void); -static void Rec_WriteFormShowOfficeHours (bool ShowOfficeHours,const char *ListUsrCods); +static void Rec_WriteFormShowOfficeHoursOneTch (bool ShowOfficeHours); +static void Rec_WriteFormShowOfficeHoursSeveralTchs (bool ShowOfficeHours); +static void Rec_PutParamsShowOfficeHoursOneTch (void); +static void Rec_PutParamsShowOfficeHoursSeveralTchs (void); static bool Rec_GetParamShowOfficeHours (void); static void Rec_ShowCrsRecord (Rec_CourseRecordViewType_t TypeOfView, struct UsrData *UsrDat,const char *Anchor); @@ -1229,6 +1232,7 @@ static void Rec_ShowRecordOneTchCrs (void) extern const char *Hlp_USERS_Teachers_timetable; extern const char *Txt_TIMETABLE_TYPES[TT_NUM_TIMETABLE_TYPES]; char Width[10+2+1]; + bool ShowOfficeHours; /***** Width for office hours *****/ sprintf (Width,"%upx",Rec_RECORD_WIDTH); @@ -1241,11 +1245,14 @@ static void Rec_ShowRecordOneTchCrs (void) /***** Asign users listing type depending on current action *****/ Gbl.Usrs.Listing.RecsUsrs = Rec_RECORD_USERS_TEACHERS; + /***** Get if I want to see teachers' office hours in teachers' records *****/ + ShowOfficeHours = Rec_GetParamShowOfficeHours (); + /***** Show contextual menu *****/ fprintf (Gbl.F.Out,"