Version 16.47.12

This commit is contained in:
Antonio Cañas Vargas 2016-11-07 01:01:21 +01:00
parent ee7d26fe06
commit a7205acbab
2 changed files with 25 additions and 6 deletions

View File

@ -156,13 +156,14 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 16.47.11 (2016-11-07)"
#define Log_PLATFORM_VERSION "SWAD 16.47.12 (2016-11-07)"
#define CSS_FILE "swad16.32.1.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.47.12: Nov 07, 2016 Icon in list of teachers to show figure (statistics). (206278 lines)
Version 16.47.11: Nov 07, 2016 Icon in list of students to show figure (statistics). (206262 lines)
Version 16.47.10: Nov 07, 2016 Icon in list of surveys to show figure (statistics). (206246 lines)
Version 16.47.9: Nov 07, 2016 Icon in list of courses to show figure (statistics). (206231 lines)

View File

@ -179,6 +179,7 @@ static void Usr_PutLinkToSeeAdmins (void);
static void Usr_PutLinkToSeeGuests (void);
static void Usr_PutIconsListStds (void);
static void Usr_PutIconsListTchs (void);
static void Usr_PutIconToPrintGsts (void);
static void Usr_PutIconToPrintStds (void);
@ -7032,11 +7033,7 @@ void Usr_SeeTeachers (void)
if (Usr_GetIfShowBigList (Gbl.Usrs.LstUsrs[Rol_TEACHER].NumUsrs,NULL))
{
/***** Start frame *****/
Lay_StartRoundFrame (NULL,Txt_ROLES_PLURAL_Abc[Rol_TEACHER][Usr_SEX_UNKNOWN],
(Gbl.Usrs.Me.ListType == Usr_CLASS_PHOTO) ? (Gbl.Usrs.LstUsrs[Rol_TEACHER].NumUsrs ? Usr_PutIconToPrintTchs :
NULL) :
((Gbl.Usrs.Me.LoggedRole >= Rol_DEG_ADM) ? Usr_PutIconToShowTchsAllData :
NULL));
Lay_StartRoundFrame (NULL,Txt_ROLES_PLURAL_Abc[Rol_TEACHER][Usr_SEX_UNKNOWN],Usr_PutIconsListTchs);
/***** Form to select scope *****/
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\">");
@ -7137,6 +7134,27 @@ static void Usr_PutIconsListStds (void)
Sta_PutIconToShowFigure ();
}
/*****************************************************************************/
/**************** Put contextual icons in list of teachers *******************/
/*****************************************************************************/
static void Usr_PutIconsListTchs (void)
{
if (Gbl.Usrs.Me.ListType == Usr_CLASS_PHOTO)
{
if (Gbl.Usrs.LstUsrs[Rol_TEACHER].NumUsrs)
/***** Put icon to print teachers *****/
Usr_PutIconToPrintTchs ();
}
else if (Gbl.Usrs.Me.LoggedRole >= Rol_DEG_ADM)
/***** Put icon to show all data of teachers *****/
Usr_PutIconToShowTchsAllData ();
/***** Put icon to show a figure *****/
Gbl.Stat.FigureType = Sta_USERS;
Sta_PutIconToShowFigure ();
}
/*****************************************************************************/
/***************** Functions used to print lists of users ********************/
/*****************************************************************************/