"
+ ""
+ "%u"
+ " | ",
+ NumOrder);
+
+ /***** Write link to institution *****/
+ fprintf (Gbl.F.Out,"",
+ The_ClassForm[Gbl.Prefs.Theme]);
+
+ /* Icon and name of this institution */
+ Act_FormStart (ActSeeInsInf);
+ Ins_PutParamInsCod (Ins.InsCod);
+ Act_LinkFormSubmit (Ins.ShortName,The_ClassForm[Gbl.Prefs.Theme]);
+ if (Gbl.Usrs.Listing.WithPhotos)
+ {
+ Log_DrawLogo (Sco_SCOPE_INS,Ins.InsCod,Ins.ShortName,
+ 32,NULL,true);
+ fprintf (Gbl.F.Out," ");
+ }
+ fprintf (Gbl.F.Out,"%s",Ins.FullName);
+ Act_FormEnd ();
+
+ fprintf (Gbl.F.Out," | ");
+
+ /***** Write statistic *****/
+ fprintf (Gbl.F.Out,""
+ "%u"
+ " | "
+ "
",
+ NumberThisRow);
+
+ NumberLastRow = NumberThisRow;
+ }
+ break;
}
}
@@ -5082,6 +5149,30 @@ static void Sta_GetAndShowInss (const char *Query,const char *TxtFigure)
/************************* Get total number of users *************************/
/*****************************************************************************/
+static unsigned Sta_GetInsAndStat (struct Institution *Ins,MYSQL_RES *mysql_res)
+ {
+ MYSQL_ROW row;
+ unsigned NumberThisRow;
+
+ /***** Get next institution *****/
+ row = mysql_fetch_row (mysql_res);
+
+ /***** Get data of this institution (row[0]) *****/
+ Ins->InsCod = Str_ConvertStrCodToLongCod (row[0]);
+ if (!Ins_GetDataOfInstitutionByCod (Ins,Ins_GET_MINIMAL_DATA))
+ Lay_ShowErrorAndExit ("Institution not found.");
+
+ /***** Get statistic (row[1]) *****/
+ if (sscanf (row[1],"%u",&NumberThisRow) != 1)
+ Lay_ShowErrorAndExit ("Error in statistic");
+
+ return NumberThisRow;
+ }
+
+/*****************************************************************************/
+/************************* Get total number of users *************************/
+/*****************************************************************************/
+
unsigned Sta_GetTotalNumberOfUsers (Sco_Scope_t Scope,Rol_Role_t Role)
{
char Query[512];
diff --git a/swad_statistic.h b/swad_statistic.h
index ef362002..1ade0f7a 100644
--- a/swad_statistic.h
+++ b/swad_statistic.h
@@ -147,6 +147,7 @@ void Sta_SetIniEndDates (void);
void Sta_SeeGblAccesses (void);
void Sta_SeeCrsAccesses (void);
void Sta_ReqUseOfPlatform (void);
+void Pho_PutHiddenParamFigureType (void);
void Sta_ShowUseOfPlatform (void);
unsigned Sta_GetTotalNumberOfUsers (Sco_Scope_t Scope,Rol_Role_t Role);
void Sta_WriteParamsDatesSeeAccesses (void);
diff --git a/swad_test.c b/swad_test.c
index 30967a58..b4fe3c1c 100644
--- a/swad_test.c
+++ b/swad_test.c
@@ -5889,7 +5889,8 @@ void Tst_SelUsrsToSeeUsrsTstExams (void)
extern const char *Txt_Users;
extern const char *Txt_See_exams;
- /***** Get and update type of list, number of columns in class photo
+ /***** Get and update type of list,
+ number of columns in class photo
and preference about view photos *****/
Usr_GetAndUpdatePrefsAboutUsrList ();
diff --git a/swad_user.c b/swad_user.c
index 1d578bb7..57c464fc 100644
--- a/swad_user.c
+++ b/swad_user.c
@@ -4779,7 +4779,7 @@ void Usr_FreeListOtherRecipients (void)
void Usr_ShowFormsToSelectUsrListType (Act_Action_t NextAction)
{
- /***** Select USR_CLASS_ROOM *****/
+ /***** Select Usr_CLASS_PHOTO *****/
fprintf (Gbl.F.Out,"