Version 23.62: Jan 29, 2024 Code refactoring in boxes.

This commit is contained in:
acanas 2024-01-29 09:45:28 +01:00
parent 069d5e7ffa
commit 7856a409d0
96 changed files with 614 additions and 814 deletions

View File

@ -450,8 +450,7 @@ void ID_ShowFormChangeMyID (bool IShouldFillInID)
HTM_SECTION_Begin (ID_ID_SECTION_ID); HTM_SECTION_Begin (ID_ID_SECTION_ID);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_ID_identity_number, Box_BoxBegin (Txt_ID_identity_number,Acc_PutLinkToRemoveMyAccount,NULL,
Acc_PutLinkToRemoveMyAccount,NULL,
Hlp_PROFILE_Account,Box_NOT_CLOSABLE); Hlp_PROFILE_Account,Box_NOT_CLOSABLE);
/***** Show form to change ID *****/ /***** Show form to change ID *****/
@ -477,8 +476,7 @@ void ID_ShowFormChangeOtherUsrID (void)
HTM_SECTION_Begin (ID_ID_SECTION_ID); HTM_SECTION_Begin (ID_ID_SECTION_ID);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_ID_identity_number, Box_BoxBegin (Txt_ID_identity_number,NULL,NULL,
NULL,NULL,
Hlp_PROFILE_Account,Box_NOT_CLOSABLE); Hlp_PROFILE_Account,Box_NOT_CLOSABLE);
/***** Show form to change ID *****/ /***** Show form to change ID *****/

View File

@ -196,8 +196,7 @@ void MFU_WriteBigMFUActions (struct MFU_ListMFUActions *ListMFUActions)
char TabMenuStr[MFU_MAX_BYTES_TAB + 6 + MFU_MAX_BYTES_MENU + 1]; char TabMenuStr[MFU_MAX_BYTES_TAB + 6 + MFU_MAX_BYTES_MENU + 1];
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_My_frequent_actions, Box_BoxBegin (Txt_My_frequent_actions,NULL,NULL,
NULL,NULL,
Hlp_ANALYTICS_Frequent,Box_NOT_CLOSABLE); Hlp_ANALYTICS_Frequent,Box_NOT_CLOSABLE);
/***** Begin container *****/ /***** Begin container *****/

View File

@ -100,8 +100,7 @@ void QR_PrintUsrQRCode (void)
if (Usr_GetParOtherUsrCodEncryptedAndGetUsrData ()) if (Usr_GetParOtherUsrCodEncryptedAndGetUsrData ())
{ {
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Gbl.Usrs.Other.UsrDat.FullName, Box_BoxBegin (Gbl.Usrs.Other.UsrDat.FullName,NULL,NULL,
NULL,NULL,
NULL,Box_NOT_CLOSABLE); NULL,Box_NOT_CLOSABLE);
/***** Show QR code *****/ /***** Show QR code *****/

View File

@ -156,9 +156,7 @@ static void Acc_ShowFormCheckIfIHaveAccount (const char *Title)
extern const char *Txt_Skip_this_step; extern const char *Txt_Skip_this_step;
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Title, Box_BoxBegin (Title, NULL,NULL,Hlp_PROFILE_SignUp,Box_NOT_CLOSABLE);
NULL,NULL,
Hlp_PROFILE_SignUp,Box_NOT_CLOSABLE);
/***** Help alert *****/ /***** Help alert *****/
Ale_ShowAlert (Ale_INFO,Txt_If_you_think_you_may_have_been_registered_); Ale_ShowAlert (Ale_INFO,Txt_If_you_think_you_may_have_been_registered_);
@ -450,7 +448,7 @@ void Acc_ShowFormGoToRequestNewAccount (void)
/***** Begin box *****/ /***** Begin box *****/
if (asprintf (&Title,Txt_New_on_PLATFORM_Sign_up,Cfg_PLATFORM_SHORT_NAME) < 0) if (asprintf (&Title,Txt_New_on_PLATFORM_Sign_up,Cfg_PLATFORM_SHORT_NAME) < 0)
Err_NotEnoughMemoryExit (); Err_NotEnoughMemoryExit ();
Box_BoxBegin (NULL,Title,NULL,NULL,Hlp_PROFILE_SignUp,Box_NOT_CLOSABLE); Box_BoxBegin (Title,NULL,NULL,Hlp_PROFILE_SignUp,Box_NOT_CLOSABLE);
free (Title); free (Title);
/***** Button to go to request the creation of a new account *****/ /***** Button to go to request the creation of a new account *****/

View File

@ -182,8 +182,7 @@ static void Agd_ShowMyAgenda (struct Agd_Agenda *Agenda)
extern const char *Txt_My_agenda; extern const char *Txt_My_agenda;
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_My_agenda, Box_BoxBegin (Txt_My_agenda,Agd_PutIconsMyFullAgenda,Agenda,
Agd_PutIconsMyFullAgenda,Agenda,
Hlp_PROFILE_Agenda,Box_NOT_CLOSABLE); Hlp_PROFILE_Agenda,Box_NOT_CLOSABLE);
/***** Put forms to choice which events to show *****/ /***** Put forms to choice which events to show *****/
@ -398,7 +397,7 @@ void Agd_ShowUsrAgenda (void)
MeOrOther = Usr_ItsMe (Gbl.Usrs.Other.UsrDat.UsrCod); MeOrOther = Usr_ItsMe (Gbl.Usrs.Other.UsrDat.UsrCod);
if (asprintf (&Title,Txt_Public_agenda_USER,UsrDat[MeOrOther]->FullName) < 0) if (asprintf (&Title,Txt_Public_agenda_USER,UsrDat[MeOrOther]->FullName) < 0)
Err_NotEnoughMemoryExit (); Err_NotEnoughMemoryExit ();
Box_BoxBegin (NULL,Title, Box_BoxBegin (Title,
FuncPutIcons[MeOrOther],UsrDat[MeOrOther]->EnUsrCod, FuncPutIcons[MeOrOther],UsrDat[MeOrOther]->EnUsrCod,
Hlp_PROFILE_Agenda_public_agenda,Box_NOT_CLOSABLE); Hlp_PROFILE_Agenda_public_agenda,Box_NOT_CLOSABLE);
free (Title); free (Title);
@ -458,7 +457,7 @@ void Agd_ShowOtherAgendaAfterLogIn (void)
MeOrOther = Usr_ItsMe (Gbl.Usrs.Other.UsrDat.UsrCod); MeOrOther = Usr_ItsMe (Gbl.Usrs.Other.UsrDat.UsrCod);
if (asprintf (&Title,Txt_Public_agenda_USER,UsrDat[MeOrOther]->FullName) < 0) if (asprintf (&Title,Txt_Public_agenda_USER,UsrDat[MeOrOther]->FullName) < 0)
Err_NotEnoughMemoryExit (); Err_NotEnoughMemoryExit ();
Box_BoxBegin (NULL,Title, Box_BoxBegin (Title,
FuncPutIcons[MeOrOther],UsrDat[MeOrOther]->EnUsrCod, FuncPutIcons[MeOrOther],UsrDat[MeOrOther]->EnUsrCod,
Hlp_PROFILE_Agenda_public_agenda,Box_NOT_CLOSABLE); Hlp_PROFILE_Agenda_public_agenda,Box_NOT_CLOSABLE);
free (Title); free (Title);
@ -574,16 +573,12 @@ static void Agd_ShowEventsToday (struct Agd_Agenda *Agenda,
switch (AgendaType) switch (AgendaType)
{ {
case Agd_MY_AGENDA_TODAY: case Agd_MY_AGENDA_TODAY:
Box_BoxTableShadowBegin (NULL,Txt_Today, Box_BoxTableShadowBegin (Txt_Today,NULL,NULL,
NULL,NULL, Hlp_PROFILE_Agenda,2);
Hlp_PROFILE_Agenda,
2);
break; break;
case Agd_ANOTHER_AGENDA_TODAY: case Agd_ANOTHER_AGENDA_TODAY:
Box_BoxTableShadowBegin (NULL,Txt_Today, Box_BoxTableShadowBegin (Txt_Today,NULL,NULL,
NULL,NULL, Hlp_PROFILE_Agenda_public_agenda,2);
Hlp_PROFILE_Agenda_public_agenda,
2);
break; break;
default: default:
break; break;
@ -1551,7 +1546,7 @@ void Agd_PrintAgdQRCode (void)
/***** Begin box *****/ /***** Begin box *****/
if (asprintf (&Title,Txt_Where_s_USER,Gbl.Usrs.Me.UsrDat.FullName) < 0) if (asprintf (&Title,Txt_Where_s_USER,Gbl.Usrs.Me.UsrDat.FullName) < 0)
Err_NotEnoughMemoryExit (); Err_NotEnoughMemoryExit ();
Box_BoxBegin (NULL,Title,NULL,NULL,NULL,Box_NOT_CLOSABLE); Box_BoxBegin (Title,NULL,NULL,NULL,Box_NOT_CLOSABLE);
free (Title); free (Title);
/***** Print QR code ****/ /***** Print QR code ****/

View File

@ -107,7 +107,7 @@ void Ann_ShowAllAnnouncements (void)
NumAnnouncements = Ann_DB_GetAnnouncementsForUnknownUsers (&mysql_res); NumAnnouncements = Ann_DB_GetAnnouncementsForUnknownUsers (&mysql_res);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Announcements, Box_BoxBegin (Txt_Announcements,
ICanEdit ? Ann_PutIconToAddNewAnnouncement : ICanEdit ? Ann_PutIconToAddNewAnnouncement :
NULL,NULL, NULL,NULL,
Hlp_COMMUNICATION_Announcements,Box_NOT_CLOSABLE); Hlp_COMMUNICATION_Announcements,Box_NOT_CLOSABLE);

View File

@ -154,8 +154,7 @@ void Asg_ShowAllAssignments (struct Asg_Assignments *Assignments)
Assignments->CurrentPage = (unsigned) Pagination.CurrentPage; Assignments->CurrentPage = (unsigned) Pagination.CurrentPage;
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Assignments, Box_BoxBegin (Txt_Assignments,Asg_PutIconsListAssignments,Assignments,
Asg_PutIconsListAssignments,Assignments,
Hlp_ASSESSMENT_Assignments,Box_NOT_CLOSABLE); Hlp_ASSESSMENT_Assignments,Box_NOT_CLOSABLE);
/***** Select whether show only my groups or all groups *****/ /***** Select whether show only my groups or all groups *****/
@ -416,8 +415,8 @@ void Asg_ShowOneAssignmentInBox (struct Asg_Assignments *Assignments)
extern const char *Txt_Assignment; extern const char *Txt_Assignment;
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Assignments->Asg.Title[0] ? Assignments->Asg.Title : Box_BoxBegin (Assignments->Asg.Title[0] ? Assignments->Asg.Title :
Txt_Assignment, Txt_Assignment,
Asg_PutIconsOneAsg,Assignments, Asg_PutIconsOneAsg,Assignments,
Hlp_ASSESSMENT_Assignments,Box_NOT_CLOSABLE); Hlp_ASSESSMENT_Assignments,Box_NOT_CLOSABLE);

View File

