Version 14.48.5

This commit is contained in:
Antonio Cañas Vargas 2014-12-31 00:48:40 +01:00
parent 9c148908ef
commit 896aa1027f
3 changed files with 50 additions and 1 deletions

View File

@ -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)

View File

@ -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,"</form>");
}
/*****************************************************************************/
/******************** 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,"<div style=\"padding-bottom:10px; text-align:center;\">");
Sta_PutFormToRequestAccessesCrs ();
fprintf (Gbl.F.Out,"</div>");
}
/***** Start form *****/
Act_FormStart (ActSeeAccGbl);
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\" style=\"margin:0 auto;\">");

View File

@ -47929,6 +47929,27 @@ const char *Txt_Visible_survey =
"Inqu&eacute;rito vis&iacute;vel";
#endif
const char *Txt_Visits_to_course =
#if L==0
"Accessos assignatura";
#elif L==1
"Anmeldungen bei Kurs";
#elif L==2
"Visits to course";
#elif L==3
"Accesos asignatura";
#elif L==4
"Visites mati&egrave;re";
#elif L==5
"Accesos asignatura"; // Okoteve traducción
#elif L==6
"Accessi al corso";
#elif L==7
"Wizyty w trakcie";
#elif L==8
"Visitas disciplina";
#endif
const char *Txt_Web_page =
#if L==0
"P&agrave;gina web";