diff --git a/swad_changelog.h b/swad_changelog.h index b5c214e80..96c39c071 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -103,11 +103,12 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 14.80.5 (2015/03/09)" +#define Log_PLATFORM_VERSION "SWAD 14.80.6 (2015/03/09)" // 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 | tail -1 /* + Version 14.80.6: Mar 09, 2015 Scope country for statistic of columns. (178987 lines) Version 14.80.5: Mar 09, 2015 Scope country for statistic of menu. (178974 lines) Version 14.80.4: Mar 09, 2015 Scope country for statistic of icon set. (178961 lines) Version 14.80.3: Mar 09, 2015 Scope country for statistic of theme. (178948 lines) diff --git a/swad_statistic.c b/swad_statistic.c index a5ff1d0c4..356eb0d61 100644 --- a/swad_statistic.c +++ b/swad_statistic.c @@ -7206,6 +7206,18 @@ static void Sta_GetAndShowNumUsrsPerSideColumns (void) sprintf (Query,"SELECT COUNT(*) FROM usr_data WHERE SideCols='%u'", SideCols); break; + case Sco_SCOPE_CTY: + sprintf (Query,"SELECT COUNT(DISTINCT usr_data.UsrCod)" + " FROM institutions,centres,degrees,courses,crs_usr,usr_data" + " WHERE institutions.CtyCod='%ld'" + " AND institutions.InsCod=centres.InsCod" + " AND centres.CtrCod=degrees.CtrCod" + " AND degrees.DegCod=courses.DegCod" + " AND courses.CrsCod=crs_usr.CrsCod" + " AND crs_usr.UsrCod=usr_data.UsrCod" + " AND usr_data.SideCols='%u'", + Gbl.CurrentCty.Cty.CtyCod,SideCols); + break; case Sco_SCOPE_INS: sprintf (Query,"SELECT COUNT(DISTINCT usr_data.UsrCod)" " FROM centres,degrees,courses,crs_usr,usr_data"