@ -230,8 +230,7 @@ static void Att_ShowAllEvents (struct Att_Events *Events)
Events->CurrentPage = (unsigned) Pagination.CurrentPage; Events->CurrentPage = (unsigned) Pagination.CurrentPage;
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Events, Box_BoxBegin (Txt_Events,Att_PutIconsInListOfEvents,Events,
Att_PutIconsInListOfEvents,Events,
Hlp_USERS_Attendance,Box_NOT_CLOSABLE); Hlp_USERS_Attendance,Box_NOT_CLOSABLE);
/***** Select whether show only my groups or all groups *****/ /***** Select whether show only my groups or all groups *****/
@ -1484,8 +1483,7 @@ static void Att_ListEventOnlyMeAsStudent (struct Att_Event *Event)
/***** List students (only me) *****/ /***** List students (only me) *****/
/* Begin box */ /* Begin box */
Box_BoxBegin (NULL,Txt_Attendance, Box_BoxBegin (Txt_Attendance,NULL,NULL,
NULL,NULL,
Hlp_USERS_Attendance,Box_NOT_CLOSABLE); Hlp_USERS_Attendance,Box_NOT_CLOSABLE);
/***** Begin form *****/ /***** Begin form *****/
@ -1551,8 +1549,7 @@ static void Att_ListEventStudents (struct Att_Events *Events)
Usr_GetListUsrs (Hie_CRS,Rol_STD); Usr_GetListUsrs (Hie_CRS,Rol_STD);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Attendance, Box_BoxBegin (Txt_Attendance,NULL,NULL,
NULL,NULL,
Hlp_USERS_Attendance,Box_NOT_CLOSABLE); Hlp_USERS_Attendance,Box_NOT_CLOSABLE);
/***** Form to select groups *****/ /***** Form to select groups *****/
@ -2242,14 +2239,11 @@ static void Att_ListOrPrintMyAttendanceCrs (Att_TypeOfView_t TypeOfView)
switch (TypeOfView) switch (TypeOfView)
{ {
case Att_VIEW_ONLY_ME: case Att_VIEW_ONLY_ME:
Box_BoxBegin (NULL,Txt_Attendance, Box_BoxBegin (Txt_Attendance,Att_PutIconsMyAttList,&Events,
Att_PutIconsMyAttList,&Events,
Hlp_USERS_Attendance_attendance_list,Box_NOT_CLOSABLE); Hlp_USERS_Attendance_attendance_list,Box_NOT_CLOSABLE);
break; break;
case Att_PRNT_ONLY_ME: case Att_PRNT_ONLY_ME:
Box_BoxBegin (NULL,Txt_Attendance, Box_BoxBegin (Txt_Attendance,NULL,NULL,NULL,Box_NOT_CLOSABLE);
NULL,NULL,
NULL,Box_NOT_CLOSABLE);
break; break;
default: default:
Err_WrongTypeExit (); Err_WrongTypeExit ();
@ -2358,13 +2352,12 @@ static void Att_ListOrPrintUsrsAttendanceCrs (void *TypeOfView)
switch (*((Att_TypeOfView_t *) TypeOfView)) switch (*((Att_TypeOfView_t *) TypeOfView))
{ {
case Att_VIEW_SEL_USR: case Att_VIEW_SEL_USR:
Box_BoxBegin (NULL,Txt_Attendance_list, Box_BoxBegin (Txt_Attendance_list,
Att_PutIconsStdsAttList,&Events, Att_PutIconsStdsAttList,&Events,
Hlp_USERS_Attendance_attendance_list,Box_NOT_CLOSABLE); Hlp_USERS_Attendance_attendance_list,Box_NOT_CLOSABLE);
break; break;
case Att_PRNT_SEL_USR: case Att_PRNT_SEL_USR:
Box_BoxBegin (NULL,Txt_Attendance_list, Box_BoxBegin (Txt_Attendance_list,NULL,NULL,
NULL,NULL,
NULL,Box_NOT_CLOSABLE); NULL,Box_NOT_CLOSABLE);
break; break;
default: default:
@ -2625,8 +2618,7 @@ static void Att_ListEventsToSelect (struct Att_Events *Events,
TypeOfView == Att_VIEW_SEL_USR); TypeOfView == Att_VIEW_SEL_USR);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Events, Box_BoxBegin (Txt_Events,FunctionToDrawContextualIcons[TypeOfView],NULL,
FunctionToDrawContextualIcons[TypeOfView],NULL,
NULL,Box_NOT_CLOSABLE); NULL,Box_NOT_CLOSABLE);
/***** Begin form to update the attendance /***** Begin form to update the attendance
@ -3003,9 +2995,7 @@ static void Att_ListStdsWithAttEventsDetails (struct Att_Events *Events,
HTM_SECTION_Begin (Att_ATTENDANCE_DETAILS_ID); HTM_SECTION_Begin (Att_ATTENDANCE_DETAILS_ID);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Details, Box_BoxBegin (Txt_Details,NULL,NULL,NULL,Box_NOT_CLOSABLE);
NULL,NULL,
NULL,Box_NOT_CLOSABLE);
/***** Begin table *****/ /***** Begin table *****/
HTM_TABLE_Begin ("TBL_SCROLL"); HTM_TABLE_Begin ("TBL_SCROLL");

View File

@ -137,8 +137,7 @@ void Ban_ShowAllBanners (void)
Ban_GetListBanners (&Banners,&mysql_res); Ban_GetListBanners (&Banners,&mysql_res);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Banners, Box_BoxBegin (Txt_Banners,Ban_PutIconsListingBanners,NULL,
Ban_PutIconsListingBanners,NULL,
Hlp_SYSTEM_Banners,Box_NOT_CLOSABLE); Hlp_SYSTEM_Banners,Box_NOT_CLOSABLE);
/***** Write all banners *****/ /***** Write all banners *****/
@ -241,8 +240,7 @@ static void Ban_EditBannersInternal (struct Ban_Banners *Banners,
Ban_GetListBanners (Banners,&mysql_res); Ban_GetListBanners (Banners,&mysql_res);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Banners, Box_BoxBegin (Txt_Banners,Ban_PutIconsEditingBanners,NULL,
Ban_PutIconsEditingBanners,NULL,
Hlp_SYSTEM_Banners_edit,Box_NOT_CLOSABLE); Hlp_SYSTEM_Banners_edit,Box_NOT_CLOSABLE);
/***** Put a form to create a new banner *****/ /***** Put a form to create a new banner *****/

View File

@ -56,7 +56,7 @@ static struct
/***************************** Private prototypes ****************************/ /***************************** Private prototypes ****************************/
/*****************************************************************************/ /*****************************************************************************/
static void Box_BoxInternalBegin (const char *Width,const char *Title, static void Box_BoxInternalBegin (const char *Title,
void (*FunctionToDrawContextualIcons) (void *Args),void *Args, void (*FunctionToDrawContextualIcons) (void *Args),void *Args,
const char *HelpLink,Box_Closable_t Closable, const char *HelpLink,Box_Closable_t Closable,
const char *ClassFrame); const char *ClassFrame);
@ -71,24 +71,22 @@ void Box_BoxTableBegin (const char *Title,
const char *HelpLink,Box_Closable_t Closable, const char *HelpLink,Box_Closable_t Closable,
unsigned CellPadding) // CellPadding must be 0, 1, 2, 5 or 10 unsigned CellPadding) // CellPadding must be 0, 1, 2, 5 or 10
{ {
Box_BoxBegin (NULL,Title, Box_BoxBegin (Title,FunctionToDrawContextualIcons,Args,HelpLink,Closable);
FunctionToDrawContextualIcons,Args,
HelpLink,Closable);
HTM_TABLE_BeginWidePadding (CellPadding); HTM_TABLE_BeginWidePadding (CellPadding);
} }
void Box_BoxTableShadowBegin (const char *Width,const char *Title, void Box_BoxTableShadowBegin (const char *Title,
void (*FunctionToDrawContextualIcons) (void *Args),void *Args, void (*FunctionToDrawContextualIcons) (void *Args),void *Args,
const char *HelpLink, const char *HelpLink,
unsigned CellPadding) // CellPadding must be 0, 1, 2, 5 or 10 unsigned CellPadding) // CellPadding must be 0, 1, 2, 5 or 10
{ {
Box_BoxShadowBegin (Width,Title, Box_BoxShadowBegin (Title,
FunctionToDrawContextualIcons,Args, FunctionToDrawContextualIcons,Args,
HelpLink); HelpLink);
HTM_TABLE_BeginWidePadding (CellPadding); HTM_TABLE_BeginWidePadding (CellPadding);
} }
void Box_BoxBegin (const char *Width,const char *Title, void Box_BoxBegin (const char *Title,
void (*FunctionToDrawContextualIcons) (void *Args),void *Args, void (*FunctionToDrawContextualIcons) (void *Args),void *Args,
const char *HelpLink,Box_Closable_t Closable) const char *HelpLink,Box_Closable_t Closable)
{ {
@ -97,14 +95,14 @@ void Box_BoxBegin (const char *Width,const char *Title,
/***** Begin box *****/ /***** Begin box *****/
if (asprintf (&ClassFrame,"FRAME FRAME_%s",The_GetSuffix ()) < 0) if (asprintf (&ClassFrame,"FRAME FRAME_%s",The_GetSuffix ()) < 0)
Err_NotEnoughMemoryExit (); Err_NotEnoughMemoryExit ();
Box_BoxInternalBegin (Width,Title, Box_BoxInternalBegin (Title,
FunctionToDrawContextualIcons,Args, FunctionToDrawContextualIcons,Args,
HelpLink,Closable, HelpLink,Closable,
ClassFrame); ClassFrame);
free (ClassFrame); free (ClassFrame);
} }
void Box_BoxShadowBegin (const char *Width,const char *Title, void Box_BoxShadowBegin (const char *Title,
void (*FunctionToDrawContextualIcons) (void *Args),void *Args, void (*FunctionToDrawContextualIcons) (void *Args),void *Args,
const char *HelpLink) const char *HelpLink)
{ {
@ -113,7 +111,7 @@ void Box_BoxShadowBegin (const char *Width,const char *Title,
/***** Begin box *****/ /***** Begin box *****/
if (asprintf (&ClassFrame,"FRAME_SHADOW FRAME_SHADOW_%s",The_GetSuffix ()) < 0) if (asprintf (&ClassFrame,"FRAME_SHADOW FRAME_SHADOW_%s",The_GetSuffix ()) < 0)
Err_NotEnoughMemoryExit (); Err_NotEnoughMemoryExit ();
Box_BoxInternalBegin (Width,Title, Box_BoxInternalBegin (Title,
FunctionToDrawContextualIcons,Args, FunctionToDrawContextualIcons,Args,
HelpLink,Box_NOT_CLOSABLE, HelpLink,Box_NOT_CLOSABLE,
ClassFrame); ClassFrame);
@ -121,7 +119,7 @@ void Box_BoxShadowBegin (const char *Width,const char *Title,
} }
// Return pointer to box id string // Return pointer to box id string
static void Box_BoxInternalBegin (const char *Width,const char *Title, static void Box_BoxInternalBegin (const char *Title,
void (*FunctionToDrawContextualIcons) (void *Args),void *Args, void (*FunctionToDrawContextualIcons) (void *Args),void *Args,
const char *HelpLink,Box_Closable_t Closable, const char *HelpLink,Box_Closable_t Closable,
const char *ClassFrame) const char *ClassFrame)
@ -151,20 +149,11 @@ static void Box_BoxInternalBegin (const char *Width,const char *Title,
/* Create unique id for alert */ /* Create unique id for alert */
Frm_SetUniqueId (Box_Boxes.Ids[Box_Boxes.Nested]); Frm_SetUniqueId (Box_Boxes.Ids[Box_Boxes.Nested]);
if (Width) HTM_DIV_Begin ("id=\"%s\" class=\"%s\"",
HTM_DIV_Begin ("id=\"%s\" class=\"%s\" style=\"width:%s;\"", Box_Boxes.Ids[Box_Boxes.Nested],ClassFrame);
Box_Boxes.Ids[Box_Boxes.Nested],ClassFrame,Width);
else
HTM_DIV_Begin ("id=\"%s\" class=\"%s\"",
Box_Boxes.Ids[Box_Boxes.Nested],ClassFrame);
} }
else else
{ HTM_DIV_Begin ("class=\"%s\"",ClassFrame);
if (Width)
HTM_DIV_Begin ("class=\"%s\" style=\"width:%s;\"",ClassFrame,Width);
else
HTM_DIV_Begin ("class=\"%s\"",ClassFrame);
}
/***** Row for left and right icons *****/ /***** Row for left and right icons *****/
if (FunctionToDrawContextualIcons || if (FunctionToDrawContextualIcons ||

View File

@ -55,13 +55,13 @@ void Box_BoxTableBegin (const char *Title,
void (*FunctionToDrawContextualIcons) (void *Args),void *Args, void (*FunctionToDrawContextualIcons) (void *Args),void *Args,
const char *HelpLink,Box_Closable_t Closable, const char *HelpLink,Box_Closable_t Closable,
unsigned CellPadding); unsigned CellPadding);
void Box_BoxBegin (const char *Width,const char *Title, void Box_BoxBegin (const char *Title,
void (*FunctionToDrawContextualIcons) (void *Args),void *Args, void (*FunctionToDrawContextualIcons) (void *Args),void *Args,
const char *HelpLink,Box_Closable_t Closable); const char *HelpLink,Box_Closable_t Closable);
void Box_BoxShadowBegin (const char *Width,const char *Title, void Box_BoxShadowBegin (const char *Title,
void (*FunctionToDrawContextualIcons) (void *Args),void *Args, void (*FunctionToDrawContextualIcons) (void *Args),void *Args,
const char *HelpLink); const char *HelpLink);
void Box_BoxTableShadowBegin (const char *Width,const char *Title, void Box_BoxTableShadowBegin (const char *Title,
void (*FunctionToDrawContextualIcons) (void *Args),void *Args, void (*FunctionToDrawContextualIcons) (void *Args),void *Args,
const char *HelpLink, const char *HelpLink,
unsigned CellPadding); unsigned CellPadding);

View File

@ -2785,8 +2785,7 @@ static void Brw_ShowFileBrowsersAsgWrkCrs (void)
Brw_WriteTopBeforeShowingFileBrowser (); Brw_WriteTopBeforeShowingFileBrowser ();
/***** Begin box and table *****/ /***** Begin box and table *****/
Box_BoxBegin (NULL,Txt_Assignments_and_other_works, Box_BoxBegin (Txt_Assignments_and_other_works,Brw_PutIconShowFigure,NULL,
Brw_PutIconShowFigure,NULL,
Hlp_FILES_Homework_for_teachers,Box_NOT_CLOSABLE); Hlp_FILES_Homework_for_teachers,Box_NOT_CLOSABLE);
/***** List the assignments and works of the selected users *****/ /***** List the assignments and works of the selected users *****/
@ -3211,7 +3210,7 @@ static void Brw_ShowFileBrowser (void)
HTM_SECTION_Begin (FileBrowserSectionId); HTM_SECTION_Begin (FileBrowserSectionId);
if (Brw_TitleOfFileBrowser[Gbl.FileBrowser.Type]) if (Brw_TitleOfFileBrowser[Gbl.FileBrowser.Type])
Box_BoxBegin (NULL,*Brw_TitleOfFileBrowser[Gbl.FileBrowser.Type], Box_BoxBegin (*Brw_TitleOfFileBrowser[Gbl.FileBrowser.Type],
Brw_PutIconsFileBrowser,NULL, Brw_PutIconsFileBrowser,NULL,
*Brw_HelpOfFileBrowser[Gbl.FileBrowser.Type],Box_NOT_CLOSABLE); *Brw_HelpOfFileBrowser[Gbl.FileBrowser.Type],Box_NOT_CLOSABLE);
@ -6250,9 +6249,7 @@ static void Brw_PutFormToCreateAFolder (const char FileNameToShow[NAME_MAX + 1])
Brw_PutImplicitParsFileBrowser (&Gbl.FileBrowser.FilFolLnk); Brw_PutImplicitParsFileBrowser (&Gbl.FileBrowser.FilFolLnk);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Create_folder, Box_BoxBegin (Txt_Create_folder,NULL,NULL,NULL,Box_NOT_CLOSABLE);
NULL,NULL,
NULL,Box_NOT_CLOSABLE);
/* Alert */ /* Alert */
Ale_ShowAlert (Ale_INFO,Txt_You_can_create_a_new_folder_inside_the_folder_X, Ale_ShowAlert (Ale_INFO,Txt_You_can_create_a_new_folder_inside_the_folder_X,
@ -6289,9 +6286,7 @@ static void Brw_PutFormToUploadFilesUsingDropzone (const char *FileNameToShow)
/***** Begin box *****/ /***** Begin box *****/
HTM_DIV_Begin ("id=\"dropzone-upload\""); HTM_DIV_Begin ("id=\"dropzone-upload\"");
Box_BoxBegin (NULL,Txt_Upload_files, Box_BoxBegin (Txt_Upload_files,NULL,NULL,NULL,Box_NOT_CLOSABLE);
NULL,NULL,
NULL,Box_NOT_CLOSABLE);
/***** Help message *****/ /***** Help message *****/
Ale_ShowAlert (Ale_INFO,Txt_or_you_can_upload_new_files_to_the_folder_X, Ale_ShowAlert (Ale_INFO,Txt_or_you_can_upload_new_files_to_the_folder_X,
@ -6350,9 +6345,7 @@ static void Brw_PutFormToUploadOneFileClassic (const char *FileNameToShow)
/***** Begin box *****/ /***** Begin box *****/
HTM_DIV_Begin ("id=\"classic-upload\" style=\"display:none;\""); HTM_DIV_Begin ("id=\"classic-upload\" style=\"display:none;\"");
Box_BoxBegin (NULL,Txt_Upload_file, Box_BoxBegin (Txt_Upload_file,NULL,NULL,NULL,Box_NOT_CLOSABLE);
NULL,NULL,
NULL,Box_NOT_CLOSABLE);
/***** Help message *****/ /***** Help message *****/
Ale_ShowAlert (Ale_INFO,Txt_or_you_can_upload_a_new_file_to_the_folder_X, Ale_ShowAlert (Ale_INFO,Txt_or_you_can_upload_a_new_file_to_the_folder_X,
@ -6391,9 +6384,7 @@ static void Brw_PutFormToPasteAFileOrFolder (const char *FileNameToShow)
Brw_PutImplicitParsFileBrowser (&Gbl.FileBrowser.FilFolLnk); Brw_PutImplicitParsFileBrowser (&Gbl.FileBrowser.FilFolLnk);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Paste, Box_BoxBegin (Txt_Paste,NULL,NULL,NULL,Box_NOT_CLOSABLE);
NULL,NULL,
NULL,Box_NOT_CLOSABLE);
/***** Help message *****/ /***** Help message *****/
Ale_ShowAlert (Ale_INFO,Txt_or_you_can_make_a_file_copy_to_the_folder_X, Ale_ShowAlert (Ale_INFO,Txt_or_you_can_make_a_file_copy_to_the_folder_X,
@ -6425,9 +6416,7 @@ static void Brw_PutFormToCreateALink (const char *FileNameToShow)
Brw_PutImplicitParsFileBrowser (&Gbl.FileBrowser.FilFolLnk); Brw_PutImplicitParsFileBrowser (&Gbl.FileBrowser.FilFolLnk);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Create_link, Box_BoxBegin (Txt_Create_link,NULL,NULL,NULL,Box_NOT_CLOSABLE);
NULL,NULL,
NULL,Box_NOT_CLOSABLE);
/***** Help message *****/ /***** Help message *****/
Ale_ShowAlert (Ale_INFO,Txt_or_you_can_create_a_new_link_inside_the_folder_X, Ale_ShowAlert (Ale_INFO,Txt_or_you_can_create_a_new_link_inside_the_folder_X,
@ -7367,12 +7356,10 @@ void Brw_ShowFileMetadata (void)
(FileMetadata.FilFolLnk.Type == Brw_IS_FILE || // Only files or links (FileMetadata.FilFolLnk.Type == Brw_IS_FILE || // Only files or links
FileMetadata.FilFolLnk.Type == Brw_IS_LINK) && FileMetadata.FilFolLnk.Type == Brw_IS_LINK) &&
Rsc_CheckIfICanGetLink ()) Rsc_CheckIfICanGetLink ())
Box_BoxShadowBegin (NULL,NULL, Box_BoxShadowBegin (NULL,Brw_PutIconToGetLinkToFile,&FileMetadata,
Brw_PutIconToGetLinkToFile,&FileMetadata,
NULL); NULL);
else else
Box_BoxShadowBegin (NULL,NULL, Box_BoxShadowBegin (NULL,NULL,NULL,
NULL,NULL,
NULL); NULL);
@ -9470,9 +9457,7 @@ void Brw_AskRemoveOldFilesBriefcase (void)
Brw_PutParFullTreeIfSelected (&Gbl.FileBrowser.FullTree); Brw_PutParFullTreeIfSelected (&Gbl.FileBrowser.FullTree);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Remove_old_files, Box_BoxBegin (Txt_Remove_old_files,NULL,NULL,NULL,Box_NOT_CLOSABLE);
NULL,NULL,
NULL,Box_NOT_CLOSABLE);
/***** Form to request number of months (to remove files older) *****/ /***** Form to request number of months (to remove files older) *****/
HTM_LABEL_Begin ("class=\"FORM_IN_%s\"",The_GetSuffix ()); HTM_LABEL_Begin ("class=\"FORM_IN_%s\"",The_GetSuffix ());
@ -9772,8 +9757,7 @@ void Brw_GetAndShowFileBrowsersStats (void)
&SizeOfFileZone[NumStat]); &SizeOfFileZone[NumStat]);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_FIGURE_TYPES[Fig_FOLDERS_AND_FILES], Box_BoxBegin (Txt_FIGURE_TYPES[Fig_FOLDERS_AND_FILES],NULL,NULL,
NULL,NULL,
Hlp_ANALYTICS_Figures_folders_and_files,Box_NOT_CLOSABLE); Hlp_ANALYTICS_Figures_folders_and_files,Box_NOT_CLOSABLE);
/***** Write sizes of all file zones *****/ /***** Write sizes of all file zones *****/

View File

@ -251,8 +251,7 @@ static void Bld_EditBuildingsInternal (void)
Bld_GetListBuildings (&Buildings,Bld_ALL_DATA); Bld_GetListBuildings (&Buildings,Bld_ALL_DATA);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Buildings, Box_BoxBegin (Txt_Buildings,Bld_PutIconsEditingBuildings,NULL,
Bld_PutIconsEditingBuildings,NULL,
Hlp_CENTER_Buildings_edit,Box_NOT_CLOSABLE); Hlp_CENTER_Buildings_edit,Box_NOT_CLOSABLE);
/***** Put a form to create a new building *****/ /***** Put a form to create a new building *****/

View File

@ -90,8 +90,7 @@ void Cal_PutIconsToSelectFirstDayOfWeek (void)
extern const char *Hlp_PROFILE_Settings_calendar; extern const char *Hlp_PROFILE_Settings_calendar;
extern const char *Txt_Calendar; extern const char *Txt_Calendar;
Box_BoxBegin (NULL,Txt_Calendar, Box_BoxBegin (Txt_Calendar,Cal_PutIconsFirstDayOfWeek,NULL,
Cal_PutIconsFirstDayOfWeek,NULL,
Hlp_PROFILE_Settings_calendar,Box_NOT_CLOSABLE); Hlp_PROFILE_Settings_calendar,Box_NOT_CLOSABLE);
Set_BeginSettingsHead (); Set_BeginSettingsHead ();
Cal_ShowFormToSelFirstDayOfWeek (ActChg1stDay, Cal_ShowFormToSelFirstDayOfWeek (ActChg1stDay,
@ -260,8 +259,7 @@ static void Cal_DrawCalendar (Act_Action_t ActionSeeCalendar,
}; };
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,NULL, Box_BoxBegin (NULL,FunctionToDrawContextualIcons,Args,
FunctionToDrawContextualIcons,Args,
ViewType == Vie_VIEW ? Hlp_START_Calendar : ViewType == Vie_VIEW ? Hlp_START_Calendar :
NULL, NULL,
Box_NOT_CLOSABLE); Box_NOT_CLOSABLE);

View File

@ -623,8 +623,7 @@ static void Cfe_ListCallsForExams (struct Cfe_CallsForExams *CallsForExams,
NumCalls = Cfe_DB_GetCallsForExamsInCurrentCrs (&mysql_res); NumCalls = Cfe_DB_GetCallsForExamsInCurrentCrs (&mysql_res);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Calls_for_exams, Box_BoxBegin (Txt_Calls_for_exams,Cfe_PutIconsCallsForExams,NULL,
Cfe_PutIconsCallsForExams,NULL,
Hlp_ASSESSMENT_Calls_for_exams,Box_NOT_CLOSABLE); Hlp_ASSESSMENT_Calls_for_exams,Box_NOT_CLOSABLE);
/***** List the existing calls for exams *****/ /***** List the existing calls for exams *****/
@ -921,14 +920,12 @@ static void Cfe_ShowCallForExam (struct Cfe_CallsForExams *CallsForExams,
Ale_ShowAlerts (Anchor); Ale_ShowAlerts (Anchor);
/* Begin highlighted box */ /* Begin highlighted box */
Box_BoxShadowBegin (NULL,NULL, Box_BoxShadowBegin (NULL,FunctionToDrawContextualIcons,CallsForExams,
FunctionToDrawContextualIcons,CallsForExams,
HelpLink); HelpLink);
} }
else // Don't highlight else // Don't highlight
/* Begin normal box */ /* Begin normal box */
Box_BoxBegin (NULL,NULL, Box_BoxBegin (NULL,FunctionToDrawContextualIcons,CallsForExams,
FunctionToDrawContextualIcons,CallsForExams,
HelpLink,Box_NOT_CLOSABLE); HelpLink,Box_NOT_CLOSABLE);
if (ViewType == Vie_EDIT) if (ViewType == Vie_EDIT)

View File

@ -253,7 +253,7 @@ static void Ctr_ListCenters (void)
if (asprintf (&Title,Txt_Centers_of_INSTITUTION_X, if (asprintf (&Title,Txt_Centers_of_INSTITUTION_X,
Gbl.Hierarchy.Node[Hie_INS].FullName) < 0) Gbl.Hierarchy.Node[Hie_INS].FullName) < 0)
Err_NotEnoughMemoryExit (); Err_NotEnoughMemoryExit ();
Box_BoxBegin (NULL,Title,Ctr_PutIconsListingCenters,NULL, Box_BoxBegin (Title,Ctr_PutIconsListingCenters,NULL,
Hlp_INSTITUTION_Centers,Box_NOT_CLOSABLE); Hlp_INSTITUTION_Centers,Box_NOT_CLOSABLE);
free (Title); free (Title);
@ -432,7 +432,7 @@ static void Ctr_EditCentersInternal (void)
if (asprintf (&Title,Txt_Centers_of_INSTITUTION_X, if (asprintf (&Title,Txt_Centers_of_INSTITUTION_X,
Gbl.Hierarchy.Node[Hie_INS].FullName) < 0) Gbl.Hierarchy.Node[Hie_INS].FullName) < 0)
Err_NotEnoughMemoryExit (); Err_NotEnoughMemoryExit ();
Box_BoxBegin (NULL,Title,Ctr_PutIconsEditingCenters,NULL, Box_BoxBegin (Title,Ctr_PutIconsEditingCenters,NULL,
Hlp_INSTITUTION_Centers,Box_NOT_CLOSABLE); Hlp_INSTITUTION_Centers,Box_NOT_CLOSABLE);
free (Title); free (Title);

View File

@ -163,7 +163,7 @@ static void CtrCfg_Configuration (Vie_ViewType_t ViewType)
Frm_DONT_PUT_FORM; Frm_DONT_PUT_FORM;
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,NULL, Box_BoxBegin (NULL,
ViewType == Vie_VIEW ? CtrCfg_PutIconsCtrConfig : ViewType == Vie_VIEW ? CtrCfg_PutIconsCtrConfig :
NULL,NULL, NULL,NULL,
ViewType == Vie_VIEW ? Hlp_CENTER_Information : ViewType == Vie_VIEW ? Hlp_CENTER_Information :
@ -868,9 +868,7 @@ void CtrCfg_ReqPhoto (void)
Frm_BeginForm (ActRecCtrPho); Frm_BeginForm (ActRecCtrPho);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Photo, Box_BoxBegin (Txt_Photo,NULL,NULL,NULL,Box_NOT_CLOSABLE);
NULL,NULL,
NULL,Box_NOT_CLOSABLE);
/***** Write help message *****/ /***** Write help message *****/
Ale_ShowAlert (Ale_INFO,"%s: %s<br />" Ale_ShowAlert (Ale_INFO,"%s: %s<br />"

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') "can npt create received message (duplicated entry '243218-2160773' for key 'UsrCod_MsgCod')
*/ */
#define Log_PLATFORM_VERSION "SWAD 23.61.1 (2024-01-29)" #define Log_PLATFORM_VERSION "SWAD 23.62 (2024-01-29)"
#define CSS_FILE "swad23.61.css" #define CSS_FILE "swad23.61.css"
#define JS_FILE "swad23.53.6.js" #define JS_FILE "swad23.53.6.js"
/* /*
Version 23.62: Jan 29, 2024 Code refactoring in boxes. (335474 lines)
Version 23.61.1: Jan 29, 2024 Code refactoring in boxes. (335684 lines) Version 23.61.1: Jan 29, 2024 Code refactoring in boxes. (335684 lines)
Version 23.61: Jan 28, 2024 Responsive design. (335753 lines) 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)

View File

@ -129,9 +129,7 @@ void Cht_ShowListOfAvailableChatRooms (void)
Hie_GetMyHierarchy (Hie_DEG); Hie_GetMyHierarchy (Hie_DEG);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Chat_rooms, Box_BoxBegin (Txt_Chat_rooms,NULL,NULL,NULL,Box_NOT_CLOSABLE);
NULL,NULL,
NULL,Box_NOT_CLOSABLE);
/***** Begin list *****/ /***** Begin list *****/
HTM_UL_Begin ("class=\"LIST_TREE\""); HTM_UL_Begin ("class=\"LIST_TREE\"");

View File

@ -103,8 +103,7 @@ void Con_ShowConnectedUsrs (void)
Sco_GetScope ("ScopeCon",Hie_CRS); Sco_GetScope ("ScopeCon",Hie_CRS);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Connected_users, Box_BoxBegin (Txt_Connected_users,Con_PutIconToUpdateConnected,NULL,
Con_PutIconToUpdateConnected,NULL,
Hlp_USERS_Connected,Box_NOT_CLOSABLE); Hlp_USERS_Connected,Box_NOT_CLOSABLE);
/***** Current time *****/ /***** Current time *****/

View File

@ -224,7 +224,7 @@ void Cty_ListCountries2 (void)
} }
/***** Begin box and table *****/ /***** Begin box and table *****/
Box_BoxBegin (NULL,Txt_HIERARCHY_PLURAL_Abc[Hie_CTY], Box_BoxBegin (Txt_HIERARCHY_PLURAL_Abc[Hie_CTY],
Cty_PutIconsListingCountries,NULL, Cty_PutIconsListingCountries,NULL,
Hlp_SYSTEM_Countries,Box_NOT_CLOSABLE); Hlp_SYSTEM_Countries,Box_NOT_CLOSABLE);
HTM_TABLE_Begin ("TBL_SCROLL"); HTM_TABLE_Begin ("TBL_SCROLL");
@ -667,7 +667,7 @@ static void Cty_EditCountriesInternal (void)
Hie_WriteMenuHierarchy (); Hie_WriteMenuHierarchy ();
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_HIERARCHY_PLURAL_Abc[Hie_CTY], Box_BoxBegin (Txt_HIERARCHY_PLURAL_Abc[Hie_CTY],
Cty_PutIconsEditingCountries,NULL, Cty_PutIconsEditingCountries,NULL,
Hlp_SYSTEM_Countries,Box_NOT_CLOSABLE); Hlp_SYSTEM_Countries,Box_NOT_CLOSABLE);

View File

@ -118,7 +118,7 @@ static void CtyCfg_Configuration (Vie_ViewType_t ViewType)
Hie_DONT_PUT_LINK; Hie_DONT_PUT_LINK;
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,NULL, Box_BoxBegin (NULL,
ViewType == Vie_VIEW ? CtyCfg_PutIconToPrint : ViewType == Vie_VIEW ? CtyCfg_PutIconToPrint :
NULL,NULL, NULL,NULL,
ViewType == Vie_VIEW ? Hlp_COUNTRY_Information : ViewType == Vie_VIEW ? Hlp_COUNTRY_Information :

View File

@ -386,7 +386,7 @@ static void Crs_ListCourses (void)
/***** Begin box *****/ /***** Begin box *****/
if (asprintf (&Title,Txt_Courses_of_DEGREE_X,Gbl.Hierarchy.Node[Hie_DEG].ShrtName) < 0) if (asprintf (&Title,Txt_Courses_of_DEGREE_X,Gbl.Hierarchy.Node[Hie_DEG].ShrtName) < 0)
Err_NotEnoughMemoryExit (); Err_NotEnoughMemoryExit ();
Box_BoxBegin (NULL,Title,Crs_PutIconsListCourses,NULL, Box_BoxBegin (Title,Crs_PutIconsListCourses,NULL,
Hlp_DEGREE_Courses,Box_NOT_CLOSABLE); Hlp_DEGREE_Courses,Box_NOT_CLOSABLE);
free (Title); free (Title);
@ -585,7 +585,7 @@ static void Crs_EditCoursesInternal (void)
if (asprintf (&Title,Txt_Courses_of_DEGREE_X, if (asprintf (&Title,Txt_Courses_of_DEGREE_X,
Gbl.Hierarchy.Node[Hie_DEG].ShrtName) < 0) Gbl.Hierarchy.Node[Hie_DEG].ShrtName) < 0)
Err_NotEnoughMemoryExit (); Err_NotEnoughMemoryExit ();
Box_BoxBegin (NULL,Title,Crs_PutIconsEditingCourses,NULL, Box_BoxBegin (Title,Crs_PutIconsEditingCourses,NULL,
Hlp_DEGREE_Courses,Box_NOT_CLOSABLE); Hlp_DEGREE_Courses,Box_NOT_CLOSABLE);
free (Title); free (Title);
@ -1925,8 +1925,7 @@ void Crs_AskRemoveOldCrss (void)
Frm_BeginForm (ActRemOldCrs); Frm_BeginForm (ActRemOldCrs);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Eliminate_old_courses, Box_BoxBegin (Txt_Eliminate_old_courses,NULL,NULL,
NULL,NULL,
Hlp_SYSTEM_Maintenance_eliminate_old_courses,Box_NOT_CLOSABLE); Hlp_SYSTEM_Maintenance_eliminate_old_courses,Box_NOT_CLOSABLE);
/***** Form to request number of months without clicks *****/ /***** Form to request number of months without clicks *****/

View File

@ -113,7 +113,7 @@ void CrsCfg_Configuration (Vie_ViewType_t ViewType)
} }
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,NULL, Box_BoxBegin (NULL,
ViewType == Vie_VIEW ? CrsCfg_PutIconToPrint : ViewType == Vie_VIEW ? CrsCfg_PutIconToPrint :
NULL,NULL, NULL,NULL,
ViewType == Vie_VIEW ? Hlp_COURSE_Information : ViewType == Vie_VIEW ? Hlp_COURSE_Information :

View File

@ -291,8 +291,7 @@ void Dat_PutBoxToSelectDateFormat (void)
Dat_Format_t Format; Dat_Format_t Format;
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Dates, Box_BoxBegin (Txt_Dates,Dat_PutIconsDateFormat,NULL,
Dat_PutIconsDateFormat,NULL,
Hlp_PROFILE_Settings_dates,Box_NOT_CLOSABLE); Hlp_PROFILE_Settings_dates,Box_NOT_CLOSABLE);
/***** Form with list of options *****/ /***** Form with list of options *****/

