Version 23.52.3: Dec 08, 2023 Responsive design in figures.

This commit is contained in:
acanas 2023-12-08 00:16:15 +01:00
parent cb73d9cd8a
commit f4986a4ac6
4 changed files with 75 additions and 53 deletions

View File

@ -633,10 +633,11 @@ Me sale este error, no s
"can npt create received message (duplicated entry '243218-2160773' for key 'UsrCod_MsgCod')
*/
#define Log_PLATFORM_VERSION "SWAD 23.52.2 (2023-12-07)"
#define Log_PLATFORM_VERSION "SWAD 23.52.3 (2023-12-08)"
#define CSS_FILE "swad23.52.2.css"
#define JS_FILE "swad23.52.js"
/*
Version 23.52.3: Dec 08, 2023 Responsive design in figures. (335825 lines)
Version 23.52.2: Dec 07, 2023 Responsive design in account. (335811 lines)
Version 23.52.1: Dec 07, 2023 Responsive design in account. (335808 lines)
Version 23.52: Dec 07, 2023 Responsive design in calendar. (335783 lines)

View File

@ -88,6 +88,15 @@ static void Fig_ReqShowFigure (Fig_FigureType_t SelectedFigureType)
Fig_FigureType_t FigType;
unsigned FigureTypeUnsigned;
/***** Get scope *****/
Gbl.Scope.Allowed = 1 << Hie_SYS |
1 << Hie_CTY |
1 << Hie_INS |
1 << Hie_CTR |
1 << Hie_DEG |
1 << Hie_CRS;
Sco_GetScope ("FigScope",Hie_SYS);
/***** Form to show statistic *****/
Frm_BeginForm (ActSeeUseGbl);
@ -96,40 +105,52 @@ static void Fig_ReqShowFigure (Fig_FigureType_t SelectedFigureType)
NULL,NULL,
Hlp_ANALYTICS_Figures,Box_NOT_CLOSABLE);
/***** Compute stats for anywhere, degree or course? *****/
HTM_LABEL_Begin ("class=\"FORM_IN_%s\"",The_GetSuffix ());
HTM_TxtColonNBSP (Txt_Scope);
Gbl.Scope.Allowed = 1 << Hie_SYS |
1 << Hie_CTY |
1 << Hie_INS |
1 << Hie_CTR |
1 << Hie_DEG |
1 << Hie_CRS;
Sco_GetScope ("FigScope",Hie_SYS);
Sco_PutSelectorScope ("FigScope",HTM_DONT_SUBMIT_ON_CHANGE);
HTM_LABEL_End ();
/***** Begin table *****/
HTM_TABLE_BeginWidePadding (2);
HTM_BR ();
/***** Compute stats for anywhere, degree or course? *****/
HTM_TR_Begin (NULL);
/***** Type of statistic *****/
HTM_LABEL_Begin ("class=\"FORM_IN_%s\"",The_GetSuffix ());
HTM_TxtColonNBSP (Txt_Statistic);
HTM_SELECT_Begin (HTM_DONT_SUBMIT_ON_CHANGE,NULL,
"name=\"FigureType\" class=\"INPUT_%s\"",
The_GetSuffix ());
for (FigType = (Fig_FigureType_t) 0;
FigType <= (Fig_FigureType_t) (Fig_NUM_FIGURES - 1);
FigType++)
{
FigureTypeUnsigned = (unsigned) FigType;
HTM_OPTION (HTM_Type_UNSIGNED,&FigureTypeUnsigned,
FigType == SelectedFigureType ? HTM_OPTION_SELECTED :
HTM_OPTION_UNSELECTED,
HTM_OPTION_ENABLED,
"%s",Txt_FIGURE_TYPES[FigType]);
}
HTM_SELECT_End ();
HTM_LABEL_End ();
/* Label */
Frm_LabelColumn ("REC_C1_BOT RM","FigScope",Txt_Scope);
/* Data */
HTM_TD_Begin ("class=\"REC_C2_BOT LM DAT_%s\"",The_GetSuffix ());
Sco_PutSelectorScope ("FigScope",HTM_DONT_SUBMIT_ON_CHANGE);
HTM_TD_End ();
HTM_TR_End ();
/***** Type of statistic *****/
HTM_TR_Begin (NULL);
/* Label */
Frm_LabelColumn ("REC_C1_BOT RM","FigureType",Txt_Statistic);
/* Data */
HTM_TD_Begin ("class=\"REC_C2_BOT LM DAT_%s\"",The_GetSuffix ());
HTM_SELECT_Begin (HTM_DONT_SUBMIT_ON_CHANGE,NULL,
"name=\"FigureType\""
" class=\"REC_C2_BOT_INPUT INPUT_%s\"",
The_GetSuffix ());
for (FigType = (Fig_FigureType_t) 0;
FigType <= (Fig_FigureType_t) (Fig_NUM_FIGURES - 1);
FigType++)
{
FigureTypeUnsigned = (unsigned) FigType;
HTM_OPTION (HTM_Type_UNSIGNED,&FigureTypeUnsigned,
FigType == SelectedFigureType ? HTM_OPTION_SELECTED :
HTM_OPTION_UNSELECTED,
HTM_OPTION_ENABLED,
"%s",Txt_FIGURE_TYPES[FigType]);
}
HTM_SELECT_End ();
HTM_TD_End ();
HTM_TR_End ();
/***** End table *****/
HTM_TABLE_End ();
/***** Send button and end box *****/
Box_BoxWithButtonEnd (Btn_CONFIRM_BUTTON,Txt_Show_statistic);

