From 64851913650ed4b09bcb80d61e1f939abdc128ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Sat, 9 Nov 2019 23:10:12 +0100 Subject: [PATCH] Version19.60.3 --- swad_changelog.h | 5 +-- swad_global.c | 2 +- swad_global.h | 2 +- swad_statistic.c | 93 ++++++++++++++++++++++++------------------------ swad_text.c | 85 ++++++++++++++++++++++++++----------------- 5 files changed, 105 insertions(+), 82 deletions(-) diff --git a/swad_changelog.h b/swad_changelog.h index 9139c3914..d288c86ca 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -487,7 +487,7 @@ enscript -2 --landscape --color --file-align=2 --highlight --line-numbers -o - * En OpenSWAD: ps2pdf source.ps destination.pdf */ -#define Log_PLATFORM_VERSION "SWAD 19.60.2 (2019-11-09)" +#define Log_PLATFORM_VERSION "SWAD 19.60.3 (2019-11-09)" #define CSS_FILE "swad19.47.css" #define JS_FILE "swad19.39.js" /* @@ -495,9 +495,10 @@ ps2pdf source.ps destination.pdf // TODO: Impedir la creación y edición de proyectos si no son editables. // TODO: Importante: filtrar proyectos por usuarios (igual que en trabajos o en asistencia) + Version 19.60.3: Nov 09, 2019 Code refactoring in HTML select options. (246311 lines) Version 19.60.2: Nov 09, 2019 Code refactoring in HTML break lines. (246290 lines) Version 19.60.1: Nov 09, 2019 Code refactoring in HTML break lines. (246281 lines) - Version 19.60: Nov 09, 2019 Code refactoring in HTML options. (246203 lines) + Version 19.60: Nov 09, 2019 Code refactoring in HTML select options. (246203 lines) Version 19.59: Nov 09, 2019 Code refactoring in HTML params. (246187 lines) Version 19.58: Nov 09, 2019 Code refactoring in HTML definition lists. (246169 lines) Version 19.57: Nov 09, 2019 Code refactoring in HTML definition lists. (246156 lines) diff --git a/swad_global.c b/swad_global.c index 098d00912..e77e10965 100644 --- a/swad_global.c +++ b/swad_global.c @@ -349,7 +349,7 @@ void Gbl_InitializeGlobals (void) Gbl.Stat.Role = Sta_ROLE_DEFAULT; Gbl.Stat.NumAction = Sta_NUM_ACTION_DEFAULT; Gbl.Stat.RowsPerPage = Sta_DEF_ROWS_PER_PAGE; - Gbl.Figures.FigureType = Fig_FIGURE_TYPE_DEF; + Gbl.Figures.FigureType = Fig_FIGURE_TYPE_DEF; Gbl.Scope.Current = Hie_CRS; diff --git a/swad_global.h b/swad_global.h index bd0e444e8..02e775c02 100644 --- a/swad_global.h +++ b/swad_global.h @@ -736,7 +736,7 @@ struct Globals Act_Action_t NumAction; unsigned long FirstRow; unsigned long LastRow; - unsigned long RowsPerPage; + unsigned RowsPerPage; long DegTypCod; long DptCod; char StrIndicatorsSelected[Ind_MAX_SIZE_INDICATORS_SELECTED + 1]; diff --git a/swad_statistic.c b/swad_statistic.c index 099a7ca69..7a46229fa 100644 --- a/swad_statistic.c +++ b/swad_statistic.c @@ -297,7 +297,7 @@ void Sta_AskShowCrsHits (void) extern const char *Txt_results_per_page; extern const char *Txt_Show_hits; extern const char *Txt_No_teachers_or_students_found; - static unsigned long RowsPerPage[] = + static unsigned RowsPerPage[] = { Sta_MIN_ROWS_PER_PAGE * 1, Sta_MIN_ROWS_PER_PAGE * 2, @@ -315,7 +315,8 @@ void Sta_AskShowCrsHits (void) #define NUM_OPTIONS_ROWS_PER_PAGE (sizeof (RowsPerPage) / sizeof (RowsPerPage[0])) unsigned NumTotalUsrs; Sta_ClicksGroupedBy_t ClicksGroupedBy; - unsigned long i; + unsigned ClicksGroupedByUnsigned; + size_t i; /***** Contextual menu *****/ Mnu_ContextMenuBegin (); @@ -425,11 +426,10 @@ void Sta_AskShowCrsHits (void) ClicksGroupedBy <= Sta_CLICKS_CRS_PER_ACTION; ClicksGroupedBy++) { - fprintf (Gbl.F.Out,"