View File

@ -683,7 +683,7 @@ static void Deg_ListDegrees (void)
if (asprintf (&Title,Txt_Degrees_of_CENTER_X, if (asprintf (&Title,Txt_Degrees_of_CENTER_X,
Gbl.Hierarchy.Node[Hie_CTR].ShrtName) < 0) Gbl.Hierarchy.Node[Hie_CTR].ShrtName) < 0)
Err_NotEnoughMemoryExit (); Err_NotEnoughMemoryExit ();
Box_BoxBegin (NULL,Title,Deg_PutIconsListingDegrees,NULL, Box_BoxBegin (Title,Deg_PutIconsListingDegrees,NULL,
Hlp_CENTER_Degrees,Box_NOT_CLOSABLE); Hlp_CENTER_Degrees,Box_NOT_CLOSABLE);
free (Title); free (Title);
@ -863,7 +863,7 @@ static void Deg_EditDegreesInternal (void)
if (asprintf (&Title,Txt_Degrees_of_CENTER_X, if (asprintf (&Title,Txt_Degrees_of_CENTER_X,
Gbl.Hierarchy.Node[Hie_CTR].ShrtName) < 0) Gbl.Hierarchy.Node[Hie_CTR].ShrtName) < 0)
Err_NotEnoughMemoryExit (); Err_NotEnoughMemoryExit ();
Box_BoxBegin (NULL,Title,Deg_PutIconsEditingDegrees,NULL, Box_BoxBegin (Title,Deg_PutIconsEditingDegrees,NULL,
Hlp_CENTER_Degrees,Box_NOT_CLOSABLE); Hlp_CENTER_Degrees,Box_NOT_CLOSABLE);
free (Title); free (Title);

View File

@ -119,7 +119,7 @@ static void DegCfg_Configuration (Vie_ViewType_t ViewType)
Frm_DONT_PUT_FORM; Frm_DONT_PUT_FORM;
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,NULL, Box_BoxBegin (NULL,
ViewType == Vie_VIEW ? DegCfg_PutIconsToPrintAndUpload : ViewType == Vie_VIEW ? DegCfg_PutIconsToPrintAndUpload :
NULL,NULL, NULL,NULL,
ViewType == Vie_VIEW ? Hlp_DEGREE_Information : ViewType == Vie_VIEW ? Hlp_DEGREE_Information :

View File

@ -206,12 +206,12 @@ static void DegTyp_ListDegreeTypes (const struct DegTyp_DegTypes *DegTypes,
switch (NextAction) switch (NextAction)
{ {
case ActSeeDegTyp: case ActSeeDegTyp:
Box_BoxBegin (NULL,Txt_Types_of_degree, Box_BoxBegin (Txt_Types_of_degree,
DegTyp_PutIconsListingDegTypes,NULL, DegTyp_PutIconsListingDegTypes,NULL,
Hlp_CENTER_DegreeTypes,Box_NOT_CLOSABLE); Hlp_CENTER_DegreeTypes,Box_NOT_CLOSABLE);
break; break;
case ActSeeUseGbl: case ActSeeUseGbl:
Box_BoxBegin (NULL,Txt_Types_of_degree, Box_BoxBegin (Txt_Types_of_degree,
DegTyp_PutIconToEditDegTypes,NULL, DegTyp_PutIconToEditDegTypes,NULL,
Hlp_ANALYTICS_Figures_types_of_degree,Box_NOT_CLOSABLE); Hlp_ANALYTICS_Figures_types_of_degree,Box_NOT_CLOSABLE);
break; break;
@ -266,8 +266,7 @@ static void DegTyp_EditDegreeTypesInternal (const struct DegTyp_DegTypes *DegTyp
extern const char *Txt_Types_of_degree; extern const char *Txt_Types_of_degree;
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Types_of_degree, Box_BoxBegin (Txt_Types_of_degree,DegTyp_PutIconsEditingDegreeTypes,NULL,
DegTyp_PutIconsEditingDegreeTypes,NULL,
Hlp_CENTER_DegreeTypes_edit,Box_NOT_CLOSABLE); Hlp_CENTER_DegreeTypes_edit,Box_NOT_CLOSABLE);
/***** Put a form to create a new degree type *****/ /***** Put a form to create a new degree type *****/

View File

@ -298,8 +298,7 @@ static void Dpt_EditDepartmentsInternal (void)
if (asprintf (&Title,Txt_Departments_of_INSTITUTION_X, if (asprintf (&Title,Txt_Departments_of_INSTITUTION_X,
Gbl.Hierarchy.Node[Hie_INS].FullName) < 0) Gbl.Hierarchy.Node[Hie_INS].FullName) < 0)
Err_NotEnoughMemoryExit (); Err_NotEnoughMemoryExit ();
Box_BoxBegin (NULL,Title, Box_BoxBegin (Title,Dpt_PutIconToViewDpts,NULL,
Dpt_PutIconToViewDpts,NULL,
Hlp_INSTITUTION_Departments_edit,Box_NOT_CLOSABLE); Hlp_INSTITUTION_Departments_edit,Box_NOT_CLOSABLE);
free (Title); free (Title);

View File

@ -120,8 +120,7 @@ void Dup_ListDuplicateUsrs (void)
unsigned NumInformants; unsigned NumInformants;
/***** Begin box with list of possible duplicate users *****/ /***** Begin box with list of possible duplicate users *****/
Box_BoxBegin (NULL,Txt_Possibly_duplicate_users, Box_BoxBegin (Txt_Possibly_duplicate_users,NULL,NULL,
NULL,NULL,
Hlp_USERS_Duplicates_possibly_duplicate_users,Box_NOT_CLOSABLE); Hlp_USERS_Duplicates_possibly_duplicate_users,Box_NOT_CLOSABLE);
/***** List possible duplicated users *****/ /***** List possible duplicated users *****/
@ -241,8 +240,7 @@ static void Dup_ListSimilarUsrs (void)
unsigned NumUsr; unsigned NumUsr;
/***** Begin box with list of possible duplicate users *****/ /***** Begin box with list of possible duplicate users *****/
Box_BoxBegin (NULL,Txt_Similar_users, Box_BoxBegin (Txt_Similar_users,NULL,NULL,
NULL,NULL,
Hlp_USERS_Duplicates_similar_users,Box_NOT_CLOSABLE); Hlp_USERS_Duplicates_similar_users,Box_NOT_CLOSABLE);
/***** List possible similar users *****/ /***** List possible similar users *****/

View File

@ -396,8 +396,7 @@ void Enr_ReqAcceptRegisterInCrs (void)
}; };
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Enrolment, Box_BoxBegin (Txt_Enrolment,NULL,NULL,
NULL,NULL,
Hlp_USERS_SignUp_confirm_enrolment,Box_NOT_CLOSABLE); Hlp_USERS_SignUp_confirm_enrolment,Box_NOT_CLOSABLE);
/***** Show message *****/ /***** Show message *****/
@ -594,9 +593,9 @@ static void Enr_ShowFormRegRemSeveralUsrs (Rol_Role_t Role)
Frm_BeginForm (WhatToDo[Role].NextAction); Frm_BeginForm (WhatToDo[Role].NextAction);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,*WhatToDo[Role].Title, Box_BoxBegin (*WhatToDo[Role].Title,NULL,NULL,
NULL,NULL, Hlp_USERS_Administration_administer_multiple_users,
Hlp_USERS_Administration_administer_multiple_users,Box_NOT_CLOSABLE); Box_NOT_CLOSABLE);
/***** Step 1: List of students to be enroled / removed *****/ /***** Step 1: List of students to be enroled / removed *****/
HTM_DIV_Begin ("class=\"TITLE_%s LM\"",The_GetSuffix ()); HTM_DIV_Begin ("class=\"TITLE_%s LM\"",The_GetSuffix ());
@ -673,9 +672,7 @@ void Enr_AskRemoveOldUsrs (void)
Frm_BeginForm (ActRemOldUsr); Frm_BeginForm (ActRemOldUsr);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Eliminate_old_users, Box_BoxBegin (Txt_Eliminate_old_users,NULL,NULL,NULL,Box_NOT_CLOSABLE);
NULL,NULL,
NULL,Box_NOT_CLOSABLE);
/***** Form to request number of months without clicks *****/ /***** Form to request number of months without clicks *****/
HTM_LABEL_Begin ("class=\"FORM_IN_%s\"",The_GetSuffix ()); HTM_LABEL_Begin ("class=\"FORM_IN_%s\"",The_GetSuffix ());
@ -1721,8 +1718,7 @@ void Enr_AskRemAllStdsThisCrs (void)
1 << Rol_STD); // This course has students 1 << Rol_STD); // This course has students
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Remove_all_students, Box_BoxBegin (Txt_Remove_all_students,NULL,NULL,
NULL,NULL,
Hlp_USERS_Administration_remove_all_students,Box_NOT_CLOSABLE); Hlp_USERS_Administration_remove_all_students,Box_NOT_CLOSABLE);
if (NumStds) if (NumStds)
@ -2145,8 +2141,7 @@ static void Enr_ShowEnrolmentRequestsGivenRoles (unsigned RolesSelected)
Sco_GetScope ("ScopeEnr",Hie_CRS); Sco_GetScope ("ScopeEnr",Hie_CRS);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Enrolment_requests, Box_BoxBegin (Txt_Enrolment_requests,NULL,NULL,
NULL,NULL,
Hlp_USERS_Requests,Box_NOT_CLOSABLE); Hlp_USERS_Requests,Box_NOT_CLOSABLE);
/***** Selection of scope and roles *****/ /***** Selection of scope and roles *****/
@ -2475,8 +2470,7 @@ static void Enr_ReqAnotherUsrIDToRegisterRemove (Rol_Role_t Role)
}; };
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Administer_one_user, Box_BoxBegin (Txt_Administer_one_user,NULL,NULL,
NULL,NULL,
Hlp_USERS_Administration_administer_one_user,Box_NOT_CLOSABLE); Hlp_USERS_Administration_administer_one_user,Box_NOT_CLOSABLE);
/***** Write form to request another user's ID *****/ /***** Write form to request another user's ID *****/

View File

@ -239,8 +239,7 @@ void Exa_ListAllExams (struct Exa_Exams *Exams)
Exams->CurrentPage = (unsigned) Pagination.CurrentPage; Exams->CurrentPage = (unsigned) Pagination.CurrentPage;
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Exams, Box_BoxBegin (Txt_Exams,Exa_PutIconsListExams,Exams,
Exa_PutIconsListExams,Exams,
Hlp_ASSESSMENT_Exams,Box_NOT_CLOSABLE); Hlp_ASSESSMENT_Exams,Box_NOT_CLOSABLE);
/***** Write links to pages *****/ /***** Write links to pages *****/
@ -426,8 +425,8 @@ void Exa_ShowOnlyOneExamBegin (struct Exa_Exams *Exams,
extern const char *Txt_Exam; extern const char *Txt_Exam;
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Exams->Exam.Title[0] ? Exams->Exam.Title : Box_BoxBegin (Exams->Exam.Title[0] ? Exams->Exam.Title :
Txt_Exam, Txt_Exam,
Exa_PutIconsViewingOneExam,Exams, Exa_PutIconsViewingOneExam,Exams,
Hlp_ASSESSMENT_Exams,Box_NOT_CLOSABLE); Hlp_ASSESSMENT_Exams,Box_NOT_CLOSABLE);
@ -1278,8 +1277,8 @@ void Exa_PutFormsOneExam (struct Exa_Exams *Exams,
} }
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Exams->Exam.Title[0] ? Exams->Exam.Title : Box_BoxBegin (Exams->Exam.Title[0] ? Exams->Exam.Title :
Txt_Exam, Txt_Exam,
FunctionToDrawContextualIcons[ExistingNewExam],Exams, FunctionToDrawContextualIcons[ExistingNewExam],Exams,
*HelpLink[ExistingNewExam],Box_NOT_CLOSABLE); *HelpLink[ExistingNewExam],Box_NOT_CLOSABLE);

View File

@ -575,8 +575,7 @@ static void ExaPrn_ShowExamPrintToFillIt (struct Exa_Exams *Exams,
extern const char *Hlp_ASSESSMENT_Exams_answer_exam; extern const char *Hlp_ASSESSMENT_Exams_answer_exam;
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Exams->Exam.Title, Box_BoxBegin (Exams->Exam.Title,NULL,NULL,
NULL,NULL,
Hlp_ASSESSMENT_Exams_answer_exam,Box_NOT_CLOSABLE); Hlp_ASSESSMENT_Exams_answer_exam,Box_NOT_CLOSABLE);
/***** Heading *****/ /***** Heading *****/

View File

@ -519,8 +519,7 @@ static void ExaRes_ShowResultsBegin (struct Exa_Exams *Exams,
HTM_SECTION_Begin (ExaRes_RESULTS_BOX_ID); HTM_SECTION_Begin (ExaRes_RESULTS_BOX_ID);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Title, Box_BoxBegin (Title,NULL,NULL,
NULL,NULL,
Hlp_ASSESSMENT_Exams_results,Box_NOT_CLOSABLE); Hlp_ASSESSMENT_Exams_results,Box_NOT_CLOSABLE);
/***** List exams to select *****/ /***** List exams to select *****/
@ -566,9 +565,7 @@ static void ExaRes_ListExamsToSelect (struct Exa_Exams *Exams)
Exa_ResetExam (&Exams->Exam); Exa_ResetExam (&Exams->Exam);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Exams, Box_BoxBegin (Txt_Exams,NULL,NULL,NULL,Box_CLOSABLE);
NULL,NULL,
NULL,Box_CLOSABLE);
/***** Begin form to update the results /***** Begin form to update the results
depending on the exams selected *****/ depending on the exams selected *****/
@ -1337,8 +1334,7 @@ static void ExaRes_ShowExamResult (const struct Exa_Exam *Exam,
ExaRes_ComputeValidPrintScore (Print); ExaRes_ComputeValidPrintScore (Print);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Session->Title, Box_BoxBegin (Session->Title,NULL,NULL,
NULL,NULL,
Hlp_ASSESSMENT_Exams_results,Box_NOT_CLOSABLE); Hlp_ASSESSMENT_Exams_results,Box_NOT_CLOSABLE);
/***** Header *****/ /***** Header *****/

View File

@ -147,8 +147,7 @@ void ExaSes_ListSessions (struct Exa_Exams *Exams,
NumSessions = Exa_DB_GetSessions (&mysql_res,Exams->Exam.ExaCod); NumSessions = Exa_DB_GetSessions (&mysql_res,Exams->Exam.ExaCod);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Sessions, Box_BoxBegin (Txt_Sessions,ExaSes_PutIconsInListOfSessions,Exams,
ExaSes_PutIconsInListOfSessions,Exams,
Hlp_ASSESSMENT_Exams_sessions,Box_NOT_CLOSABLE); Hlp_ASSESSMENT_Exams_sessions,Box_NOT_CLOSABLE);
/***** Select whether show only my groups or all groups *****/ /***** Select whether show only my groups or all groups *****/

View File

