mirror of https://github.com/acanas/swad-core.git
Version 23.61: Jan 28, 2024 Responsive design.
This commit is contained in:
parent
d1f1db1067
commit
1d32488390
|
@ -5234,7 +5234,38 @@ button.PAG_DARK:hover, .PAG_CUR_DARK {background-color:#707070;}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.TBL_SCROLL tbody
|
@media only screen and (max-width: 480px)
|
||||||
|
{ /* For mobile-phones */
|
||||||
|
.TBL_SCROLL_C2
|
||||||
|
{
|
||||||
|
display: block;
|
||||||
|
overflow-x: auto;
|
||||||
|
width: 186px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media only screen and (min-width: 480px) and (max-width: 600px)
|
||||||
|
{ /* For mobile-phones */
|
||||||
|
.TBL_SCROLL_C2
|
||||||
|
{
|
||||||
|
display: block;
|
||||||
|
overflow-x: auto;
|
||||||
|
width: 278px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media only screen and (min-width: 600px)
|
||||||
|
{ /* For desktop */
|
||||||
|
.TBL_SCROLL_C2
|
||||||
|
{
|
||||||
|
display: block;
|
||||||
|
overflow-x: auto;
|
||||||
|
width: 384px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.TBL_SCROLL tbody,.TBL_SCROLL_C2 tbody
|
||||||
{
|
{
|
||||||
display: table;
|
display: table;
|
||||||
width: 100%;
|
width: 100%;
|
|
@ -555,7 +555,7 @@ static void ID_ShowFormChangeUsrID (Usr_MeOrOther_t MeOrOther,bool IShouldFillIn
|
||||||
Ale_ShowAlert (Ale_WARNING,Txt_Please_fill_in_your_ID);
|
Ale_ShowAlert (Ale_WARNING,Txt_Please_fill_in_your_ID);
|
||||||
|
|
||||||
/***** Begin table *****/
|
/***** Begin table *****/
|
||||||
HTM_TABLE_BeginWidePadding (2);
|
HTM_TABLE_BeginPadding (2);
|
||||||
|
|
||||||
/***** List existing user's IDs *****/
|
/***** List existing user's IDs *****/
|
||||||
for (NumID = 0;
|
for (NumID = 0;
|
||||||
|
|
|
@ -633,10 +633,11 @@ Me sale este error, no s
|
||||||
"can npt create received message (duplicated entry '243218-2160773' for key 'UsrCod_MsgCod')
|
"can npt create received message (duplicated entry '243218-2160773' for key 'UsrCod_MsgCod')
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define Log_PLATFORM_VERSION "SWAD 23.60.3 (2024-01-26)"
|
#define Log_PLATFORM_VERSION "SWAD 23.61 (2024-01-28)"
|
||||||
#define CSS_FILE "swad23.58.1.css"
|
#define CSS_FILE "swad23.61.css"
|
||||||
#define JS_FILE "swad23.53.6.js"
|
#define JS_FILE "swad23.53.6.js"
|
||||||
/*
|
/*
|
||||||
|
Version 23.61: Jan 28, 2024 Responsive design. (335753 lines)
|
||||||
Version 23.60.3: Jan 26, 2024 Responsive design in figures about institutions. (335720 lines)
|
Version 23.60.3: Jan 26, 2024 Responsive design in figures about institutions. (335720 lines)
|
||||||
Version 23.60.2: Jan 26, 2024 Responsive design in search for users. (335714 lines)
|
Version 23.60.2: Jan 26, 2024 Responsive design in search for users. (335714 lines)
|
||||||
Version 23.60.1: Jan 26, 2024 Code refactoring in my groups. (335713 lines)
|
Version 23.60.1: Jan 26, 2024 Code refactoring in my groups. (335713 lines)
|
||||||
|
|
|
@ -1025,7 +1025,7 @@ void Mai_ShowFormChangeMyEmail (bool IMustFillInEmail,bool IShouldConfirmEmail)
|
||||||
HTM_SECTION_Begin (Mai_EMAIL_SECTION_ID);
|
HTM_SECTION_Begin (Mai_EMAIL_SECTION_ID);
|
||||||
|
|
||||||
/***** Begin box *****/
|
/***** Begin box *****/
|
||||||
Box_BoxBegin ("100%",Txt_Email,
|
Box_BoxBegin (NULL,Txt_Email,
|
||||||
Acc_PutLinkToRemoveMyAccount,NULL,
|
Acc_PutLinkToRemoveMyAccount,NULL,
|
||||||
Hlp_PROFILE_Account,Box_NOT_CLOSABLE);
|
Hlp_PROFILE_Account,Box_NOT_CLOSABLE);
|
||||||
|
|
||||||
|
@ -1054,7 +1054,7 @@ void Mai_ShowFormChangeOtherUsrEmail (void)
|
||||||
HTM_SECTION_Begin (Mai_EMAIL_SECTION_ID);
|
HTM_SECTION_Begin (Mai_EMAIL_SECTION_ID);
|
||||||
|
|
||||||
/***** Begin box *****/
|
/***** Begin box *****/
|
||||||
Box_BoxBegin ("100%",Txt_Email,
|
Box_BoxBegin (NULL,Txt_Email,
|
||||||
NULL,NULL,
|
NULL,NULL,
|
||||||
Hlp_PROFILE_Account,Box_NOT_CLOSABLE);
|
Hlp_PROFILE_Account,Box_NOT_CLOSABLE);
|
||||||
|
|
||||||
|
@ -1147,7 +1147,7 @@ static void Mai_ShowFormChangeUsrEmail (Usr_MeOrOther_t MeOrOther,
|
||||||
NumEmails = Mai_DB_GetMyEmails (&mysql_res,UsrDat[MeOrOther]->UsrCod);
|
NumEmails = Mai_DB_GetMyEmails (&mysql_res,UsrDat[MeOrOther]->UsrCod);
|
||||||
|
|
||||||
/***** Begin table *****/
|
/***** Begin table *****/
|
||||||
HTM_TABLE_BeginWidePadding (2);
|
HTM_TABLE_BeginPadding (2);
|
||||||
|
|
||||||
/***** List emails *****/
|
/***** List emails *****/
|
||||||
for (NumEmail = 1;
|
for (NumEmail = 1;
|
||||||
|
|
|
@ -332,15 +332,18 @@ static void Msg_PutFormMsgUsrs (struct Msg_Messages *Messages,
|
||||||
|
|
||||||
/***** "To:" section (recipients) *****/
|
/***** "To:" section (recipients) *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
HTM_TD_TxtColon (Txt_MSG_To);
|
/* Label */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
Frm_LabelColumn ("REC_C1_BOT RT","",Txt_MSG_To);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
|
HTM_TD_Begin ("class=\"REC_C2_BOT LT\"");
|
||||||
if (Messages->ShowOnlyOneRecipient)
|
if (Messages->ShowOnlyOneRecipient)
|
||||||
/***** Show only one user as recipient *****/
|
/***** Show only one user as recipient *****/
|
||||||
Msg_ShowOneUniqueRecipient ();
|
Msg_ShowOneUniqueRecipient ();
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/***** Show potential recipients *****/
|
/***** Show potential recipients *****/
|
||||||
HTM_TABLE_Begin ("TBL_SCROLL");
|
HTM_TABLE_Begin ("TBL_SCROLL_C2");
|
||||||
if (ShowUsrsInCrs)
|
if (ShowUsrsInCrs)
|
||||||
{
|
{
|
||||||
Usr_ListUsersToSelect (Rol_TCH,&Gbl.Usrs.Selected); // All teachers in course
|
Usr_ListUsersToSelect (Rol_TCH,&Gbl.Usrs.Selected); // All teachers in course
|
||||||
|
@ -591,9 +594,9 @@ static void Msg_WriteFormSubjectAndContentMsgToUsrs (struct Msg_Messages *Messag
|
||||||
|
|
||||||
/* Data */
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"REC_C2_BOT LT\"");
|
HTM_TD_Begin ("class=\"REC_C2_BOT LT\"");
|
||||||
HTM_TEXTAREA_Begin ("id=\"MsgSubject\" name=\"Subject\""
|
HTM_TEXTAREA_Begin ("id=\"MsgSubject\" name=\"Subject\""
|
||||||
" class=\"REC_C2_BOT_INPUT INPUT_%s\" rows=\"2\"",
|
" class=\"REC_C2_BOT_INPUT INPUT_%s\" rows=\"2\"",
|
||||||
The_GetSuffix ());
|
The_GetSuffix ());
|
||||||
|
|
||||||
/* If message is a reply ==> get original message */
|
/* If message is a reply ==> get original message */
|
||||||
if (MsgCod > 0) // It's a reply
|
if (MsgCod > 0) // It's a reply
|
||||||
|
|
|
@ -204,7 +204,7 @@ void Net_ShowFormMyWebsAndSocialNets (void)
|
||||||
|
|
||||||
/***** Begin box *****/
|
/***** Begin box *****/
|
||||||
HTM_DIV_Begin ("class=\"REC_CONT\"");
|
HTM_DIV_Begin ("class=\"REC_CONT\"");
|
||||||
Box_BoxBegin ("100%",Txt_Webs_social_networks,
|
Box_BoxBegin (NULL,Txt_Webs_social_networks,
|
||||||
Net_PutIconsWebsSocialNetworks,NULL,
|
Net_PutIconsWebsSocialNetworks,NULL,
|
||||||
Hlp_PROFILE_Webs,Box_NOT_CLOSABLE);
|
Hlp_PROFILE_Webs,Box_NOT_CLOSABLE);
|
||||||
|
|
||||||
|
|
|
@ -223,7 +223,7 @@ static void Nck_ShowFormChangeUsrNickname (Usr_MeOrOther_t MeOrOther,
|
||||||
Ale_ShowAlert (Ale_WARNING,Txt_Before_going_to_any_other_option_you_must_fill_your_nickname);
|
Ale_ShowAlert (Ale_WARNING,Txt_Before_going_to_any_other_option_you_must_fill_your_nickname);
|
||||||
|
|
||||||
/***** Begin table *****/
|
/***** Begin table *****/
|
||||||
HTM_TABLE_BeginWidePadding (2);
|
HTM_TABLE_BeginPadding (2);
|
||||||
|
|
||||||
/***** List nicknames *****/
|
/***** List nicknames *****/
|
||||||
for (NumNick = 1;
|
for (NumNick = 1;
|
||||||
|
|
|
@ -755,7 +755,7 @@ void Pwd_ShowFormChgOtherUsrPwd (void)
|
||||||
Usr_PutParOtherUsrCodEncrypted (Gbl.Usrs.Other.UsrDat.EnUsrCod);
|
Usr_PutParOtherUsrCodEncrypted (Gbl.Usrs.Other.UsrDat.EnUsrCod);
|
||||||
|
|
||||||
/* New password */
|
/* New password */
|
||||||
HTM_TABLE_BeginWidePadding (2);
|
HTM_TABLE_BeginPadding (2);
|
||||||
Pwd_PutFormToGetNewPasswordTwice ();
|
Pwd_PutFormToGetNewPasswordTwice ();
|
||||||
HTM_TABLE_End ();
|
HTM_TABLE_End ();
|
||||||
|
|
||||||
|
|
|
@ -226,14 +226,14 @@ void PrgRsc_ListItemResources (Prg_ListingType_t ListingType,
|
||||||
switch (ViewingOrEditing[ListingType])
|
switch (ViewingOrEditing[ListingType])
|
||||||
{
|
{
|
||||||
case Vie_VIEW:
|
case Vie_VIEW:
|
||||||
Box_BoxBegin ("100%",NULL,
|
Box_BoxBegin (NULL,NULL,
|
||||||
NULL,NULL,
|
NULL,NULL,
|
||||||
NULL,Box_NOT_CLOSABLE);
|
NULL,Box_NOT_CLOSABLE);
|
||||||
break;
|
break;
|
||||||
case Vie_EDIT:
|
case Vie_EDIT:
|
||||||
if (asprintf (&Title,Txt_Resources_of_X,Item->Title) < 0)
|
if (asprintf (&Title,Txt_Resources_of_X,Item->Title) < 0)
|
||||||
Err_NotEnoughMemoryExit ();
|
Err_NotEnoughMemoryExit ();
|
||||||
Box_BoxBegin ("100%",Title,
|
Box_BoxBegin (NULL,Title,
|
||||||
PrgRsc_PutIconsResources[ViewingOrEditingResourcesOfThisItem],
|
PrgRsc_PutIconsResources[ViewingOrEditingResourcesOfThisItem],
|
||||||
&Item->Hierarchy.ItmCod,
|
&Item->Hierarchy.ItmCod,
|
||||||
Hlp_COURSE_Program,Box_NOT_CLOSABLE);
|
Hlp_COURSE_Program,Box_NOT_CLOSABLE);
|
||||||
|
|
|
@ -1246,7 +1246,7 @@ static void Rec_ShowRecordOneTchCrs (void)
|
||||||
{
|
{
|
||||||
HTM_DIV_Begin ("class=\"REC_RIGHT\"");
|
HTM_DIV_Begin ("class=\"REC_RIGHT\"");
|
||||||
Timetable.Type = Tmt_TUTORING_TIMETABLE;
|
Timetable.Type = Tmt_TUTORING_TIMETABLE;
|
||||||
Box_BoxBegin ("100%",Txt_TIMETABLE_TYPES[Timetable.Type],
|
Box_BoxBegin (NULL,Txt_TIMETABLE_TYPES[Timetable.Type],
|
||||||
NULL,NULL,
|
NULL,NULL,
|
||||||
Hlp_USERS_Teachers_timetable,Box_NOT_CLOSABLE);
|
Hlp_USERS_Teachers_timetable,Box_NOT_CLOSABLE);
|
||||||
Tmt_ShowTimeTable (&Timetable,Gbl.Usrs.Other.UsrDat.UsrCod);
|
Tmt_ShowTimeTable (&Timetable,Gbl.Usrs.Other.UsrDat.UsrCod);
|
||||||
|
@ -1362,7 +1362,7 @@ static void Rec_ListRecordsTchs (Rec_SharedRecordViewType_t TypeOfView)
|
||||||
{
|
{
|
||||||
HTM_DIV_Begin ("class=\"REC_RIGHT\"");
|
HTM_DIV_Begin ("class=\"REC_RIGHT\"");
|
||||||
Timetable.Type = Tmt_TUTORING_TIMETABLE;
|
Timetable.Type = Tmt_TUTORING_TIMETABLE;
|
||||||
Box_BoxBegin ("100%",Txt_TIMETABLE_TYPES[Timetable.Type],
|
Box_BoxBegin (NULL,Txt_TIMETABLE_TYPES[Timetable.Type],
|
||||||
NULL,NULL,
|
NULL,NULL,
|
||||||
Gbl.Action.Act == ActSeeRecSevTch ? Hlp_USERS_Teachers_timetable :
|
Gbl.Action.Act == ActSeeRecSevTch ? Hlp_USERS_Teachers_timetable :
|
||||||
NULL,
|
NULL,
|
||||||
|
@ -1644,7 +1644,7 @@ static void Rec_ShowCrsRecord (Rec_CourseRecordViewType_t TypeOfView,
|
||||||
}
|
}
|
||||||
|
|
||||||
/***** Begin box and table *****/
|
/***** Begin box and table *****/
|
||||||
Box_BoxTableBegin ("100%",NULL,
|
Box_BoxTableBegin (NULL,NULL,
|
||||||
NULL,NULL,
|
NULL,NULL,
|
||||||
Rec_RecordHelp[TypeOfView],Box_NOT_CLOSABLE,2);
|
Rec_RecordHelp[TypeOfView],Box_NOT_CLOSABLE,2);
|
||||||
|
|
||||||
|
|
|
@ -167,7 +167,7 @@ void Rub_ListAllRubrics (struct Rub_Rubrics *Rubrics)
|
||||||
Rubrics->CurrentPage = (unsigned) Pagination.CurrentPage;
|
Rubrics->CurrentPage = (unsigned) Pagination.CurrentPage;
|
||||||
|
|
||||||
/***** Begin box *****/
|
/***** Begin box *****/
|
||||||
Box_BoxBegin ("100%",Txt_Rubrics,
|
Box_BoxBegin (NULL,Txt_Rubrics,
|
||||||
Rub_PutIconsListRubrics,Rubrics,
|
Rub_PutIconsListRubrics,Rubrics,
|
||||||
Hlp_ASSESSMENT_Rubrics,Box_NOT_CLOSABLE);
|
Hlp_ASSESSMENT_Rubrics,Box_NOT_CLOSABLE);
|
||||||
|
|
||||||
|
|
|
@ -308,7 +308,7 @@ static void Sta_PutFormCrsHits (struct Sta_Stats *Stats)
|
||||||
/* Data */
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"REC_C2_BOT LT FORM_IN_%s\"",
|
HTM_TD_Begin ("class=\"REC_C2_BOT LT FORM_IN_%s\"",
|
||||||
The_GetSuffix ());
|
The_GetSuffix ());
|
||||||
HTM_TABLE_Begin ("TBL_SCROLL");
|
HTM_TABLE_Begin ("TBL_SCROLL_C2");
|
||||||
Usr_ListUsersToSelect (Rol_TCH,&Gbl.Usrs.Selected);
|
Usr_ListUsersToSelect (Rol_TCH,&Gbl.Usrs.Selected);
|
||||||
Usr_ListUsersToSelect (Rol_NET,&Gbl.Usrs.Selected);
|
Usr_ListUsersToSelect (Rol_NET,&Gbl.Usrs.Selected);
|
||||||
Usr_ListUsersToSelect (Rol_STD,&Gbl.Usrs.Selected);
|
Usr_ListUsersToSelect (Rol_STD,&Gbl.Usrs.Selected);
|
||||||
|
@ -933,7 +933,7 @@ static void Sta_ShowHits (Sta_GlobalOrCourseAccesses_t GlobalOrCourse)
|
||||||
{
|
{
|
||||||
/***** Put the table with the clicks *****/
|
/***** Put the table with the clicks *****/
|
||||||
if (Stats.ClicksGroupedBy == Sta_CLICKS_CRS_DETAILED_LIST)
|
if (Stats.ClicksGroupedBy == Sta_CLICKS_CRS_DETAILED_LIST)
|
||||||
Box_BoxBegin ("100%",Txt_List_of_detailed_clicks,
|
Box_BoxBegin (NULL,Txt_List_of_detailed_clicks,
|
||||||
NULL,NULL,
|
NULL,NULL,
|
||||||
NULL,Box_NOT_CLOSABLE);
|
NULL,Box_NOT_CLOSABLE);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue