diff --git a/swad_changelog.h b/swad_changelog.h index a89a4a27c..955ccbe65 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -35,11 +35,12 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 14.48.4 (2014/12/31)" +#define Log_PLATFORM_VERSION "SWAD 14.48.5 (2014/12/31)" // 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.48.5 :Dec 30, 2014 New links to see accesses to the current course in platform accesses. (174463 lines) Version 14.48.4 :Dec 31, 2014 The text of some menu items has been reduced to a single word. Fixed bugs in layout. (174420 lines) Version 14.48.3 :Dec 30, 2014 Options to see the results of test exams removed from main menu. (174418 lines) diff --git a/swad_statistic.c b/swad_statistic.c index 8b2dd126d..24c8275e7 100644 --- a/swad_statistic.c +++ b/swad_statistic.c @@ -87,6 +87,8 @@ struct Sta_StatsForum /***************************** Internal prototypes ***************************/ /*****************************************************************************/ +static void Sta_PutFormToRequestAccessesCrs (void); + static void Sta_PutSeeAccessesButton (void); static void Sta_WriteSelectorCountType (void); static void Sta_WriteSelectorAction (void); @@ -350,6 +352,21 @@ void Sta_RemoveOldEntriesRecentLog (void) DB_QueryDELETE (Query,"can not remove old entries from recent log"); } +/*****************************************************************************/ +/*************** Write a form to go to result of users' tests ****************/ +/*****************************************************************************/ + +static void Sta_PutFormToRequestAccessesCrs (void) + { + extern const char *The_ClassFormul[The_NUM_THEMES]; + extern const char *Txt_Visits_to_course; + + Act_FormStart (ActReqAccCrs); + Act_LinkFormSubmit (Txt_Visits_to_course,The_ClassFormul[Gbl.Prefs.Theme]); + Lay_PutSendIcon ("stats",Txt_Visits_to_course,Txt_Visits_to_course); + fprintf (Gbl.F.Out,""); + } + /*****************************************************************************/ /******************** Show a form to make a query of clicks ******************/ /*****************************************************************************/ @@ -513,6 +530,16 @@ void Sta_AskSeeGblAccesses (void) Sta_Role_t RoleStat; Sta_ClicksStatType_t ClicksStatType; + /***** Put form to go to test edition and configuration *****/ + if (Gbl.CurrentCrs.Crs.CrsCod > 0 && // Course selected + (Gbl.Usrs.Me.LoggedRole == Rol_ROLE_TEACHER || + Gbl.Usrs.Me.LoggedRole == Rol_ROLE_SUPERUSER)) + { + fprintf (Gbl.F.Out,"