@ -489,8 +489,7 @@ void ExaSet_ListExamSets (struct Exa_Exams *Exams)
NumSets = Exa_DB_GetExamSets (&mysql_res,Exams->Exam.ExaCod); NumSets = Exa_DB_GetExamSets (&mysql_res,Exams->Exam.ExaCod);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Sets_of_questions, Box_BoxBegin (Txt_Sets_of_questions,NULL,NULL,
NULL,NULL,
Hlp_ASSESSMENT_Exams_question_sets,Box_NOT_CLOSABLE); Hlp_ASSESSMENT_Exams_question_sets,Box_NOT_CLOSABLE);
/***** Show table with sets *****/ /***** Show table with sets *****/
@ -520,7 +519,7 @@ static void ExaSet_ListSetQuestions (struct Exa_Exams *Exams,
bool ICanEditQuestions = Exa_CheckIfEditable (&Exams->Exam); bool ICanEditQuestions = Exa_CheckIfEditable (&Exams->Exam);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Questions, Box_BoxBegin (Txt_Questions,
ICanEditQuestions ? ExaSet_PutIconToAddNewQuestions : ICanEditQuestions ? ExaSet_PutIconToAddNewQuestions :
NULL, NULL,
ICanEditQuestions ? Exams : ICanEditQuestions ? Exams :

View File

@ -101,8 +101,7 @@ static void Fig_ReqShowFigure (Fig_FigureType_t SelectedFigureType)
Frm_BeginForm (ActSeeUseGbl); Frm_BeginForm (ActSeeUseGbl);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Figures, Box_BoxBegin (Txt_Figures,NULL,NULL,
NULL,NULL,
Hlp_ANALYTICS_Figures,Box_NOT_CLOSABLE); Hlp_ANALYTICS_Figures,Box_NOT_CLOSABLE);
/***** Begin table *****/ /***** Begin table *****/

View File

@ -136,8 +136,7 @@ void Fol_SuggestUsrsToFollowOnMainZone (void)
&mysql_res))) &mysql_res)))
{ {
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Who_to_follow, Box_BoxBegin (Txt_Who_to_follow,Fol_PutIconsWhoToFollow,NULL,
Fol_PutIconsWhoToFollow,NULL,
Hlp_START_Profiles_who_to_follow,Box_NOT_CLOSABLE); Hlp_START_Profiles_who_to_follow,Box_NOT_CLOSABLE);
/***** Initialize structure with user's data *****/ /***** Initialize structure with user's data *****/
@ -455,9 +454,7 @@ static void Fol_ListFollowingUsr (struct Usr_Data *UsrDat)
Usr_UsrDataConstructor (&FollowingUsrDat); Usr_UsrDataConstructor (&FollowingUsrDat);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Following, Box_BoxBegin (Txt_Following,NULL,NULL,NULL,Box_NOT_CLOSABLE);
NULL,NULL,
NULL,Box_NOT_CLOSABLE);
for (NumUsr = 0; for (NumUsr = 0;
NumUsr < NumUsrs; NumUsr < NumUsrs;
@ -527,9 +524,7 @@ static void Fol_ListFollowersUsr (struct Usr_Data *UsrDat)
Usr_UsrDataConstructor (&FollowerUsrDat); Usr_UsrDataConstructor (&FollowerUsrDat);
/***** Begin box and table *****/ /***** Begin box and table *****/
Box_BoxBegin (NULL,Txt_Followers, Box_BoxBegin (Txt_Followers,NULL,NULL,NULL,Box_NOT_CLOSABLE);
NULL,NULL,
NULL,Box_NOT_CLOSABLE);
for (NumUsr = 0; for (NumUsr = 0;
NumUsr < NumUsrs; NumUsr < NumUsrs;

View File

@ -737,8 +737,7 @@ void For_ShowPostsOfAThread (struct For_Forums *Forums,
/***** Begin box *****/ /***** Begin box *****/
snprintf (FrameTitle,sizeof (FrameTitle),"%s: %s", snprintf (FrameTitle,sizeof (FrameTitle),"%s: %s",
Txt_Thread,Thread.Subject); Txt_Thread,Thread.Subject);
Box_BoxBegin (NULL,FrameTitle, Box_BoxBegin (FrameTitle,For_PutIconsOneThread,Forums,
For_PutIconsOneThread,Forums,
Hlp_COMMUNICATION_Forums_posts,Box_NOT_CLOSABLE); Hlp_COMMUNICATION_Forums_posts,Box_NOT_CLOSABLE);
/***** Get posts of a thread from database *****/ /***** Get posts of a thread from database *****/
@ -1241,8 +1240,7 @@ void For_ShowForumList (struct For_Forums *Forums)
Hie_GetMyHierarchy (Hie_INS); Hie_GetMyHierarchy (Hie_INS);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Forums, Box_BoxBegin (Txt_Forums,For_PutIconsForums,NULL,
For_PutIconsForums,NULL,
Hlp_COMMUNICATION_Forums,Box_NOT_CLOSABLE); Hlp_COMMUNICATION_Forums,Box_NOT_CLOSABLE);
/***** Put a form to select which forums *****/ /***** Put a form to select which forums *****/
@ -2094,8 +2092,7 @@ void For_ShowForumThreadsHighlightingOneThread (struct For_Forums *Forums,
/***** Begin box for threads of this forum *****/ /***** Begin box for threads of this forum *****/
snprintf (FrameTitle,sizeof (FrameTitle),"%s: %s",Txt_Forum,ForumName); snprintf (FrameTitle,sizeof (FrameTitle),"%s: %s",Txt_Forum,ForumName);
Box_BoxBegin (NULL,FrameTitle, Box_BoxBegin (FrameTitle,For_PutIconsThreads,Forums,
For_PutIconsThreads,Forums,
Hlp_COMMUNICATION_Forums_threads,Box_NOT_CLOSABLE); Hlp_COMMUNICATION_Forums_threads,Box_NOT_CLOSABLE);
/***** List the threads *****/ /***** List the threads *****/
@ -2769,8 +2766,8 @@ static void For_WriteFormForumPst (struct For_Forums *Forums,
char *ClassInput; char *ClassInput;
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,IsReply ? Txt_Post : Box_BoxBegin (IsReply ? Txt_Post :
Txt_Thread, Txt_Thread,
NULL,NULL, NULL,NULL,
IsReply ? Hlp_COMMUNICATION_Forums_new_post : IsReply ? Hlp_COMMUNICATION_Forums_new_post :
Hlp_COMMUNICATION_Forums_new_thread, Hlp_COMMUNICATION_Forums_new_thread,

View File

@ -252,8 +252,7 @@ void Gam_ListAllGames (struct Gam_Games *Games)
Games->CurrentPage = (unsigned) Pagination.CurrentPage; Games->CurrentPage = (unsigned) Pagination.CurrentPage;
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Games, Box_BoxBegin (Txt_Games,Gam_PutIconsListingGames,Games,
Gam_PutIconsListingGames,Games,
Hlp_ASSESSMENT_Games,Box_NOT_CLOSABLE); Hlp_ASSESSMENT_Games,Box_NOT_CLOSABLE);
/***** Write links to pages *****/ /***** Write links to pages *****/
@ -477,8 +476,8 @@ void Gam_ShowOnlyOneGameBegin (struct Gam_Games *Games,
extern const char *Txt_Game; extern const char *Txt_Game;
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Games->Game.Title[0] ? Games->Game.Title : Box_BoxBegin (Games->Game.Title[0] ? Games->Game.Title :
Txt_Game, Txt_Game,
Gam_PutIconsViewingOneGame,Games, Gam_PutIconsViewingOneGame,Games,
Hlp_ASSESSMENT_Games,Box_NOT_CLOSABLE); Hlp_ASSESSMENT_Games,Box_NOT_CLOSABLE);
@ -1283,8 +1282,7 @@ void Gam_PutFormsOneGame (struct Gam_Games *Games,
} }
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL, Box_BoxBegin (Games->Game.Title[0] ? Games->Game.Title :
Games->Game.Title[0] ? Games->Game.Title :
Txt_Game, Txt_Game,
FunctionToDrawContextualIcons[ExistingNewGame],Games, FunctionToDrawContextualIcons[ExistingNewGame],Games,
*HelpLink[ExistingNewGame],Box_NOT_CLOSABLE); *HelpLink[ExistingNewGame],Box_NOT_CLOSABLE);
@ -1637,22 +1635,20 @@ static void Gam_ListGameQuestions (struct Gam_Games *Games)
NumQsts = Gam_DB_GetGameQuestionsBasic (&mysql_res,Games->Game.GamCod); NumQsts = Gam_DB_GetGameQuestionsBasic (&mysql_res,Games->Game.GamCod);
/***** Begin box *****/ /***** Begin box *****/
if (ICanEditQuestions) Box_BoxBegin (Txt_Questions,
Box_BoxBegin (NULL,Txt_Questions, ICanEditQuestions ? Gam_PutIconToAddNewQuestions :
Gam_PutIconToAddNewQuestions,Games, NULL,
Hlp_ASSESSMENT_Games_questions,Box_NOT_CLOSABLE); ICanEditQuestions ? Games :
else NULL,
Box_BoxBegin (NULL,Txt_Questions, Hlp_ASSESSMENT_Games_questions,Box_NOT_CLOSABLE);
NULL,NULL,
Hlp_ASSESSMENT_Games_questions,Box_NOT_CLOSABLE);
/***** Show table with questions *****/ /***** Show table with questions *****/
if (NumQsts) if (NumQsts)
Gam_ListOneOrMoreQuestionsForEdition (Games,NumQsts,mysql_res, Gam_ListOneOrMoreQuestionsForEdition (Games,NumQsts,mysql_res,
ICanEditQuestions); ICanEditQuestions);
/***** Free structure that stores the query result *****/ /***** Free structure that stores the query result *****/
DB_FreeMySQLResult (&mysql_res); DB_FreeMySQLResult (&mysql_res);
/***** End box *****/ /***** End box *****/
Box_BoxEnd (); Box_BoxEnd ();

View File

@ -278,8 +278,7 @@ static void Grp_EditGroupTypes (void)
extern const char *Txt_There_are_no_types_of_group_in_the_course_X; extern const char *Txt_There_are_no_types_of_group_in_the_course_X;
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Types_of_group, Box_BoxBegin (Txt_Types_of_group,Grp_PutIconsEditingGroupTypes,NULL,
Grp_PutIconsEditingGroupTypes,NULL,
Hlp_USERS_Groups,Box_NOT_CLOSABLE); Hlp_USERS_Groups,Box_NOT_CLOSABLE);
/***** Put a form to create a new group type *****/ /***** Put a form to create a new group type *****/
@ -307,8 +306,7 @@ static void Grp_EditGroups (const struct Roo_Rooms *Rooms)
extern const char *Txt_No_groups_have_been_created_in_the_course_X; extern const char *Txt_No_groups_have_been_created_in_the_course_X;
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Groups, Box_BoxBegin (Txt_Groups,Grp_PutIconsEditingGroups,NULL,
Grp_PutIconsEditingGroups,NULL,
Hlp_USERS_Groups,Box_NOT_CLOSABLE); Hlp_USERS_Groups,Box_NOT_CLOSABLE);
/***** Put a form to create a new group *****/ /***** Put a form to create a new group *****/
@ -356,7 +354,7 @@ void Grp_ShowFormToSelectSeveralGroups (void (*FuncPars) (void *Args),void *Args
ICanEdit = !Frm_CheckIfInside () && ICanEdit = !Frm_CheckIfInside () &&
(Gbl.Usrs.Me.Role.Logged == Rol_TCH || (Gbl.Usrs.Me.Role.Logged == Rol_TCH ||
Gbl.Usrs.Me.Role.Logged == Rol_SYS_ADM); Gbl.Usrs.Me.Role.Logged == Rol_SYS_ADM);
Box_BoxBegin (NULL,Txt_Groups, Box_BoxBegin (Txt_Groups,
ICanEdit ? Grp_PutIconToEditGroups : ICanEdit ? Grp_PutIconToEditGroups :
NULL,NULL, NULL,NULL,
Hlp_USERS_Groups,Box_CLOSABLE); Hlp_USERS_Groups,Box_CLOSABLE);
@ -1729,46 +1727,43 @@ void Grp_ShowLstGrpsToChgMyGrps (void)
} }
/***** Begin box *****/ /***** Begin box *****/
if (ICanEdit) Box_BoxBegin (Txt_My_groups,
Box_BoxBegin (NULL,Txt_My_groups, ICanEdit ? Grp_PutIconToEditGroups :
Grp_PutIconToEditGroups,NULL, NULL,
Hlp_USERS_Groups,Box_NOT_CLOSABLE); NULL,
else Hlp_USERS_Groups,Box_NOT_CLOSABLE);
Box_BoxBegin (NULL,Txt_My_groups,
NULL,NULL,
Hlp_USERS_Groups,Box_NOT_CLOSABLE);
if (Gbl.Crs.Grps.NumGrps) // This course has groups if (Gbl.Crs.Grps.NumGrps) // This course has groups
{
/***** Begin form *****/
if (PutFormToChangeGrps)
Frm_BeginForm (ActChgGrp);
/***** List the groups the user belongs to for change *****/
HTM_TABLE_BeginWidePadding (2);
for (NumGrpTyp = 0;
NumGrpTyp < Gbl.Crs.Grps.GrpTypes.NumGrpTypes;
NumGrpTyp++)
if (Gbl.Crs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp].NumGrps) // If there are groups of this type
{
ICanChangeMyGrps |= Grp_ListGrpsForChangeMySelection (&Gbl.Crs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp],
&NumGrpsThisTypeIBelong);
NumGrpsIBelong += NumGrpsThisTypeIBelong;
}
HTM_TABLE_End ();
/***** End form *****/
if (PutFormToChangeGrps)
{ {
if (ICanChangeMyGrps) /***** Begin form *****/
Btn_PutConfirmButton (NumGrpsIBelong ? Txt_Change_my_groups : if (PutFormToChangeGrps)
Txt_Enrol_in_groups); Frm_BeginForm (ActChgGrp);
Frm_EndForm ();
/***** List the groups the user belongs to for change *****/
HTM_TABLE_BeginWidePadding (2);
for (NumGrpTyp = 0;
NumGrpTyp < Gbl.Crs.Grps.GrpTypes.NumGrpTypes;
NumGrpTyp++)
if (Gbl.Crs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp].NumGrps) // If there are groups of this type
{
ICanChangeMyGrps |= Grp_ListGrpsForChangeMySelection (&Gbl.Crs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp],
&NumGrpsThisTypeIBelong);
NumGrpsIBelong += NumGrpsThisTypeIBelong;
}
HTM_TABLE_End ();
/***** End form *****/
if (PutFormToChangeGrps)
{
if (ICanChangeMyGrps)
Btn_PutConfirmButton (NumGrpsIBelong ? Txt_Change_my_groups :
Txt_Enrol_in_groups);
Frm_EndForm ();
}
} }
} else // This course has no groups
else // This course has no groups Ale_ShowAlert (Ale_INFO,Txt_No_groups_have_been_created_in_the_course_X,
Ale_ShowAlert (Ale_INFO,Txt_No_groups_have_been_created_in_the_course_X, Gbl.Hierarchy.Node[Hie_CRS].FullName);
Gbl.Hierarchy.Node[Hie_CRS].FullName);
/***** End box *****/ /***** End box *****/
Box_BoxEnd (); Box_BoxEnd ();

View File

@ -1535,8 +1535,7 @@ static void Hie_WriteListMyHierarchyToSelectNode (void)
Lay_LastItem_t IsLastItemInLevel[1 + 6]; Lay_LastItem_t IsLastItemInLevel[1 + 6];
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_My_courses, Box_BoxBegin (Txt_My_courses,Hie_PutIconToSearchCourses,NULL,
Hie_PutIconToSearchCourses,NULL,
Hlp_PROFILE_Courses,Box_NOT_CLOSABLE); Hlp_PROFILE_Courses,Box_NOT_CLOSABLE);
/***** Begin list *****/ /***** Begin list *****/

View File

@ -136,8 +136,7 @@ void Hld_SeeAllHolidays (void)
Hld_GetListHolidays (&Holidays); Hld_GetListHolidays (&Holidays);
/***** Table head *****/ /***** Table head *****/
Box_BoxBegin (NULL,Txt_Holidays, Box_BoxBegin (Txt_Holidays,Hld_PutIconsSeeHolidays,NULL,
Hld_PutIconsSeeHolidays,NULL,
Hlp_INSTITUTION_Holidays,Box_NOT_CLOSABLE); Hlp_INSTITUTION_Holidays,Box_NOT_CLOSABLE);
if (Holidays.Num) if (Holidays.Num)
@ -489,9 +488,7 @@ static void Hld_ListHolidaysForEdition (const struct Hld_Holidays *Holidays,
unsigned CurrentYear = Dat_GetCurrentYear (); unsigned CurrentYear = Dat_GetCurrentYear ();
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Holidays, Box_BoxBegin (Txt_Holidays,Hld_PutIconsEditHolidays,NULL,
Hld_PutIconsEditHolidays,NULL,
// Cal_PutIconToSeeCalendar,NULL,
Hlp_INSTITUTION_Holidays_edit,Box_NOT_CLOSABLE); Hlp_INSTITUTION_Holidays_edit,Box_NOT_CLOSABLE);
/***** Put a form to create a new holiday *****/ /***** Put a form to create a new holiday *****/

View File

@ -157,8 +157,7 @@ void Ico_PutIconsToSelectIconSet (void)
Ico_IconSet_t IconSet; Ico_IconSet_t IconSet;
char Icon[PATH_MAX + 1]; char Icon[PATH_MAX + 1];
Box_BoxBegin (NULL,Txt_Icons, Box_BoxBegin (Txt_Icons,Ico_PutIconsIconSet,NULL,
Ico_PutIconsIconSet,NULL,
Hlp_PROFILE_Settings_icons,Box_NOT_CLOSABLE); Hlp_PROFILE_Settings_icons,Box_NOT_CLOSABLE);
Set_BeginSettingsHead (); Set_BeginSettingsHead ();
Set_BeginOneSettingSelector (); Set_BeginOneSettingSelector ();

View File

@ -121,8 +121,7 @@ void Ind_ReqIndicatorsCourses (void)
Ind_GetParsIndicators (&Indicators); Ind_GetParsIndicators (&Indicators);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Indicators_of_courses, Box_BoxBegin (Txt_Indicators_of_courses,NULL,NULL,
NULL,NULL,
Hlp_ANALYTICS_Indicators,Box_NOT_CLOSABLE); Hlp_ANALYTICS_Indicators,Box_NOT_CLOSABLE);
/***** Form to update indicators *****/ /***** Form to update indicators *****/

View File

