Version 14.80.7

This commit is contained in:
Antonio Cañas Vargas 2015-03-09 00:40:29 +01:00
parent 74e19c92aa
commit 07e5793732
2 changed files with 12 additions and 1 deletions

View File

@ -103,11 +103,12 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 14.80.6 (2015/03/09)"
#define Log_PLATFORM_VERSION "SWAD 14.80.7 (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.7: Mar 09, 2015 Scope country for statistic of surveys. (178998 lines)
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)

View File

@ -3513,6 +3513,16 @@ unsigned Svy_GetNumCoursesWithSurveys (Sco_Scope_t Scope)
" FROM surveys"
" WHERE CrsCod>'0'");
break;
case Sco_SCOPE_CTY:
sprintf (Query,"SELECT COUNT(DISTINCT (surveys.CrsCod))"
" FROM institutions,centres,degrees,courses,surveys"
" WHERE institutions.CtyCod='%ld'"
" AND institutions.InsCod=centres.InsCod"
" AND centres.CtrCod=degrees.CtrCod"
" AND degrees.DegCod=courses.DegCod"
" AND courses.CrsCod=surveys.CrsCod",
Gbl.CurrentIns.Ins.InsCod);
break;
case Sco_SCOPE_INS:
sprintf (Query,"SELECT COUNT(DISTINCT (surveys.CrsCod))"
" FROM centres,degrees,courses,surveys"