mirror of
https://github.com/acanas/swad-core.git
synced 2024-09-23 00:00:50 +02:00
Version19.180.1
This commit is contained in:
parent
df628d40b1
commit
63157df70b
|
@ -497,7 +497,7 @@ enscript -2 --landscape --color --file-align=2 --highlight --line-numbers -o - *
|
||||||
En OpenSWAD:
|
En OpenSWAD:
|
||||||
ps2pdf source.ps destination.pdf
|
ps2pdf source.ps destination.pdf
|
||||||
*/
|
*/
|
||||||
#define Log_PLATFORM_VERSION "SWAD 19.180 (2020-04-12)"
|
#define Log_PLATFORM_VERSION "SWAD 19.180.1 (2020-04-12)"
|
||||||
#define CSS_FILE "swad19.146.css"
|
#define CSS_FILE "swad19.146.css"
|
||||||
#define JS_FILE "swad19.172.1.js"
|
#define JS_FILE "swad19.172.1.js"
|
||||||
/*
|
/*
|
||||||
|
@ -548,6 +548,7 @@ Funci
|
||||||
// TODO: Oresti Baños: cambiar ojos por candados en descriptores para prohibir/permitir y dejar los ojos para poder elegir descriptores
|
// TODO: Oresti Baños: cambiar ojos por candados en descriptores para prohibir/permitir y dejar los ojos para poder elegir descriptores
|
||||||
// TODO: Integrar pull requests con traducciones del alemán del usuario eruedin en GitHub
|
// TODO: Integrar pull requests con traducciones del alemán del usuario eruedin en GitHub
|
||||||
|
|
||||||
|
Version 19.180.1: Apr 12, 2020 Changes in stats of clicks. (285599 lines)
|
||||||
Version 19.180: Apr 12, 2020 Code refactoring in photo of degree. (285603 lines)
|
Version 19.180: Apr 12, 2020 Code refactoring in photo of degree. (285603 lines)
|
||||||
Version 19.179: Apr 12, 2020 Code refactoring in indicators. (285582 lines)
|
Version 19.179: Apr 12, 2020 Code refactoring in indicators. (285582 lines)
|
||||||
Version 19.178: Apr 12, 2020 Code refactoring in statistics. (285569 lines)
|
Version 19.178: Apr 12, 2020 Code refactoring in statistics. (285569 lines)
|
||||||
|
|
|
@ -992,9 +992,9 @@ void Dat_GetIniEndDatesFromForm (void)
|
||||||
tm.tm_min = 0;
|
tm.tm_min = 0;
|
||||||
tm.tm_sec = 0;
|
tm.tm_sec = 0;
|
||||||
tm.tm_isdst = -1; // a negative value means that mktime() should
|
tm.tm_isdst = -1; // a negative value means that mktime() should
|
||||||
// (use timezone information and system databases to)
|
// (use timezone information and system databases to)
|
||||||
// attempt to determine whether DST
|
// attempt to determine whether DST
|
||||||
// is in effect at the specified time.
|
// is in effect at the specified time.
|
||||||
if ((Gbl.DateRange.TimeUTC[Dat_START_TIME] = mktime (&tm)) < 0)
|
if ((Gbl.DateRange.TimeUTC[Dat_START_TIME] = mktime (&tm)) < 0)
|
||||||
Gbl.DateRange.TimeUTC[Dat_START_TIME] = (time_t) 0;
|
Gbl.DateRange.TimeUTC[Dat_START_TIME] = (time_t) 0;
|
||||||
tm_ptr = &tm;
|
tm_ptr = &tm;
|
||||||
|
|
|
@ -1224,6 +1224,7 @@ static void Rep_ShowMyHitsPerYear (bool AnyCourse,long CrsCod,Rol_Role_t Role,
|
||||||
unsigned long NumRows;
|
unsigned long NumRows;
|
||||||
unsigned long NumRow;
|
unsigned long NumRow;
|
||||||
unsigned ReadYear;
|
unsigned ReadYear;
|
||||||
|
unsigned FirstYear;
|
||||||
unsigned LastYear;
|
unsigned LastYear;
|
||||||
unsigned Year;
|
unsigned Year;
|
||||||
|
|
||||||
|
@ -1251,7 +1252,7 @@ static void Rep_ShowMyHitsPerYear (bool AnyCourse,long CrsCod,Rol_Role_t Role,
|
||||||
SubQueryRol);
|
SubQueryRol);
|
||||||
|
|
||||||
/***** Initialize first year *****/
|
/***** Initialize first year *****/
|
||||||
Gbl.DateRange.DateIni.Date.Year = 1900 + Report->tm_FirstClickTime.tm_year;
|
FirstYear = 1900 + Report->tm_FirstClickTime.tm_year;
|
||||||
|
|
||||||
/***** Initialize LastYear *****/
|
/***** Initialize LastYear *****/
|
||||||
LastYear = Gbl.Now.Date.Year;
|
LastYear = Gbl.Now.Date.Year;
|
||||||
|
@ -1302,8 +1303,8 @@ static void Rep_ShowMyHitsPerYear (bool AnyCourse,long CrsCod,Rol_Role_t Role,
|
||||||
DB_FreeMySQLResult (&mysql_res);
|
DB_FreeMySQLResult (&mysql_res);
|
||||||
|
|
||||||
/***** Finally, show the oldest years without clicks *****/
|
/***** Finally, show the oldest years without clicks *****/
|
||||||
for (Year = LastYear;
|
for (Year = LastYear;
|
||||||
Year >= Gbl.DateRange.DateIni.Date.Year;
|
Year >= FirstYear;
|
||||||
Year--)
|
Year--)
|
||||||
{
|
{
|
||||||
/* Write the year */
|
/* Write the year */
|
||||||
|
|
|
@ -456,7 +456,11 @@ void Sta_AskShowGblHits (void)
|
||||||
extern const char *Txt_STAT_CLICKS_GROUPED_BY[Sta_NUM_CLICKS_GROUPED_BY];
|
extern const char *Txt_STAT_CLICKS_GROUPED_BY[Sta_NUM_CLICKS_GROUPED_BY];
|
||||||
extern const char *Txt_Show_hits;
|
extern const char *Txt_Show_hits;
|
||||||
struct Sta_Stats Stats;
|
struct Sta_Stats Stats;
|
||||||
Dat_SetHMS SetHMS[Dat_NUM_START_END_TIME];
|
static const Dat_SetHMS SetHMS[Dat_NUM_START_END_TIME] =
|
||||||
|
{
|
||||||
|
[Dat_START_TIME] = Dat_HMS_TO_000000,
|
||||||
|
[Dat_END_TIME ] = Dat_HMS_TO_235959
|
||||||
|
};
|
||||||
Sta_Role_t RoleStat;
|
Sta_Role_t RoleStat;
|
||||||
unsigned RoleStatUnsigned;
|
unsigned RoleStatUnsigned;
|
||||||
Sta_ClicksGroupedBy_t ClicksGroupedBy;
|
Sta_ClicksGroupedBy_t ClicksGroupedBy;
|
||||||
|
@ -480,16 +484,6 @@ void Sta_AskShowGblHits (void)
|
||||||
Hlp_ANALYTICS_Visits_global_visits,Box_NOT_CLOSABLE,2);
|
Hlp_ANALYTICS_Visits_global_visits,Box_NOT_CLOSABLE,2);
|
||||||
|
|
||||||
/***** Start and end dates for the search *****/
|
/***** Start and end dates for the search *****/
|
||||||
if (Gbl.Action.Act == ActReqAccCrs)
|
|
||||||
{
|
|
||||||
SetHMS[Dat_START_TIME] = Dat_HMS_TO_000000;
|
|
||||||
SetHMS[Dat_END_TIME ] = Dat_HMS_TO_235959;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
SetHMS[Dat_START_TIME] = Dat_HMS_DO_NOT_SET;
|
|
||||||
SetHMS[Dat_END_TIME ] = Dat_HMS_DO_NOT_SET;
|
|
||||||
}
|
|
||||||
Dat_PutFormStartEndClientLocalDateTimesWithYesterdayToday (SetHMS);
|
Dat_PutFormStartEndClientLocalDateTimesWithYesterdayToday (SetHMS);
|
||||||
|
|
||||||
/***** Users' roles whose accesses we want to see *****/
|
/***** Users' roles whose accesses we want to see *****/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user