@ -299,7 +299,7 @@ void Inf_ShowInfo (void)
if (ShowWarningNoInfo) if (ShowWarningNoInfo)
{ {
Box_BoxBegin (NULL,Txt_INFO_TITLE[Gbl.Crs.Info.Type], Box_BoxBegin (Txt_INFO_TITLE[Gbl.Crs.Info.Type],
ICanEdit ? Inf_PutIconToEditInfo : ICanEdit ? Inf_PutIconToEditInfo :
NULL, NULL,
ICanEdit ? &Gbl.Crs.Info.Type : ICanEdit ? &Gbl.Crs.Info.Type :
@ -446,9 +446,7 @@ void Inf_WriteMsgYouMustReadInfo (void)
Inf_Type_t InfoType; Inf_Type_t InfoType;
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Required_reading, Box_BoxBegin (Txt_Required_reading,NULL,NULL,NULL,Box_CLOSABLE);
NULL,NULL,
NULL,Box_CLOSABLE);
/***** Write message *****/ /***** Write message *****/
Ale_ShowAlert (Ale_WARNING,Txt_You_should_read_the_following_information); Ale_ShowAlert (Ale_WARNING,Txt_You_should_read_the_following_information);
@ -765,21 +763,19 @@ static void Inf_ShowPage (const char *URL)
}; };
/***** Begin box *****/ /***** Begin box *****/
if (ICanEdit) Box_BoxBegin (Txt_INFO_TITLE[Gbl.Crs.Info.Type],
Box_BoxBegin (NULL,Txt_INFO_TITLE[Gbl.Crs.Info.Type], ICanEdit ? Inf_PutIconToEditInfo :
Inf_PutIconToEditInfo,&Gbl.Crs.Info.Type, NULL,
Help[Gbl.Crs.Info.Type],Box_NOT_CLOSABLE); ICanEdit ? &Gbl.Crs.Info.Type :
else NULL,
Box_BoxBegin (NULL,Txt_INFO_TITLE[Gbl.Crs.Info.Type], Help[Gbl.Crs.Info.Type],Box_NOT_CLOSABLE);
NULL,NULL,
Help[Gbl.Crs.Info.Type],Box_NOT_CLOSABLE);
/***** Link to view in a new window *****/ /***** Link to view in a new window *****/
HTM_A_Begin ("href=\"%s\" target=\"_blank\" class=\"FORM_OUT_%s BOLD\"", HTM_A_Begin ("href=\"%s\" target=\"_blank\" class=\"FORM_OUT_%s BOLD\"",
URL,The_GetSuffix ()); URL,The_GetSuffix ());
Ico_PutIconTextLink ("expand-arrows-alt.svg",Ico_BLACK, Ico_PutIconTextLink ("expand-arrows-alt.svg",Ico_BLACK,
Txt_View_in_a_new_window); Txt_View_in_a_new_window);
HTM_A_End (); HTM_A_End ();
/***** End box *****/ /***** End box *****/
Box_BoxEnd (); Box_BoxEnd ();
@ -1428,32 +1424,31 @@ static bool Inf_CheckAndShowPlainTxt (void)
if (TxtHTML[0]) if (TxtHTML[0])
{ {
/***** Begin box *****/ /***** Begin box *****/
if (ICanEdit) Box_BoxBegin (Txt_INFO_TITLE[Gbl.Crs.Info.Type],
Box_BoxBegin (NULL,Txt_INFO_TITLE[Gbl.Crs.Info.Type], ICanEdit ? Inf_PutIconToEditInfo :
Inf_PutIconToEditInfo,&Gbl.Crs.Info.Type, NULL,
Help[Gbl.Crs.Info.Type],Box_NOT_CLOSABLE); ICanEdit ? &Gbl.Crs.Info.Type :
else NULL,
Box_BoxBegin (NULL,Txt_INFO_TITLE[Gbl.Crs.Info.Type], Help[Gbl.Crs.Info.Type],Box_NOT_CLOSABLE);
NULL,NULL,
Help[Gbl.Crs.Info.Type],Box_NOT_CLOSABLE);
if (Gbl.Crs.Info.Type == Inf_INTRODUCTION || if (Gbl.Crs.Info.Type == Inf_INTRODUCTION ||
Gbl.Crs.Info.Type == Inf_TEACHING_GUIDE) Gbl.Crs.Info.Type == Inf_TEACHING_GUIDE)
Lay_WriteHeaderClassPhoto (Vie_VIEW); Lay_WriteHeaderClassPhoto (Vie_VIEW);
HTM_DIV_Begin ("class=\"LM DAT_%s\"",The_GetSuffix ()); HTM_DIV_Begin ("class=\"LM DAT_%s\"",The_GetSuffix ());
/***** Convert to respectful HTML and insert links *****/ /***** Convert to respectful HTML and insert links *****/
Str_ChangeFormat (Str_FROM_HTML,Str_TO_RIGOROUS_HTML, Str_ChangeFormat (Str_FROM_HTML,Str_TO_RIGOROUS_HTML,
TxtHTML,Cns_MAX_BYTES_LONG_TEXT, TxtHTML,Cns_MAX_BYTES_LONG_TEXT,
Str_DONT_REMOVE_SPACES); Str_DONT_REMOVE_SPACES);
ALn_InsertLinks (TxtHTML,Cns_MAX_BYTES_LONG_TEXT,60); // Insert links ALn_InsertLinks (TxtHTML,Cns_MAX_BYTES_LONG_TEXT,60); // Insert links
/***** Write text *****/ /***** Write text *****/
HTM_Txt (TxtHTML); HTM_Txt (TxtHTML);
HTM_DIV_End ();
/***** End box *****/ /***** End box *****/
HTM_DIV_End ();
Box_BoxEnd (); Box_BoxEnd ();
return true; return true;
@ -1518,95 +1513,94 @@ static bool Inf_CheckAndShowRichTxt (void)
if (TxtMD[0]) if (TxtMD[0])
{ {
/***** Begin box *****/ /***** Begin box *****/
if (ICanEdit) Box_BoxBegin (Txt_INFO_TITLE[Gbl.Crs.Info.Type],
Box_BoxBegin (NULL,Txt_INFO_TITLE[Gbl.Crs.Info.Type], ICanEdit ? Inf_PutIconToEditInfo :
Inf_PutIconToEditInfo,&Gbl.Crs.Info.Type, NULL,
Help[Gbl.Crs.Info.Type],Box_NOT_CLOSABLE); ICanEdit ? &Gbl.Crs.Info.Type :
else NULL,
Box_BoxBegin (NULL,Txt_INFO_TITLE[Gbl.Crs.Info.Type], Help[Gbl.Crs.Info.Type],Box_NOT_CLOSABLE);
NULL,NULL,
Help[Gbl.Crs.Info.Type],Box_NOT_CLOSABLE);
if (Gbl.Crs.Info.Type == Inf_INTRODUCTION || if (Gbl.Crs.Info.Type == Inf_INTRODUCTION ||
Gbl.Crs.Info.Type == Inf_TEACHING_GUIDE) Gbl.Crs.Info.Type == Inf_TEACHING_GUIDE)
Lay_WriteHeaderClassPhoto (Vie_VIEW); Lay_WriteHeaderClassPhoto (Vie_VIEW);
HTM_DIV_Begin ("id=\"crs_info\" class=\"LM CRS_INFO_%s\"", HTM_DIV_Begin ("id=\"crs_info\" class=\"LM CRS_INFO_%s\"",
The_GetSuffix ()); The_GetSuffix ());
/***** Store text into a temporary .md file in HTML output directory *****/ /***** Store text into a temporary .md file in HTML output directory *****/
// TODO: change to another directory? // TODO: change to another directory?
/* Create a unique name for the .md file */ /* Create a unique name for the .md file */
UniqueNameEncrypted = Cry_GetUniqueNameEncrypted (); UniqueNameEncrypted = Cry_GetUniqueNameEncrypted ();
snprintf (PathFileMD,sizeof (PathFileMD),"%s/%s.md", snprintf (PathFileMD,sizeof (PathFileMD),"%s/%s.md",
Cfg_PATH_OUT_PRIVATE,UniqueNameEncrypted); Cfg_PATH_OUT_PRIVATE,UniqueNameEncrypted);
snprintf (PathFileHTML,sizeof (PathFileHTML),"%s/%s.md.html", // Do not use only .html because that is the output temporary file snprintf (PathFileHTML,sizeof (PathFileHTML),"%s/%s.md.html", // Do not use only .html because that is the output temporary file
Cfg_PATH_OUT_PRIVATE,UniqueNameEncrypted); Cfg_PATH_OUT_PRIVATE,UniqueNameEncrypted);
/* Open Markdown file for writing */ /* Open Markdown file for writing */
if ((FileMD = fopen (PathFileMD,"wb")) == NULL) if ((FileMD = fopen (PathFileMD,"wb")) == NULL)
Err_ShowErrorAndExit ("Can not create temporary Markdown file."); Err_ShowErrorAndExit ("Can not create temporary Markdown file.");
/* Write text into Markdown file */ /* Write text into Markdown file */
fprintf (FileMD,"%s",TxtMD); fprintf (FileMD,"%s",TxtMD);
/* Close Markdown file */ /* Close Markdown file */
fclose (FileMD); fclose (FileMD);
/***** Convert from Markdown to HTML *****/ /***** Convert from Markdown to HTML *****/
/* MathJax 2.5.1 /* MathJax 2.5.1
#ifdef Cfg_MATHJAX_LOCAL #ifdef Cfg_MATHJAX_LOCAL
// Use the local copy of MathJax // Use the local copy of MathJax
snprintf (MathJaxURL,sizeof (MathJaxURL), snprintf (MathJaxURL,sizeof (MathJaxURL),
"=%s/MathJax/MathJax.js?config=TeX-AMS-MML_HTMLorMML", "=%s/MathJax/MathJax.js?config=TeX-AMS-MML_HTMLorMML",
Cfg_URL_SWAD_PUBLIC); Cfg_URL_SWAD_PUBLIC);
#else #else
// Use the MathJax Content Delivery Network (CDN) // Use the MathJax Content Delivery Network (CDN)
MathJaxURL[0] = '\0'; MathJaxURL[0] = '\0';
#endif #endif
*/ */
/* MathJax 3.0.1 */ /* MathJax 3.0.1 */
#ifdef Cfg_MATHJAX_LOCAL #ifdef Cfg_MATHJAX_LOCAL
// Use the local copy of MathJax // Use the local copy of MathJax
snprintf (MathJaxURL,sizeof (MathJaxURL),"=%s/mathjax/tex-chtml.js", snprintf (MathJaxURL,sizeof (MathJaxURL),"=%s/mathjax/tex-chtml.js",
Cfg_URL_SWAD_PUBLIC); Cfg_URL_SWAD_PUBLIC);
#else #else
// Use the MathJax Content Delivery Network (CDN) // Use the MathJax Content Delivery Network (CDN)
MathJaxURL[0] = '\0'; MathJaxURL[0] = '\0';
#endif #endif
// --ascii uses only ascii characters in output // --ascii uses only ascii characters in output
// (uses numerical entities instead of UTF-8) // (uses numerical entities instead of UTF-8)
// is mandatory in order to convert (with iconv) the UTF-8 output of pandoc to WINDOWS-1252 // is mandatory in order to convert (with iconv) the UTF-8 output of pandoc to WINDOWS-1252
snprintf (Command,sizeof (Command), snprintf (Command,sizeof (Command),
"iconv -f WINDOWS-1252 -t UTF-8 %s" "iconv -f WINDOWS-1252 -t UTF-8 %s"
" | " " | "
"pandoc --ascii --mathjax%s -f markdown_github+tex_math_dollars -t html5" "pandoc --ascii --mathjax%s -f markdown_github+tex_math_dollars -t html5"
" | " " | "
"iconv -f UTF-8 -t WINDOWS-1252 -o %s", "iconv -f UTF-8 -t WINDOWS-1252 -o %s",
PathFileMD, PathFileMD,
MathJaxURL, MathJaxURL,
PathFileHTML); PathFileHTML);
ReturnCode = system (Command); ReturnCode = system (Command);
if (ReturnCode == -1) if (ReturnCode == -1)
Err_ShowErrorAndExit ("Error when running command to convert from Markdown to HTML."); Err_ShowErrorAndExit ("Error when running command to convert from Markdown to HTML.");
/***** Remove Markdown file *****/ /***** Remove Markdown file *****/
unlink (PathFileMD); unlink (PathFileMD);
/***** Copy HTML file just created to HTML output *****/ /***** Copy HTML file just created to HTML output *****/
/* Open temporary HTML file for reading */ /* Open temporary HTML file for reading */
if ((FileHTML = fopen (PathFileHTML,"rb")) == NULL) if ((FileHTML = fopen (PathFileHTML,"rb")) == NULL)
Err_ShowErrorAndExit ("Can not open temporary HTML file."); Err_ShowErrorAndExit ("Can not open temporary HTML file.");
/* Copy from temporary HTML file to output file */ /* Copy from temporary HTML file to output file */
Fil_FastCopyOfOpenFiles (FileHTML,Fil_GetOutputFile ()); Fil_FastCopyOfOpenFiles (FileHTML,Fil_GetOutputFile ());
/* Close and remove temporary HTML file */ /* Close and remove temporary HTML file */
fclose (FileHTML); fclose (FileHTML);
unlink (PathFileHTML); unlink (PathFileHTML);
HTM_DIV_End ();
/***** End box *****/ /***** End box *****/
HTM_DIV_End ();
Box_BoxEnd (); Box_BoxEnd ();
return true; return true;
@ -1656,8 +1650,7 @@ void Inf_EditPlainTxtInfo (void)
/***** Begin form and box *****/ /***** Begin form and box *****/
Frm_BeginForm (Inf_ActionsRcvPlaTxtInfo[Gbl.Crs.Info.Type]); Frm_BeginForm (Inf_ActionsRcvPlaTxtInfo[Gbl.Crs.Info.Type]);
Box_BoxBegin (NULL,Txt_INFO_TITLE[Gbl.Crs.Info.Type], Box_BoxBegin (Txt_INFO_TITLE[Gbl.Crs.Info.Type],NULL,NULL,
NULL,NULL,
HelpEdit[Gbl.Crs.Info.Type],Box_NOT_CLOSABLE); HelpEdit[Gbl.Crs.Info.Type],Box_NOT_CLOSABLE);
if (Gbl.Crs.Info.Type == Inf_INTRODUCTION || if (Gbl.Crs.Info.Type == Inf_INTRODUCTION ||
@ -1724,8 +1717,7 @@ void Inf_EditRichTxtInfo (void)
/***** Begin form and box *****/ /***** Begin form and box *****/
Frm_BeginForm (Inf_ActionsRcvRchTxtInfo[Gbl.Crs.Info.Type]); Frm_BeginForm (Inf_ActionsRcvRchTxtInfo[Gbl.Crs.Info.Type]);
Box_BoxBegin (NULL,Txt_INFO_TITLE[Gbl.Crs.Info.Type], Box_BoxBegin (Txt_INFO_TITLE[Gbl.Crs.Info.Type],NULL,NULL,
NULL,NULL,
HelpEdit[Gbl.Crs.Info.Type],Box_NOT_CLOSABLE); HelpEdit[Gbl.Crs.Info.Type],Box_NOT_CLOSABLE);
if (Gbl.Crs.Info.Type == Inf_INTRODUCTION || if (Gbl.Crs.Info.Type == Inf_INTRODUCTION ||

View File

@ -296,7 +296,7 @@ static void Ins_ListInstitutions (void)
if (asprintf (&Title,Txt_Institutions_of_COUNTRY_X, if (asprintf (&Title,Txt_Institutions_of_COUNTRY_X,
Gbl.Hierarchy.Node[Hie_CTY].FullName) < 0) Gbl.Hierarchy.Node[Hie_CTY].FullName) < 0)
Err_NotEnoughMemoryExit (); Err_NotEnoughMemoryExit ();
Box_BoxBegin (NULL,Title,Ins_PutIconsListingInstitutions,NULL, Box_BoxBegin (Title,Ins_PutIconsListingInstitutions,NULL,
Hlp_COUNTRY_Institutions,Box_NOT_CLOSABLE); Hlp_COUNTRY_Institutions,Box_NOT_CLOSABLE);
free (Title); free (Title);
@ -531,7 +531,7 @@ static void Ins_EditInstitutionsInternal (void)
if (asprintf (&Title,Txt_Institutions_of_COUNTRY_X, if (asprintf (&Title,Txt_Institutions_of_COUNTRY_X,
Gbl.Hierarchy.Node[Hie_CTY].FullName) < 0) Gbl.Hierarchy.Node[Hie_CTY].FullName) < 0)
Err_NotEnoughMemoryExit (); Err_NotEnoughMemoryExit ();
Box_BoxBegin (NULL,Title,Ins_PutIconsEditingInstitutions,NULL, Box_BoxBegin (Title,Ins_PutIconsEditingInstitutions,NULL,
Hlp_COUNTRY_Institutions,Box_NOT_CLOSABLE); Hlp_COUNTRY_Institutions,Box_NOT_CLOSABLE);
free (Title); free (Title);
@ -1645,8 +1645,7 @@ void Ins_GetAndShowInstitutionsStats (void)
struct Fig_Figures Figures; struct Fig_Figures Figures;
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_HIERARCHY_PLURAL_Abc[Hie_INS], Box_BoxBegin (Txt_HIERARCHY_PLURAL_Abc[Hie_INS],NULL,NULL,
NULL,NULL,
Hlp_ANALYTICS_Figures_institutions,Box_NOT_CLOSABLE); Hlp_ANALYTICS_Figures_institutions,Box_NOT_CLOSABLE);
/***** Form to select type of list used to display degree photos *****/ /***** Form to select type of list used to display degree photos *****/
@ -1689,8 +1688,7 @@ static void Ins_GetAndShowInssOrderedByNumCtrs (void)
MYSQL_RES *mysql_res; MYSQL_RES *mysql_res;
unsigned NumInss; unsigned NumInss;
Box_BoxBegin (NULL,Txt_Institutions_by_number_of_centers, Box_BoxBegin (Txt_Institutions_by_number_of_centers,NULL,NULL,
NULL,NULL,
NULL,Box_NOT_CLOSABLE); NULL,Box_NOT_CLOSABLE);
HTM_TABLE_Begin ("TBL_SCROLL"); HTM_TABLE_Begin ("TBL_SCROLL");
@ -1718,8 +1716,7 @@ static void Ins_GetAndShowInssOrderedByNumDegs (void)
MYSQL_RES *mysql_res; MYSQL_RES *mysql_res;
unsigned NumInss; unsigned NumInss;
Box_BoxBegin (NULL,Txt_Institutions_by_number_of_degrees, Box_BoxBegin (Txt_Institutions_by_number_of_degrees,NULL,NULL,
NULL,NULL,
NULL,Box_NOT_CLOSABLE); NULL,Box_NOT_CLOSABLE);
HTM_TABLE_Begin ("TBL_SCROLL"); HTM_TABLE_Begin ("TBL_SCROLL");
@ -1747,8 +1744,7 @@ static void Ins_GetAndShowInssOrderedByNumCrss (void)
MYSQL_RES *mysql_res; MYSQL_RES *mysql_res;
unsigned NumInss; unsigned NumInss;
Box_BoxBegin (NULL,Txt_Institutions_by_number_of_courses, Box_BoxBegin (Txt_Institutions_by_number_of_courses,NULL,NULL,
NULL,NULL,
NULL,Box_NOT_CLOSABLE); NULL,Box_NOT_CLOSABLE);
HTM_TABLE_Begin ("TBL_SCROLL"); HTM_TABLE_Begin ("TBL_SCROLL");
@ -1776,8 +1772,7 @@ static void Ins_GetAndShowInssOrderedByNumUsrsInCrss (void)
MYSQL_RES *mysql_res; MYSQL_RES *mysql_res;
unsigned NumInss; unsigned NumInss;
Box_BoxBegin (NULL,Txt_Institutions_by_number_of_users_in_courses, Box_BoxBegin (Txt_Institutions_by_number_of_users_in_courses,NULL,NULL,
NULL,NULL,
NULL,Box_NOT_CLOSABLE); NULL,Box_NOT_CLOSABLE);
HTM_TABLE_Begin ("TBL_SCROLL"); HTM_TABLE_Begin ("TBL_SCROLL");
@ -1806,7 +1801,7 @@ static void Ins_GetAndShowInssOrderedByNumUsrsWhoClaimToBelongToThem (void)
MYSQL_RES *mysql_res; MYSQL_RES *mysql_res;
unsigned NumInss; unsigned NumInss;
Box_BoxBegin (NULL,Txt_Institutions_by_number_of_users_who_claim_to_belong_to_them, Box_BoxBegin (Txt_Institutions_by_number_of_users_who_claim_to_belong_to_them,
NULL,NULL, NULL,NULL,
NULL,Box_NOT_CLOSABLE); NULL,Box_NOT_CLOSABLE);
HTM_TABLE_Begin ("TBL_SCROLL"); HTM_TABLE_Begin ("TBL_SCROLL");

View File

@ -128,7 +128,7 @@ static void InsCfg_Configuration (Vie_ViewType_t ViewType)
Frm_DONT_PUT_FORM; Frm_DONT_PUT_FORM;
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,NULL, Box_BoxBegin (NULL,
ViewType == Vie_VIEW ? InsCfg_PutIconsToPrintAndUpload : ViewType == Vie_VIEW ? InsCfg_PutIconsToPrintAndUpload :
NULL,NULL, NULL,NULL,
ViewType == Vie_VIEW ? Hlp_INSTITUTION_Information : ViewType == Vie_VIEW ? Hlp_INSTITUTION_Information :

View File

@ -99,8 +99,7 @@ void Lan_PutBoxToSelectLanguage (void)
extern const char *Hlp_PROFILE_Settings_language; extern const char *Hlp_PROFILE_Settings_language;
extern const char *Txt_Language; extern const char *Txt_Language;
Box_BoxBegin (NULL,Txt_Language, Box_BoxBegin (Txt_Language,Lan_PutIconsLanguage,NULL,
Lan_PutIconsLanguage,NULL,
Hlp_PROFILE_Settings_language,Box_NOT_CLOSABLE); Hlp_PROFILE_Settings_language,Box_NOT_CLOSABLE);
Lan_PutSelectorToSelectLanguage (); Lan_PutSelectorToSelectLanguage ();
Box_BoxEnd (); Box_BoxEnd ();

View File

@ -119,8 +119,7 @@ void Lnk_SeeLinks (void)
Lnk_GetListLinks (&Links); Lnk_GetListLinks (&Links);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Links, Box_BoxBegin (Txt_Links,Lnk_PutIconsListingLinks,NULL,
Lnk_PutIconsListingLinks,NULL,
Hlp_SYSTEM_Links,Box_NOT_CLOSABLE); Hlp_SYSTEM_Links,Box_NOT_CLOSABLE);
/***** Write all links *****/ /***** Write all links *****/
@ -246,8 +245,7 @@ static void Lnk_EditLinksInternal (void)
Lnk_GetListLinks (&Links); Lnk_GetListLinks (&Links);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Links, Box_BoxBegin (Txt_Links,Lnk_PutIconsEditingLinks,NULL,
Lnk_PutIconsEditingLinks,NULL,
Hlp_SYSTEM_Links_edit,Box_NOT_CLOSABLE); Hlp_SYSTEM_Links_edit,Box_NOT_CLOSABLE);
/***** Put a form to create a new link *****/ /***** Put a form to create a new link *****/

View File

@ -168,8 +168,7 @@ void Log_ShowLastClicks (void)
Mnu_ContextMenuEnd (); Mnu_ContextMenuEnd ();
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Last_clicks_in_real_time, Box_BoxBegin (Txt_Last_clicks_in_real_time,NULL,NULL,
NULL,NULL,
Hlp_USERS_Connected_last_clicks,Box_NOT_CLOSABLE); Hlp_USERS_Connected_last_clicks,Box_NOT_CLOSABLE);
/***** Get and show last clicks *****/ /***** Get and show last clicks *****/

View File

@ -244,7 +244,7 @@ void Lgo_RequestLogo (Hie_Level_t Level)
(unsigned) Cod); (unsigned) Cod);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Logo, Box_BoxBegin (Txt_Logo,
Fil_CheckIfPathExists (PathLogo) ? FunctionToDrawContextualIcons[Level] : Fil_CheckIfPathExists (PathLogo) ? FunctionToDrawContextualIcons[Level] :
NULL,NULL, NULL,NULL,
NULL,Box_NOT_CLOSABLE); NULL,Box_NOT_CLOSABLE);

View File

@ -442,8 +442,7 @@ static void Mai_ListMailDomainsForEdition (const struct Mai_Mails *Mails)
struct Mail *Mai; struct Mail *Mai;
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Email_domains_allowed_for_notifications, Box_BoxBegin (Txt_Email_domains_allowed_for_notifications,NULL,NULL,
NULL,NULL,
Hlp_START_Domains_edit,Box_NOT_CLOSABLE); Hlp_START_Domains_edit,Box_NOT_CLOSABLE);
/***** Put a form to create a new mail *****/ /***** Put a form to create a new mail *****/
@ -835,8 +834,7 @@ static void Mai_ListEmails (__attribute__((unused)) void *Args)
const char *Ptr; const char *Ptr;
/***** Begin the box used to list the emails *****/ /***** Begin the box used to list the emails *****/
Box_BoxBegin (NULL,Txt_Email_addresses, Box_BoxBegin (Txt_Email_addresses,NULL,NULL,
NULL,NULL,
Hlp_COMMUNICATION_Email,Box_NOT_CLOSABLE); Hlp_COMMUNICATION_Email,Box_NOT_CLOSABLE);
/***** Begin list with users' email addresses *****/ /***** Begin list with users' email addresses *****/
@ -1021,8 +1019,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 (NULL,Txt_Email, Box_BoxBegin (Txt_Email,Acc_PutLinkToRemoveMyAccount,NULL,
Acc_PutLinkToRemoveMyAccount,NULL,
Hlp_PROFILE_Account,Box_NOT_CLOSABLE); Hlp_PROFILE_Account,Box_NOT_CLOSABLE);
/***** Show form to change email *****/ /***** Show form to change email *****/
@ -1050,9 +1047,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 (NULL,Txt_Email, Box_BoxBegin (Txt_Email,NULL,NULL,Hlp_PROFILE_Account,Box_NOT_CLOSABLE);
NULL,NULL,
Hlp_PROFILE_Account,Box_NOT_CLOSABLE);
/***** Show form to change email *****/ /***** Show form to change email *****/
Mai_ShowFormChangeUsrEmail (Usr_OTHER, Mai_ShowFormChangeUsrEmail (Usr_OTHER,

View File

@ -280,8 +280,7 @@ void Mch_ListMatches (struct Gam_Games *Games,
NumMatches = Mch_DB_GetMatchesInGame (&mysql_res,Games->Game.GamCod); NumMatches = Mch_DB_GetMatchesInGame (&mysql_res,Games->Game.GamCod);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Matches, Box_BoxBegin (Txt_Matches,Mch_PutIconsInListOfMatches,Games,
Mch_PutIconsInListOfMatches,Games,
Hlp_ASSESSMENT_Games_matches,Box_NOT_CLOSABLE); Hlp_ASSESSMENT_Games_matches,Box_NOT_CLOSABLE);
/***** Select whether show only my groups or all groups *****/ /***** Select whether show only my groups or all groups *****/

View File

@ -489,8 +489,7 @@ static void MchRes_ShowResultsBegin (struct Gam_Games *Games,
/***** Begin box *****/ /***** Begin box *****/
HTM_SECTION_Begin (MchRes_RESULTS_BOX_ID); HTM_SECTION_Begin (MchRes_RESULTS_BOX_ID);
Box_BoxBegin (NULL,Title, Box_BoxBegin (Title,NULL,NULL,
NULL,NULL,
Hlp_ASSESSMENT_Games_results,Box_NOT_CLOSABLE); Hlp_ASSESSMENT_Games_results,Box_NOT_CLOSABLE);
/***** List games to select *****/ /***** List games to select *****/
@ -530,9 +529,7 @@ static void MchRes_ListGamesToSelect (struct Gam_Games *Games)
Gam_ResetGame (&Games->Game); Gam_ResetGame (&Games->Game);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Games, Box_BoxBegin (Txt_Games,NULL,NULL,NULL,Box_CLOSABLE);
NULL,NULL,
NULL,Box_CLOSABLE);
/***** Begin form to update the results /***** Begin form to update the results
depending on the games selected *****/ depending on the games selected *****/
@ -1094,8 +1091,7 @@ void MchRes_ShowOneMchResult (void)
Mch_GetMatchQuestionsFromDB (&Print); Mch_GetMatchQuestionsFromDB (&Print);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Match.Title, Box_BoxBegin (Match.Title,NULL,NULL,
NULL,NULL,
Hlp_ASSESSMENT_Games_results,Box_NOT_CLOSABLE); Hlp_ASSESSMENT_Games_results,Box_NOT_CLOSABLE);
Lay_WriteHeaderClassPhoto (Vie_VIEW); Lay_WriteHeaderClassPhoto (Vie_VIEW);

View File

@ -425,8 +425,7 @@ void Med_PutMediaUploader (int NumMedia,const char *ClassInput)
Id); Id);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Multimedia, Box_BoxBegin (Txt_Multimedia,NULL,NULL,
NULL,NULL,
Hlp_Multimedia,Box_NOT_CLOSABLE); Hlp_Multimedia,Box_NOT_CLOSABLE);
/***** Action to perform on media *****/ /***** Action to perform on media *****/

View File

@ -309,9 +309,9 @@ void Mnu_PutIconsToSelectMenu (void)
extern const char *Txt_MENU_NAMES[Mnu_NUM_MENUS]; extern const char *Txt_MENU_NAMES[Mnu_NUM_MENUS];
Mnu_Menu_t Menu; Mnu_Menu_t Menu;
Box_BoxBegin (NULL,Txt_Menu, Box_BoxBegin (Txt_Menu,Mnu_PutIconsMenu,NULL,
Mnu_PutIconsMenu,NULL,
Hlp_PROFILE_Settings_menu,Box_NOT_CLOSABLE); Hlp_PROFILE_Settings_menu,Box_NOT_CLOSABLE);
Set_BeginSettingsHead (); Set_BeginSettingsHead ();
Set_BeginOneSettingSelector (); Set_BeginOneSettingSelector ();
for (Menu = (Mnu_Menu_t) 0; for (Menu = (Mnu_Menu_t) 0;
@ -328,6 +328,7 @@ void Mnu_PutIconsToSelectMenu (void)
} }
Set_EndOneSettingSelector (); Set_EndOneSettingSelector ();
Set_EndSettingsHead (); Set_EndSettingsHead ();
Box_BoxEnd (); Box_BoxEnd ();
} }

View File

@ -268,8 +268,7 @@ static void Msg_PutFormMsgUsrs (struct Msg_Messages *Messages,
} }
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Message, Box_BoxBegin (Txt_Message,Msg_PutIconsListMsgs,Messages,
Msg_PutIconsListMsgs,Messages,
Hlp_COMMUNICATION_Messages_write,Box_NOT_CLOSABLE); Hlp_COMMUNICATION_Messages_write,Box_NOT_CLOSABLE);
if (Messages->ShowOnlyOneRecipient) if (Messages->ShowOnlyOneRecipient)
@ -1488,15 +1487,13 @@ static void Msg_ShowSntOrRcvMessages (struct Msg_Messages *Messages)
/***** Begin box with messages *****/ /***** Begin box with messages *****/
Msg_SetNumMsgsStr (Messages,&NumMsgsStr,NumUnreadMsgs); Msg_SetNumMsgsStr (Messages,&NumMsgsStr,NumUnreadMsgs);
Box_BoxBegin (NULL,NumMsgsStr, Box_BoxBegin (NumMsgsStr,Msg_PutIconsListMsgs,Messages,
Msg_PutIconsListMsgs,Messages,
Help[Messages->TypeOfMessages],Box_NOT_CLOSABLE); Help[Messages->TypeOfMessages],Box_NOT_CLOSABLE);
free (NumMsgsStr); free (NumMsgsStr);
/***** Filter messages *****/ /***** Filter messages *****/
/* Begin box with filter */ /* Begin box with filter */
Box_BoxBegin (NULL,Txt_Filter, Box_BoxBegin (Txt_Filter,NULL,NULL,
NULL,NULL,
HelpFilter[Messages->TypeOfMessages],Box_CLOSABLE); HelpFilter[Messages->TypeOfMessages],Box_CLOSABLE);
/* Form to see messages again */ /* Form to see messages again */

View File

@ -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 (NULL,Txt_Webs_social_networks, Box_BoxBegin (Txt_Webs_social_networks,
Net_PutIconsWebsSocialNetworks,NULL, Net_PutIconsWebsSocialNetworks,NULL,
Hlp_PROFILE_Webs,Box_NOT_CLOSABLE); Hlp_PROFILE_Webs,Box_NOT_CLOSABLE);

View File

@ -211,8 +211,7 @@ static void Nck_ShowFormChangeUsrNickname (Usr_MeOrOther_t MeOrOther,
NumNicks = Nck_DB_GetUsrNicknames (&mysql_res,UsrDat[MeOrOther]->UsrCod); NumNicks = Nck_DB_GetUsrNicknames (&mysql_res,UsrDat[MeOrOther]->UsrCod);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Nickname, Box_BoxBegin (Txt_Nickname,Acc_PutLinkToRemoveMyAccount,NULL,
Acc_PutLinkToRemoveMyAccount,NULL,
Hlp_PROFILE_Account,Box_NOT_CLOSABLE); Hlp_PROFILE_Account,Box_NOT_CLOSABLE);
/***** Show possible alerts *****/ /***** Show possible alerts *****/

View File

@ -110,8 +110,7 @@ void Not_ShowFormNotice (void)
Frm_BeginForm (ActNewNot); Frm_BeginForm (ActNewNot);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Notice, Box_BoxBegin (Txt_Notice,NULL,NULL,
NULL,NULL,
Hlp_COMMUNICATION_Notices,Box_NOT_CLOSABLE); Hlp_COMMUNICATION_Notices,Box_NOT_CLOSABLE);
/***** Message body *****/ /***** Message body *****/
@ -332,8 +331,7 @@ void Not_ShowNotices (Not_Listing_t TypeNoticesListing,long HighlightNotCod)
NumNotices = Not_DB_GetAllNotices (&mysql_res); NumNotices = Not_DB_GetAllNotices (&mysql_res);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Notices, Box_BoxBegin (Txt_Notices,Not_PutIconsListNotices,NULL,
Not_PutIconsListNotices,NULL,
Hlp_COMMUNICATION_Notices,Box_NOT_CLOSABLE); Hlp_COMMUNICATION_Notices,Box_NOT_CLOSABLE);
if (!NumNotices) if (!NumNotices)
Ale_ShowAlert (Ale_INFO,Txt_No_notices); Ale_ShowAlert (Ale_INFO,Txt_No_notices);

View File