View File

@ -1224,26 +1224,26 @@ static void Mai_ShowFormChangeUsrEmail (Usr_MeOrOther_t MeOrOther,
/***** Form to enter new email *****/
HTM_TR_Begin (NULL);
/* Label */
Frm_LabelColumn ("REC_C1_BOT RT","NewEmail",
NumEmails ? Txt_New_email : // A new email
Txt_Email); // The first email
/* Label */
Frm_LabelColumn ("REC_C1_BOT RT","NewEmail",
NumEmails ? Txt_New_email : // A new email
Txt_Email); // The first email
/* Data */
HTM_TD_Begin ("class=\"REC_C2_BOT LT DAT_%s\"",
The_GetSuffix ());
Frm_BeginFormAnchor (ActMail[MeOrOther].Change,Mai_EMAIL_SECTION_ID);
if (MeOrOther == Usr_OTHER)
Usr_PutParUsrCodEncrypted (Gbl.Usrs.Other.UsrDat.EnUsrCod);
HTM_INPUT_EMAIL ("NewEmail",Cns_MAX_CHARS_EMAIL_ADDRESS,UsrDat[MeOrOther]->Email,
"id=\"NewEmail\""
" class=\"REC_C2_BOT_INPUT INPUT_%s\" size=\"16\"",
The_GetSuffix ());
HTM_BR ();
Btn_PutCreateButtonInline (NumEmails ? Txt_Change_email : // User already has an email address
Txt_Save_changes); // User has no email address yet
Frm_EndForm ();
HTM_TD_End ();
/* Data */
HTM_TD_Begin ("class=\"REC_C2_BOT LT DAT_%s\"",
The_GetSuffix ());
Frm_BeginFormAnchor (ActMail[MeOrOther].Change,Mai_EMAIL_SECTION_ID);
if (MeOrOther == Usr_OTHER)
Usr_PutParUsrCodEncrypted (Gbl.Usrs.Other.UsrDat.EnUsrCod);
HTM_INPUT_EMAIL ("NewEmail",Cns_MAX_CHARS_EMAIL_ADDRESS,UsrDat[MeOrOther]->Email,
"id=\"NewEmail\""
" class=\"REC_C2_BOT_INPUT INPUT_%s\" size=\"16\"",
The_GetSuffix ());
HTM_BR ();
Btn_PutCreateButtonInline (NumEmails ? Txt_Change_email : // User already has an email address
Txt_Save_changes); // User has no email address yet
Frm_EndForm ();
HTM_TD_End ();
HTM_TR_End ();

View File

@ -52,7 +52,7 @@ void Sco_PutSelectorScope (const char *ParName,HTM_SubmitOnChange_t SubmitOnChan
bool WriteScope;
HTM_SELECT_Begin (SubmitOnChange,NULL,
"id=\"%s\" name=\"%s\" class=\"INPUT_%s\"",
"id=\"%s\" name=\"%s\" class=\"REC_C2_BOT_INPUT INPUT_%s\"",
ParName,ParName,The_GetSuffix ());
for (Level = (Hie_Level_t) 1;