Version 14.80.4

This commit is contained in:
Antonio Cañas Vargas 2015-03-09 00:31:03 +01:00
parent a4a65a1316
commit 06698499d1
2 changed files with 14 additions and 1 deletions

View File

@ -103,11 +103,12 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 14.80.3 (2015/03/09)"
#define Log_PLATFORM_VERSION "SWAD 14.80.4 (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.4: Mar 09, 2015 Scope country for statistic of icons. (178961 lines)
Version 14.80.3: Mar 09, 2015 Scope country for statistic of theme. (178948 lines)
Version 14.80.2: Mar 09, 2015 Scope country for statistic of layout. (178936 lines)
Version 14.80.1: Mar 09, 2015 Scope country for statistic of language. (178923 lines)

View File

@ -6939,6 +6939,18 @@ static void Sta_GetAndShowNumUsrsPerIconSet (void)
sprintf (Query,"SELECT COUNT(*) FROM usr_data WHERE IconSet='%s'",
Ico_IconSetId[IconSet]);
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.IconSet='%s'",
Gbl.CurrentCty.Cty.CtyCod,Ico_IconSetId[IconSet]);
break;
case Sco_SCOPE_INS:
sprintf (Query,"SELECT COUNT(DISTINCT usr_data.UsrCod)"
" FROM centres,degrees,courses,crs_usr,usr_data"