@ -350,8 +350,7 @@ void Ntf_ShowMyNotifications (void)
Ntf_PutContextualLinks (AllNotifications,NumNotifications); Ntf_PutContextualLinks (AllNotifications,NumNotifications);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Notifications, Box_BoxBegin (Txt_Notifications,Ntf_PutIconsNotif,NULL,
Ntf_PutIconsNotif,NULL,
Hlp_START_Notifications,Box_NOT_CLOSABLE); Hlp_START_Notifications,Box_NOT_CLOSABLE);
/***** List my notifications *****/ /***** List my notifications *****/
@ -1626,8 +1625,7 @@ void Ntf_PutFormChangeNotifSentByEMail (void)
HTM_SECTION_Begin (Ntf_NOTIFICATIONS_ID); HTM_SECTION_Begin (Ntf_NOTIFICATIONS_ID);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Notifications, Box_BoxBegin (Txt_Notifications,Ntf_PutIconsNotif,NULL,
Ntf_PutIconsNotif,NULL,
Hlp_PROFILE_Settings_notifications,Box_NOT_CLOSABLE); Hlp_PROFILE_Settings_notifications,Box_NOT_CLOSABLE);
/***** Begin form *****/ /***** Begin form *****/

View File

@ -262,8 +262,7 @@ void Pwd_ShowFormSendNewPwd (void)
Frm_BeginForm (ActSndNewPwd); Frm_BeginForm (ActSndNewPwd);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Forgotten_password, Box_BoxBegin (Txt_Forgotten_password,NULL,NULL,
NULL,NULL,
Hlp_PROFILE_Password,Box_NOT_CLOSABLE); Hlp_PROFILE_Password,Box_NOT_CLOSABLE);
/***** Help text *****/ /***** Help text *****/
@ -588,8 +587,7 @@ void Pwd_ShowFormChgMyPwd (void)
Frm_BeginFormAnchor (ActChgMyPwd,Pwd_PASSWORD_SECTION_ID); Frm_BeginFormAnchor (ActChgMyPwd,Pwd_PASSWORD_SECTION_ID);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Password, Box_BoxBegin (Txt_Password,NULL,NULL,
NULL,NULL,
Hlp_PROFILE_Password,Box_NOT_CLOSABLE); Hlp_PROFILE_Password,Box_NOT_CLOSABLE);
/***** Show possible alerts *****/ /***** Show possible alerts *****/
@ -742,9 +740,7 @@ void Pwd_ShowFormChgOtherUsrPwd (void)
HTM_SECTION_Begin (Pwd_PASSWORD_SECTION_ID); HTM_SECTION_Begin (Pwd_PASSWORD_SECTION_ID);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Password, Box_BoxBegin (Txt_Password,NULL,NULL,NULL,Box_NOT_CLOSABLE);
NULL,NULL,
NULL,Box_NOT_CLOSABLE);
/***** Show possible alerts *****/ /***** Show possible alerts *****/
Ale_ShowAlerts (Pwd_PASSWORD_SECTION_ID); Ale_ShowAlerts (Pwd_PASSWORD_SECTION_ID);

View File

@ -305,8 +305,7 @@ static void Pho_ReqPhoto (const struct Usr_Data *UsrDat)
Usr_MeOrOther_t MeOrOther = Usr_ItsMe (UsrDat->UsrCod); Usr_MeOrOther_t MeOrOther = Usr_ItsMe (UsrDat->UsrCod);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Photo, Box_BoxBegin (Txt_Photo,FunctionToDrawContextualIcons[MeOrOther],NULL,
FunctionToDrawContextualIcons[MeOrOther],NULL,
Hlp_PROFILE_Photo,Box_NOT_CLOSABLE); Hlp_PROFILE_Photo,Box_NOT_CLOSABLE);
/***** Begin form *****/ /***** Begin form *****/
@ -1714,7 +1713,7 @@ static void Pho_ShowOrPrintPhotoDegree (Pho_AvgPhotoSeeOrPrint_t SeeOrPrint)
{ {
case Pho_DEGREES_SEE: case Pho_DEGREES_SEE:
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_HIERARCHY_PLURAL_Abc[Hie_DEG], Box_BoxBegin (Txt_HIERARCHY_PLURAL_Abc[Hie_DEG],
Pho_PutIconToPrintDegreeStats,&DegPhotos, Pho_PutIconToPrintDegreeStats,&DegPhotos,
Hlp_ANALYTICS_Degrees,Box_NOT_CLOSABLE); Hlp_ANALYTICS_Degrees,Box_NOT_CLOSABLE);
@ -1736,8 +1735,7 @@ static void Pho_ShowOrPrintPhotoDegree (Pho_AvgPhotoSeeOrPrint_t SeeOrPrint)
break; break;
case Pho_DEGREES_PRINT: case Pho_DEGREES_PRINT:
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_HIERARCHY_PLURAL_Abc[Hie_DEG], Box_BoxBegin (Txt_HIERARCHY_PLURAL_Abc[Hie_DEG],NULL,NULL,
NULL,NULL,
NULL,Box_NOT_CLOSABLE); NULL,Box_NOT_CLOSABLE);
break; break;
} }

View File

@ -73,9 +73,9 @@ void PhoSha_PutIconsToSelectPhotoShape (void)
}; };
PhoSha_Shape_t Shape; PhoSha_Shape_t Shape;
Box_BoxBegin (NULL,Txt_User_photos, Box_BoxBegin (Txt_User_photos,PhoSha_PutIconsPhotoShape,NULL,
PhoSha_PutIconsPhotoShape,NULL,
Hlp_PROFILE_Settings_user_photos,Box_NOT_CLOSABLE); Hlp_PROFILE_Settings_user_photos,Box_NOT_CLOSABLE);
Set_BeginSettingsHead (); Set_BeginSettingsHead ();
Set_BeginOneSettingSelector (); Set_BeginOneSettingSelector ();
for (Shape = (PhoSha_Shape_t) 0; for (Shape = (PhoSha_Shape_t) 0;
@ -95,6 +95,7 @@ void PhoSha_PutIconsToSelectPhotoShape (void)
} }
Set_EndOneSettingSelector (); Set_EndOneSettingSelector ();
Set_EndSettingsHead (); Set_EndSettingsHead ();
Box_BoxEnd (); Box_BoxEnd ();
} }

View File

@ -131,10 +131,11 @@ void Plc_SeeAllPlaces (void)
/***** Get list of places *****/ /***** Get list of places *****/
Plc_GetListPlaces (&Places); Plc_GetListPlaces (&Places);
/***** Table head *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Places, Box_BoxBegin (Txt_Places,Plc_PutIconsListingPlaces,NULL,
Plc_PutIconsListingPlaces,NULL,
Hlp_INSTITUTION_Places,Box_NOT_CLOSABLE); Hlp_INSTITUTION_Places,Box_NOT_CLOSABLE);
/***** Table head *****/
HTM_TABLE_BeginWideMarginPadding (2); HTM_TABLE_BeginWideMarginPadding (2);
HTM_TR_Begin (NULL); HTM_TR_Begin (NULL);
for (Order = (Plc_Order_t) 0; for (Order = (Plc_Order_t) 0;
@ -273,16 +274,15 @@ static void Plc_EditPlacesInternal (void)
Plc_GetListPlaces (&Places); Plc_GetListPlaces (&Places);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Places, Box_BoxBegin (Txt_Places,Plc_PutIconsEditingPlaces,NULL,
Plc_PutIconsEditingPlaces,NULL,
Hlp_INSTITUTION_Places_edit,Box_NOT_CLOSABLE); Hlp_INSTITUTION_Places_edit,Box_NOT_CLOSABLE);
/***** Put a form to create a new place *****/ /***** Put a form to create a new place *****/
Plc_PutFormToCreatePlace (); Plc_PutFormToCreatePlace ();
/***** Forms to edit current places *****/ /***** Forms to edit current places *****/
if (Places.Num) if (Places.Num)
Plc_ListPlacesForEdition (&Places); Plc_ListPlacesForEdition (&Places);
/***** End box *****/ /***** End box *****/
Box_BoxEnd (); Box_BoxEnd ();

View File

@ -224,8 +224,7 @@ static void Plg_EditPluginsInternal (void)
Plg_GetListPlugins (&Plugins); Plg_GetListPlugins (&Plugins);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Plugins, Box_BoxBegin (Txt_Plugins,Plg_PutIconToViewPlugins,NULL,
Plg_PutIconToViewPlugins,NULL,
Hlp_SYSTEM_Plugins_edit,Box_NOT_CLOSABLE); Hlp_SYSTEM_Plugins_edit,Box_NOT_CLOSABLE);
/***** Put a form to create a new plugin *****/ /***** Put a form to create a new plugin *****/

View File

@ -194,8 +194,7 @@ void Prf_ReqUserProfile (void)
Frm_BeginForm (ActSeeOthPubPrf); Frm_BeginForm (ActSeeOthPubPrf);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Another_user_s_profile, Box_BoxBegin (Txt_Another_user_s_profile,NULL,NULL,
NULL,NULL,
Hlp_START_Profiles_view_public_profile,Box_NOT_CLOSABLE); Hlp_START_Profiles_view_public_profile,Box_NOT_CLOSABLE);
/***** Form to request user's @nickname *****/ /***** Form to request user's @nickname *****/

View File

@ -292,8 +292,7 @@ void Prg_ShowAllItems (Prg_ListingType_t ListingType,
if (asprintf (&Title,Txt_COURSE_program, if (asprintf (&Title,Txt_COURSE_program,
Gbl.Hierarchy.Node[Hie_CRS].ShrtName) < 0) Gbl.Hierarchy.Node[Hie_CRS].ShrtName) < 0)
Err_NotEnoughMemoryExit (); Err_NotEnoughMemoryExit ();
Box_BoxBegin (NULL,Title, Box_BoxBegin (Title,FunctionToDrawContextualIcons[ListingType],NULL,
FunctionToDrawContextualIcons[ListingType],NULL,
Hlp_COURSE_Program,Box_NOT_CLOSABLE); Hlp_COURSE_Program,Box_NOT_CLOSABLE);
free (Title); free (Title);

View File

@ -226,14 +226,12 @@ void PrgRsc_ListItemResources (Prg_ListingType_t ListingType,
switch (ViewingOrEditing[ListingType]) switch (ViewingOrEditing[ListingType])
{ {
case Vie_VIEW: case Vie_VIEW:
Box_BoxBegin (NULL,NULL, Box_BoxBegin (NULL,NULL,NULL,NULL,Box_NOT_CLOSABLE);
NULL,NULL,
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 (NULL,Title, Box_BoxBegin (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);
@ -886,8 +884,7 @@ static void PrgRsc_ShowClipboard (void)
extern const char *Hlp_COURSE_Program_resource_clipboard; extern const char *Hlp_COURSE_Program_resource_clipboard;
extern const char *Txt_Resource_clipboard; extern const char *Txt_Resource_clipboard;
Box_BoxBegin (NULL,Txt_Resource_clipboard, Box_BoxBegin (Txt_Resource_clipboard,PrgRsc_PutIconsClipboard,NULL,
PrgRsc_PutIconsClipboard,NULL,
Hlp_COURSE_Program_resource_clipboard,Box_CLOSABLE); Hlp_COURSE_Program_resource_clipboard,Box_CLOSABLE);
Rsc_ShowClipboard (); Rsc_ShowClipboard ();
Box_BoxEnd (); Box_BoxEnd ();

View File

@ -528,8 +528,7 @@ static void Prj_ShowPrjsInCurrentPage (void *Projects)
((struct Prj_Projects *) Projects)->CurrentPage = (unsigned) Pagination.CurrentPage; ((struct Prj_Projects *) Projects)->CurrentPage = (unsigned) Pagination.CurrentPage;
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Projects, Box_BoxBegin (Txt_Projects,Prj_PutIconsListProjects,Projects,
Prj_PutIconsListProjects,Projects,
Hlp_ASSESSMENT_Projects,Box_NOT_CLOSABLE); Hlp_ASSESSMENT_Projects,Box_NOT_CLOSABLE);
/***** Put filters to choice which projects to show *****/ /***** Put filters to choice which projects to show *****/
@ -1343,8 +1342,8 @@ void Prj_ShowBoxWithOneProject (struct Prj_Projects *Projects)
extern const char *Txt_Project; extern const char *Txt_Project;
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Projects->Prj.Title[0] ? Projects->Prj.Title : Box_BoxBegin (Projects->Prj.Title[0] ? Projects->Prj.Title :
Txt_Project, Txt_Project,
Prj_PutIconsOnePrj,Projects, Prj_PutIconsOnePrj,Projects,
Hlp_ASSESSMENT_Projects,Box_NOT_CLOSABLE); Hlp_ASSESSMENT_Projects,Box_NOT_CLOSABLE);
@ -3722,8 +3721,8 @@ static void Prj_PutFormProject (struct Prj_Projects *Projects,
ActChgPrj; ActChgPrj;
/***** Begin project box *****/ /***** Begin project box *****/
Box_BoxBegin (NULL,Projects->Prj.Title[0] ? Projects->Prj.Title : Box_BoxBegin (Projects->Prj.Title[0] ? Projects->Prj.Title :
Txt_Project, Txt_Project,
NULL,NULL, NULL,NULL,
Hlp_ASSESSMENT_Projects_edit_project,Box_NOT_CLOSABLE); Hlp_ASSESSMENT_Projects_edit_project,Box_NOT_CLOSABLE);

View File

@ -109,8 +109,7 @@ void PrjCfg_ShowFormConfig (void)
Prj_ResetPrjsAndReadConfig (&Projects); Prj_ResetPrjsAndReadConfig (&Projects);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Configure_projects, Box_BoxBegin (Txt_Configure_projects,Prj_PutIconsListProjects,&Projects,
Prj_PutIconsListProjects,&Projects,
Hlp_ASSESSMENT_Projects,Box_NOT_CLOSABLE); Hlp_ASSESSMENT_Projects,Box_NOT_CLOSABLE);
/***** Projects are editable by non-editing teachers? *****/ /***** Projects are editable by non-editing teachers? *****/

View File

@ -166,8 +166,7 @@ void Qst_ShowFormRequestEditQsts (struct Qst_Questions *Questions)
}; };
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Question_bank, Box_BoxBegin (Txt_Question_bank,Qst_PutIconsRequestBankQsts,NULL,
Qst_PutIconsRequestBankQsts,NULL,
Hlp_ASSESSMENT_Questions,Box_NOT_CLOSABLE); Hlp_ASSESSMENT_Questions,Box_NOT_CLOSABLE);
/***** Get tags already present in the table of questions *****/ /***** Get tags already present in the table of questions *****/
@ -336,8 +335,7 @@ void Qst_ShowFormRequestSelectQstsForExamSet (struct Exa_Exams *Exams,
}; };
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Select_questions, Box_BoxBegin (Txt_Select_questions,NULL,NULL,
NULL,NULL,
Hlp_ASSESSMENT_Exams_questions,Box_NOT_CLOSABLE); Hlp_ASSESSMENT_Exams_questions,Box_NOT_CLOSABLE);
/***** Get tags already present in the table of questions *****/ /***** Get tags already present in the table of questions *****/
@ -394,8 +392,7 @@ void Qst_ShowFormRequestSelectQstsForGame (struct Gam_Games *Games,
}; };
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Select_questions, Box_BoxBegin (Txt_Select_questions,NULL,NULL,
NULL,NULL,
Hlp_ASSESSMENT_Games_questions,Box_NOT_CLOSABLE); Hlp_ASSESSMENT_Games_questions,Box_NOT_CLOSABLE);
/***** Get tags already present in the table of questions *****/ /***** Get tags already present in the table of questions *****/
@ -1077,8 +1074,7 @@ void Qst_ListOneOrMoreQstsForSelectionForExamSet (struct Exa_Exams *Exams,
MYSQL_ROW row; MYSQL_ROW row;
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Questions, Box_BoxBegin (Txt_Questions,NULL,NULL,
NULL,NULL,
Hlp_ASSESSMENT_Exams_questions,Box_NOT_CLOSABLE); Hlp_ASSESSMENT_Exams_questions,Box_NOT_CLOSABLE);
/***** Begin form *****/ /***** Begin form *****/
@ -1159,8 +1155,7 @@ void Qst_ListOneOrMoreQstsForSelectionForGame (struct Gam_Games *Games,
MYSQL_ROW row; MYSQL_ROW row;
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Questions, Box_BoxBegin (Txt_Questions,NULL,NULL,
NULL,NULL,
Hlp_ASSESSMENT_Games_questions,Box_NOT_CLOSABLE); Hlp_ASSESSMENT_Games_questions,Box_NOT_CLOSABLE);
/***** Begin form *****/ /***** Begin form *****/
@ -1852,13 +1847,12 @@ void Qst_PutFormEditOneQst (struct Qst_Question *Question)
{ {
if (asprintf (&Title,Txt_Question_code_X,Question->QstCod) < 0) if (asprintf (&Title,Txt_Question_code_X,Question->QstCod) < 0)
Err_NotEnoughMemoryExit (); Err_NotEnoughMemoryExit ();
Box_BoxBegin (NULL,Title,Qst_PutIconToRemoveOneQst,&Question->QstCod, Box_BoxBegin (Title,Qst_PutIconToRemoveOneQst,&Question->QstCod,
Hlp_ASSESSMENT_Questions_writing_a_question,Box_NOT_CLOSABLE); Hlp_ASSESSMENT_Questions_writing_a_question,Box_NOT_CLOSABLE);
free (Title); free (Title);
} }
else else
Box_BoxBegin (NULL,Txt_Question, Box_BoxBegin (Txt_Question,NULL,NULL,
NULL,NULL,
Hlp_ASSESSMENT_Questions_writing_a_question,Box_NOT_CLOSABLE); Hlp_ASSESSMENT_Questions_writing_a_question,Box_NOT_CLOSABLE);
/***** Begin form *****/ /***** Begin form *****/

View File

@ -135,8 +135,7 @@ void QstImp_ShowFormImpQstsFromXML (void)
extern const char *Txt_XML_file; extern const char *Txt_XML_file;
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Import_questions, Box_BoxBegin (Txt_Import_questions,NULL,NULL,
NULL,NULL,
Hlp_ASSESSMENT_Tests,Box_NOT_CLOSABLE); Hlp_ASSESSMENT_Tests,Box_NOT_CLOSABLE);
/***** Write help message *****/ /***** Write help message *****/
@ -477,8 +476,7 @@ static void QstImp_ImportQuestionsFromXMLBuffer (const char *XMLBuffer)
XML_GetTree (XMLBuffer,&RootElem); XML_GetTree (XMLBuffer,&RootElem);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Imported_questions, Box_BoxBegin (Txt_Imported_questions,NULL,NULL,
NULL,NULL,
Hlp_ASSESSMENT_Tests,Box_NOT_CLOSABLE); Hlp_ASSESSMENT_Tests,Box_NOT_CLOSABLE);
/***** Print XML tree *****/ /***** Print XML tree *****/

View File

@ -190,8 +190,7 @@ void Rec_ReqEditRecordFields (void)
Rec_GetListRecordFieldsInCurrentCrs (); Rec_GetListRecordFieldsInCurrentCrs ();
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Record_fields, Box_BoxBegin (Txt_Record_fields,NULL,NULL,
NULL,NULL,
Hlp_USERS_Students_course_record_card,Box_NOT_CLOSABLE); Hlp_USERS_Students_course_record_card,Box_NOT_CLOSABLE);
/***** Put a form to create a new record field *****/ /***** Put a form to create a new record field *****/
@ -1246,8 +1245,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 (NULL,Txt_TIMETABLE_TYPES[Timetable.Type], Box_BoxBegin (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);
Box_BoxEnd (); Box_BoxEnd ();
@ -1362,7 +1360,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 (NULL,Txt_TIMETABLE_TYPES[Timetable.Type], Box_BoxBegin (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,

View File

@ -136,7 +136,7 @@ void Rep_ReqMyUsageReport (void)
/***** Begin box *****/ /***** Begin box *****/
if (asprintf (&Title,Txt_Report_of_use_of_PLATFORM,Cfg_PLATFORM_SHORT_NAME) < 0) if (asprintf (&Title,Txt_Report_of_use_of_PLATFORM,Cfg_PLATFORM_SHORT_NAME) < 0)
Err_NotEnoughMemoryExit (); Err_NotEnoughMemoryExit ();
Box_BoxBegin (NULL,Title,NULL,NULL,Hlp_ANALYTICS_Report,Box_NOT_CLOSABLE); Box_BoxBegin (Title,NULL,NULL,Hlp_ANALYTICS_Report,Box_NOT_CLOSABLE);
free (Title); free (Title);
/***** Header *****/ /***** Header *****/
@ -244,7 +244,7 @@ static void Rep_PutLinkToMyUsageReport (struct Rep_Report *Report)
/***** Begin box *****/ /***** Begin box *****/
if (asprintf (&Title,Txt_Report_of_use_of_PLATFORM,Cfg_PLATFORM_SHORT_NAME) < 0) if (asprintf (&Title,Txt_Report_of_use_of_PLATFORM,Cfg_PLATFORM_SHORT_NAME) < 0)
Err_NotEnoughMemoryExit (); Err_NotEnoughMemoryExit ();
Box_BoxBegin (NULL,Title,NULL,NULL,Hlp_ANALYTICS_Report,Box_NOT_CLOSABLE); Box_BoxBegin (Title,NULL,NULL,Hlp_ANALYTICS_Report,Box_NOT_CLOSABLE);
free (Title); free (Title);
/***** Header *****/ /***** Header *****/

View File

@ -175,8 +175,7 @@ void Roo_SeeRooms (void)
Roo_GetListRooms (&Rooms,Roo_ALL_DATA); Roo_GetListRooms (&Rooms,Roo_ALL_DATA);
/***** Table head *****/ /***** Table head *****/
Box_BoxBegin (NULL,Txt_Rooms, Box_BoxBegin (Txt_Rooms,Roo_PutIconsListingRooms,NULL,
Roo_PutIconsListingRooms,NULL,
Hlp_CENTER_Rooms,Box_NOT_CLOSABLE); Hlp_CENTER_Rooms,Box_NOT_CLOSABLE);
HTM_TABLE_BeginWideMarginPadding (2); HTM_TABLE_BeginWideMarginPadding (2);
HTM_TR_Begin (NULL); HTM_TR_Begin (NULL);
@ -436,8 +435,7 @@ static void Roo_EditRoomsInternal (void)
Roo_GetListRooms (&Rooms,Roo_ALL_DATA); Roo_GetListRooms (&Rooms,Roo_ALL_DATA);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Rooms, Box_BoxBegin (Txt_Rooms,Roo_PutIconsEditingRooms,NULL,
Roo_PutIconsEditingRooms,NULL,
Hlp_CENTER_Rooms_edit,Box_NOT_CLOSABLE); Hlp_CENTER_Rooms_edit,Box_NOT_CLOSABLE);
/***** Put a form to create a new room *****/ /***** Put a form to create a new room *****/

View File

@ -167,8 +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 (NULL,Txt_Rubrics, Box_BoxBegin (Txt_Rubrics,Rub_PutIconsListRubrics,Rubrics,
Rub_PutIconsListRubrics,Rubrics,
Hlp_ASSESSMENT_Rubrics,Box_NOT_CLOSABLE); Hlp_ASSESSMENT_Rubrics,Box_NOT_CLOSABLE);
/***** Write links to pages *****/ /***** Write links to pages *****/
@ -351,8 +350,8 @@ void Rub_ShowOnlyOneRubric (struct Rub_Rubrics *Rubrics)
struct Rub_Node *TOS = NULL; struct Rub_Node *TOS = NULL;
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Rubrics->Rubric.Title[0] ? Rubrics->Rubric.Title : Box_BoxBegin (Rubrics->Rubric.Title[0] ? Rubrics->Rubric.Title :
Txt_Rubric, Txt_Rubric,
Rub_PutIconsViewingOneRubric,Rubrics, Rub_PutIconsViewingOneRubric,Rubrics,
Hlp_ASSESSMENT_Rubrics,Box_NOT_CLOSABLE); Hlp_ASSESSMENT_Rubrics,Box_NOT_CLOSABLE);
@ -794,8 +793,7 @@ void Rub_PutFormsOneRubric (struct Rub_Rubrics *Rubrics,
struct Rub_Node *TOS = NULL; struct Rub_Node *TOS = NULL;
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL, Box_BoxBegin (Rubrics->Rubric.Title[0] ? Rubrics->Rubric.Title :
Rubrics->Rubric.Title[0] ? Rubrics->Rubric.Title :
Txt_Rubric, Txt_Rubric,
FunctionToDrawContextualIcons[ExistingNewRubric],Rubrics, FunctionToDrawContextualIcons[ExistingNewRubric],Rubrics,
*HelpLink[ExistingNewRubric],Box_NOT_CLOSABLE); *HelpLink[ExistingNewRubric],Box_NOT_CLOSABLE);

View File

@ -502,8 +502,7 @@ void RubCri_ListCriteriaForSeeing (const struct Rub_Rubrics *Rubrics)
NumCriteria = Rub_DB_GetCriteria (&mysql_res,Rubrics->Rubric.RubCod); NumCriteria = Rub_DB_GetCriteria (&mysql_res,Rubrics->Rubric.RubCod);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Criteria, Box_BoxBegin (Txt_Criteria,NULL,NULL,
NULL,NULL,
Hlp_ASSESSMENT_Rubrics_criteria,Box_NOT_CLOSABLE); Hlp_ASSESSMENT_Rubrics_criteria,Box_NOT_CLOSABLE);
/***** Show table with rubric criteria *****/ /***** Show table with rubric criteria *****/
@ -537,8 +536,7 @@ void RubCri_ListCriteriaForEdition (struct Rub_Rubrics *Rubrics)
NumCriteria = Rub_DB_GetCriteria (&mysql_res,Rubrics->Rubric.RubCod); NumCriteria = Rub_DB_GetCriteria (&mysql_res,Rubrics->Rubric.RubCod);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Criteria, Box_BoxBegin (Txt_Criteria,NULL,NULL,
NULL,NULL,
Hlp_ASSESSMENT_Rubrics_criteria,Box_NOT_CLOSABLE); Hlp_ASSESSMENT_Rubrics_criteria,Box_NOT_CLOSABLE);
/***** Show table with rubric criteria *****/ /***** Show table with rubric criteria *****/

