mirror of https://github.com/acanas/swad-core.git
Version19.109.3
This commit is contained in:
parent
28c3b56269
commit
6c13f4dd8a
|
@ -492,7 +492,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.109.2 (2020-01-02)"
|
#define Log_PLATFORM_VERSION "SWAD 19.109.3 (2020-01-02)"
|
||||||
#define CSS_FILE "swad19.101.5.css"
|
#define CSS_FILE "swad19.101.5.css"
|
||||||
#define JS_FILE "swad19.91.1.js"
|
#define JS_FILE "swad19.91.1.js"
|
||||||
/*
|
/*
|
||||||
|
@ -502,6 +502,7 @@ ps2pdf source.ps destination.pdf
|
||||||
// TODO: Version 19.1xx: Jan xx, 2020 Map in country information. (? lines)
|
// TODO: Version 19.1xx: Jan xx, 2020 Map in country information. (? lines)
|
||||||
// TODO: Version 19.1xx: Jan xx, 2020 Map in institution information. (? lines)
|
// TODO: Version 19.1xx: Jan xx, 2020 Map in institution information. (? lines)
|
||||||
|
|
||||||
|
Version 19.109.3: Jan 02, 2020 Changing action descriptions from database to swad-core. Not finished. (278839 lines)
|
||||||
Version 19.109.2: Jan 02, 2020 Changing action descriptions from database to swad-core. Not finished. (278623 lines)
|
Version 19.109.2: Jan 02, 2020 Changing action descriptions from database to swad-core. Not finished. (278623 lines)
|
||||||
Version 19.109.1: Jan 01, 2020 Changing action descriptions from database to swad-core. Not finished. (278680 lines)
|
Version 19.109.1: Jan 01, 2020 Changing action descriptions from database to swad-core. Not finished. (278680 lines)
|
||||||
Version 19.109: Jan 01, 2020 Changing action descriptions from database to swad-core. Not finished. (278686 lines)
|
Version 19.109: Jan 01, 2020 Changing action descriptions from database to swad-core. Not finished. (278686 lines)
|
||||||
|
|
|
@ -966,6 +966,7 @@ void Cty_WriteSelectorOfCountry (void)
|
||||||
|
|
||||||
void Cty_WriteCountryName (long CtyCod,const char *ClassLink)
|
void Cty_WriteCountryName (long CtyCod,const char *ClassLink)
|
||||||
{
|
{
|
||||||
|
extern const char *Txt_Actions[Act_NUM_ACTIONS];
|
||||||
char CtyName[Cty_MAX_BYTES_NAME + 1];
|
char CtyName[Cty_MAX_BYTES_NAME + 1];
|
||||||
char ActTxt[Act_MAX_BYTES_ACTION_TXT + 1];
|
char ActTxt[Act_MAX_BYTES_ACTION_TXT + 1];
|
||||||
bool PutForm = ClassLink &&
|
bool PutForm = ClassLink &&
|
||||||
|
@ -980,8 +981,16 @@ void Cty_WriteCountryName (long CtyCod,const char *ClassLink)
|
||||||
/***** Write country name with link to country information *****/
|
/***** Write country name with link to country information *****/
|
||||||
Frm_StartForm (ActSeeCtyInf);
|
Frm_StartForm (ActSeeCtyInf);
|
||||||
Cty_PutParamCtyCod (CtyCod);
|
Cty_PutParamCtyCod (CtyCod);
|
||||||
HTM_BUTTON_SUBMIT_Begin (Act_GetActionTextFromDB (Act_GetActCod (ActSeeCtyInf),ActTxt),
|
if (Txt_Actions[ActSeeCtyInf])
|
||||||
ClassLink,NULL);
|
{
|
||||||
|
if (Txt_Actions[ActSeeCtyInf][0])
|
||||||
|
HTM_BUTTON_SUBMIT_Begin (Txt_Actions[ActSeeCtyInf],ClassLink,NULL);
|
||||||
|
else
|
||||||
|
HTM_BUTTON_SUBMIT_Begin (Act_GetActionTextFromDB (Act_GetActCod (ActSeeCtyInf),ActTxt),
|
||||||
|
ClassLink,NULL);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
HTM_BUTTON_SUBMIT_Begin ("?",ClassLink,NULL);
|
||||||
HTM_Txt (CtyName);
|
HTM_Txt (CtyName);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
Frm_EndForm ();
|
Frm_EndForm ();
|
||||||
|
|
|
@ -143,6 +143,7 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
|
||||||
extern const char *The_ClassFormLinkInBoxBold[The_NUM_THEMES];
|
extern const char *The_ClassFormLinkInBoxBold[The_NUM_THEMES];
|
||||||
extern const char *Txt_My_courses;
|
extern const char *Txt_My_courses;
|
||||||
extern const char *Txt_System;
|
extern const char *Txt_System;
|
||||||
|
extern const char *Txt_Actions[Act_NUM_ACTIONS];
|
||||||
struct Country Cty;
|
struct Country Cty;
|
||||||
struct Instit Ins;
|
struct Instit Ins;
|
||||||
struct Centre Ctr;
|
struct Centre Ctr;
|
||||||
|
@ -219,10 +220,24 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
|
||||||
Lay_IndentDependingOnLevel (1,IsLastItemInLevel);
|
Lay_IndentDependingOnLevel (1,IsLastItemInLevel);
|
||||||
Frm_StartForm (ActMyCrs);
|
Frm_StartForm (ActMyCrs);
|
||||||
Cty_PutParamCtyCod (Cty.CtyCod);
|
Cty_PutParamCtyCod (Cty.CtyCod);
|
||||||
HTM_BUTTON_SUBMIT_Begin (Act_GetActionTextFromDB (Act_GetActCod (ActSeeCtyInf),ActTxt),
|
if (Txt_Actions[ActSeeCtyInf])
|
||||||
Highlight ? ClassHighlight :
|
{
|
||||||
ClassNormal,
|
if (Txt_Actions[ActSeeCtyInf][0])
|
||||||
NULL);
|
HTM_BUTTON_SUBMIT_Begin (Txt_Actions[ActSeeCtyInf],
|
||||||
|
Highlight ? ClassHighlight :
|
||||||
|
ClassNormal,
|
||||||
|
NULL);
|
||||||
|
else
|
||||||
|
HTM_BUTTON_SUBMIT_Begin (Act_GetActionTextFromDB (Act_GetActCod (ActSeeCtyInf),ActTxt),
|
||||||
|
Highlight ? ClassHighlight :
|
||||||
|
ClassNormal,
|
||||||
|
NULL);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
HTM_BUTTON_SUBMIT_Begin ("?",
|
||||||
|
Highlight ? ClassHighlight :
|
||||||
|
ClassNormal,
|
||||||
|
NULL);
|
||||||
Cty_DrawCountryMap (&Cty,"ICO16x16");
|
Cty_DrawCountryMap (&Cty,"ICO16x16");
|
||||||
HTM_TxtF (" %s",Cty.Name[Gbl.Prefs.Language]);
|
HTM_TxtF (" %s",Cty.Name[Gbl.Prefs.Language]);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
@ -253,10 +268,24 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
|
||||||
Lay_IndentDependingOnLevel (2,IsLastItemInLevel);
|
Lay_IndentDependingOnLevel (2,IsLastItemInLevel);
|
||||||
Frm_StartForm (ActMyCrs);
|
Frm_StartForm (ActMyCrs);
|
||||||
Ins_PutParamInsCod (Ins.InsCod);
|
Ins_PutParamInsCod (Ins.InsCod);
|
||||||
HTM_BUTTON_SUBMIT_Begin (Act_GetActionTextFromDB (Act_GetActCod (ActSeeInsInf),ActTxt),
|
if (Txt_Actions[ActSeeInsInf])
|
||||||
Highlight ? ClassHighlight :
|
{
|
||||||
ClassNormal,
|
if (Txt_Actions[ActSeeInsInf][0])
|
||||||
NULL);
|
HTM_BUTTON_SUBMIT_Begin (Txt_Actions[ActSeeInsInf],
|
||||||
|
Highlight ? ClassHighlight :
|
||||||
|
ClassNormal,
|
||||||
|
NULL);
|
||||||
|
else
|
||||||
|
HTM_BUTTON_SUBMIT_Begin (Act_GetActionTextFromDB (Act_GetActCod (ActSeeInsInf),ActTxt),
|
||||||
|
Highlight ? ClassHighlight :
|
||||||
|
ClassNormal,
|
||||||
|
NULL);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
HTM_BUTTON_SUBMIT_Begin ("?",
|
||||||
|
Highlight ? ClassHighlight :
|
||||||
|
ClassNormal,
|
||||||
|
NULL);
|
||||||
Lgo_DrawLogo (Hie_INS,Ins.InsCod,Ins.ShrtName,16,NULL,true);
|
Lgo_DrawLogo (Hie_INS,Ins.InsCod,Ins.ShrtName,16,NULL,true);
|
||||||
HTM_TxtF (" %s",Ins.ShrtName);
|
HTM_TxtF (" %s",Ins.ShrtName);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
@ -287,10 +316,24 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
|
||||||
Lay_IndentDependingOnLevel (3,IsLastItemInLevel);
|
Lay_IndentDependingOnLevel (3,IsLastItemInLevel);
|
||||||
Frm_StartForm (ActMyCrs);
|
Frm_StartForm (ActMyCrs);
|
||||||
Ctr_PutParamCtrCod (Ctr.CtrCod);
|
Ctr_PutParamCtrCod (Ctr.CtrCod);
|
||||||
HTM_BUTTON_SUBMIT_Begin (Act_GetActionTextFromDB (Act_GetActCod (ActSeeCtrInf),ActTxt),
|
if (Txt_Actions[ActSeeCtrInf])
|
||||||
Highlight ? ClassHighlight :
|
{
|
||||||
ClassNormal,
|
if (Txt_Actions[ActSeeCtrInf][0])
|
||||||
NULL);
|
HTM_BUTTON_SUBMIT_Begin (Txt_Actions[ActSeeCtrInf],
|
||||||
|
Highlight ? ClassHighlight :
|
||||||
|
ClassNormal,
|
||||||
|
NULL);
|
||||||
|
else
|
||||||
|
HTM_BUTTON_SUBMIT_Begin (Act_GetActionTextFromDB (Act_GetActCod (ActSeeCtrInf),ActTxt),
|
||||||
|
Highlight ? ClassHighlight :
|
||||||
|
ClassNormal,
|
||||||
|
NULL);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
HTM_BUTTON_SUBMIT_Begin ("?",
|
||||||
|
Highlight ? ClassHighlight :
|
||||||
|
ClassNormal,
|
||||||
|
NULL);
|
||||||
Lgo_DrawLogo (Hie_CTR,Ctr.CtrCod,Ctr.ShrtName,16,NULL,true);
|
Lgo_DrawLogo (Hie_CTR,Ctr.CtrCod,Ctr.ShrtName,16,NULL,true);
|
||||||
HTM_TxtF (" %s",Ctr.ShrtName);
|
HTM_TxtF (" %s",Ctr.ShrtName);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
@ -321,10 +364,24 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
|
||||||
Lay_IndentDependingOnLevel (4,IsLastItemInLevel);
|
Lay_IndentDependingOnLevel (4,IsLastItemInLevel);
|
||||||
Frm_StartForm (ActMyCrs);
|
Frm_StartForm (ActMyCrs);
|
||||||
Deg_PutParamDegCod (Deg.DegCod);
|
Deg_PutParamDegCod (Deg.DegCod);
|
||||||
HTM_BUTTON_SUBMIT_Begin (Act_GetActionTextFromDB (Act_GetActCod (ActSeeDegInf),ActTxt),
|
if (Txt_Actions[ActSeeDegInf])
|
||||||
Highlight ? ClassHighlight :
|
{
|
||||||
ClassNormal,
|
if (Txt_Actions[ActSeeDegInf][0])
|
||||||
NULL);
|
HTM_BUTTON_SUBMIT_Begin (Txt_Actions[ActSeeDegInf],
|
||||||
|
Highlight ? ClassHighlight :
|
||||||
|
ClassNormal,
|
||||||
|
NULL);
|
||||||
|
else
|
||||||
|
HTM_BUTTON_SUBMIT_Begin (Act_GetActionTextFromDB (Act_GetActCod (ActSeeDegInf),ActTxt),
|
||||||
|
Highlight ? ClassHighlight :
|
||||||
|
ClassNormal,
|
||||||
|
NULL);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
HTM_BUTTON_SUBMIT_Begin ("?",
|
||||||
|
Highlight ? ClassHighlight :
|
||||||
|
ClassNormal,
|
||||||
|
NULL);
|
||||||
Lgo_DrawLogo (Hie_DEG,Deg.DegCod,Deg.ShrtName,16,NULL,true);
|
Lgo_DrawLogo (Hie_DEG,Deg.DegCod,Deg.ShrtName,16,NULL,true);
|
||||||
HTM_TxtF (" %s",Deg.ShrtName);
|
HTM_TxtF (" %s",Deg.ShrtName);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
|
15
swad_forum.c
15
swad_forum.c
|
@ -2014,6 +2014,7 @@ static void For_WriteLinkToForum (struct Forum *Forum,
|
||||||
extern const char *The_ClassFormLinkInBox[The_NUM_THEMES];
|
extern const char *The_ClassFormLinkInBox[The_NUM_THEMES];
|
||||||
extern const char *The_ClassFormLinkInBoxBold[The_NUM_THEMES];
|
extern const char *The_ClassFormLinkInBoxBold[The_NUM_THEMES];
|
||||||
extern const char *Txt_Copy_not_allowed;
|
extern const char *Txt_Copy_not_allowed;
|
||||||
|
extern const char *Txt_Actions[Act_NUM_ACTIONS];
|
||||||
unsigned NumThrs;
|
unsigned NumThrs;
|
||||||
unsigned NumThrsWithNewPosts;
|
unsigned NumThrsWithNewPosts;
|
||||||
char ActTxt[Act_MAX_BYTES_ACTION_TXT + 1];
|
char ActTxt[Act_MAX_BYTES_ACTION_TXT + 1];
|
||||||
|
@ -2065,8 +2066,18 @@ static void For_WriteLinkToForum (struct Forum *Forum,
|
||||||
Forum->Location,
|
Forum->Location,
|
||||||
-1L,
|
-1L,
|
||||||
-1L);
|
-1L);
|
||||||
HTM_BUTTON_SUBMIT_Begin (Act_GetActionTextFromDB (Act_GetActCod (For_ActionsSeeFor[Forum->Type]),ActTxt),
|
|
||||||
Class,NULL);
|
if (Txt_Actions[For_ActionsSeeFor[Forum->Type]])
|
||||||
|
{
|
||||||
|
if (Txt_Actions[For_ActionsSeeFor[Forum->Type]][0])
|
||||||
|
HTM_BUTTON_SUBMIT_Begin (Txt_Actions[For_ActionsSeeFor[Forum->Type]],
|
||||||
|
Class,NULL);
|
||||||
|
else
|
||||||
|
HTM_BUTTON_SUBMIT_Begin (Act_GetActionTextFromDB (Act_GetActCod (For_ActionsSeeFor[Forum->Type]),ActTxt),
|
||||||
|
Class,NULL);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
HTM_BUTTON_SUBMIT_Begin ("?",Class,NULL);
|
||||||
For_SetForumName (Forum,ForumName,Gbl.Prefs.Language,true);
|
For_SetForumName (Forum,ForumName,Gbl.Prefs.Language,true);
|
||||||
switch (Forum->Type)
|
switch (Forum->Type)
|
||||||
{
|
{
|
||||||
|
|
|
@ -354,4 +354,3 @@ void Log_GetAndShowLastClicks (void)
|
||||||
/***** Free structure that stores the query result *****/
|
/***** Free structure that stores the query result *****/
|
||||||
mysql_free_result (mysql_res);
|
mysql_free_result (mysql_res);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -767,6 +767,7 @@ static void Rep_WriteSectionHitsPerAction (struct Rep_Report *Report)
|
||||||
extern Act_Action_t Act_FromActCodToAction[1 + Act_MAX_ACTION_COD];
|
extern Act_Action_t Act_FromActCodToAction[1 + Act_MAX_ACTION_COD];
|
||||||
extern const char *Txt_Hits_per_action;
|
extern const char *Txt_Hits_per_action;
|
||||||
extern const char *Txt_TABS_TXT[Tab_NUM_TABS];
|
extern const char *Txt_TABS_TXT[Tab_NUM_TABS];
|
||||||
|
extern const char *Txt_Actions[Act_NUM_ACTIONS];
|
||||||
extern const char *Txt_Other_actions;
|
extern const char *Txt_Other_actions;
|
||||||
MYSQL_RES *mysql_res;
|
MYSQL_RES *mysql_res;
|
||||||
MYSQL_ROW row;
|
MYSQL_ROW row;
|
||||||
|
@ -820,14 +821,22 @@ static void Rep_WriteSectionHitsPerAction (struct Rep_Report *Report)
|
||||||
fprintf (Gbl.F.Rep," ");
|
fprintf (Gbl.F.Rep," ");
|
||||||
if (ActCod >= 0)
|
if (ActCod >= 0)
|
||||||
{
|
{
|
||||||
Action = Act_FromActCodToAction[ActCod];
|
if ((Action = Act_FromActCodToAction[ActCod]) >= 0)
|
||||||
if (Action >= 0)
|
|
||||||
{
|
{
|
||||||
Tab = Act_GetTab (Act_GetSuperAction (Action));
|
Tab = Act_GetTab (Act_GetSuperAction (Action));
|
||||||
if (Txt_TABS_TXT[Tab])
|
if (Txt_TABS_TXT[Tab])
|
||||||
fprintf (Gbl.F.Rep,"%s > ",Txt_TABS_TXT[Tab]);
|
fprintf (Gbl.F.Rep,"%s > ",Txt_TABS_TXT[Tab]);
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Rep,"%s",Act_GetActionTextFromDB (ActCod,ActTxt));
|
|
||||||
|
if (Txt_Actions[Action])
|
||||||
|
{
|
||||||
|
if (Txt_Actions[Action][0])
|
||||||
|
fprintf (Gbl.F.Rep,"%s",Txt_Actions[Action]);
|
||||||
|
else
|
||||||
|
fprintf (Gbl.F.Rep,"%s",Act_GetActionTextFromDB (ActCod,ActTxt));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
fprintf (Gbl.F.Rep,"?");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fprintf (Gbl.F.Rep,"?");
|
fprintf (Gbl.F.Rep,"?");
|
||||||
|
|
|
@ -590,6 +590,7 @@ static void Sta_WriteSelectorAction (void)
|
||||||
extern const char *Txt_Action;
|
extern const char *Txt_Action;
|
||||||
extern const char *Txt_Any_action;
|
extern const char *Txt_Any_action;
|
||||||
extern const char *Txt_TABS_TXT[Tab_NUM_TABS];
|
extern const char *Txt_TABS_TXT[Tab_NUM_TABS];
|
||||||
|
extern const char *Txt_Actions[Act_NUM_ACTIONS];
|
||||||
Act_Action_t Action;
|
Act_Action_t Action;
|
||||||
unsigned ActionUnsigned;
|
unsigned ActionUnsigned;
|
||||||
Tab_Tab_t Tab;
|
Tab_Tab_t Tab;
|
||||||
|
@ -611,12 +612,27 @@ static void Sta_WriteSelectorAction (void)
|
||||||
Action++)
|
Action++)
|
||||||
{
|
{
|
||||||
Tab = Act_GetTab (Act_GetSuperAction (Action));
|
Tab = Act_GetTab (Act_GetSuperAction (Action));
|
||||||
Act_GetActionTextFromDB (Act_GetActCod (Action),ActTxt);
|
|
||||||
|
|
||||||
ActionUnsigned = (unsigned) Action;
|
ActionUnsigned = (unsigned) Action;
|
||||||
HTM_OPTION (HTM_Type_UNSIGNED,&ActionUnsigned,
|
|
||||||
Action == Gbl.Stat.NumAction,false,
|
if (Txt_Actions[Action])
|
||||||
"%u: %s > %s",(unsigned) Action,Txt_TABS_TXT[Tab],ActTxt);
|
{
|
||||||
|
if (Txt_Actions[Action][0])
|
||||||
|
HTM_OPTION (HTM_Type_UNSIGNED,&ActionUnsigned,
|
||||||
|
Action == Gbl.Stat.NumAction,false,
|
||||||
|
"%u: %s > %s",
|
||||||
|
(unsigned) Action,Txt_TABS_TXT[Tab],Txt_Actions[Action]);
|
||||||
|
else
|
||||||
|
HTM_OPTION (HTM_Type_UNSIGNED,&ActionUnsigned,
|
||||||
|
Action == Gbl.Stat.NumAction,false,
|
||||||
|
"%u: %s > %s",
|
||||||
|
(unsigned) Action,Txt_TABS_TXT[Tab],
|
||||||
|
Act_GetActionTextFromDB (Act_GetActCod (Action),ActTxt));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
HTM_OPTION (HTM_Type_UNSIGNED,&ActionUnsigned,
|
||||||
|
Action == Gbl.Stat.NumAction,false,
|
||||||
|
"%u: %s > %s",
|
||||||
|
(unsigned) Action,Txt_TABS_TXT[Tab],"?????????????");
|
||||||
}
|
}
|
||||||
HTM_SELECT_End ();
|
HTM_SELECT_End ();
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
@ -1409,6 +1425,7 @@ static void Sta_ShowHits (Sta_GlobalOrCourseAccesses_t GlobalOrCourse)
|
||||||
|
|
||||||
static void Sta_ShowDetailedAccessesList (unsigned long NumRows,MYSQL_RES *mysql_res)
|
static void Sta_ShowDetailedAccessesList (unsigned long NumRows,MYSQL_RES *mysql_res)
|
||||||
{
|
{
|
||||||
|
extern Act_Action_t Act_FromActCodToAction[1 + Act_MAX_ACTION_COD];
|
||||||
extern const char *Txt_Show_previous_X_clicks;
|
extern const char *Txt_Show_previous_X_clicks;
|
||||||
extern const char *Txt_PAGES_Previous;
|
extern const char *Txt_PAGES_Previous;
|
||||||
extern const char *Txt_Clicks;
|
extern const char *Txt_Clicks;
|
||||||
|
@ -1424,6 +1441,7 @@ static void Sta_ShowDetailedAccessesList (unsigned long NumRows,MYSQL_RES *mysql
|
||||||
extern const char *Txt_Action;
|
extern const char *Txt_Action;
|
||||||
extern const char *Txt_LOG_More_info;
|
extern const char *Txt_LOG_More_info;
|
||||||
extern const char *Txt_ROLES_SINGUL_Abc[Rol_NUM_ROLES][Usr_NUM_SEXS];
|
extern const char *Txt_ROLES_SINGUL_Abc[Rol_NUM_ROLES][Usr_NUM_SEXS];
|
||||||
|
extern const char *Txt_Actions[Act_NUM_ACTIONS];
|
||||||
unsigned long NumRow;
|
unsigned long NumRow;
|
||||||
unsigned long FirstRow; // First row to show
|
unsigned long FirstRow; // First row to show
|
||||||
unsigned long LastRow; // Last rows to show
|
unsigned long LastRow; // Last rows to show
|
||||||
|
@ -1437,6 +1455,7 @@ static void Sta_ShowDetailedAccessesList (unsigned long NumRows,MYSQL_RES *mysql
|
||||||
unsigned UniqueId;
|
unsigned UniqueId;
|
||||||
char *Id;
|
char *Id;
|
||||||
long ActCod;
|
long ActCod;
|
||||||
|
Act_Action_t Action;
|
||||||
char ActTxt[Act_MAX_BYTES_ACTION_TXT + 1];
|
char ActTxt[Act_MAX_BYTES_ACTION_TXT + 1];
|
||||||
|
|
||||||
/***** Initialize estructura of data of the user *****/
|
/***** Initialize estructura of data of the user *****/
|
||||||
|
@ -1619,16 +1638,26 @@ static void Sta_ShowDetailedAccessesList (unsigned long NumRows,MYSQL_RES *mysql
|
||||||
/* Write the action */
|
/* Write the action */
|
||||||
if (sscanf (row[4],"%ld",&ActCod) != 1)
|
if (sscanf (row[4],"%ld",&ActCod) != 1)
|
||||||
Lay_ShowErrorAndExit ("Wrong action code.");
|
Lay_ShowErrorAndExit ("Wrong action code.");
|
||||||
|
HTM_TD_Begin ("class=\"LOG LT COLOR%u\"",Gbl.RowEvenOdd);
|
||||||
if (ActCod >= 0)
|
if (ActCod >= 0)
|
||||||
{
|
{
|
||||||
HTM_TD_Begin ("class=\"LOG LT COLOR%u\"",Gbl.RowEvenOdd);
|
if ((Action = Act_FromActCodToAction[ActCod]) >= 0)
|
||||||
HTM_TxtF ("%s ",Act_GetActionTextFromDB (ActCod,ActTxt));
|
{
|
||||||
|
if (Txt_Actions[Action])
|
||||||
|
{
|
||||||
|
if (Txt_Actions[Action][0])
|
||||||
|
HTM_TxtF ("%s ",Txt_Actions[Action]);
|
||||||
|
else
|
||||||
|
HTM_TxtF ("%s ",Act_GetActionTextFromDB (ActCod,ActTxt));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
HTM_TxtF ("? ");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
HTM_TxtF ("? ");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
|
||||||
HTM_TD_Begin ("class=\"LOG LT COLOR%u\"",Gbl.RowEvenOdd);
|
|
||||||
HTM_TxtF ("? ");
|
HTM_TxtF ("? ");
|
||||||
}
|
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
|
||||||
/* Write the comments of the access */
|
/* Write the comments of the access */
|
||||||
|
@ -2989,12 +3018,15 @@ static void Sta_WriteAccessMinute (unsigned Minute,double HitsNum,double MaxX)
|
||||||
static void Sta_ShowNumHitsPerAction (unsigned long NumRows,
|
static void Sta_ShowNumHitsPerAction (unsigned long NumRows,
|
||||||
MYSQL_RES *mysql_res)
|
MYSQL_RES *mysql_res)
|
||||||
{
|
{
|
||||||
|
extern Act_Action_t Act_FromActCodToAction[1 + Act_MAX_ACTION_COD];
|
||||||
extern const char *Txt_Action;
|
extern const char *Txt_Action;
|
||||||
extern const char *Txt_STAT_TYPE_COUNT_CAPS[Sta_NUM_COUNT_TYPES];
|
extern const char *Txt_STAT_TYPE_COUNT_CAPS[Sta_NUM_COUNT_TYPES];
|
||||||
|
extern const char *Txt_Actions[Act_NUM_ACTIONS];
|
||||||
unsigned long NumRow;
|
unsigned long NumRow;
|
||||||
struct Sta_Hits Hits;
|
struct Sta_Hits Hits;
|
||||||
MYSQL_ROW row;
|
MYSQL_ROW row;
|
||||||
long ActCod;
|
long ActCod;
|
||||||
|
Act_Action_t Action;
|
||||||
char ActTxt[Act_MAX_BYTES_ACTION_TXT + 1];
|
char ActTxt[Act_MAX_BYTES_ACTION_TXT + 1];
|
||||||
|
|
||||||
/***** Write heading *****/
|
/***** Write heading *****/
|
||||||
|
@ -3023,7 +3055,22 @@ static void Sta_ShowNumHitsPerAction (unsigned long NumRows,
|
||||||
|
|
||||||
HTM_TD_Begin ("class=\"LOG RT\"");
|
HTM_TD_Begin ("class=\"LOG RT\"");
|
||||||
if (ActCod >= 0)
|
if (ActCod >= 0)
|
||||||
HTM_TxtF ("%s ",Act_GetActionTextFromDB (ActCod,ActTxt));
|
{
|
||||||
|
if ((Action = Act_FromActCodToAction[ActCod]) >= 0)
|
||||||
|
{
|
||||||
|
if (Txt_Actions[Action])
|
||||||
|
{
|
||||||
|
if (Txt_Actions[Action][0])
|
||||||
|
HTM_TxtF ("%s ",Txt_Actions[Action]);
|
||||||
|
else
|
||||||
|
HTM_TxtF ("%s ",Act_GetActionTextFromDB (ActCod,ActTxt));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
HTM_Txt ("? ");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
HTM_Txt ("? ");
|
||||||
|
}
|
||||||
else
|
else
|
||||||
HTM_Txt ("? ");
|
HTM_Txt ("? ");
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
|
|
@ -2811,6 +2811,27 @@ const char *Txt_Actions[Act_NUM_ACTIONS] =
|
||||||
"" // Potrzebujesz tlumaczenie
|
"" // Potrzebujesz tlumaczenie
|
||||||
#elif L==9 // pt
|
#elif L==9 // pt
|
||||||
"" // Precisa de tradução
|
"" // Precisa de tradução
|
||||||
|
#endif
|
||||||
|
,
|
||||||
|
[ActRecInsLog] =
|
||||||
|
#if L==1 // ca
|
||||||
|
"" // Necessita traducció
|
||||||
|
#elif L==2 // de
|
||||||
|
"" // Need Übersetzung
|
||||||
|
#elif L==3 // en
|
||||||
|
""
|
||||||
|
#elif L==4 // es
|
||||||
|
""
|
||||||
|
#elif L==5 // fr
|
||||||
|
"" // Besoin de traduction
|
||||||
|
#elif L==6 // gn
|
||||||
|
"" // Okoteve traducción
|
||||||
|
#elif L==7 // it
|
||||||
|
"" // Bisogno di traduzione
|
||||||
|
#elif L==8 // pl
|
||||||
|
"" // Potrzebujesz tlumaczenie
|
||||||
|
#elif L==9 // pt
|
||||||
|
"" // Precisa de tradução
|
||||||
#endif
|
#endif
|
||||||
,
|
,
|
||||||
[ActRemInsLog] =
|
[ActRemInsLog] =
|
||||||
|
@ -3714,6 +3735,27 @@ const char *Txt_Actions[Act_NUM_ACTIONS] =
|
||||||
"" // Potrzebujesz tlumaczenie
|
"" // Potrzebujesz tlumaczenie
|
||||||
#elif L==9 // pt
|
#elif L==9 // pt
|
||||||
"" // Precisa de tradução
|
"" // Precisa de tradução
|
||||||
|
#endif
|
||||||
|
,
|
||||||
|
[ActRecCtrLog] =
|
||||||
|
#if L==1 // ca
|
||||||
|
"" // Necessita traducció
|
||||||
|
#elif L==2 // de
|
||||||
|
"" // Need Übersetzung
|
||||||
|
#elif L==3 // en
|
||||||
|
""
|
||||||
|
#elif L==4 // es
|
||||||
|
""
|
||||||
|
#elif L==5 // fr
|
||||||
|
"" // Besoin de traduction
|
||||||
|
#elif L==6 // gn
|
||||||
|
"" // Okoteve traducción
|
||||||
|
#elif L==7 // it
|
||||||
|
"" // Bisogno di traduzione
|
||||||
|
#elif L==8 // pl
|
||||||
|
"" // Potrzebujesz tlumaczenie
|
||||||
|
#elif L==9 // pt
|
||||||
|
"" // Precisa de tradução
|
||||||
#endif
|
#endif
|
||||||
,
|
,
|
||||||
[ActRemCtrLog] =
|
[ActRemCtrLog] =
|
||||||
|
@ -25197,6 +25239,48 @@ const char *Txt_Actions[Act_NUM_ACTIONS] =
|
||||||
"" // Potrzebujesz tlumaczenie
|
"" // Potrzebujesz tlumaczenie
|
||||||
#elif L==9 // pt
|
#elif L==9 // pt
|
||||||
"" // Precisa de tradução
|
"" // Precisa de tradução
|
||||||
|
#endif
|
||||||
|
,
|
||||||
|
[ActReqDelThrDegUsr] =
|
||||||
|
#if L==1 // ca
|
||||||
|
"" // Necessita traducció
|
||||||
|
#elif L==2 // de
|
||||||
|
"" // Need Übersetzung
|
||||||
|
#elif L==3 // en
|
||||||
|
""
|
||||||
|
#elif L==4 // es
|
||||||
|
""
|
||||||
|
#elif L==5 // fr
|
||||||
|
"" // Besoin de traduction
|
||||||
|
#elif L==6 // gn
|
||||||
|
"" // Okoteve traducción
|
||||||
|
#elif L==7 // it
|
||||||
|
"" // Bisogno di traduzione
|
||||||
|
#elif L==8 // pl
|
||||||
|
"" // Potrzebujesz tlumaczenie
|
||||||
|
#elif L==9 // pt
|
||||||
|
"" // Precisa de tradução
|
||||||
|
#endif
|
||||||
|
,
|
||||||
|
[ActReqDelThrDegTch] =
|
||||||
|
#if L==1 // ca
|
||||||
|
"" // Necessita traducció
|
||||||
|
#elif L==2 // de
|
||||||
|
"" // Need Übersetzung
|
||||||
|
#elif L==3 // en
|
||||||
|
""
|
||||||
|
#elif L==4 // es
|
||||||
|
""
|
||||||
|
#elif L==5 // fr
|
||||||
|
"" // Besoin de traduction
|
||||||
|
#elif L==6 // gn
|
||||||
|
"" // Okoteve traducción
|
||||||
|
#elif L==7 // it
|
||||||
|
"" // Bisogno di traduzione
|
||||||
|
#elif L==8 // pl
|
||||||
|
"" // Potrzebujesz tlumaczenie
|
||||||
|
#elif L==9 // pt
|
||||||
|
"" // Precisa de tradução
|
||||||
#endif
|
#endif
|
||||||
,
|
,
|
||||||
[ActReqDelThrCtrUsr] =
|
[ActReqDelThrCtrUsr] =
|
||||||
|
|
Loading…
Reference in New Issue