Version 14.80.14

This commit is contained in:
Antonio Cañas Vargas 2015-03-09 11:15:45 +01:00
parent 865582e07f
commit eba99ccff3
2 changed files with 18 additions and 1 deletions

View File

@ -103,11 +103,12 @@
/****************************** Public constants *****************************/ /****************************** Public constants *****************************/
/*****************************************************************************/ /*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 14.80.13 (2015/03/09)" #define Log_PLATFORM_VERSION "SWAD 14.80.14 (2015/03/09)"
// Number of lines (includes comments but not blank lines) has been got with the following command: // 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 // nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*.h | tail -1
/* /*
Version 14.80.14: Mar 09, 2015 Scope country for statistic of OERs. (179379 lines)
Version 14.80.13: Mar 09, 2015 Scope country for statistic of assignments. (179362 lines) Version 14.80.13: Mar 09, 2015 Scope country for statistic of assignments. (179362 lines)
Version 14.80.12: Mar 09, 2015 Scope country for statistic of tests. (179340 lines) Version 14.80.12: Mar 09, 2015 Scope country for statistic of tests. (179340 lines)
Version 14.80.11: Mar 09, 2015 Scope country for statistic of notifications. (179267 lines) Version 14.80.11: Mar 09, 2015 Scope country for statistic of notifications. (179267 lines)

View File

@ -5410,6 +5410,22 @@ static void Sta_GetNumberOfOERsFromDB (Sco_Scope_t Scope,Brw_License_t License,u
" GROUP BY Public", " GROUP BY Public",
(unsigned) License); (unsigned) License);
break; break;
case Sco_SCOPE_CTY:
sprintf (Query,"SELECT files.Public,COUNT(*)"
" FROM institutions,centres,degrees,courses,files"
" WHERE institutions.CtyCod='%ld'"
" AND institutions.InsCod=centres.InsCod"
" AND centres.CtrCod=degrees.CtrCod"
" AND degrees.DegCod=courses.DegCod"
" AND courses.CrsCod=files.Cod"
" AND files.FileBrowser IN ('%u','%u')"
" AND files.License='%u'"
" GROUP BY files.Public",
Gbl.CurrentCty.Cty.CtyCod,
(unsigned) Brw_ADMI_DOCUM_CRS,
(unsigned) Brw_ADMI_SHARE_CRS,
(unsigned) License);
break;
case Sco_SCOPE_INS: case Sco_SCOPE_INS:
sprintf (Query,"SELECT files.Public,COUNT(*)" sprintf (Query,"SELECT files.Public,COUNT(*)"
" FROM centres,degrees,courses,files" " FROM centres,degrees,courses,files"