View File

@ -101,8 +101,7 @@ static void RubRsc_ShowClipboard (void)
extern const char *Hlp_ASSESSMENT_Rubrics_resource_clipboard; extern const char *Hlp_ASSESSMENT_Rubrics_resource_clipboard;
extern const char *Txt_Resource_clipboard; extern const char *Txt_Resource_clipboard;
Box_BoxBegin (NULL,Txt_Resource_clipboard, Box_BoxBegin (Txt_Resource_clipboard,RubRsc_PutIconsClipboard,NULL,
RubRsc_PutIconsClipboard,NULL,
Hlp_ASSESSMENT_Rubrics_resource_clipboard,Box_CLOSABLE); Hlp_ASSESSMENT_Rubrics_resource_clipboard,Box_CLOSABLE);
Rsc_ShowClipboard (); Rsc_ShowClipboard ();
Box_BoxEnd (); Box_BoxEnd ();

View File

@ -155,8 +155,7 @@ static void Sch_PutFormToSearchWithWhatToSearchAndScope (Hie_Level_t DefaultScop
HTM_DIV_Begin ("class=\"CM\""); HTM_DIV_Begin ("class=\"CM\"");
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Search, Box_BoxBegin (Txt_Search,Hie_PutIconToSelectMyHierarchy,NULL,
Hie_PutIconToSelectMyHierarchy,NULL,
Hlp_START_Search,Box_NOT_CLOSABLE); Hlp_START_Search,Box_NOT_CLOSABLE);
/***** Begin form *****/ /***** Begin form *****/

View File

@ -85,8 +85,7 @@ void Set_EditSettings (void)
extern const char *Txt_Design; extern const char *Txt_Design;
/***** Internationalization: language, first day of week, date format *****/ /***** Internationalization: language, first day of week, date format *****/
Box_BoxBegin (NULL,Txt_Internationalization, Box_BoxBegin (Txt_Internationalization,NULL,NULL,
NULL,NULL,
Hlp_PROFILE_Settings_internationalization,Box_NOT_CLOSABLE); Hlp_PROFILE_Settings_internationalization,Box_NOT_CLOSABLE);
HTM_DIV_Begin ("class=\"FRAME_INLINE\""); HTM_DIV_Begin ("class=\"FRAME_INLINE\"");
@ -104,8 +103,7 @@ void Set_EditSettings (void)
Box_BoxEnd (); Box_BoxEnd ();
/***** Design: icon set, menu, theme, side columns *****/ /***** Design: icon set, menu, theme, side columns *****/
Box_BoxBegin (NULL,Txt_Design, Box_BoxBegin (Txt_Design,NULL,NULL,
NULL,NULL,
Hlp_PROFILE_Settings_design,Box_NOT_CLOSABLE); Hlp_PROFILE_Settings_design,Box_NOT_CLOSABLE);
HTM_DIV_Begin ("class=\"FRAME_INLINE\""); HTM_DIV_Begin ("class=\"FRAME_INLINE\"");
@ -207,8 +205,7 @@ static void Set_PutIconsToSelectSideCols (void)
unsigned SideCols; unsigned SideCols;
char Icon[32 + 1]; char Icon[32 + 1];
Box_BoxBegin (NULL,Txt_Columns, Box_BoxBegin (Txt_Columns,Set_PutIconsSideColumns,NULL,
Set_PutIconsSideColumns,NULL,
Hlp_PROFILE_Settings_columns,Box_NOT_CLOSABLE); Hlp_PROFILE_Settings_columns,Box_NOT_CLOSABLE);
Set_BeginSettingsHead (); Set_BeginSettingsHead ();
Set_BeginOneSettingSelector (); Set_BeginOneSettingSelector ();

View File

@ -267,7 +267,7 @@ static void Sta_PutFormCrsHits (struct Sta_Stats *Stats)
if (asprintf (&Title,Txt_Statistics_of_visits_to_the_course_X, if (asprintf (&Title,Txt_Statistics_of_visits_to_the_course_X,
Gbl.Hierarchy.Node[Hie_CRS].ShrtName) < 0) Gbl.Hierarchy.Node[Hie_CRS].ShrtName) < 0)
Err_NotEnoughMemoryExit (); Err_NotEnoughMemoryExit ();
Box_BoxBegin (NULL,Title,NULL,NULL, Box_BoxBegin (Title,NULL,NULL,
Hlp_ANALYTICS_Visits_visits_to_course,Box_NOT_CLOSABLE); Hlp_ANALYTICS_Visits_visits_to_course,Box_NOT_CLOSABLE);
free (Title); free (Title);
@ -931,83 +931,79 @@ static void Sta_ShowHits (Sta_GlobalOrCourseAccesses_t GlobalOrCourse)
NumUsrsInList,LstSelectedUsrCods))) NumUsrsInList,LstSelectedUsrCods)))
{ {
/***** Put the table with the clicks *****/ /***** Put the table with the clicks *****/
if (Stats.ClicksGroupedBy == Sta_CLICKS_CRS_DETAILED_LIST) Box_BoxBegin (Stats.ClicksGroupedBy == Sta_CLICKS_CRS_DETAILED_LIST ? Txt_List_of_detailed_clicks :
Box_BoxBegin (NULL,Txt_List_of_detailed_clicks, Txt_STAT_COUNT_TYPE[Stats.CountType],
NULL,NULL, NULL,NULL,
NULL,Box_NOT_CLOSABLE); NULL,Box_NOT_CLOSABLE);
else
Box_BoxBegin (NULL,Txt_STAT_COUNT_TYPE[Stats.CountType],
NULL,NULL,
NULL,Box_NOT_CLOSABLE);
HTM_TABLE_BeginWidePadding (Sta_CellPadding[Stats.ClicksGroupedBy]); HTM_TABLE_BeginWidePadding (Sta_CellPadding[Stats.ClicksGroupedBy]);
switch (Stats.ClicksGroupedBy) switch (Stats.ClicksGroupedBy)
{ {
case Sta_CLICKS_CRS_DETAILED_LIST: case Sta_CLICKS_CRS_DETAILED_LIST:
Sta_ShowDetailedAccessesList (&Stats,NumHits,mysql_res); Sta_ShowDetailedAccessesList (&Stats,NumHits,mysql_res);
break; break;
case Sta_CLICKS_CRS_PER_USR: case Sta_CLICKS_CRS_PER_USR:
Sta_ShowNumHitsPerUsr (Stats.CountType,NumHits,mysql_res); Sta_ShowNumHitsPerUsr (Stats.CountType,NumHits,mysql_res);
break; break;
case Sta_CLICKS_CRS_PER_DAY: case Sta_CLICKS_CRS_PER_DAY:
case Sta_CLICKS_GBL_PER_DAY: case Sta_CLICKS_GBL_PER_DAY:
Sta_ShowNumHitsPerDay (Stats.CountType,NumHits,mysql_res); Sta_ShowNumHitsPerDay (Stats.CountType,NumHits,mysql_res);
break; break;
case Sta_CLICKS_CRS_PER_DAY_AND_HOUR: case Sta_CLICKS_CRS_PER_DAY_AND_HOUR:
case Sta_CLICKS_GBL_PER_DAY_AND_HOUR: case Sta_CLICKS_GBL_PER_DAY_AND_HOUR:
Sta_ShowDistrAccessesPerDayAndHour (&Stats,NumHits,mysql_res); Sta_ShowDistrAccessesPerDayAndHour (&Stats,NumHits,mysql_res);
break; break;
case Sta_CLICKS_CRS_PER_WEEK: case Sta_CLICKS_CRS_PER_WEEK:
case Sta_CLICKS_GBL_PER_WEEK: case Sta_CLICKS_GBL_PER_WEEK:
Sta_ShowNumHitsPerWeek (Stats.CountType,NumHits,mysql_res); Sta_ShowNumHitsPerWeek (Stats.CountType,NumHits,mysql_res);
break; break;
case Sta_CLICKS_CRS_PER_MONTH: case Sta_CLICKS_CRS_PER_MONTH:
case Sta_CLICKS_GBL_PER_MONTH: case Sta_CLICKS_GBL_PER_MONTH:
Sta_ShowNumHitsPerMonth (Stats.CountType,NumHits,mysql_res); Sta_ShowNumHitsPerMonth (Stats.CountType,NumHits,mysql_res);
break; break;
case Sta_CLICKS_CRS_PER_YEAR: case Sta_CLICKS_CRS_PER_YEAR:
case Sta_CLICKS_GBL_PER_YEAR: case Sta_CLICKS_GBL_PER_YEAR:
Sta_ShowNumHitsPerYear (Stats.CountType,NumHits,mysql_res); Sta_ShowNumHitsPerYear (Stats.CountType,NumHits,mysql_res);
break; break;
case Sta_CLICKS_CRS_PER_HOUR: case Sta_CLICKS_CRS_PER_HOUR:
case Sta_CLICKS_GBL_PER_HOUR: case Sta_CLICKS_GBL_PER_HOUR:
Sta_ShowNumHitsPerHour (NumHits,mysql_res); Sta_ShowNumHitsPerHour (NumHits,mysql_res);
break; break;
case Sta_CLICKS_CRS_PER_MINUTE: case Sta_CLICKS_CRS_PER_MINUTE:
case Sta_CLICKS_GBL_PER_MINUTE: case Sta_CLICKS_GBL_PER_MINUTE:
Sta_ShowNumHitsPerMinute (NumHits,mysql_res); Sta_ShowNumHitsPerMinute (NumHits,mysql_res);
break; break;
case Sta_CLICKS_CRS_PER_ACTION: case Sta_CLICKS_CRS_PER_ACTION:
case Sta_CLICKS_GBL_PER_ACTION: case Sta_CLICKS_GBL_PER_ACTION:
Sta_ShowNumHitsPerAction (Stats.CountType,NumHits,mysql_res); Sta_ShowNumHitsPerAction (Stats.CountType,NumHits,mysql_res);
break; break;
case Sta_CLICKS_GBL_PER_PLUGIN: case Sta_CLICKS_GBL_PER_PLUGIN:
Sta_ShowNumHitsPerPlugin (Stats.CountType,NumHits,mysql_res); Sta_ShowNumHitsPerPlugin (Stats.CountType,NumHits,mysql_res);
break; break;
case Sta_CLICKS_GBL_PER_API_FUNCTION: case Sta_CLICKS_GBL_PER_API_FUNCTION:
Sta_ShowNumHitsPerWSFunction (Stats.CountType,NumHits,mysql_res); Sta_ShowNumHitsPerWSFunction (Stats.CountType,NumHits,mysql_res);
break; break;
case Sta_CLICKS_GBL_PER_BANNER: case Sta_CLICKS_GBL_PER_BANNER:
Sta_ShowNumHitsPerBanner (Stats.CountType,NumHits,mysql_res); Sta_ShowNumHitsPerBanner (Stats.CountType,NumHits,mysql_res);
break; break;
case Sta_CLICKS_GBL_PER_COUNTRY: case Sta_CLICKS_GBL_PER_COUNTRY:
Sta_ShowNumHitsPerCountry (Stats.CountType,NumHits,mysql_res); Sta_ShowNumHitsPerCountry (Stats.CountType,NumHits,mysql_res);
break; break;
case Sta_CLICKS_GBL_PER_INSTITUTION: case Sta_CLICKS_GBL_PER_INSTITUTION:
Sta_ShowNumHitsPerInstitution (Stats.CountType,NumHits,mysql_res); Sta_ShowNumHitsPerInstitution (Stats.CountType,NumHits,mysql_res);
break; break;
case Sta_CLICKS_GBL_PER_CENTER: case Sta_CLICKS_GBL_PER_CENTER:
Sta_ShowNumHitsPerCenter (Stats.CountType,NumHits,mysql_res); Sta_ShowNumHitsPerCenter (Stats.CountType,NumHits,mysql_res);
break; break;
case Sta_CLICKS_GBL_PER_DEGREE: case Sta_CLICKS_GBL_PER_DEGREE:
Sta_ShowNumHitsPerDegree (Stats.CountType,NumHits,mysql_res); Sta_ShowNumHitsPerDegree (Stats.CountType,NumHits,mysql_res);
break; break;
case Sta_CLICKS_GBL_PER_COURSE: case Sta_CLICKS_GBL_PER_COURSE:
Sta_ShowNumHitsPerCourse (Stats.CountType,NumHits,mysql_res); Sta_ShowNumHitsPerCourse (Stats.CountType,NumHits,mysql_res);
break; break;
} }
HTM_TABLE_End (); HTM_TABLE_End ();
/* End box and section */ /* End box and section */
Box_BoxEnd (); Box_BoxEnd ();

View File

@ -201,8 +201,7 @@ void Svy_ListAllSurveys (struct Svy_Surveys *Surveys)
Surveys->CurrentPage = (unsigned) Pagination.CurrentPage; Surveys->CurrentPage = (unsigned) Pagination.CurrentPage;
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Surveys, Box_BoxBegin (Txt_Surveys,Svy_PutIconsListSurveys,Surveys,
Svy_PutIconsListSurveys,Surveys,
Hlp_ANALYTICS_Surveys,Box_NOT_CLOSABLE); Hlp_ANALYTICS_Surveys,Box_NOT_CLOSABLE);
/***** Select whether show only my groups or all groups *****/ /***** Select whether show only my groups or all groups *****/
@ -419,8 +418,8 @@ static void Svy_ShowOneSurvey (struct Svy_Surveys *Surveys,
/***** Begin box *****/ /***** Begin box *****/
if (ShowOnlyThisSvyComplete) if (ShowOnlyThisSvyComplete)
Box_BoxBegin (NULL,Surveys->Svy.Title[0] ? Surveys->Svy.Title : Box_BoxBegin (Surveys->Svy.Title[0] ? Surveys->Svy.Title :
Txt_Survey, Txt_Survey,
Svy_PutIconsOneSvy,Surveys, Svy_PutIconsOneSvy,Surveys,
Hlp_ANALYTICS_Surveys,Box_NOT_CLOSABLE); Hlp_ANALYTICS_Surveys,Box_NOT_CLOSABLE);
@ -2238,8 +2237,7 @@ static void Svy_ShowFormEditOneQst (struct Svy_Surveys *Surveys,
/***** Begin box *****/ /***** Begin box *****/
if (NewQuestion) if (NewQuestion)
Box_BoxBegin (NULL,Txt_Question, Box_BoxBegin (Txt_Question,NULL,NULL,
NULL,NULL,
Hlp_ANALYTICS_Surveys_questions,Box_NOT_CLOSABLE); Hlp_ANALYTICS_Surveys_questions,Box_NOT_CLOSABLE);
else else
{ {
@ -2248,8 +2246,7 @@ static void Svy_ShowFormEditOneQst (struct Svy_Surveys *Surveys,
if (asprintf (&Title,"%s %u",Txt_Question,SvyQst->QstInd + 1) < 0) // Question index may be 0, 1, 2, 3,... if (asprintf (&Title,"%s %u",Txt_Question,SvyQst->QstInd + 1) < 0) // Question index may be 0, 1, 2, 3,...
Err_NotEnoughMemoryExit (); Err_NotEnoughMemoryExit ();
Box_BoxBegin (NULL,Title, Box_BoxBegin (Title,Svy_PutIconToRemoveOneQst,Surveys,
Svy_PutIconToRemoveOneQst,Surveys,
NULL,Box_NOT_CLOSABLE); NULL,Box_NOT_CLOSABLE);
free (Title); free (Title);
} }
@ -2615,113 +2612,111 @@ static void Svy_ListSvyQuestions (struct Svy_Surveys *Surveys)
Frm_DONT_PUT_FORM; Frm_DONT_PUT_FORM;
/***** Begin box *****/ /***** Begin box *****/
if (Surveys->Svy.Status.ICanEdit) Box_BoxBegin (Txt_Questions,
Box_BoxBegin (NULL,Txt_Questions, Surveys->Svy.Status.ICanEdit ? Svy_PutIconToAddNewQuestion :
Svy_PutIconToAddNewQuestion,Surveys, NULL,
Hlp_ANALYTICS_Surveys_questions,Box_NOT_CLOSABLE); Surveys->Svy.Status.ICanEdit ? Surveys :
else NULL,
Box_BoxBegin (NULL,Txt_Questions, Hlp_ANALYTICS_Surveys_questions,Box_NOT_CLOSABLE);
NULL,NULL,
Hlp_ANALYTICS_Surveys_questions,Box_NOT_CLOSABLE);
/***** Get data of questions from database *****/ /***** Get data of questions from database *****/
if ((NumQsts = Svy_DB_GetSurveyQsts (&mysql_res,Surveys->Svy.SvyCod))) if ((NumQsts = Svy_DB_GetSurveyQsts (&mysql_res,Surveys->Svy.SvyCod)))
{
if (PutFormAnswerSurvey == Frm_PUT_FORM)
{ {
/***** Begin form to send answers to survey *****/ if (PutFormAnswerSurvey == Frm_PUT_FORM)
Frm_BeginForm (ActAnsSvy);
ParCod_PutPar (ParCod_Svy,Surveys->Svy.SvyCod);
}
/***** Write the heading *****/
HTM_TABLE_Begin ("TBL_SCROLL");
HTM_TR_Begin (NULL);
if (Surveys->Svy.Status.ICanEdit)
HTM_TH_Empty (1);
HTM_TH (Txt_No_INDEX,HTM_HEAD_CENTER);
HTM_TH (Txt_Type ,HTM_HEAD_CENTER);
HTM_TH (Txt_Question,HTM_HEAD_LEFT );
HTM_TR_End ();
/***** Write questions one by one *****/
for (NumQst = 0, The_ResetRowColor ();
NumQst < NumQsts;
NumQst++, The_ChangeRowColor ())
{ {
/* Initialize question to zero */ /***** Begin form to send answers to survey *****/
Svy_InitQst (&SvyQst); Frm_BeginForm (ActAnsSvy);
ParCod_PutPar (ParCod_Svy,Surveys->Svy.SvyCod);
/* Get question data from row */
Svy_GetQstDataFromRow (mysql_res,&SvyQst,Stem);
HTM_TR_Begin (NULL);
if (Surveys->Svy.Status.ICanEdit)
{
HTM_TD_Begin ("class=\"BT %s\"",The_GetColorRows ());
/* Initialize context */
Surveys->QstCod = SvyQst.QstCod;
/* Write icon to remove the question */
Ico_PutContextualIconToRemove (ActReqRemSvyQst,NULL,
Svy_PutParsToEditQuestion,Surveys);
/* Write icon to edit the question */
Ico_PutContextualIconToEdit (ActEdiOneSvyQst,NULL,
Svy_PutParsToEditQuestion,Surveys);
HTM_TD_End ();
}
/* Write index of question inside survey */
HTM_TD_Begin ("class=\"CT DAT_SMALL_%s %s\"",
The_GetSuffix (),
The_GetColorRows ());
HTM_Unsigned (SvyQst.QstInd + 1);
HTM_TD_End ();
/* Write the question type (row[2]) */
HTM_TD_Begin ("class=\"CT DAT_SMALL_%s %s\"",
The_GetSuffix (),
The_GetColorRows ());
HTM_Txt (Txt_SURVEY_STR_ANSWER_TYPES[SvyQst.AnswerType]);
HTM_TD_End ();
/* Write the stem and the answers of this question */
HTM_TD_Begin ("class=\"LT DAT_%s %s\"",
The_GetSuffix (),
The_GetColorRows ());
Svy_WriteQstStem (Stem);
Svy_WriteAnswersOfAQst (&Surveys->Svy,&SvyQst,
PutFormAnswerSurvey);
if (SvyQst.CommentsAllowed)
Svy_WriteCommentsOfAQst (&Surveys->Svy,&SvyQst,
PutFormAnswerSurvey);
HTM_TD_End ();
HTM_TR_End ();
} }
HTM_TABLE_End (); /***** Write the heading *****/
HTM_TABLE_Begin ("TBL_SCROLL");
if (PutFormAnswerSurvey == Frm_PUT_FORM) HTM_TR_Begin (NULL);
{ if (Surveys->Svy.Status.ICanEdit)
/***** Button to create/modify survey *****/ HTM_TH_Empty (1);
Btn_PutConfirmButton (Txt_Done); HTM_TH (Txt_No_INDEX,HTM_HEAD_CENTER);
HTM_TH (Txt_Type ,HTM_HEAD_CENTER);
HTM_TH (Txt_Question,HTM_HEAD_LEFT );
HTM_TR_End ();
/***** End form *****/ /***** Write questions one by one *****/
Frm_EndForm (); for (NumQst = 0, The_ResetRowColor ();
NumQst < NumQsts;
NumQst++, The_ChangeRowColor ())
{
/* Initialize question to zero */
Svy_InitQst (&SvyQst);
/* Get question data from row */
Svy_GetQstDataFromRow (mysql_res,&SvyQst,Stem);
HTM_TR_Begin (NULL);
if (Surveys->Svy.Status.ICanEdit)
{
HTM_TD_Begin ("class=\"BT %s\"",The_GetColorRows ());
/* Initialize context */
Surveys->QstCod = SvyQst.QstCod;
/* Write icon to remove the question */
Ico_PutContextualIconToRemove (ActReqRemSvyQst,NULL,
Svy_PutParsToEditQuestion,Surveys);
/* Write icon to edit the question */
Ico_PutContextualIconToEdit (ActEdiOneSvyQst,NULL,
Svy_PutParsToEditQuestion,Surveys);
HTM_TD_End ();
}
/* Write index of question inside survey */
HTM_TD_Begin ("class=\"CT DAT_SMALL_%s %s\"",
The_GetSuffix (),
The_GetColorRows ());
HTM_Unsigned (SvyQst.QstInd + 1);
HTM_TD_End ();
/* Write the question type (row[2]) */
HTM_TD_Begin ("class=\"CT DAT_SMALL_%s %s\"",
The_GetSuffix (),
The_GetColorRows ());
HTM_Txt (Txt_SURVEY_STR_ANSWER_TYPES[SvyQst.AnswerType]);
HTM_TD_End ();
/* Write the stem and the answers of this question */
HTM_TD_Begin ("class=\"LT DAT_%s %s\"",
The_GetSuffix (),
The_GetColorRows ());
Svy_WriteQstStem (Stem);
Svy_WriteAnswersOfAQst (&Surveys->Svy,&SvyQst,
PutFormAnswerSurvey);
if (SvyQst.CommentsAllowed)
Svy_WriteCommentsOfAQst (&Surveys->Svy,&SvyQst,
PutFormAnswerSurvey);
HTM_TD_End ();
HTM_TR_End ();
}
HTM_TABLE_End ();
if (PutFormAnswerSurvey == Frm_PUT_FORM)
{
/***** Button to create/modify survey *****/
Btn_PutConfirmButton (Txt_Done);
/***** End form *****/
Frm_EndForm ();
}
} }
} else // This survey has no questions
else // This survey has no questions Ale_ShowAlert (Ale_INFO,Txt_This_survey_has_no_questions);
Ale_ShowAlert (Ale_INFO,Txt_This_survey_has_no_questions);
/***** Free structure that stores the query result *****/ /***** Free structure that stores the query result *****/
DB_FreeMySQLResult (&mysql_res); DB_FreeMySQLResult (&mysql_res);
/***** End box *****/ /***** End box *****/
Box_BoxEnd (); Box_BoxEnd ();

View File

@ -542,7 +542,7 @@ static void Syl_ShowSyllabus (struct Syl_Syllabus *Syllabus)
bool PutIconToEdit = Syllabus->ViewType == Vie_VIEW && ICanEdit; bool PutIconToEdit = Syllabus->ViewType == Vie_VIEW && ICanEdit;
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_INFO_TITLE[Gbl.Crs.Info.Type], Box_BoxBegin (Txt_INFO_TITLE[Gbl.Crs.Info.Type],
PutIconToEdit ? Inf_PutIconToEditInfo : PutIconToEdit ? Inf_PutIconToEditInfo :
NULL, NULL,
PutIconToEdit ? &Gbl.Crs.Info.Type : PutIconToEdit ? &Gbl.Crs.Info.Type :

View File

@ -102,7 +102,7 @@ static void SysCfg_Configuration (Vie_ViewType_t ViewType)
unsigned NumCtrsWithMap; unsigned NumCtrsWithMap;
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Cfg_PLATFORM_SHORT_NAME, Box_BoxBegin (Cfg_PLATFORM_SHORT_NAME,
ViewType == Vie_VIEW ? SysCfg_PutIconToPrint : ViewType == Vie_VIEW ? SysCfg_PutIconToPrint :
NULL,NULL, NULL,NULL,
ViewType == Vie_VIEW ? Hlp_SYSTEM_Information : ViewType == Vie_VIEW ? Hlp_SYSTEM_Information :

View File

@ -125,8 +125,7 @@ static void Tst_ShowFormRequestTest (struct Qst_Questions *Questions)
TstCfg_GetConfig (); TstCfg_GetConfig ();
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Test, Box_BoxBegin (Txt_Test,Tst_PutIconsTests,NULL,
Tst_PutIconsTests,NULL,
Hlp_ASSESSMENT_Tests,Box_NOT_CLOSABLE); Hlp_ASSESSMENT_Tests,Box_NOT_CLOSABLE);
/***** Get tags *****/ /***** Get tags *****/
@ -348,8 +347,7 @@ void Tst_AssessTest (void)
Tst_DB_UpdatePrint (&Print); Tst_DB_UpdatePrint (&Print);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Result, Box_BoxBegin (Txt_Result,NULL,NULL,
NULL,NULL,
Hlp_ASSESSMENT_Tests,Box_NOT_CLOSABLE); Hlp_ASSESSMENT_Tests,Box_NOT_CLOSABLE);
Lay_WriteHeaderClassPhoto (Vie_VIEW); Lay_WriteHeaderClassPhoto (Vie_VIEW);

View File

@ -164,8 +164,7 @@ static void TstCfg_ShowFormConfig (void)
TstCfg_GetConfig (); TstCfg_GetConfig ();
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Configure_tests, Box_BoxBegin (Txt_Configure_tests,Tst_PutIconsTests,NULL,
Tst_PutIconsTests,NULL,
Hlp_ASSESSMENT_Tests_configuring_tests,Box_NOT_CLOSABLE); Hlp_ASSESSMENT_Tests_configuring_tests,Box_NOT_CLOSABLE);
/***** Begin form *****/ /***** Begin form *****/

View File

@ -215,9 +215,7 @@ void TstPrn_ShowTestPrintToFillIt (struct TstPrn_Print *Print,
}; };
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Test, Box_BoxBegin (Txt_Test,NULL,NULL,Hlp_ASSESSMENT_Tests,Box_NOT_CLOSABLE);
NULL,NULL,
Hlp_ASSESSMENT_Tests,Box_NOT_CLOSABLE);
Lay_WriteHeaderClassPhoto (Vie_VIEW); Lay_WriteHeaderClassPhoto (Vie_VIEW);
if (Print->NumQsts.All) if (Print->NumQsts.All)
@ -2230,9 +2228,8 @@ void TstPrn_ShowOnePrint (void)
Err_WrongExamExit (); Err_WrongExamExit ();
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Result, Box_BoxBegin (Txt_Result,NULL,NULL,
NULL,NULL, Hlp_ASSESSMENT_Tests_results,Box_NOT_CLOSABLE);
Hlp_ASSESSMENT_Tests_results,Box_NOT_CLOSABLE);
Lay_WriteHeaderClassPhoto (Vie_VIEW); Lay_WriteHeaderClassPhoto (Vie_VIEW);
/***** Begin table *****/ /***** Begin table *****/

View File

@ -97,9 +97,9 @@ void The_PutIconsToSelectTheme (void)
The_Theme_t Theme; The_Theme_t Theme;
char Icon[PATH_MAX + 1]; char Icon[PATH_MAX + 1];
Box_BoxBegin (NULL,Txt_Theme_SKIN, Box_BoxBegin (Txt_Theme_SKIN,The_PutIconsTheme,NULL,
The_PutIconsTheme,NULL,
Hlp_PROFILE_Settings_theme,Box_NOT_CLOSABLE); Hlp_PROFILE_Settings_theme,Box_NOT_CLOSABLE);
Set_BeginSettingsHead (); Set_BeginSettingsHead ();
Set_BeginOneSettingSelector (); Set_BeginOneSettingSelector ();
for (Theme = (The_Theme_t) 0; for (Theme = (The_Theme_t) 0;
@ -117,6 +117,7 @@ void The_PutIconsToSelectTheme (void)
} }
Set_EndOneSettingSelector (); Set_EndOneSettingSelector ();
Set_EndSettingsHead (); Set_EndSettingsHead ();
Box_BoxEnd (); Box_BoxEnd ();
} }

View File

@ -418,8 +418,7 @@ static void Tml_ShowTimeline (struct Tml_Timeline *Timeline,
bool GlobalTimeline = (Gbl.Usrs.Other.UsrDat.UsrCod <= 0); bool GlobalTimeline = (Gbl.Usrs.Other.UsrDat.UsrCod <= 0);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Title, Box_BoxBegin (Title,Tml_PutIconsTimeline,NULL,
Tml_PutIconsTimeline,NULL,
Hlp_START_Timeline,Box_NOT_CLOSABLE); Hlp_START_Timeline,Box_NOT_CLOSABLE);
/***** Put form to select users whom public activity is displayed *****/ /***** Put form to select users whom public activity is displayed *****/

View File

@ -888,9 +888,7 @@ static void TmlCom_ReqRemComm (struct Tml_Timeline *Timeline)
TmlFrm_BeginAlertRemove (Txt_Do_you_really_want_to_remove_the_following_comment); TmlFrm_BeginAlertRemove (Txt_Do_you_really_want_to_remove_the_following_comment);
/* Begin box for the comment */ /* Begin box for the comment */
Box_BoxBegin (NULL,NULL, Box_BoxBegin (NULL,NULL,NULL,NULL,Box_NOT_CLOSABLE);
NULL,NULL,
NULL,Box_NOT_CLOSABLE);
/* Indent the comment */ /* Indent the comment */
HTM_DIV_Begin ("class=\"Tml_LEFT_PHOTO\""); HTM_DIV_Begin ("class=\"Tml_LEFT_PHOTO\"");

View File

@ -153,9 +153,7 @@ void TmlNot_ShowHighlightedNote (struct Tml_Timeline *Timeline,
/***** Show the note highlighted *****/ /***** Show the note highlighted *****/
/* Begin box */ /* Begin box */
Box_BoxBegin (NULL,NULL, Box_BoxBegin (NULL,NULL,NULL,NULL,Box_CLOSABLE);
NULL,NULL,
NULL,Box_CLOSABLE);
/* Begin container */ /* Begin container */
HTM_DIV_Begin ("class=\"Tml_WIDTH Tml_NEW_PUB_%s\"",The_GetSuffix ()); HTM_DIV_Begin ("class=\"Tml_WIDTH Tml_NEW_PUB_%s\"",The_GetSuffix ());
@ -1019,9 +1017,7 @@ static void TmlNot_ReqRemNote (struct Tml_Timeline *Timeline)
TmlFrm_BeginAlertRemove (Txt_Do_you_really_want_to_remove_the_following_post); TmlFrm_BeginAlertRemove (Txt_Do_you_really_want_to_remove_the_following_post);
/* Show note */ /* Show note */
Box_BoxBegin (NULL,NULL, Box_BoxBegin (NULL,NULL,NULL,NULL,Box_CLOSABLE);
NULL,NULL,
NULL,Box_CLOSABLE);
HTM_DIV_Begin ("class=\"Tml_WIDTH\""); HTM_DIV_Begin ("class=\"Tml_WIDTH\"");
TmlNot_CheckAndWriteNoteWithTopMsg (Timeline,&Not, TmlNot_CheckAndWriteNoteWithTopMsg (Timeline,&Not,
Tml_TOP_MESSAGE_NONE, Tml_TOP_MESSAGE_NONE,

View File

@ -327,6 +327,7 @@ void Tmt_ShowClassTimeTable (void)
Gbl.Action.Act == ActPrnMyTT) ? Vie_PRINT : Gbl.Action.Act == ActPrnMyTT) ? Vie_PRINT :
Vie_VIEW; Vie_VIEW;
Grp_WhichGroups_t WhichGroups; Grp_WhichGroups_t WhichGroups;
bool PutContextualIcons;
/***** Initializations *****/ /***** Initializations *****/
switch (Gbl.Action.Act) switch (Gbl.Action.Act)
@ -358,51 +359,51 @@ void Tmt_ShowClassTimeTable (void)
Grp_GetParWhichGroups (); Grp_GetParWhichGroups ();
/***** Begin box *****/ /***** Begin box *****/
if (Timetable.ContextualIcons.PutIconEditCrsTT || PutContextualIcons = Timetable.ContextualIcons.PutIconEditCrsTT ||
Timetable.ContextualIcons.PutIconEditOfficeHours || Timetable.ContextualIcons.PutIconEditOfficeHours ||
Timetable.ContextualIcons.PutIconPrint) Timetable.ContextualIcons.PutIconPrint;
Box_BoxBegin (NULL,Txt_TIMETABLE_TYPES[Timetable.Type], Box_BoxBegin (Txt_TIMETABLE_TYPES[Timetable.Type],
Tmt_PutContextualIcons,&Timetable, PutContextualIcons ? Tmt_PutContextualIcons :
Help[Timetable.Type],Box_NOT_CLOSABLE); NULL,
else PutContextualIcons ? &Timetable :
Box_BoxBegin (NULL,Txt_TIMETABLE_TYPES[Timetable.Type], NULL,
NULL,NULL, PutContextualIcons ? Help[Timetable.Type] :
NULL,Box_NOT_CLOSABLE); NULL,Box_NOT_CLOSABLE);
/***** Begin time table drawing *****/ /***** Begin time table drawing *****/
if (Timetable.Type == Tmt_COURSE_TIMETABLE) if (Timetable.Type == Tmt_COURSE_TIMETABLE)
Lay_WriteHeaderClassPhoto (ViewType); Lay_WriteHeaderClassPhoto (ViewType);
switch (ViewType) switch (ViewType)
{ {
case Vie_VIEW: case Vie_VIEW:
/***** Setting selector *****/ /***** Setting selector *****/
Set_BeginSettingsHead (); Set_BeginSettingsHead ();
/* Select whether show only my groups or all groups */ /* Select whether show only my groups or all groups */
if ( Timetable.Type == Tmt_MY_TIMETABLE || if ( Timetable.Type == Tmt_MY_TIMETABLE ||
(Timetable.Type == Tmt_COURSE_TIMETABLE && (Timetable.Type == Tmt_COURSE_TIMETABLE &&
Gbl.Crs.Grps.NumGrps)) Gbl.Crs.Grps.NumGrps))
Tmt_PutFormToSelectWhichGroupsToShow (&Timetable); Tmt_PutFormToSelectWhichGroupsToShow (&Timetable);
/* Show form to change first day of week */ /* Show form to change first day of week */
WhichGroups = Grp_GetParWhichGroups (); WhichGroups = Grp_GetParWhichGroups ();
Cal_ShowFormToSelFirstDayOfWeek (ActChgTT1stDay[Timetable.Type], Cal_ShowFormToSelFirstDayOfWeek (ActChgTT1stDay[Timetable.Type],
Grp_PutParWhichGroups,&WhichGroups); Grp_PutParWhichGroups,&WhichGroups);
Set_EndSettingsHead (); Set_EndSettingsHead ();
break; break;
case Vie_PRINT: case Vie_PRINT:
/***** Show whether only my groups or all groups are selected *****/ /***** Show whether only my groups or all groups are selected *****/
Tmt_ShowTimeTableGrpsSelected (); Tmt_ShowTimeTableGrpsSelected ();
break; break;
default: default:
Err_WrongTypeExit (); Err_WrongTypeExit ();
break; break;
} }
/***** Show the time table *****/ /***** Show the time table *****/
Tmt_ShowTimeTable (&Timetable,Gbl.Usrs.Me.UsrDat.UsrCod); Tmt_ShowTimeTable (&Timetable,Gbl.Usrs.Me.UsrDat.UsrCod);
/***** End box *****/ /***** End box *****/
Box_BoxEnd (); Box_BoxEnd ();
@ -464,7 +465,7 @@ void Tmt_EditCrsTimeTable (void)
/***** Editable time table *****/ /***** Editable time table *****/
Timetable.Type = Tmt_COURSE_TIMETABLE; Timetable.Type = Tmt_COURSE_TIMETABLE;
Box_BoxBegin (NULL,Txt_TIMETABLE_TYPES[Timetable.Type], Box_BoxBegin (Txt_TIMETABLE_TYPES[Timetable.Type],
Tmt_PutIconToViewCrsTT,NULL, Tmt_PutIconToViewCrsTT,NULL,
Hlp_COURSE_Timetable,Box_NOT_CLOSABLE); Hlp_COURSE_Timetable,Box_NOT_CLOSABLE);
Tmt_ShowTimeTable (&Timetable,Gbl.Usrs.Me.UsrDat.UsrCod); Tmt_ShowTimeTable (&Timetable,Gbl.Usrs.Me.UsrDat.UsrCod);
@ -483,7 +484,7 @@ void Tmt_EditMyTutTimeTable (void)
/***** Time table *****/ /***** Time table *****/
Timetable.Type = Tmt_TUTORING_TIMETABLE; Timetable.Type = Tmt_TUTORING_TIMETABLE;
Box_BoxBegin (NULL,Txt_TIMETABLE_TYPES[Timetable.Type], Box_BoxBegin (Txt_TIMETABLE_TYPES[Timetable.Type],
Tmt_PutIconToViewMyTT,NULL, Tmt_PutIconToViewMyTT,NULL,
Hlp_PROFILE_Timetable,Box_NOT_CLOSABLE); Hlp_PROFILE_Timetable,Box_NOT_CLOSABLE);
Tmt_ShowTimeTable (&Timetable,Gbl.Usrs.Me.UsrDat.UsrCod); Tmt_ShowTimeTable (&Timetable,Gbl.Usrs.Me.UsrDat.UsrCod);

View File

@ -2074,8 +2074,7 @@ void Usr_ShowFormsLogoutAndRole (void)
Txt_ROLES_SINGUL_abc[Gbl.Usrs.Me.Role.Logged][Gbl.Usrs.Me.UsrDat.Sex]); Txt_ROLES_SINGUL_abc[Gbl.Usrs.Me.Role.Logged][Gbl.Usrs.Me.UsrDat.Sex]);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_Session, Box_BoxBegin (Txt_Session,Usr_PutLinkToLogOut,NULL,
Usr_PutLinkToLogOut,NULL,
Hlp_PROFILE_Session_role,Box_NOT_CLOSABLE); Hlp_PROFILE_Session_role,Box_NOT_CLOSABLE);
/***** Put a form to change my role *****/ /***** Put a form to change my role *****/
@ -3698,9 +3697,7 @@ void Usr_PutFormToSelectUsrsToGoToAct (struct Usr_SelectedUsrs *SelectedUsrs,
}; };
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Title, Box_BoxBegin (Title,NULL,NULL,HelpLink,Box_NOT_CLOSABLE);
NULL,NULL,
HelpLink,Box_NOT_CLOSABLE);
/***** Get and update type of list, /***** Get and update type of list,
number of columns in class photo number of columns in class photo
@ -4763,7 +4760,7 @@ unsigned Usr_ListUsrsFound (Rol_Role_t Role,
(NumUsrs == 1 ? Txt_ROLES_SINGUL_abc[Role][Sex] : (NumUsrs == 1 ? Txt_ROLES_SINGUL_abc[Role][Sex] :
Txt_ROLES_PLURAL_abc[Role][Sex])) < 0) Txt_ROLES_PLURAL_abc[Role][Sex])) < 0)
Err_NotEnoughMemoryExit (); Err_NotEnoughMemoryExit ();
Box_BoxBegin (NULL,Title,NULL,NULL,NULL,Box_NOT_CLOSABLE); Box_BoxBegin (Title,NULL,NULL,NULL,Box_NOT_CLOSABLE);
free (Title); free (Title);
HTM_TABLE_Begin ("TBL_SCROLL"); HTM_TABLE_Begin ("TBL_SCROLL");
@ -4907,8 +4904,7 @@ void Usr_ListDataAdms (void)
Adm_GetAdmsLst (Gbl.Scope.Current); Adm_GetAdmsLst (Gbl.Scope.Current);
/***** Begin box with list of administrators *****/ /***** Begin box with list of administrators *****/
Box_BoxBegin (NULL,Txt_ROLES_PLURAL_Abc[Rol_DEG_ADM][Usr_SEX_UNKNOWN], Box_BoxBegin (Txt_ROLES_PLURAL_Abc[Rol_DEG_ADM][Usr_SEX_UNKNOWN],NULL,NULL,
NULL,NULL,
Hlp_USERS_Administrators,Box_NOT_CLOSABLE); Hlp_USERS_Administrators,Box_NOT_CLOSABLE);
/***** Form to select scope *****/ /***** Form to select scope *****/
@ -5046,7 +5042,7 @@ void Usr_SeeGuests (void)
Usr_GetGstsLst (Gbl.Scope.Current); Usr_GetGstsLst (Gbl.Scope.Current);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_ROLES_PLURAL_Abc[Rol_GST][Usr_SEX_UNKNOWN], Box_BoxBegin (Txt_ROLES_PLURAL_Abc[Rol_GST][Usr_SEX_UNKNOWN],
Usr_PutIconsListGsts,NULL, Usr_PutIconsListGsts,NULL,
Hlp_USERS_Guests,Box_NOT_CLOSABLE); Hlp_USERS_Guests,Box_NOT_CLOSABLE);
@ -5185,7 +5181,7 @@ void Usr_SeeStudents (void)
Usr_GetListUsrs (Gbl.Scope.Current,Rol_STD); Usr_GetListUsrs (Gbl.Scope.Current,Rol_STD);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_ROLES_PLURAL_Abc[Rol_STD][Usr_SEX_UNKNOWN], Box_BoxBegin (Txt_ROLES_PLURAL_Abc[Rol_STD][Usr_SEX_UNKNOWN],
Usr_PutIconsListStds,NULL, Usr_PutIconsListStds,NULL,
Hlp_USERS_Students,Box_NOT_CLOSABLE); Hlp_USERS_Students,Box_NOT_CLOSABLE);
@ -5362,7 +5358,7 @@ void Usr_SeeTeachers (void)
1 << Rol_TCH); 1 << Rol_TCH);
/***** Begin box *****/ /***** Begin box *****/
Box_BoxBegin (NULL,Txt_ROLES_PLURAL_Abc[Rol_TCH][Usr_SEX_UNKNOWN], Box_BoxBegin (Txt_ROLES_PLURAL_Abc[Rol_TCH][Usr_SEX_UNKNOWN],
Usr_PutIconsListTchs,NULL, Usr_PutIconsListTchs,NULL,
Hlp_USERS_Teachers,Box_NOT_CLOSABLE); Hlp_USERS_Teachers,Box_NOT_CLOSABLE);

View File

@ -529,9 +529,7 @@ static void ZIP_ShowLinkToDownloadZIP (const char *FileName,const char *URL,
char FileSizeStr[Fil_MAX_BYTES_FILE_SIZE_STRING + 1]; char FileSizeStr[Fil_MAX_BYTES_FILE_SIZE_STRING + 1];
/***** Begin box and table *****/ /***** Begin box and table *****/
Box_BoxTableShadowBegin (NULL,NULL, Box_BoxTableShadowBegin (NULL, NULL,NULL,NULL,2);
NULL,NULL,
NULL,2);
/***** Link to download the file *****/ /***** Link to download the file *****/
HTM_TR_Begin (NULL); HTM_TR_Begin (NULL);