Version 16.242

This commit is contained in:
Antonio Cañas Vargas 2017-06-11 22:26:40 +02:00
parent 2c550544ec
commit 47e543e1a7
60 changed files with 770 additions and 774 deletions

View File

@ -551,8 +551,8 @@ void ID_ShowFormOthIDs (void)
{ {
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_ID,NULL, Box_StartBox (NULL,Txt_ID,NULL,
NULL, NULL,
false); // Not closable false); // Not closable
/***** Show user's record *****/ /***** Show user's record *****/
Rec_ShowSharedUsrRecord (Rec_SHA_RECORD_LIST, Rec_ShowSharedUsrRecord (Rec_SHA_RECORD_LIST,

View File

@ -225,8 +225,8 @@ void MFU_WriteBigMFUActions (struct MFU_ListMFUActions *ListMFUActions)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_My_frequent_actions,NULL, Box_StartBox (NULL,Txt_My_frequent_actions,NULL,
Hlp_STATS_Frequent, Hlp_STATS_Frequent,
false); // Not closable false); // Not closable
fprintf (Gbl.F.Out,"<div id=\"MFU_actions_big\">"); fprintf (Gbl.F.Out,"<div id=\"MFU_actions_big\">");
/***** Write list of frequently used actions *****/ /***** Write list of frequently used actions *****/

View File

@ -145,8 +145,8 @@ static void Acc_ShowFormCheckIfIHaveAccount (const char *Title)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Title,NULL, Box_StartBox (NULL,Title,NULL,
Hlp_PROFILE_SignUp, Hlp_PROFILE_SignUp,
true); // Closable true); // 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_);
@ -216,12 +216,12 @@ void Acc_CheckIfEmptyAccountExists (void)
{ {
/***** Start frame and write message with number of accounts found *****/ /***** Start frame and write message with number of accounts found *****/
Box_StartBoxTable (NULL, Box_StartBoxTable (NULL,
(NumUsrs == 1) ? Txt_Do_you_think_you_are_this_user : (NumUsrs == 1) ? Txt_Do_you_think_you_are_this_user :
Txt_Do_you_think_you_are_one_of_these_users, Txt_Do_you_think_you_are_one_of_these_users,
NULL, NULL,
NULL, NULL,
true, // Closable true, // Closable
5); 5);
/***** Initialize structure with user's data *****/ /***** Initialize structure with user's data *****/
Usr_UsrDataConstructor (&UsrDat); Usr_UsrDataConstructor (&UsrDat);
@ -348,9 +348,9 @@ static void Acc_ShowFormRequestNewAccountWithParams (const char *NewNicknameWith
/***** Form to enter some data of the new user *****/ /***** Form to enter some data of the new user *****/
Act_FormStart (ActCreUsrAcc); Act_FormStart (ActCreUsrAcc);
Box_StartBoxTable (NULL,Txt_Create_account,NULL, Box_StartBoxTable (NULL,Txt_Create_account,NULL,
Hlp_PROFILE_SignUp, Hlp_PROFILE_SignUp,
false, // Not closable false, // Not closable
2); 2);
/***** Nickname *****/ /***** Nickname *****/
if (NewNicknameWithoutArroba[0]) if (NewNicknameWithoutArroba[0])
@ -413,8 +413,8 @@ void Acc_ShowFormGoToRequestNewAccount (void)
/***** Start frame *****/ /***** Start frame *****/
sprintf (Gbl.Title,Txt_New_on_PLATFORM_Sign_up,Cfg_PLATFORM_SHORT_NAME); sprintf (Gbl.Title,Txt_New_on_PLATFORM_Sign_up,Cfg_PLATFORM_SHORT_NAME);
Box_StartBox (NULL,Gbl.Title,NULL, Box_StartBox (NULL,Gbl.Title,NULL,
Hlp_PROFILE_SignUp, Hlp_PROFILE_SignUp,
false); // Not closable false); // Not closable
/***** Button to go to request the creation of a new account *****/ /***** Button to go to request the creation of a new account *****/
Act_FormStart (ActFrmMyAcc); Act_FormStart (ActFrmMyAcc);
@ -474,9 +474,9 @@ void Acc_ShowFormChangeMyAccount (void)
/***** Start table *****/ /***** Start table *****/
Box_StartBoxTable (NULL,Txt_User_account,NULL, Box_StartBoxTable (NULL,Txt_User_account,NULL,
Hlp_PROFILE_Account, Hlp_PROFILE_Account,
false, // Not closable false, // Not closable
2); 2);
/***** Nickname *****/ /***** Nickname *****/
if (IMustFillNickname) if (IMustFillNickname)

View File

@ -148,10 +148,9 @@ void Agd_ShowMyAgenda (void)
Agd_GetParams (Agd_MY_AGENDA); Agd_GetParams (Agd_MY_AGENDA);
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox ("100%",Txt_My_agenda, Box_StartBox ("100%",Txt_My_agenda,Agd_PutIconsMyFullAgenda,
Agd_PutIconsMyFullAgenda, Hlp_PROFILE_Agenda,
Hlp_PROFILE_Agenda, false); // Not closable
false); // Not closable
/***** Put forms to choice which events to show *****/ /***** Put forms to choice which events to show *****/
Agd_ShowFormToSelPast__FutureEvents (); Agd_ShowFormToSelPast__FutureEvents ();
@ -369,10 +368,10 @@ void Agd_ShowUsrAgenda (void)
sprintf (Gbl.Title,Txt_Public_agenda_USER,Gbl.Usrs.Other.UsrDat.FullName); sprintf (Gbl.Title,Txt_Public_agenda_USER,Gbl.Usrs.Other.UsrDat.FullName);
ItsMe = (Gbl.Usrs.Me.UsrDat.UsrCod == Gbl.Usrs.Other.UsrDat.UsrCod); ItsMe = (Gbl.Usrs.Me.UsrDat.UsrCod == Gbl.Usrs.Other.UsrDat.UsrCod);
Box_StartBox ("100%",Gbl.Title, Box_StartBox ("100%",Gbl.Title,
ItsMe ? Agd_PutIconsMyPublicAgenda : ItsMe ? Agd_PutIconsMyPublicAgenda :
Agd_PutIconsOtherPublicAgenda, Agd_PutIconsOtherPublicAgenda,
Hlp_PROFILE_Agenda_public_agenda, Hlp_PROFILE_Agenda_public_agenda,
false); // Not closable false); // Not closable
/***** Show the current events in the user's agenda *****/ /***** Show the current events in the user's agenda *****/
Agd_ShowEventsToday (Agd_ANOTHER_AGENDA_TODAY); Agd_ShowEventsToday (Agd_ANOTHER_AGENDA_TODAY);
@ -413,10 +412,10 @@ void Agd_ShowOtherAgendaAfterLogIn (void)
sprintf (Gbl.Title,Txt_Public_agenda_USER,Gbl.Usrs.Other.UsrDat.FullName); sprintf (Gbl.Title,Txt_Public_agenda_USER,Gbl.Usrs.Other.UsrDat.FullName);
ItsMe = (Gbl.Usrs.Me.UsrDat.UsrCod == Gbl.Usrs.Other.UsrDat.UsrCod); ItsMe = (Gbl.Usrs.Me.UsrDat.UsrCod == Gbl.Usrs.Other.UsrDat.UsrCod);
Box_StartBox ("100%",Gbl.Title, Box_StartBox ("100%",Gbl.Title,
ItsMe ? Agd_PutIconToViewEditMyFullAgenda : ItsMe ? Agd_PutIconToViewEditMyFullAgenda :
Agd_PutIconsOtherPublicAgenda, Agd_PutIconsOtherPublicAgenda,
Hlp_PROFILE_Agenda_public_agenda, Hlp_PROFILE_Agenda_public_agenda,
false); // Not closable false); // Not closable
/***** Show the current events in the user's agenda *****/ /***** Show the current events in the user's agenda *****/
Agd_ShowEventsToday (Agd_ANOTHER_AGENDA_TODAY); Agd_ShowEventsToday (Agd_ANOTHER_AGENDA_TODAY);
@ -535,16 +534,14 @@ static void Agd_ShowEventsToday (Agd_AgendaType_t AgendaType)
switch (AgendaType) switch (AgendaType)
{ {
case Agd_MY_AGENDA_TODAY: case Agd_MY_AGENDA_TODAY:
Box_StartBoxTableShadow (NULL,Txt_Today, Box_StartBoxTableShadow (NULL,Txt_Today,NULL,
NULL, Hlp_PROFILE_Agenda,
Hlp_PROFILE_Agenda, 2);
2);
break; break;
case Agd_ANOTHER_AGENDA_TODAY: case Agd_ANOTHER_AGENDA_TODAY:
Box_StartBoxTableShadow (NULL,Txt_Today, Box_StartBoxTableShadow (NULL,Txt_Today,NULL,
NULL, Hlp_PROFILE_Agenda_public_agenda,
Hlp_PROFILE_Agenda_public_agenda, 2);
2);
break; break;
default: default:
break; break;
@ -1539,14 +1536,16 @@ void Agd_RequestCreatOrEditEvent (void)
Agd_PutCurrentParamsMyAgenda (); Agd_PutCurrentParamsMyAgenda ();
/***** Table start *****/ /***** Table start *****/
Box_StartBoxTable (NULL, if (ItsANewEvent)
ItsANewEvent ? Txt_New_event : Box_StartBoxTable (NULL,Txt_New_event,NULL,
Txt_Edit_event, Hlp_PROFILE_Agenda_new_event,
NULL, false, // Not closable
ItsANewEvent ? Hlp_PROFILE_Agenda_new_event : 2);
Hlp_PROFILE_Agenda_edit_event, else
false, // Not closable Box_StartBoxTable (NULL,Txt_Edit_event,NULL,
2); Hlp_PROFILE_Agenda_edit_event,
false, // Not closable
2);
/***** Event *****/ /***** Event *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -1948,8 +1947,8 @@ void Agd_PrintAgdQRCode (void)
/***** Start frame *****/ /***** Start frame *****/
sprintf (Gbl.Title,Txt_Where_s_USER,Gbl.Usrs.Me.UsrDat.FullName); sprintf (Gbl.Title,Txt_Where_s_USER,Gbl.Usrs.Me.UsrDat.FullName);
Box_StartBox (NULL,Gbl.Title,NULL, Box_StartBox (NULL,Gbl.Title,NULL,
NULL, NULL,
false); // Not closable false); // Not closable
/***** Print QR code ****/ /***** Print QR code ****/
QR_PrintQRCode (); QR_PrintQRCode ();

View File

@ -121,10 +121,10 @@ void Ann_ShowAllAnnouncements (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox ("550px",Txt_Announcements, Box_StartBox ("550px",Txt_Announcements,
ICanEdit ? Ann_PutIconToAddNewAnnouncement : ICanEdit ? Ann_PutIconToAddNewAnnouncement :
NULL, NULL,
Hlp_MESSAGES_Announcements, Hlp_MESSAGES_Announcements,
false); // Not closable false); // Not closable
if (!NumAnnouncements) if (!NumAnnouncements)
Ale_ShowAlert (Ale_INFO,Txt_No_announcements); Ale_ShowAlert (Ale_INFO,Txt_No_announcements);
@ -413,9 +413,9 @@ void Ann_ShowFormAnnouncement (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBoxTable (NULL,Txt_New_announcement,NULL, Box_StartBoxTable (NULL,Txt_New_announcement,NULL,
Hlp_MESSAGES_Announcements, Hlp_MESSAGES_Announcements,
false, // Not closable false, // Not closable
2); 2);
/***** Announcement subject and body *****/ /***** Announcement subject and body *****/
Ann_PutSubjectMessage ("Subject",Txt_MSG_Subject, 2); Ann_PutSubjectMessage ("Subject",Txt_MSG_Subject, 2);

View File

@ -138,8 +138,8 @@ static void Asg_ShowAllAssignments (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox ("100%",Txt_Assignments,Asg_PutIconsListAssignments, Box_StartBox ("100%",Txt_Assignments,Asg_PutIconsListAssignments,
Hlp_ASSESSMENT_Assignments, Hlp_ASSESSMENT_Assignments,
false); // Not closable false); // Not closable
/***** Select whether show only my groups or all groups *****/ /***** Select whether show only my groups or all groups *****/
if (Gbl.CurrentCrs.Grps.NumGrps) if (Gbl.CurrentCrs.Grps.NumGrps)
@ -1173,14 +1173,16 @@ void Asg_RequestCreatOrEditAsg (void)
Asg_PutParams (); Asg_PutParams ();
/***** Table start *****/ /***** Table start *****/
Box_StartBoxTable (NULL, if (ItsANewAssignment)
ItsANewAssignment ? Txt_New_assignment : Box_StartBoxTable (NULL,Txt_New_assignment,NULL,
Txt_Edit_assignment, Hlp_ASSESSMENT_Assignments_new_assignment,
NULL, false, // Not closable
ItsANewAssignment ? Hlp_ASSESSMENT_Assignments_new_assignment : 2);
Hlp_ASSESSMENT_Assignments_edit_assignment, else
false, // Not closable Box_StartBoxTable (NULL,Txt_Edit_assignment,NULL,
2); Hlp_ASSESSMENT_Assignments_edit_assignment,
false, // Not closable
2);
/***** Assignment title *****/ /***** Assignment title *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -1271,9 +1273,9 @@ static void Asg_ShowLstGrpsToEditAssignment (long AsgCod)
The_ClassForm[Gbl.Prefs.Theme], The_ClassForm[Gbl.Prefs.Theme],
Txt_Groups); Txt_Groups);
Box_StartBoxTable ("100%",NULL,NULL, Box_StartBoxTable ("100%",NULL,NULL,
Hlp_USERS_Groups, Hlp_USERS_Groups,
false, // Not closable false, // Not closable
0); 0);
/***** First row: checkbox to select the whole course *****/ /***** First row: checkbox to select the whole course *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"

View File

@ -224,11 +224,10 @@ static void Att_ShowAllAttEvents (void)
&Pagination); &Pagination);
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox ("100%",Txt_Events, Box_StartBox ("100%",Txt_Events,ICanEdit ? Att_PutIconToCreateNewAttEvent :
ICanEdit ? Att_PutIconToCreateNewAttEvent : NULL,
NULL, Hlp_USERS_Attendance,
Hlp_USERS_Attendance, false); // Not closable
false); // Not closable
/***** Select whether show only my groups or all groups *****/ /***** Select whether show only my groups or all groups *****/
if (Gbl.CurrentCrs.Grps.NumGrps) if (Gbl.CurrentCrs.Grps.NumGrps)
@ -1089,14 +1088,16 @@ void Att_RequestCreatOrEditAttEvent (void)
Pag_PutHiddenParamPagNum (Pag_ATT_EVENTS,Gbl.AttEvents.CurrentPage); Pag_PutHiddenParamPagNum (Pag_ATT_EVENTS,Gbl.AttEvents.CurrentPage);
/***** Table start *****/ /***** Table start *****/
Box_StartBoxTable (NULL, if (ItsANewAttEvent)
ItsANewAttEvent ? Txt_New_event : Box_StartBoxTable (NULL,Txt_New_event,NULL,
Txt_Edit_event, Hlp_USERS_Attendance_new_event,
NULL, false, // Not closable
ItsANewAttEvent ? Hlp_USERS_Attendance_new_event : 2);
Hlp_USERS_Attendance_edit_event, else
false, // Not closable Box_StartBoxTable (NULL,Txt_Edit_event,NULL,
2); Hlp_USERS_Attendance_edit_event,
false, // Not closable
2);
/***** Attendance event title *****/ /***** Attendance event title *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -1196,9 +1197,9 @@ static void Att_ShowLstGrpsToEditAttEvent (long AttCod)
"<td class=\"LEFT_TOP\">", "<td class=\"LEFT_TOP\">",
The_ClassForm[Gbl.Prefs.Theme],Txt_Groups); The_ClassForm[Gbl.Prefs.Theme],Txt_Groups);
Box_StartBoxTable ("100%",NULL,NULL, Box_StartBoxTable ("100%",NULL,NULL,
NULL, NULL,
false, // Not closable false, // Not closable
0); 0);
/***** First row: checkbox to select the whole course *****/ /***** First row: checkbox to select the whole course *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -1829,9 +1830,9 @@ void Att_SeeOneAttEvent (void)
/***** Show attendance *****/ /***** Show attendance *****/
Box_StartBoxTable (NULL,Txt_Event,NULL, Box_StartBoxTable (NULL,Txt_Event,NULL,
Hlp_USERS_Attendance, Hlp_USERS_Attendance,
false, // Not closable false, // Not closable
2); 2);
Att.AttCod = Gbl.AttEvents.AttCod; Att.AttCod = Gbl.AttEvents.AttCod;
Att_ShowOneAttEvent (&Att,true); Att_ShowOneAttEvent (&Att,true);
Box_EndBoxTable (); Box_EndBoxTable ();
@ -1878,9 +1879,9 @@ static void Att_ListAttOnlyMeAsStudent (struct AttendanceEvent *Att)
/***** List students' data *****/ /***** List students' data *****/
/* Header */ /* Header */
Box_StartBoxTable (NULL,NULL,NULL, Box_StartBoxTable (NULL,NULL,NULL,
Hlp_USERS_Attendance, Hlp_USERS_Attendance,
false, // Not closable false, // Not closable
2); 2);
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
"<th></th>" "<th></th>"
"<th></th>" "<th></th>"
@ -1939,8 +1940,8 @@ static void Att_ListAttStudents (struct AttendanceEvent *Att)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Attendance,NULL, Box_StartBox (NULL,Txt_Attendance,NULL,
Hlp_USERS_Attendance, Hlp_USERS_Attendance,
false); // Not closable false); // Not closable
/***** Form to select groups *****/ /***** Form to select groups *****/
Grp_ShowFormToSelectSeveralGroups (ActSeeOneAtt); Grp_ShowFormToSelectSeveralGroups (ActSeeOneAtt);
@ -2676,10 +2677,9 @@ void Usr_ReqListStdsAttendanceCrs (void)
Usr_GetListUsrs (Sco_SCOPE_CRS,Rol_STD); Usr_GetListUsrs (Sco_SCOPE_CRS,Rol_STD);
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_ROLES_PLURAL_Abc[Rol_STD][Usr_SEX_UNKNOWN], Box_StartBox (NULL,Txt_ROLES_PLURAL_Abc[Rol_STD][Usr_SEX_UNKNOWN],NULL,
NULL, Hlp_USERS_Attendance_attendance_list,
Hlp_USERS_Attendance_attendance_list, false); // Not closable
false); // Not closable
/***** Form to select groups *****/ /***** Form to select groups *****/
Grp_ShowFormToSelectSeveralGroups (ActReqLstStdAtt); Grp_ShowFormToSelectSeveralGroups (ActReqLstStdAtt);
@ -3109,10 +3109,10 @@ static void Att_ListEventsToSelect (Att_TypeOfView_t TypeOfView)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBoxTable (NULL,Txt_Events,NULL, Box_StartBoxTable (NULL,Txt_Events,NULL,
TypeOfView == Att_PRINT_VIEW ? NULL : TypeOfView == Att_PRINT_VIEW ? NULL :
Hlp_USERS_Attendance_attendance_list, Hlp_USERS_Attendance_attendance_list,
false, // Not closable false, // Not closable
2); 2);
/***** Heading row *****/ /***** Heading row *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -3221,12 +3221,12 @@ static void Att_ListStdsAttendanceTable (Att_TypeOfView_t TypeOfView,
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Attendance, Box_StartBox (NULL,Txt_Attendance,
(TypeOfView == Att_NORMAL_VIEW_ONLY_ME) ? Att_PutIconToPrintMyList : (TypeOfView == Att_NORMAL_VIEW_ONLY_ME) ? Att_PutIconToPrintMyList :
((TypeOfView == Att_NORMAL_VIEW_STUDENTS) ? Att_PutIconToPrintStdsList : ((TypeOfView == Att_NORMAL_VIEW_STUDENTS) ? Att_PutIconToPrintStdsList :
NULL), NULL),
TypeOfView == Att_PRINT_VIEW ? NULL : TypeOfView == Att_PRINT_VIEW ? NULL :
Hlp_USERS_Attendance_attendance_list, Hlp_USERS_Attendance_attendance_list,
false); // Not closable false); // Not closable
if (PutButtonShowDetails) if (PutButtonShowDetails)
Tbl_StartTableWideMargin (2); Tbl_StartTableWideMargin (2);
else else
@ -3444,10 +3444,10 @@ static void Att_ListStdsWithAttEventsDetails (Att_TypeOfView_t TypeOfView,
/***** Start frame *****/ /***** Start frame *****/
Box_StartBoxTable (NULL,Txt_Details,NULL, Box_StartBoxTable (NULL,Txt_Details,NULL,
TypeOfView == Att_PRINT_VIEW ? NULL : TypeOfView == Att_PRINT_VIEW ? NULL :
Hlp_USERS_Attendance_attendance_list, Hlp_USERS_Attendance_attendance_list,
false, // Not closable false, // Not closable
2); 2);
/***** List students with attendance details *****/ /***** List students with attendance details *****/
for (NumStd = 0, Gbl.RowEvenOdd = 0; for (NumStd = 0, Gbl.RowEvenOdd = 0;

View File

@ -118,8 +118,8 @@ void Ban_SeeBanners (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Banners,Ban_PutFormToEditBanners, Box_StartBox (NULL,Txt_Banners,Ban_PutFormToEditBanners,
Hlp_SYSTEM_Banners, Hlp_SYSTEM_Banners,
false); // Not closable false); // Not closable
/***** Write all frames *****/ /***** Write all frames *****/
if (Gbl.Banners.Num) // There are banners if (Gbl.Banners.Num) // There are banners
@ -209,8 +209,8 @@ void Ban_EditBanners (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Banners,Ban_PutIconToViewBanners, Box_StartBox (NULL,Txt_Banners,Ban_PutIconToViewBanners,
Hlp_SYSTEM_Banners_edit, Hlp_SYSTEM_Banners_edit,
false); // Not closable false); // Not closable
/***** Put a form to create a new banner *****/ /***** Put a form to create a new banner *****/
Ban_PutFormToCreateBanner (); Ban_PutFormToCreateBanner ();
@ -834,9 +834,9 @@ static void Ban_PutFormToCreateBanner (void)
/***** Start of frame *****/ /***** Start of frame *****/
Box_StartBoxTable (NULL,Txt_New_banner,NULL, Box_StartBoxTable (NULL,Txt_New_banner,NULL,
Hlp_SYSTEM_Banners_edit, Hlp_SYSTEM_Banners_edit,
false, // Not closable false, // Not closable
2); 2);
/***** Write heading *****/ /***** Write heading *****/
Ban_PutHeadBanners (); Ban_PutHeadBanners ();

View File

@ -83,8 +83,8 @@ void Box_StartBoxTableShadow (const char *Width,const char *Title,
unsigned CellPadding) // CellPadding must be 0, 1, 2, 5 or 10 unsigned CellPadding) // CellPadding must be 0, 1, 2, 5 or 10
{ {
Box_StartBoxShadow (Width,Title, Box_StartBoxShadow (Width,Title,
FunctionToDrawContextualIcons, FunctionToDrawContextualIcons,
HelpLink); HelpLink);
Tbl_StartTableWide (CellPadding); Tbl_StartTableWide (CellPadding);
} }

View File

@ -85,8 +85,8 @@ void Cal_PutIconsToSelectFirstDayOfWeek (void)
extern const char *Txt_Calendar; extern const char *Txt_Calendar;
Box_StartBox (NULL,Txt_Calendar,Cal_PutIconsFirstDayOfWeek, Box_StartBox (NULL,Txt_Calendar,Cal_PutIconsFirstDayOfWeek,
Hlp_PROFILE_Preferences_calendar, Hlp_PROFILE_Preferences_calendar,
false); // Not closable false); // Not closable
Cal_ShowFormToSelFirstDayOfWeek (ActChg1stDay,NULL,"ICO25x25B"); Cal_ShowFormToSelFirstDayOfWeek (ActChg1stDay,NULL,"ICO25x25B");
Box_EndBox (); Box_EndBox ();
} }
@ -316,9 +316,9 @@ static void Cal_DrawCalendar (Act_Action_t ActionSeeCalendar,
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,NULL,FunctionToDrawContextualIcons, Box_StartBox (NULL,NULL,FunctionToDrawContextualIcons,
PrintView ? NULL : PrintView ? NULL :
Hlp_Calendar, Hlp_Calendar,
false); // Not closable false); // Not closable
Lay_WriteHeaderClassPhoto (PrintView,false, Lay_WriteHeaderClassPhoto (PrintView,false,
Gbl.CurrentIns.Ins.InsCod, Gbl.CurrentIns.Ins.InsCod,
Gbl.CurrentDeg.Deg.DegCod, Gbl.CurrentDeg.Deg.DegCod,

View File

@ -168,9 +168,9 @@ void Ctr_SeeCtrWithPendingDegs (void)
{ {
/***** Write heading *****/ /***** Write heading *****/
Box_StartBoxTable (NULL,Txt_Centres_with_pending_degrees,NULL, Box_StartBoxTable (NULL,Txt_Centres_with_pending_degrees,NULL,
Hlp_SYSTEM_Hierarchy_pending, Hlp_SYSTEM_Hierarchy_pending,
false, // Not closable false, // Not closable
2); 2);
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
"<th class=\"LEFT_MIDDLE\">" "<th class=\"LEFT_MIDDLE\">"
"%s" "%s"
@ -311,12 +311,14 @@ static void Ctr_Configuration (bool PrintView)
PhotoExists = Fil_CheckIfPathExists (PathPhoto); PhotoExists = Fil_CheckIfPathExists (PathPhoto);
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,NULL, if (PrintView)
PrintView ? NULL : Box_StartBox (NULL,NULL,NULL,
Ctr_PutIconsToPrintAndUpload, NULL,
PrintView ? NULL : false); // Not closable
Hlp_CENTRE_Information, else
false); // Not closable Box_StartBox (NULL,NULL,Ctr_PutIconsToPrintAndUpload,
Hlp_CENTRE_Information,
false); // Not closable
/***** Title *****/ /***** Title *****/
fprintf (Gbl.F.Out,"<div class=\"FRAME_TITLE FRAME_TITLE_BIG\">"); fprintf (Gbl.F.Out,"<div class=\"FRAME_TITLE FRAME_TITLE_BIG\">");
@ -749,8 +751,8 @@ static void Ctr_ListCentres (void)
/***** Start frame *****/ /***** Start frame *****/
sprintf (Gbl.Title,Txt_Centres_of_INSTITUTION_X,Gbl.CurrentIns.Ins.FullName); sprintf (Gbl.Title,Txt_Centres_of_INSTITUTION_X,Gbl.CurrentIns.Ins.FullName);
Box_StartBox (NULL,Gbl.Title,Ctr_PutIconsListCentres, Box_StartBox (NULL,Gbl.Title,Ctr_PutIconsListCentres,
Hlp_INSTITUTION_Centres, Hlp_INSTITUTION_Centres,
false); // Not closable false); // Not closable
if (Gbl.Ctrs.Num) // There are centres in the current institution if (Gbl.Ctrs.Num) // There are centres in the current institution
{ {
@ -942,8 +944,8 @@ void Ctr_EditCentres (void)
sprintf (Gbl.Title,Txt_Centres_of_INSTITUTION_X, sprintf (Gbl.Title,Txt_Centres_of_INSTITUTION_X,
Gbl.CurrentIns.Ins.FullName); Gbl.CurrentIns.Ins.FullName);
Box_StartBox (NULL,Gbl.Title,Ctr_PutIconsEditingCentres, Box_StartBox (NULL,Gbl.Title,Ctr_PutIconsEditingCentres,
Hlp_INSTITUTION_Centres, Hlp_INSTITUTION_Centres,
false); // Not closable false); // Not closable
/***** Put a form to create a new centre *****/ /***** Put a form to create a new centre *****/
Ctr_PutFormToCreateCentre (); Ctr_PutFormToCreateCentre ();
@ -2224,8 +2226,8 @@ void Ctr_RequestPhoto (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Photo,NULL, Box_StartBox (NULL,Txt_Photo,NULL,
NULL, NULL,
false); // Not closable false); // Not closable
/***** Write help message *****/ /***** Write help message *****/
sprintf (Gbl.Alert.Txt,"%s: %s<br />" sprintf (Gbl.Alert.Txt,"%s: %s<br />"
@ -2420,9 +2422,9 @@ static void Ctr_PutFormToCreateCentre (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBoxTable (NULL,Txt_New_centre,NULL, Box_StartBoxTable (NULL,Txt_New_centre,NULL,
NULL, NULL,
false, // Not closable false, // Not closable
2); 2);
/***** Write heading *****/ /***** Write heading *****/
Ctr_PutHeadCentresForEdition (); Ctr_PutHeadCentresForEdition ();
@ -2898,9 +2900,9 @@ unsigned Ctr_ListCtrsFound (const char *Query)
NumCtrs,(NumCtrs == 1) ? Txt_centre : NumCtrs,(NumCtrs == 1) ? Txt_centre :
Txt_centres); Txt_centres);
Box_StartBoxTable (NULL,Gbl.Title,NULL, Box_StartBoxTable (NULL,Gbl.Title,NULL,
NULL, NULL,
false, // Not closable false, // Not closable
2); 2);
Ctr_PutHeadCentresForSeeing (false); // Order not selectable Ctr_PutHeadCentresForSeeing (false); // Order not selectable
/***** List the centres (one row per centre) *****/ /***** List the centres (one row per centre) *****/

View File

@ -239,13 +239,14 @@
/****************************** Public constants *****************************/ /****************************** Public constants *****************************/
/*****************************************************************************/ /*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 16.241.1 (2017-06-11)" #define Log_PLATFORM_VERSION "SWAD 16.242 (2017-06-11)"
#define CSS_FILE "swad16.235.1.css" #define CSS_FILE "swad16.235.1.css"
#define JS_FILE "swad16.206.3.js" #define JS_FILE "swad16.206.3.js"
// Number of lines (includes comments but not blank lines) has been got with the following command: // Number of lines (includes comments but not blank lines) has been got with the following command:
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*?.h sql/swad*.sql | tail -1 // nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*?.h sql/swad*.sql | tail -1
/* /*
Version 16.242: Jun 11, 2017 Code refactoring related with boxes. (222128 lines)
Version 16.241.2: Jun 11, 2017 Changes in alignment of dates in statistics. (222131 lines) Version 16.241.2: Jun 11, 2017 Changes in alignment of dates in statistics. (222131 lines)
Version 16.241.1: Jun 11, 2017 Fix bug confirming another user's ID. (222132 lines) Version 16.241.1: Jun 11, 2017 Fix bug confirming another user's ID. (222132 lines)
Version 16.241: Jun 11, 2017 New module swad_table to draw tables. (222132 lines) Version 16.241: Jun 11, 2017 New module swad_table to draw tables. (222132 lines)

View File

@ -125,8 +125,8 @@ void Cht_ShowListOfAvailableChatRooms (void)
/***** Table start *****/ /***** Table start *****/
Box_StartBox (NULL,Txt_Chat_rooms,NULL, Box_StartBox (NULL,Txt_Chat_rooms,NULL,
NULL, NULL,
false); // Not closable false); // Not closable
fprintf (Gbl.F.Out,"<ul class=\"LIST_LEFT\">"); fprintf (Gbl.F.Out,"<ul class=\"LIST_LEFT\">");
/***** Title of top level *****/ /***** Title of top level *****/
@ -265,9 +265,9 @@ void Cht_ShowListOfChatRoomsWithUsrs (void)
{ {
/***** Table start *****/ /***** Table start *****/
Box_StartBoxTable (NULL,Txt_Rooms_with_users,NULL, Box_StartBoxTable (NULL,Txt_Rooms_with_users,NULL,
NULL, NULL,
false, // Not closable false, // Not closable
2); 2);
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
"<th class=\"CENTER_MIDDLE LIGHT_BLUE\">" "<th class=\"CENTER_MIDDLE LIGHT_BLUE\">"
"%s" "%s"

View File

@ -100,8 +100,8 @@ void Con_ShowConnectedUsrs (void)
sprintf (Gbl.Title,"%s<div id=\"connected_current_time\"></div>", sprintf (Gbl.Title,"%s<div id=\"connected_current_time\"></div>",
Txt_Connected_users); Txt_Connected_users);
Box_StartBox (NULL,Gbl.Title,Con_PutIconToUpdateConnected, Box_StartBox (NULL,Gbl.Title,Con_PutIconToUpdateConnected,
Hlp_USERS_Connected, Hlp_USERS_Connected,
false); // Not closable false); // Not closable
fprintf (Gbl.F.Out,"<script type=\"text/javascript\">" fprintf (Gbl.F.Out,"<script type=\"text/javascript\">"
"writeLocalDateHMSFromUTC('connected_current_time',%ld," "writeLocalDateHMSFromUTC('connected_current_time',%ld,"
"%u,',&nbsp;',null,false,true,0x7);" "%u,',&nbsp;',null,false,true,0x7);"
@ -163,8 +163,8 @@ void Con_ShowLastClicks (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Last_clicks_in_real_time,NULL, Box_StartBox (NULL,Txt_Last_clicks_in_real_time,NULL,
Hlp_USERS_Connected_last_clicks, Hlp_USERS_Connected_last_clicks,
false); // Not closable false); // Not closable
/***** Get and show last clicks *****/ /***** Get and show last clicks *****/
fprintf (Gbl.F.Out,"<div id=\"lastclicks\"" // Used for AJAX based refresh fprintf (Gbl.F.Out,"<div id=\"lastclicks\"" // Used for AJAX based refresh

View File

@ -138,10 +138,10 @@ void Cty_SeeCtyWithPendingInss (void)
if ((NumCtys = (unsigned) DB_QuerySELECT (Query,&mysql_res,"can not get countries with pending institutions"))) if ((NumCtys = (unsigned) DB_QuerySELECT (Query,&mysql_res,"can not get countries with pending institutions")))
{ {
/***** Write heading *****/ /***** Write heading *****/
Box_StartBoxTable (NULL,Txt_Countries_with_pending_institutions, Box_StartBoxTable (NULL,Txt_Countries_with_pending_institutions,NULL,
NULL,Hlp_SYSTEM_Hierarchy_pending, Hlp_SYSTEM_Hierarchy_pending,
false, // Not closable false, // Not closable
2); 2);
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
"<th class=\"LEFT_MIDDLE\">" "<th class=\"LEFT_MIDDLE\">"
"%s" "%s"
@ -243,12 +243,14 @@ static void Cty_Configuration (bool PrintView)
if (Gbl.CurrentCty.Cty.CtyCod > 0) if (Gbl.CurrentCty.Cty.CtyCod > 0)
{ {
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,NULL, if (PrintView)
PrintView ? NULL : Box_StartBox (NULL,NULL,NULL,
Cty_PutIconToPrint, NULL,
PrintView ? NULL : false); // Not closable
Hlp_COUNTRY_Information, else
false); // Not closable Box_StartBox (NULL,NULL,Cty_PutIconToPrint,
Hlp_COUNTRY_Information,
false); // Not closable
/***** Title *****/ /***** Title *****/
fprintf (Gbl.F.Out,"<div class=\"FRAME_TITLE FRAME_TITLE_BIG\">"); fprintf (Gbl.F.Out,"<div class=\"FRAME_TITLE FRAME_TITLE_BIG\">");
@ -514,9 +516,9 @@ void Cty_ListCountries2 (void)
/***** Table head *****/ /***** Table head *****/
Box_StartBoxTable (NULL,Txt_Countries,Cty_PutIconsListCountries, Box_StartBoxTable (NULL,Txt_Countries,Cty_PutIconsListCountries,
Hlp_SYSTEM_Countries, Hlp_SYSTEM_Countries,
false, // Not closable false, // Not closable
2); 2);
Cty_PutHeadCountriesForSeeing (true); // Order selectable Cty_PutHeadCountriesForSeeing (true); // Order selectable
/***** Write all the countries and their number of users and institutions *****/ /***** Write all the countries and their number of users and institutions *****/
@ -949,8 +951,8 @@ void Cty_EditCountries (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Countries,Cty_PutIconToViewCountries, Box_StartBox (NULL,Txt_Countries,Cty_PutIconToViewCountries,
Hlp_SYSTEM_Countries, Hlp_SYSTEM_Countries,
false); // Not closable false); // Not closable
/***** Put a form to create a new country *****/ /***** Put a form to create a new country *****/
Cty_PutFormToCreateCountry (); Cty_PutFormToCreateCountry ();
@ -1936,9 +1938,9 @@ static void Cty_PutFormToCreateCountry (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBoxTable (NULL,Txt_New_country,NULL, Box_StartBoxTable (NULL,Txt_New_country,NULL,
NULL, NULL,
false, // Not closable false, // Not closable
2); 2);
/***** Write heading *****/ /***** Write heading *****/
Cty_PutHeadCountriesForEdition (); Cty_PutHeadCountriesForEdition ();
@ -2366,9 +2368,9 @@ unsigned Cty_ListCtysFound (const char *Query)
NumCtys,NumCtys == 1 ? Txt_country : NumCtys,NumCtys == 1 ? Txt_country :
Txt_countries); Txt_countries);
Box_StartBoxTable (NULL,Gbl.Title,NULL, Box_StartBoxTable (NULL,Gbl.Title,NULL,
NULL, NULL,
false, // Not closable false, // Not closable
2); 2);
Cty_PutHeadCountriesForSeeing (false); // Order not selectable Cty_PutHeadCountriesForSeeing (false); // Order not selectable
/***** List the countries (one row per country) *****/ /***** List the countries (one row per country) *****/

View File

@ -197,12 +197,14 @@ static void Crs_Configuration (bool PrintView)
} }
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,NULL, if (PrintView)
PrintView ? NULL : Box_StartBox (NULL,NULL,NULL,
Crs_PutIconToPrint, NULL,
PrintView ? NULL : false); // Not closable
Hlp_COURSE_Information, else
false); // Not closable Box_StartBox (NULL,NULL,Crs_PutIconToPrint,
Hlp_COURSE_Information,
false); // Not closable
/***** Title *****/ /***** Title *****/
fprintf (Gbl.F.Out,"<div class=\"FRAME_TITLE FRAME_TITLE_BIG\">"); fprintf (Gbl.F.Out,"<div class=\"FRAME_TITLE FRAME_TITLE_BIG\">");
@ -549,8 +551,8 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
/***** Table start *****/ /***** Table start *****/
Box_StartBox (NULL,Txt_My_courses,NULL, Box_StartBox (NULL,Txt_My_courses,NULL,
Hlp_PROFILE_Courses, Hlp_PROFILE_Courses,
false); // Not closable false); // Not closable
fprintf (Gbl.F.Out,"<ul class=\"LIST_LEFT\">"); fprintf (Gbl.F.Out,"<ul class=\"LIST_LEFT\">");
/***** Write link to platform *****/ /***** Write link to platform *****/
@ -1139,8 +1141,8 @@ static void Crs_ListCourses (void)
/***** Start frame *****/ /***** Start frame *****/
sprintf (Gbl.Title,Txt_Courses_of_DEGREE_X,Gbl.CurrentDeg.Deg.ShrtName); sprintf (Gbl.Title,Txt_Courses_of_DEGREE_X,Gbl.CurrentDeg.Deg.ShrtName);
Box_StartBox (NULL,Gbl.Title,Crs_PutIconsListCourses, Box_StartBox (NULL,Gbl.Title,Crs_PutIconsListCourses,
Hlp_DEGREE_Courses, Hlp_DEGREE_Courses,
false); // Not closable false); // Not closable
if (Gbl.CurrentDeg.NumCrss) // There are courses in the current degree if (Gbl.CurrentDeg.NumCrss) // There are courses in the current degree
{ {
@ -1339,8 +1341,8 @@ void Crs_EditCourses (void)
/***** Start frame *****/ /***** Start frame *****/
sprintf (Gbl.Alert.Txt,Txt_Courses_of_DEGREE_X,Gbl.CurrentDeg.Deg.ShrtName); sprintf (Gbl.Alert.Txt,Txt_Courses_of_DEGREE_X,Gbl.CurrentDeg.Deg.ShrtName);
Box_StartBox (NULL,Gbl.Alert.Txt,Crs_PutIconToViewCourses, Box_StartBox (NULL,Gbl.Alert.Txt,Crs_PutIconToViewCourses,
Hlp_DEGREE_Courses, Hlp_DEGREE_Courses,
false); // Not closable false); // Not closable
/***** Put a form to create or request a new course *****/ /***** Put a form to create or request a new course *****/
Crs_PutFormToCreateCourse (); Crs_PutFormToCreateCourse ();
@ -1645,9 +1647,9 @@ static void Crs_PutFormToCreateCourse (void)
/***** Write heading *****/ /***** Write heading *****/
Box_StartBoxTable (NULL,Txt_New_course,NULL, Box_StartBoxTable (NULL,Txt_New_course,NULL,
NULL, NULL,
false, // Not closable false, // Not closable
2); 2);
Crs_PutHeadCoursesForEdition (); Crs_PutHeadCoursesForEdition ();
/***** Column to remove course, disabled here *****/ /***** Column to remove course, disabled here *****/
@ -3005,9 +3007,9 @@ void Crs_GetAndWriteCrssOfAUsr (const struct UsrData *UsrDat,Rol_Role_t Role)
{ {
/* Start frame and table */ /* Start frame and table */
Box_StartBoxTable ("100%",NULL,NULL, Box_StartBoxTable ("100%",NULL,NULL,
NULL, NULL,
false, // Not closable false, // Not closable
2); 2);
/* Heading row */ /* Heading row */
sprintf (Gbl.Title,Txt_USER_in_COURSE, sprintf (Gbl.Title,Txt_USER_in_COURSE,
@ -3092,9 +3094,9 @@ unsigned Crs_ListCrssFound (const char *Query)
NumCrss,(NumCrss == 1) ? Txt_course : NumCrss,(NumCrss == 1) ? Txt_course :
Txt_courses); Txt_courses);
Box_StartBoxTable (NULL,Gbl.Title,NULL, Box_StartBoxTable (NULL,Gbl.Title,NULL,
NULL, NULL,
false, // Not closable false, // Not closable
2); 2);
/* Heading row */ /* Heading row */
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -3331,8 +3333,8 @@ void Crs_AskRemoveOldCrss (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Eliminate_old_courses,NULL, Box_StartBox (NULL,Txt_Eliminate_old_courses,NULL,
Hlp_SYSTEM_Hierarchy_eliminate_old_courses, Hlp_SYSTEM_Hierarchy_eliminate_old_courses,
false); // Not closable false); // Not closable
/***** Form to request number of months without clicks *****/ /***** Form to request number of months without clicks *****/
fprintf (Gbl.F.Out,"<label class=\"%s\">%s&nbsp;" fprintf (Gbl.F.Out,"<label class=\"%s\">%s&nbsp;"

View File

@ -104,8 +104,8 @@ void Dat_PutBoxToSelectDateFormat (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Dates,Dat_PutIconsDateFormat, Box_StartBox (NULL,Txt_Dates,Dat_PutIconsDateFormat,
Hlp_PROFILE_Preferences_dates, Hlp_PROFILE_Preferences_dates,
false); // Not closable false); // Not closable
/***** Form with list of options *****/ /***** Form with list of options *****/
Act_FormStart (ActChgDatFmt); Act_FormStart (ActChgDatFmt);

View File

@ -171,9 +171,9 @@ void Deg_SeeDegWithPendingCrss (void)
{ {
/***** Write heading *****/ /***** Write heading *****/
Box_StartBoxTable (NULL,Txt_Degrees_with_pending_courses,NULL, Box_StartBoxTable (NULL,Txt_Degrees_with_pending_courses,NULL,
Hlp_SYSTEM_Hierarchy_pending, Hlp_SYSTEM_Hierarchy_pending,
false, // Not closable false, // Not closable
2); 2);
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
"<th class=\"LEFT_MIDDLE\">" "<th class=\"LEFT_MIDDLE\">"
"%s" "%s"
@ -299,12 +299,14 @@ static void Deg_Configuration (bool PrintView)
if (Gbl.CurrentDeg.Deg.DegCod > 0) if (Gbl.CurrentDeg.Deg.DegCod > 0)
{ {
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,NULL, if (PrintView)
PrintView ? NULL : Box_StartBox (NULL,NULL,NULL,
Deg_PutIconsToPrintAndUpload, NULL,
PrintView ? NULL : false); // Not closable
Hlp_DEGREE_Information, else
false); // Not closable Box_StartBox (NULL,NULL,Deg_PutIconsToPrintAndUpload,
Hlp_DEGREE_Information,
false); // Not closable
/***** Title *****/ /***** Title *****/
fprintf (Gbl.F.Out,"<div class=\"FRAME_TITLE FRAME_TITLE_BIG\">"); fprintf (Gbl.F.Out,"<div class=\"FRAME_TITLE FRAME_TITLE_BIG\">");
@ -943,9 +945,9 @@ static void Deg_PutFormToCreateDegree (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBoxTable (NULL,Txt_New_degree,NULL, Box_StartBoxTable (NULL,Txt_New_degree,NULL,
NULL, NULL,
false, // Not closable false, // Not closable
2); 2);
/***** Table head *****/ /***** Table head *****/
Deg_PutHeadDegreesForEdition (); Deg_PutHeadDegreesForEdition ();
@ -1178,8 +1180,8 @@ static void Deg_ListDegrees (void)
/***** Start frame *****/ /***** Start frame *****/
sprintf (Gbl.Title,Txt_Degrees_of_CENTRE_X,Gbl.CurrentCtr.Ctr.ShrtName); sprintf (Gbl.Title,Txt_Degrees_of_CENTRE_X,Gbl.CurrentCtr.Ctr.ShrtName);
Box_StartBox (NULL,Gbl.Title,Deg_PutIconsListDegrees, Box_StartBox (NULL,Gbl.Title,Deg_PutIconsListDegrees,
Hlp_CENTRE_Degrees, Hlp_CENTRE_Degrees,
false); // Not closable false); // Not closable
if (Gbl.CurrentCtr.Ctr.Degs.Num) // There are degrees in the current centre if (Gbl.CurrentCtr.Ctr.Degs.Num) // There are degrees in the current centre
{ {
@ -1358,8 +1360,8 @@ void Deg_EditDegrees (void)
sprintf (Gbl.Title,Txt_Degrees_of_CENTRE_X, sprintf (Gbl.Title,Txt_Degrees_of_CENTRE_X,
Gbl.CurrentCtr.Ctr.FullName); Gbl.CurrentCtr.Ctr.FullName);
Box_StartBox (NULL,Gbl.Title,Deg_PutIconsEditingDegrees, Box_StartBox (NULL,Gbl.Title,Deg_PutIconsEditingDegrees,
Hlp_CENTRE_Degrees, Hlp_CENTRE_Degrees,
false); // Not closable false); // Not closable
if (Gbl.Degs.DegTypes.Num) if (Gbl.Degs.DegTypes.Num)
{ {
@ -2579,9 +2581,9 @@ unsigned Deg_ListDegsFound (const char *Query)
NumDegs,(NumDegs == 1) ? Txt_degree : NumDegs,(NumDegs == 1) ? Txt_degree :
Txt_degrees); Txt_degrees);
Box_StartBoxTable (NULL,Gbl.Title,NULL, Box_StartBoxTable (NULL,Gbl.Title,NULL,
NULL, NULL,
false, // Not closable false, // Not closable
2); 2);
Deg_PutHeadDegreesForSeeing (); Deg_PutHeadDegreesForSeeing ();
/***** List the degrees (one row per degree) *****/ /***** List the degrees (one row per degree) *****/

View File

@ -211,13 +211,13 @@ static void DT_ListDegreeTypes (Act_Action_t NextAction,DT_Order_t SelectedOrder
{ {
case ActSeeDegTyp: case ActSeeDegTyp:
Box_StartBox (NULL,Txt_Types_of_degree,DT_PutIconsListDegTypes, Box_StartBox (NULL,Txt_Types_of_degree,DT_PutIconsListDegTypes,
Hlp_CENTRE_DegreeTypes, Hlp_CENTRE_DegreeTypes,
false); // Not closable false); // Not closable
break; break;
case ActSeeUseGbl: case ActSeeUseGbl:
Box_StartBox (NULL,Txt_Types_of_degree,DT_PutIconToEditDegTypes, Box_StartBox (NULL,Txt_Types_of_degree,DT_PutIconToEditDegTypes,
Hlp_STATS_Figures_types_of_degree, Hlp_STATS_Figures_types_of_degree,
false); // Not closable false); // Not closable
break; break;
default: // Bad call default: // Bad call
return; return;
@ -264,10 +264,9 @@ void DT_EditDegreeTypes (void)
DT_GetListDegreeTypes (Sco_SCOPE_SYS,DT_ORDER_BY_DEGREE_TYPE); DT_GetListDegreeTypes (Sco_SCOPE_SYS,DT_ORDER_BY_DEGREE_TYPE);
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Types_of_degree, Box_StartBox (NULL,Txt_Types_of_degree,DT_PutIconToViewDegreeTypesWhenEditing,
DT_PutIconToViewDegreeTypesWhenEditing, Hlp_CENTRE_DegreeTypes_edit,
Hlp_CENTRE_DegreeTypes_edit, false); // Not closable
false); // Not closable
/***** Put a form to create a new degree type *****/ /***** Put a form to create a new degree type *****/
DT_PutFormToCreateDegreeType (); DT_PutFormToCreateDegreeType ();
@ -438,9 +437,9 @@ void DT_PutFormToCreateDegreeType (void)
/***** Start of frame *****/ /***** Start of frame *****/
Box_StartBoxTable (NULL,Txt_New_type_of_degree,NULL, Box_StartBoxTable (NULL,Txt_New_type_of_degree,NULL,
NULL, NULL,
false, // Not closable false, // Not closable
2); 2);
/***** Write heading *****/ /***** Write heading *****/
DT_PutHeadDegreeTypesForEdition (); DT_PutHeadDegreeTypesForEdition ();

View File

@ -102,11 +102,11 @@ void Dpt_SeeDepts (void)
/***** Table head *****/ /***** Table head *****/
Box_StartBoxTable (NULL,Txt_Departments, Box_StartBoxTable (NULL,Txt_Departments,
Gbl.Usrs.Me.Role.Logged == Rol_SYS_ADM ? Dpt_PutIconToEditDpts : Gbl.Usrs.Me.Role.Logged == Rol_SYS_ADM ? Dpt_PutIconToEditDpts :
NULL, NULL,
Hlp_INSTITUTION_Departments, Hlp_INSTITUTION_Departments,
false, // Not closable false, // Not closable
2); 2);
fprintf (Gbl.F.Out,"<tr>"); fprintf (Gbl.F.Out,"<tr>");
for (Order = Dpt_ORDER_BY_DEPARTMENT; for (Order = Dpt_ORDER_BY_DEPARTMENT;
Order <= Dpt_ORDER_BY_NUM_TCHS; Order <= Dpt_ORDER_BY_NUM_TCHS;
@ -488,9 +488,9 @@ static void Dpt_ListDepartmentsForEdition (void)
unsigned NumIns; unsigned NumIns;
Box_StartBoxTable (NULL,Txt_Departments,NULL, Box_StartBoxTable (NULL,Txt_Departments,NULL,
Hlp_INSTITUTION_Departments_edit, Hlp_INSTITUTION_Departments_edit,
false, // Not closable false, // Not closable
2); 2);
/***** Table head *****/ /***** Table head *****/
Dpt_PutHeadDepartments (); Dpt_PutHeadDepartments ();
@ -892,9 +892,9 @@ static void Dpt_PutFormToCreateDepartment (void)
/***** Start of frame *****/ /***** Start of frame *****/
Box_StartBoxTable (NULL,Txt_New_department,NULL, Box_StartBoxTable (NULL,Txt_New_department,NULL,
Hlp_INSTITUTION_Departments_edit, Hlp_INSTITUTION_Departments_edit,
false, // Not closable false, // Not closable
2); 2);
/***** Write heading *****/ /***** Write heading *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"

View File

@ -142,8 +142,8 @@ void Dup_ListDuplicateUsrs (void)
/***** Start frame with list of possible duplicate users *****/ /***** Start frame with list of possible duplicate users *****/
Box_StartBox (NULL,Txt_Possibly_duplicate_users,NULL, Box_StartBox (NULL,Txt_Possibly_duplicate_users,NULL,
Hlp_USERS_Duplicates_possibly_duplicate_users, Hlp_USERS_Duplicates_possibly_duplicate_users,
false); // Not closable false); // Not closable
/***** Build query *****/ /***** Build query *****/
sprintf (Query,"SELECT UsrCod,COUNT(*) AS N,MIN(UNIX_TIMESTAMP(InformTime)) AS T" sprintf (Query,"SELECT UsrCod,COUNT(*) AS N,MIN(UNIX_TIMESTAMP(InformTime)) AS T"
@ -262,8 +262,8 @@ static void Dup_ListSimilarUsrs (void)
/***** Start frame with list of possible duplicate users *****/ /***** Start frame with list of possible duplicate users *****/
Box_StartBox (NULL,Txt_Similar_users,NULL, Box_StartBox (NULL,Txt_Similar_users,NULL,
Hlp_USERS_Duplicates_similar_users, Hlp_USERS_Duplicates_similar_users,
false); // Not closable false); // Not closable
/***** Build query *****/ /***** Build query *****/
if (Gbl.Usrs.Other.UsrDat.Surname1[0] && if (Gbl.Usrs.Other.UsrDat.Surname1[0] &&

View File

@ -379,8 +379,8 @@ void Enr_ReqAcceptRegisterInCrs (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Enrolment,NULL, Box_StartBox (NULL,Txt_Enrolment,NULL,
Hlp_USERS_SignUp_confirm_enrolment, Hlp_USERS_SignUp_confirm_enrolment,
false); // Not closable false); // Not closable
/***** Show message *****/ /***** Show message *****/
sprintf (Gbl.Alert.Txt,Txt_A_teacher_or_administrator_has_enroled_you_as_X_into_the_course_Y, sprintf (Gbl.Alert.Txt,Txt_A_teacher_or_administrator_has_enroled_you_as_X_into_the_course_Y,
@ -708,8 +708,8 @@ static void Enr_ShowFormRegRemSeveralUsrs (Rol_Role_t Role)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Title,NULL, Box_StartBox (NULL,Title,NULL,
Hlp_USERS_Administration_administer_multiple_users, Hlp_USERS_Administration_administer_multiple_users,
false); // Not closable false); // Not closable
/***** Step 1: List of students to be enroled / removed *****/ /***** Step 1: List of students to be enroled / removed *****/
fprintf (Gbl.F.Out,"<div class=\"%s LEFT_MIDDLE\">" fprintf (Gbl.F.Out,"<div class=\"%s LEFT_MIDDLE\">"
@ -799,8 +799,8 @@ void Enr_AskRemoveOldUsrs (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Eliminate_old_users,NULL, Box_StartBox (NULL,Txt_Eliminate_old_users,NULL,
NULL, NULL,
false); // Not closable false); // Not closable
/***** Form to request number of months without clicks *****/ /***** Form to request number of months without clicks *****/
fprintf (Gbl.F.Out,"<label class=\"%s\">%s&nbsp;", fprintf (Gbl.F.Out,"<label class=\"%s\">%s&nbsp;",
@ -1856,8 +1856,8 @@ void Enr_AskRemAllStdsThisCrs (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Remove_all_students,NULL, Box_StartBox (NULL,Txt_Remove_all_students,NULL,
Hlp_USERS_Administration_remove_all_students, Hlp_USERS_Administration_remove_all_students,
false); // Not closable false); // Not closable
if (Gbl.CurrentCrs.Crs.NumUsrs[Rol_STD]) if (Gbl.CurrentCrs.Crs.NumUsrs[Rol_STD])
{ {
@ -2309,8 +2309,8 @@ static void Enr_ShowEnrolmentRequestsGivenRoles (unsigned RolesSelected)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox ("100%",Txt_Enrolment_requests,NULL, Box_StartBox ("100%",Txt_Enrolment_requests,NULL,
Hlp_USERS_Requests, Hlp_USERS_Requests,
false); // Not closable false); // Not closable
/***** Selection of scope and roles *****/ /***** Selection of scope and roles *****/
/* Start form and table */ /* Start form and table */
@ -3128,8 +3128,8 @@ static void Enr_ReqAnotherUsrIDToRegisterRemove (Rol_Role_t Role)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Administer_one_user,NULL, Box_StartBox (NULL,Txt_Administer_one_user,NULL,
Hlp_USERS_Administration_administer_one_user, Hlp_USERS_Administration_administer_one_user,
false); // Not closable false); // Not closable
/***** Write form to request another user's ID *****/ /***** Write form to request another user's ID *****/
switch (Role) switch (Role)

View File

@ -648,13 +648,13 @@ static void Exa_ListExamAnnouncements (Exa_TypeViewExamAnnouncement_t TypeViewEx
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL, Box_StartBox (NULL,
(Gbl.ExamAnns.HighlightExaCod > 0 || (Gbl.ExamAnns.HighlightExaCod > 0 ||
Gbl.ExamAnns.HighlightDate[0]) ? Txt_All_announcements_of_exams : Gbl.ExamAnns.HighlightDate[0]) ? Txt_All_announcements_of_exams :
Txt_Announcements_of_exams, Txt_Announcements_of_exams,
ICanEdit ? Exa_PutIconToCreateNewExamAnnouncement : ICanEdit ? Exa_PutIconToCreateNewExamAnnouncement :
NULL, NULL,
Hlp_ASSESSMENT_Announcements, Hlp_ASSESSMENT_Announcements,
false); // Not closable false); // Not closable
/***** The result of the query may be empty *****/ /***** The result of the query may be empty *****/
if (!NumExaAnns) if (!NumExaAnns)
@ -1072,12 +1072,12 @@ static void Exa_ShowExamAnnouncement (Exa_TypeViewExamAnnouncement_t TypeViewExa
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox ("625px",NULL, Box_StartBox ("625px",NULL,
TypeViewExamAnnouncement == Exa_NORMAL_VIEW ? Exa_PutIconsExamAnnouncement : TypeViewExamAnnouncement == Exa_NORMAL_VIEW ? Exa_PutIconsExamAnnouncement :
NULL, NULL,
TypeViewExamAnnouncement == Exa_FORM_VIEW ? ((Gbl.ExamAnns.ExaDat.ExaCod > 0) ? Hlp_ASSESSMENT_Announcements_edit_announcement : TypeViewExamAnnouncement == Exa_FORM_VIEW ? ((Gbl.ExamAnns.ExaDat.ExaCod > 0) ? Hlp_ASSESSMENT_Announcements_edit_announcement :
Hlp_ASSESSMENT_Announcements_new_announcement) : Hlp_ASSESSMENT_Announcements_new_announcement) :
NULL, NULL,
false); // Not closable false); // Not closable
if (TypeViewExamAnnouncement == Exa_FORM_VIEW) if (TypeViewExamAnnouncement == Exa_FORM_VIEW)
{ {

View File

@ -3121,8 +3121,8 @@ void Brw_AskEditWorksCrs (void)
/***** Draw class photos to select users *****/ /***** Draw class photos to select users *****/
Box_StartBox (NULL,Txt_Users,NULL, Box_StartBox (NULL,Txt_Users,NULL,
Hlp_FILES_Homework_for_teachers, Hlp_FILES_Homework_for_teachers,
false); // Not closable false); // Not closable
/***** Show form to select the groups *****/ /***** Show form to select the groups *****/
Grp_ShowFormToSelectSeveralGroups (ActReqAsgWrkCrs); Grp_ShowFormToSelectSeveralGroups (ActReqAsgWrkCrs);
@ -3218,10 +3218,10 @@ static void Brw_ShowFileBrowsersAsgWrkCrs (void)
/***** Header of the table with the list of users *****/ /***** Header of the table with the list of users *****/
Box_StartBoxTable ("100%",Txt_Assignments_and_other_works, Box_StartBoxTable ("100%",Txt_Assignments_and_other_works,
Brw_PutIconShowFigure, Brw_PutIconShowFigure,
Hlp_FILES_Homework_for_teachers, Hlp_FILES_Homework_for_teachers,
false, // Not closable false, // Not closable
0); 0);
/***** List the assignments and works of the selected users *****/ /***** List the assignments and works of the selected users *****/
Ptr = Gbl.Usrs.Select[Rol_UNK]; Ptr = Gbl.Usrs.Select[Rol_UNK];
@ -3690,9 +3690,9 @@ static void Brw_ShowFileBrowser (void)
sprintf (FileBrowserSectionId,"file_browser_%u",Gbl.FileBrowser.Id); sprintf (FileBrowserSectionId,"file_browser_%u",Gbl.FileBrowser.Id);
Lay_StartSection (FileBrowserSectionId); Lay_StartSection (FileBrowserSectionId);
Box_StartBox ("100%",Brw_TitleOfFileBrowser[Gbl.FileBrowser.Type], Box_StartBox ("100%",Brw_TitleOfFileBrowser[Gbl.FileBrowser.Type],
Brw_PutIconsFileBrowser, Brw_PutIconsFileBrowser,
Brw_HelpOfFileBrowser[Gbl.FileBrowser.Type], Brw_HelpOfFileBrowser[Gbl.FileBrowser.Type],
false); // Not closable false); // Not closable
/***** Subtitle *****/ /***** Subtitle *****/
Brw_WriteSubtitleOfFileBrowser (); Brw_WriteSubtitleOfFileBrowser ();
@ -7986,8 +7986,8 @@ static void Brw_PutFormToCreateAFolder (const char FileNameToShow[NAME_MAX + 1])
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Create_folder,NULL, Box_StartBox (NULL,Txt_Create_folder,NULL,
NULL, NULL,
false); // Not closable false); // Not closable
sprintf (Gbl.Alert.Txt,Txt_You_can_create_a_new_folder_inside_the_folder_X, sprintf (Gbl.Alert.Txt,Txt_You_can_create_a_new_folder_inside_the_folder_X,
FileNameToShow); FileNameToShow);
Ale_ShowAlert (Ale_INFO,Gbl.Alert.Txt); Ale_ShowAlert (Ale_INFO,Gbl.Alert.Txt);
@ -8025,8 +8025,8 @@ static void Brw_PutFormToUploadFilesUsingDropzone (const char *FileNameToShow)
/***** Start frame *****/ /***** Start frame *****/
fprintf (Gbl.F.Out,"<div id=\"dropzone-upload\">"); fprintf (Gbl.F.Out,"<div id=\"dropzone-upload\">");
Box_StartBox ("95%",Txt_Upload_files,NULL, Box_StartBox ("95%",Txt_Upload_files,NULL,
NULL, NULL,
false); // Not closable false); // Not closable
/***** Help message *****/ /***** Help message *****/
sprintf (Gbl.Alert.Txt,Txt_or_you_can_upload_new_files_to_the_folder_X, sprintf (Gbl.Alert.Txt,Txt_or_you_can_upload_new_files_to_the_folder_X,
@ -8088,8 +8088,8 @@ static void Brw_PutFormToUploadOneFileClassic (const char *FileNameToShow)
/***** Start frame *****/ /***** Start frame *****/
fprintf (Gbl.F.Out,"<div id=\"classic-upload\" style=\"display:none;\">"); fprintf (Gbl.F.Out,"<div id=\"classic-upload\" style=\"display:none;\">");
Box_StartBox (NULL,Txt_Upload_file,NULL, Box_StartBox (NULL,Txt_Upload_file,NULL,
NULL, NULL,
false); // Not closable false); // Not closable
/***** Help message *****/ /***** Help message *****/
sprintf (Gbl.Alert.Txt,Txt_or_you_can_upload_a_new_file_to_the_folder_X, sprintf (Gbl.Alert.Txt,Txt_or_you_can_upload_a_new_file_to_the_folder_X,
@ -8132,8 +8132,8 @@ static void Brw_PutFormToPasteAFileOrFolder (const char *FileNameToShow)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Paste,NULL, Box_StartBox (NULL,Txt_Paste,NULL,
NULL, NULL,
false); // Not closable false); // Not closable
/***** Help message *****/ /***** Help message *****/
sprintf (Gbl.Alert.Txt,Txt_or_you_can_make_a_file_copy_to_the_folder_X, sprintf (Gbl.Alert.Txt,Txt_or_you_can_make_a_file_copy_to_the_folder_X,
@ -8169,8 +8169,8 @@ static void Brw_PutFormToCreateALink (const char *FileNameToShow)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Create_link,NULL, Box_StartBox (NULL,Txt_Create_link,NULL,
NULL, NULL,
false); // Not closable false); // Not closable
/***** Help message *****/ /***** Help message *****/
sprintf (Gbl.Alert.Txt,Txt_or_you_can_create_a_new_link_inside_the_folder_X, sprintf (Gbl.Alert.Txt,Txt_or_you_can_create_a_new_link_inside_the_folder_X,
@ -11341,9 +11341,9 @@ unsigned Brw_ListDocsFound (const char *Query,
NumDocs,(NumDocs == 1) ? TitleSingular : NumDocs,(NumDocs == 1) ? TitleSingular :
TitlePlural); TitlePlural);
Box_StartBoxTable (NULL,Gbl.Title,NULL, Box_StartBoxTable (NULL,Gbl.Title,NULL,
NULL, NULL,
false, // Not closable false, // Not closable
2); 2);
/* Heading row */ /* Heading row */
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -11701,8 +11701,8 @@ void Brw_AskRemoveOldFiles (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Remove_old_files,NULL, Box_StartBox (NULL,Txt_Remove_old_files,NULL,
NULL, NULL,
false); // Not closable false); // Not closable
/***** Form to request number of months (to remove files older) *****/ /***** Form to request number of months (to remove files older) *****/
fprintf (Gbl.F.Out,"<label class=\"%s\">%s&nbsp;", fprintf (Gbl.F.Out,"<label class=\"%s\">%s&nbsp;",

View File

@ -133,9 +133,9 @@ void Fol_SuggestUsrsToFollowMainZone (void)
{ {
/***** Start frame *****/ /***** Start frame *****/
Box_StartBoxTable ("560px",Txt_Who_to_follow,Fol_PutIconsWhoToFollow, Box_StartBoxTable ("560px",Txt_Who_to_follow,Fol_PutIconsWhoToFollow,
Hlp_SOCIAL_Profiles_who_to_follow, Hlp_SOCIAL_Profiles_who_to_follow,
false, // Not closable false, // Not closable
2); 2);
/***** Initialize structure with user's data *****/ /***** Initialize structure with user's data *****/
Usr_UsrDataConstructor (&UsrDat); Usr_UsrDataConstructor (&UsrDat);
@ -689,9 +689,9 @@ static void Fol_ListFollowingUsr (struct UsrData *UsrDat)
/***** Start listing *****/ /***** Start listing *****/
Box_StartBoxTable ("560px",Txt_Following,NULL, Box_StartBoxTable ("560px",Txt_Following,NULL,
NULL, NULL,
false, // Not closable false, // Not closable
2); 2);
for (NumUsr = 0; for (NumUsr = 0;
NumUsr < NumUsrs; NumUsr < NumUsrs;
@ -775,9 +775,9 @@ static void Fol_ListFollowersUsr (struct UsrData *UsrDat)
/***** Start listing *****/ /***** Start listing *****/
Box_StartBoxTable ("560px",Txt_Followers,NULL, Box_StartBoxTable ("560px",Txt_Followers,NULL,
NULL, NULL,
false, // Not closable false, // Not closable
2); 2);
for (NumUsr = 0; for (NumUsr = 0;
NumUsr < NumUsrs; NumUsr < NumUsrs;

View File

@ -1011,8 +1011,8 @@ static void For_ShowPostsOfAThread (Ale_AlertType_t AlertType,const char *Messag
/***** Start frame *****/ /***** Start frame *****/
sprintf (FrameTitle,"%s: %s",Txt_Thread,Thr.Subject); sprintf (FrameTitle,"%s: %s",Txt_Thread,Thr.Subject);
Box_StartBox (NULL,FrameTitle,For_PutIconNewPost, Box_StartBox (NULL,FrameTitle,For_PutIconNewPost,
Hlp_SOCIAL_Forums_posts, Hlp_SOCIAL_Forums_posts,
false); // Not closable false); // Not closable
/***** Get posts of a thread from database *****/ /***** Get posts of a thread from database *****/
sprintf (Query,"SELECT PstCod,UNIX_TIMESTAMP(CreatTime)" sprintf (Query,"SELECT PstCod,UNIX_TIMESTAMP(CreatTime)"
@ -1608,8 +1608,8 @@ static void For_ShowForumList (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Forums,For_PutIconsForums, Box_StartBox (NULL,Txt_Forums,For_PutIconsForums,
Hlp_SOCIAL_Forums, Hlp_SOCIAL_Forums,
false); // Not closable false); // Not closable
/***** Put a form to select which forums *****/ /***** Put a form to select which forums *****/
For_PutFormWhichForums (); For_PutFormWhichForums ();
@ -2575,8 +2575,8 @@ static void For_ShowForumThreadsHighlightingOneThread (long ThrCodHighlighted,
/***** Start frame for threads of this forum *****/ /***** Start frame for threads of this forum *****/
sprintf (FrameTitle,"%s: %s",Txt_Forum,ForumName); sprintf (FrameTitle,"%s: %s",Txt_Forum,ForumName);
Box_StartBox (NULL,FrameTitle,For_PutIconNewThread, Box_StartBox (NULL,FrameTitle,For_PutIconNewThread,
Hlp_SOCIAL_Forums_threads, Hlp_SOCIAL_Forums_threads,
false); // Not closable false); // Not closable
/***** List the threads *****/ /***** List the threads *****/
if (NumThrs) if (NumThrs)
@ -3859,13 +3859,14 @@ static void For_WriteFormForumPst (bool IsReply,const char *Subject)
extern const char *Txt_Send; extern const char *Txt_Send;
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL, if (IsReply)
IsReply ? Txt_New_post : Box_StartBox (NULL,Txt_New_post,NULL,
Txt_New_thread, Hlp_SOCIAL_Forums_new_post,
NULL, false); // Not closable
IsReply ? Hlp_SOCIAL_Forums_new_post : else
Hlp_SOCIAL_Forums_new_thread, Box_StartBox (NULL,Txt_New_thread,NULL,
false); // Not closable Hlp_SOCIAL_Forums_new_thread,
false); // Not closable
/***** Start form *****/ /***** Start form *****/
if (IsReply) // Form to write a reply to a post of an existing thread if (IsReply) // Form to write a reply to a post of an existing thread

View File

@ -267,10 +267,9 @@ 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;
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Types_of_group, Box_StartBox (NULL,Txt_Types_of_group,Grp_PutIconsEditingGroupTypes,
Grp_PutIconsEditingGroupTypes, Hlp_USERS_Groups,
Hlp_USERS_Groups, false); // Not closable
false); // Not closable
/***** Put a form to create a new group type *****/ /***** Put a form to create a new group type *****/
Grp_PutFormToCreateGroupType (); Grp_PutFormToCreateGroupType ();
@ -301,8 +300,8 @@ static void Grp_EditGroups (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Groups,Grp_PutIconsEditingGroups, Box_StartBox (NULL,Txt_Groups,Grp_PutIconsEditingGroups,
Hlp_USERS_Groups, Hlp_USERS_Groups,
false); // Not closable false); // Not closable
/***** Put a form to create a new group *****/ /***** Put a form to create a new group *****/
Grp_PutFormToCreateGroup (); Grp_PutFormToCreateGroup ();
@ -366,11 +365,10 @@ void Grp_ShowFormToSelectSeveralGroups (Act_Action_t NextAction)
Gbl.Usrs.Me.Role.Logged == Rol_SYS_ADM); Gbl.Usrs.Me.Role.Logged == Rol_SYS_ADM);
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Groups, Box_StartBox (NULL,Txt_Groups,ICanEdit ? Grp_PutIconToEditGroups :
ICanEdit ? Grp_PutIconToEditGroups : NULL,
NULL, Hlp_USERS_Groups,
Hlp_USERS_Groups, true); // Closable
true); // Closable
/***** Start form to update the students listed /***** Start form to update the students listed
depending on the groups selected *****/ depending on the groups selected *****/
@ -1727,11 +1725,10 @@ void Grp_ShowLstGrpsToChgMyGrps (void)
} }
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_My_groups, Box_StartBox (NULL,Txt_My_groups,ICanEdit ? Grp_PutIconToEditGroups :
ICanEdit ? Grp_PutIconToEditGroups : NULL,
NULL, Hlp_USERS_Groups,
Hlp_USERS_Groups, false); // Not closable
false); // Not closable
if (Gbl.CurrentCrs.Grps.NumGrps) // This course has groups if (Gbl.CurrentCrs.Grps.NumGrps) // This course has groups
{ {
@ -1947,9 +1944,9 @@ void Grp_ShowLstGrpsToChgOtherUsrsGrps (long UsrCod)
/***** Start table *****/ /***** Start table *****/
Box_StartBoxTable (NULL,Txt_Groups,NULL, Box_StartBoxTable (NULL,Txt_Groups,NULL,
Hlp_USERS_Groups, Hlp_USERS_Groups,
false, // Not closable false, // Not closable
0); 0);
/***** List to select the groups the user belongs to *****/ /***** List to select the groups the user belongs to *****/
for (NumGrpTyp = 0; for (NumGrpTyp = 0;
@ -2351,9 +2348,9 @@ static void Grp_PutFormToCreateGroupType (void)
/***** Start of frame *****/ /***** Start of frame *****/
Box_StartBoxTable (NULL,Txt_New_type_of_group,NULL, Box_StartBoxTable (NULL,Txt_New_type_of_group,NULL,
NULL, NULL,
false, // Not closable false, // Not closable
2); 2);
/***** Write heading *****/ /***** Write heading *****/
Grp_WriteHeadingGroupTypes (); Grp_WriteHeadingGroupTypes ();
@ -2467,9 +2464,9 @@ static void Grp_PutFormToCreateGroup (void)
/***** Start of frame *****/ /***** Start of frame *****/
Box_StartBoxTable (NULL,Txt_New_group,NULL, Box_StartBoxTable (NULL,Txt_New_group,NULL,
NULL, NULL,
false, // Not closable false, // Not closable
2); 2);
/***** Write heading *****/ /***** Write heading *****/
Grp_WriteHeadingGroups (); Grp_WriteHeadingGroups ();

View File

@ -129,11 +129,11 @@ void Hlp_ShowHelpWhatWouldYouLikeToDo (void)
} }
/***** Contextual buttons *****/ /***** Contextual buttons *****/
/* Start table */ /* Start box and table */
Box_StartBoxTable (NULL,Txt_What_would_you_like_to_do,NULL, Box_StartBoxTable (NULL,Txt_What_would_you_like_to_do,NULL,
NULL, NULL,
true, // Closable true, // Closable
2); 2);
if (Gbl.Usrs.Me.Logged) // I am logged if (Gbl.Usrs.Me.Logged) // I am logged
{ {
@ -253,7 +253,7 @@ void Hlp_ShowHelpWhatWouldYouLikeToDo (void)
Btn_CREATE_BUTTON,Txt_Create_account); Btn_CREATE_BUTTON,Txt_Create_account);
} }
/* End table */ /* End table and box */
Box_EndBoxTable (); Box_EndBoxTable ();
} }

View File

@ -102,10 +102,10 @@ void Hld_SeeHolidays (void)
/***** Table head *****/ /***** Table head *****/
Box_StartBox (NULL,Txt_Holidays, Box_StartBox (NULL,Txt_Holidays,
Gbl.Usrs.Me.Role.Logged >= Rol_INS_ADM ? Hld_PutIconToEditHlds : Gbl.Usrs.Me.Role.Logged >= Rol_INS_ADM ? Hld_PutIconToEditHlds :
NULL, NULL,
Hlp_INSTITUTION_Holidays, Hlp_INSTITUTION_Holidays,
false); // Not closable false); // Not closable
if (Gbl.Hlds.Num) if (Gbl.Hlds.Num)
{ {
Tbl_StartTableWideMargin (2); Tbl_StartTableWideMargin (2);
@ -503,9 +503,9 @@ static void Hld_ListHolidaysForEdition (void)
Hld_HolidayType_t HolidayType; Hld_HolidayType_t HolidayType;
Box_StartBoxTable (NULL,Txt_Holidays,NULL, Box_StartBoxTable (NULL,Txt_Holidays,NULL,
Hlp_INSTITUTION_Holidays_edit, Hlp_INSTITUTION_Holidays_edit,
false, // Not closable false, // Not closable
2); 2);
/***** Table head *****/ /***** Table head *****/
Hld_PutHeadHolidays (); Hld_PutHeadHolidays ();
@ -963,9 +963,9 @@ static void Hld_PutFormToCreateHoliday (void)
/***** Start of frame *****/ /***** Start of frame *****/
Box_StartBoxTable (NULL,Txt_New_holiday,NULL, Box_StartBoxTable (NULL,Txt_New_holiday,NULL,
Hlp_INSTITUTION_Holidays_edit, Hlp_INSTITUTION_Holidays_edit,
false, // Not closable false, // Not closable
2); 2);
/***** Write heading *****/ /***** Write heading *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"

View File

@ -77,9 +77,9 @@ void Ico_PutIconsToSelectIconSet (void)
extern const char *Txt_Icons; extern const char *Txt_Icons;
Ico_IconSet_t IconSet; Ico_IconSet_t IconSet;
Box_StartBox (NULL,Txt_Icons, Box_StartBox (NULL,Txt_Icons,Ico_PutIconsIconSet,
Ico_PutIconsIconSet,Hlp_PROFILE_Preferences_icons, Hlp_PROFILE_Preferences_icons,
false); // Not closable false); // Not closable
fprintf (Gbl.F.Out,"<div class=\"PREF_CONTAINER\">"); fprintf (Gbl.F.Out,"<div class=\"PREF_CONTAINER\">");
for (IconSet = (Ico_IconSet_t) 0; for (IconSet = (Ico_IconSet_t) 0;
IconSet < Ico_NUM_ICON_SETS; IconSet < Ico_NUM_ICON_SETS;

View File

@ -108,8 +108,8 @@ void Ind_ReqIndicatorsCourses (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Indicators_of_courses,NULL, Box_StartBox (NULL,Txt_Indicators_of_courses,NULL,
Hlp_STATS_Indicators, Hlp_STATS_Indicators,
false); // Not closable false); // Not closable
/***** Form to update indicators *****/ /***** Form to update indicators *****/
/* Start form and table */ /* Start form and table */

View File

@ -443,10 +443,10 @@ void Inf_ShowInfo (void)
if (ShowWarningNoInfo) if (ShowWarningNoInfo)
{ {
Box_StartBox ("100%",Txt_INFO_TITLE[Gbl.CurrentCrs.Info.Type], Box_StartBox ("100%",Txt_INFO_TITLE[Gbl.CurrentCrs.Info.Type],
ICanEdit ? Inf_PutIconToEditInfo : ICanEdit ? Inf_PutIconToEditInfo :
NULL, NULL,
Help[Gbl.CurrentCrs.Info.Type], Help[Gbl.CurrentCrs.Info.Type],
false); // Not closable false); // Not closable
Ale_ShowAlert (Ale_INFO,Txt_No_information); Ale_ShowAlert (Ale_INFO,Txt_No_information);
if (ICanEdit) if (ICanEdit)
Inf_PutButtonToEditInfo (); Inf_PutButtonToEditInfo ();
@ -591,8 +591,8 @@ void Inf_WriteMsgYouMustReadInfo (void)
/***** Start of frame *****/ /***** Start of frame *****/
Box_StartBox (NULL,Txt_Required_reading,NULL, Box_StartBox (NULL,Txt_Required_reading,NULL,
NULL, NULL,
false); // Not closable false); // Not 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);
@ -1033,10 +1033,10 @@ static void Inf_ShowPage (const char *URL)
/***** Start of frame *****/ /***** Start of frame *****/
Box_StartBox (NULL,Txt_INFO_TITLE[Gbl.CurrentCrs.Info.Type], Box_StartBox (NULL,Txt_INFO_TITLE[Gbl.CurrentCrs.Info.Type],
ICanEdit ? Inf_PutIconToEditInfo : ICanEdit ? Inf_PutIconToEditInfo :
NULL, NULL,
Help[Gbl.CurrentCrs.Info.Type], Help[Gbl.CurrentCrs.Info.Type],
false); // Not closable false); // Not closable
/***** Link to view in a new window *****/ /***** Link to view in a new window *****/
fprintf (Gbl.F.Out,"<a href=\"%s\" target=\"_blank\" class=\"%s\">", fprintf (Gbl.F.Out,"<a href=\"%s\" target=\"_blank\" class=\"%s\">",
@ -1120,9 +1120,9 @@ void Inf_FormsToSelSendInfo (void)
/***** Form to choice between alternatives *****/ /***** Form to choice between alternatives *****/
/* Start of table */ /* Start of table */
Box_StartBoxTable (NULL,Txt_Source_of_information,Inf_PutIconToViewInfo, Box_StartBoxTable (NULL,Txt_Source_of_information,Inf_PutIconToViewInfo,
HelpEdit[Gbl.CurrentCrs.Info.Type], HelpEdit[Gbl.CurrentCrs.Info.Type],
false, // Not closable false, // Not closable
4); 4);
/* Options */ /* Options */
for (InfoSrc = (Inf_InfoSrc_t) 0; for (InfoSrc = (Inf_InfoSrc_t) 0;
@ -1790,10 +1790,10 @@ static bool Inf_CheckAndShowPlainTxt (void)
{ {
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_INFO_TITLE[Gbl.CurrentCrs.Info.Type], Box_StartBox (NULL,Txt_INFO_TITLE[Gbl.CurrentCrs.Info.Type],
ICanEdit ? Inf_PutIconToEditInfo : ICanEdit ? Inf_PutIconToEditInfo :
NULL, NULL,
Help[Gbl.CurrentCrs.Info.Type], Help[Gbl.CurrentCrs.Info.Type],
false); // Not closable false); // Not closable
if (Gbl.CurrentCrs.Info.Type == Inf_INTRODUCTION || if (Gbl.CurrentCrs.Info.Type == Inf_INTRODUCTION ||
Gbl.CurrentCrs.Info.Type == Inf_TEACHING_GUIDE) Gbl.CurrentCrs.Info.Type == Inf_TEACHING_GUIDE)
@ -1875,10 +1875,10 @@ static bool Inf_CheckAndShowRichTxt (void)
{ {
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_INFO_TITLE[Gbl.CurrentCrs.Info.Type], Box_StartBox (NULL,Txt_INFO_TITLE[Gbl.CurrentCrs.Info.Type],
ICanEdit ? Inf_PutIconToEditInfo : ICanEdit ? Inf_PutIconToEditInfo :
NULL, NULL,
Help[Gbl.CurrentCrs.Info.Type], Help[Gbl.CurrentCrs.Info.Type],
false); // Not closable false); // Not closable
if (Gbl.CurrentCrs.Info.Type == Inf_INTRODUCTION || if (Gbl.CurrentCrs.Info.Type == Inf_INTRODUCTION ||
Gbl.CurrentCrs.Info.Type == Inf_TEACHING_GUIDE) Gbl.CurrentCrs.Info.Type == Inf_TEACHING_GUIDE)
@ -2064,8 +2064,8 @@ void Inf_EditPlainTxtInfo (void)
/***** Start form and frame *****/ /***** Start form and frame *****/
Act_FormStart (Inf_ActionsRcvPlaTxtInfo[Gbl.CurrentCrs.Info.Type]); Act_FormStart (Inf_ActionsRcvPlaTxtInfo[Gbl.CurrentCrs.Info.Type]);
Box_StartBox (NULL,Txt_INFO_TITLE[Gbl.CurrentCrs.Info.Type],NULL, Box_StartBox (NULL,Txt_INFO_TITLE[Gbl.CurrentCrs.Info.Type],NULL,
HelpEdit[Gbl.CurrentCrs.Info.Type], HelpEdit[Gbl.CurrentCrs.Info.Type],
false); // Not closable false); // Not closable
if (Gbl.CurrentCrs.Info.Type == Inf_INTRODUCTION || if (Gbl.CurrentCrs.Info.Type == Inf_INTRODUCTION ||
Gbl.CurrentCrs.Info.Type == Inf_TEACHING_GUIDE) Gbl.CurrentCrs.Info.Type == Inf_TEACHING_GUIDE)
@ -2116,8 +2116,8 @@ void Inf_EditRichTxtInfo (void)
/***** Start form and frame *****/ /***** Start form and frame *****/
Act_FormStart (Inf_ActionsRcvRchTxtInfo[Gbl.CurrentCrs.Info.Type]); Act_FormStart (Inf_ActionsRcvRchTxtInfo[Gbl.CurrentCrs.Info.Type]);
Box_StartBox (NULL,Txt_INFO_TITLE[Gbl.CurrentCrs.Info.Type],NULL, Box_StartBox (NULL,Txt_INFO_TITLE[Gbl.CurrentCrs.Info.Type],NULL,
HelpEdit[Gbl.CurrentCrs.Info.Type], HelpEdit[Gbl.CurrentCrs.Info.Type],
false); // Not closable false); // Not closable
if (Gbl.CurrentCrs.Info.Type == Inf_INTRODUCTION || if (Gbl.CurrentCrs.Info.Type == Inf_INTRODUCTION ||
Gbl.CurrentCrs.Info.Type == Inf_TEACHING_GUIDE) Gbl.CurrentCrs.Info.Type == Inf_TEACHING_GUIDE)

View File

@ -153,9 +153,9 @@ void Ins_SeeInsWithPendingCtrs (void)
{ {
/***** Write heading *****/ /***** Write heading *****/
Box_StartBoxTable (NULL,Txt_Institutions_with_pending_centres,NULL, Box_StartBoxTable (NULL,Txt_Institutions_with_pending_centres,NULL,
Hlp_SYSTEM_Hierarchy_pending, Hlp_SYSTEM_Hierarchy_pending,
false, // Not closable false, // Not closable
2); 2);
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
"<th class=\"LEFT_MIDDLE\">" "<th class=\"LEFT_MIDDLE\">"
"%s" "%s"
@ -309,12 +309,14 @@ static void Ins_Configuration (bool PrintView)
if (Gbl.CurrentIns.Ins.InsCod > 0) if (Gbl.CurrentIns.Ins.InsCod > 0)
{ {
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,NULL, if (PrintView)
PrintView ? NULL : Box_StartBox (NULL,NULL,NULL,
Ins_PutIconsToPrintAndUpload, NULL,
PrintView ? NULL : false); // Not closable
Hlp_INSTITUTION_Information, else
false); // Not closable Box_StartBox (NULL,NULL,Ins_PutIconsToPrintAndUpload,
Hlp_INSTITUTION_Information,
false); // Not closable
/***** Title *****/ /***** Title *****/
fprintf (Gbl.F.Out,"<div class=\"FRAME_TITLE FRAME_TITLE_BIG\">"); fprintf (Gbl.F.Out,"<div class=\"FRAME_TITLE FRAME_TITLE_BIG\">");
@ -672,8 +674,8 @@ static void Ins_ListInstitutions (void)
/***** Start frame *****/ /***** Start frame *****/
sprintf (Gbl.Title,Txt_Institutions_of_COUNTRY_X,Gbl.CurrentCty.Cty.Name[Gbl.Prefs.Language]); sprintf (Gbl.Title,Txt_Institutions_of_COUNTRY_X,Gbl.CurrentCty.Cty.Name[Gbl.Prefs.Language]);
Box_StartBox (NULL,Gbl.Title,Ins_PutIconsListInstitutions, Box_StartBox (NULL,Gbl.Title,Ins_PutIconsListInstitutions,
Hlp_COUNTRY_Institutions, Hlp_COUNTRY_Institutions,
false); // Not closable false); // Not closable
if (Gbl.Inss.Num) // There are institutions in the current country if (Gbl.Inss.Num) // There are institutions in the current country
{ {
@ -923,8 +925,8 @@ void Ins_EditInstitutions (void)
sprintf (Gbl.Title,Txt_Institutions_of_COUNTRY_X, sprintf (Gbl.Title,Txt_Institutions_of_COUNTRY_X,
Gbl.CurrentCty.Cty.Name[Gbl.Prefs.Language]); Gbl.CurrentCty.Cty.Name[Gbl.Prefs.Language]);
Box_StartBox (NULL,Gbl.Title,Ins_PutIconToViewInstitutions, Box_StartBox (NULL,Gbl.Title,Ins_PutIconToViewInstitutions,
Hlp_COUNTRY_Institutions, Hlp_COUNTRY_Institutions,
false); // Not closable false); // Not closable
/***** Put a form to create a new institution *****/ /***** Put a form to create a new institution *****/
Ins_PutFormToCreateInstitution (); Ins_PutFormToCreateInstitution ();
@ -2160,9 +2162,9 @@ static void Ins_PutFormToCreateInstitution (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBoxTable (NULL,Txt_New_institution,NULL, Box_StartBoxTable (NULL,Txt_New_institution,NULL,
NULL, NULL,
false, // Not closable false, // Not closable
2); 2);
/***** Write heading *****/ /***** Write heading *****/
Ins_PutHeadInstitutionsForEdition (); Ins_PutHeadInstitutionsForEdition ();
@ -2522,9 +2524,9 @@ unsigned Ins_ListInssFound (const char *Query)
NumInss,NumInss == 1 ? Txt_institution : NumInss,NumInss == 1 ? Txt_institution :
Txt_institutions); Txt_institutions);
Box_StartBoxTable (NULL,Gbl.Title,NULL, Box_StartBoxTable (NULL,Gbl.Title,NULL,
NULL, NULL,
false, // Not closable false, // Not closable
2); 2);
Ins_PutHeadInstitutionsForSeeing (false); // Order not selectable Ins_PutHeadInstitutionsForSeeing (false); // Order not selectable
/***** List the institutions (one row per institution) *****/ /***** List the institutions (one row per institution) *****/

View File

@ -1499,9 +1499,9 @@ void Lay_AdvertisementMobile (void)
/***** Table start *****/ /***** Table start *****/
Box_StartBoxTable (NULL,NULL,NULL, Box_StartBoxTable (NULL,NULL,NULL,
NULL, NULL,
false, // Not closable false, // Not closable
8); 8);
/***** Show advertisement *****/ /***** Show advertisement *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"

View File

@ -113,10 +113,10 @@ void Lnk_SeeLinks (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Links, Box_StartBox (NULL,Txt_Links,
Gbl.Usrs.Me.Role.Logged == Rol_SYS_ADM ? Lnk_PutIconToEditLinks : Gbl.Usrs.Me.Role.Logged == Rol_SYS_ADM ? Lnk_PutIconToEditLinks :
NULL, NULL,
Hlp_SYSTEM_Links, Hlp_SYSTEM_Links,
false); // Not closable false); // Not closable
/***** Write all links *****/ /***** Write all links *****/
if (Gbl.Links.Num) // There are links if (Gbl.Links.Num) // There are links
@ -231,8 +231,8 @@ void Lnk_EditLinks (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Links,Lnk_PutIconToViewLinks, Box_StartBox (NULL,Txt_Links,Lnk_PutIconToViewLinks,
Hlp_SYSTEM_Links_edit, Hlp_SYSTEM_Links_edit,
false); // Not closable false); // Not closable
/***** Put a form to create a new link *****/ /***** Put a form to create a new link *****/
Lnk_PutFormToCreateLink (); Lnk_PutFormToCreateLink ();
@ -710,9 +710,9 @@ static void Lnk_PutFormToCreateLink (void)
/***** Start of frame *****/ /***** Start of frame *****/
Box_StartBoxTable (NULL,Txt_New_link,NULL, Box_StartBoxTable (NULL,Txt_New_link,NULL,
Hlp_SYSTEM_Links_edit, Hlp_SYSTEM_Links_edit,
false, // Not closable false, // Not closable
2); 2);
/***** Write heading *****/ /***** Write heading *****/
Lnk_PutHeadLinks (); Lnk_PutHeadLinks ();

View File

@ -285,8 +285,8 @@ void Log_RequestLogo (Sco_Scope_t Scope)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Logo,NULL, Box_StartBox (NULL,Txt_Logo,NULL,
NULL, NULL,
false); // Not closable false); // Not closable
/***** Write help message *****/ /***** Write help message *****/
sprintf (Gbl.Alert.Txt,Txt_You_can_send_a_file_with_an_image_in_PNG_format_transparent_background_and_size_X_Y, sprintf (Gbl.Alert.Txt,Txt_You_can_send_a_file_with_an_image_in_PNG_format_transparent_background_and_size_X_Y,

View File

@ -110,11 +110,11 @@ void Mai_SeeMailDomains (void)
/***** Table head *****/ /***** Table head *****/
Box_StartBoxTable (NULL,Txt_Email_domains_allowed_for_notifications, Box_StartBoxTable (NULL,Txt_Email_domains_allowed_for_notifications,
Gbl.Usrs.Me.Role.Logged == Rol_SYS_ADM ? Mai_PutIconToEditMailDomains : Gbl.Usrs.Me.Role.Logged == Rol_SYS_ADM ? Mai_PutIconToEditMailDomains :
NULL, NULL,
Hlp_MESSAGES_Domains, Hlp_MESSAGES_Domains,
false, // Not closable false, // Not closable
2); 2);
fprintf (Gbl.F.Out,"<tr>"); fprintf (Gbl.F.Out,"<tr>");
for (Order = Mai_ORDER_BY_DOMAIN; for (Order = Mai_ORDER_BY_DOMAIN;
Order <= Mai_ORDER_BY_USERS; Order <= Mai_ORDER_BY_USERS;
@ -451,9 +451,9 @@ static void Mai_ListMailDomainsForEdition (void)
struct Mail *Mai; struct Mail *Mai;
Box_StartBoxTable (NULL,Txt_Email_domains_allowed_for_notifications,NULL, Box_StartBoxTable (NULL,Txt_Email_domains_allowed_for_notifications,NULL,
Hlp_MESSAGES_Domains_edit, Hlp_MESSAGES_Domains_edit,
false, // Not closable false, // Not closable
2); 2);
/***** Table head *****/ /***** Table head *****/
Mai_PutHeadMailDomains (); Mai_PutHeadMailDomains ();
@ -720,9 +720,9 @@ static void Mai_PutFormToCreateMailDomain (void)
/***** Start of frame *****/ /***** Start of frame *****/
Box_StartBoxTable (NULL,Txt_New_email_domain,NULL, Box_StartBoxTable (NULL,Txt_New_email_domain,NULL,
Hlp_MESSAGES_Domains_edit, Hlp_MESSAGES_Domains_edit,
false, // Not closable false, // Not closable
2); 2);
/***** Write heading *****/ /***** Write heading *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -891,9 +891,9 @@ void Mai_ListEmails (void)
/***** Start of the frame used to list the emails *****/ /***** Start of the frame used to list the emails *****/
Box_StartBox (NULL,Txt_Students_who_have_accepted_and_who_have_email, Box_StartBox (NULL,Txt_Students_who_have_accepted_and_who_have_email,
NULL, NULL,
Hlp_MESSAGES_Email, Hlp_MESSAGES_Email,
false); // Not closable false); // Not closable
/***** Form to select groups *****/ /***** Form to select groups *****/
Grp_ShowFormToSelectSeveralGroups (ActMaiStd); Grp_ShowFormToSelectSeveralGroups (ActMaiStd);
@ -1190,8 +1190,8 @@ void Mai_ShowFormOthEmail (void)
{ {
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Email,NULL, Box_StartBox (NULL,Txt_Email,NULL,
NULL, NULL,
false); // Not closable false); // Not closable
/***** Show user's record *****/ /***** Show user's record *****/
Rec_ShowSharedUsrRecord (Rec_SHA_RECORD_LIST, Rec_ShowSharedUsrRecord (Rec_SHA_RECORD_LIST,
@ -1631,8 +1631,8 @@ void Mai_PutButtonToCheckEmailAddress (void)
/***** Frame with button to check email address *****/ /***** Frame with button to check email address *****/
Box_StartBox (NULL,Txt_Email_unconfirmed,NULL, Box_StartBox (NULL,Txt_Email_unconfirmed,NULL,
Hlp_PROFILE_Account_email, Hlp_PROFILE_Account_email,
true); // Closable true); // Closable
Ale_ShowAlertAndButton (Ale_WARNING,Txt_Please_check_and_confirm_your_email_address, Ale_ShowAlertAndButton (Ale_WARNING,Txt_Please_check_and_confirm_your_email_address,
ActFrmMyAcc,NULL,NULL,NULL, ActFrmMyAcc,NULL,NULL,NULL,
Btn_CONFIRM_BUTTON,Txt_Check); Btn_CONFIRM_BUTTON,Txt_Check);

View File

@ -400,8 +400,8 @@ void Mnu_PutIconsToSelectMenu (void)
Mnu_Menu_t Menu; Mnu_Menu_t Menu;
Box_StartBox (NULL,Txt_Menu,Mnu_PutIconsMenu, Box_StartBox (NULL,Txt_Menu,Mnu_PutIconsMenu,
Hlp_PROFILE_Preferences_menu, Hlp_PROFILE_Preferences_menu,
false); // Not closable false); // Not closable
fprintf (Gbl.F.Out,"<div class=\"PREF_CONTAINER\">"); fprintf (Gbl.F.Out,"<div class=\"PREF_CONTAINER\">");
for (Menu = (Mnu_Menu_t) 0; for (Menu = (Mnu_Menu_t) 0;
Menu < Mnu_NUM_MENUS; Menu < Mnu_NUM_MENUS;

View File

@ -225,11 +225,11 @@ static void Msg_PutFormMsgUsrs (char Content[Cns_MAX_BYTES_LONG_TEXT + 1])
} }
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL, Box_StartBox (NULL,Gbl.Msg.Reply.IsReply ? Txt_Reply_message :
Gbl.Msg.Reply.IsReply ? Txt_Reply_message : Txt_New_message,
Txt_New_message, NULL,
NULL,Hlp_MESSAGES_Write, Hlp_MESSAGES_Write,
false); // Not closable false); // Not closable
if (Gbl.Msg.ShowOnlyOneRecipient) if (Gbl.Msg.ShowOnlyOneRecipient)
/***** Form to show several potential recipients *****/ /***** Form to show several potential recipients *****/
@ -1755,16 +1755,15 @@ static void Msg_ShowSentOrReceivedMessages (void)
Gbl.Msg.NumMsgs = (unsigned) NumRows; Gbl.Msg.NumMsgs = (unsigned) NumRows;
/***** Start frame with messages *****/ /***** Start frame with messages *****/
Box_StartBox ("97%", Box_StartBox ("97%",Msg_WriteNumMsgs (NumUnreadMsgs),Msg_PutIconsListMsgs,
Msg_WriteNumMsgs (NumUnreadMsgs), Help[Gbl.Msg.TypeOfMessages],
Msg_PutIconsListMsgs,Help[Gbl.Msg.TypeOfMessages], false); // Not closable
false); // Not closable
/***** Filter messages *****/ /***** Filter messages *****/
/* Start frame with filter */ /* Start frame with filter */
Box_StartBox (NULL,Txt_Filter,NULL, Box_StartBox (NULL,Txt_Filter,NULL,
HelpFilter[Gbl.Msg.TypeOfMessages], HelpFilter[Gbl.Msg.TypeOfMessages],
true); // Closable true); // Closable
/* Form to see messages again */ /* Form to see messages again */
Act_FormStart (ActionSee[Gbl.Msg.TypeOfMessages]); Act_FormStart (ActionSee[Gbl.Msg.TypeOfMessages]);
@ -3781,9 +3780,9 @@ void Msg_ListBannedUsrs (void)
/***** Start table with list of users *****/ /***** Start table with list of users *****/
Box_StartBoxTable (NULL,Txt_Banned_users,NULL, Box_StartBoxTable (NULL,Txt_Banned_users,NULL,
NULL, NULL,
false, // Not closable false, // Not closable
2); 2);
/***** List users *****/ /***** List users *****/
for (NumUsr = 1; for (NumUsr = 1;

View File

@ -300,11 +300,10 @@ void Net_ShowFormMyWebsAndSocialNets (void)
char URL[Cns_MAX_BYTES_WWW + 1]; char URL[Cns_MAX_BYTES_WWW + 1];
/***** Start table *****/ /***** Start table *****/
Box_StartBoxTable (NULL,Txt_Webs_social_networks, Box_StartBoxTable (NULL,Txt_Webs_social_networks,Net_PutIconsWebsSocialNetworks,
Net_PutIconsWebsSocialNetworks, Hlp_PROFILE_Webs,
Hlp_PROFILE_Webs, false, // Not closable
false, // Not closable 2);
2);
for (NumURL = (Net_WebsAndSocialNetworks_t) 0; for (NumURL = (Net_WebsAndSocialNetworks_t) 0;
NumURL < Net_NUM_WEBS_AND_SOCIAL_NETWORKS; NumURL < Net_NUM_WEBS_AND_SOCIAL_NETWORKS;
@ -538,9 +537,9 @@ void Net_ShowWebAndSocialNetworksStats (void)
/***** Number of users *****/ /***** Number of users *****/
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_SOCIAL_NETWORKS],NULL, Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_SOCIAL_NETWORKS],NULL,
Hlp_STATS_Figures_webs_social_networks, Hlp_STATS_Figures_webs_social_networks,
false, // Not closable false, // Not closable
2); 2);
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
"<th class=\"LEFT_MIDDLE\">" "<th class=\"LEFT_MIDDLE\">"

View File

@ -104,8 +104,8 @@ void Not_ShowFormNotice (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_New_notice,NULL, Box_StartBox (NULL,Txt_New_notice,NULL,
Hlp_MESSAGES_Notices, Hlp_MESSAGES_Notices,
false); // Not closable false); // Not closable
/***** Message body *****/ /***** Message body *****/
fprintf (Gbl.F.Out,"<textarea name=\"Content\" cols=\"30\" rows=\"10\"" fprintf (Gbl.F.Out,"<textarea name=\"Content\" cols=\"30\" rows=\"10\""
@ -392,11 +392,11 @@ void Not_ShowNotices (Not_Listing_t TypeNoticesListing)
sprintf (StrWidth,"%upx", sprintf (StrWidth,"%upx",
Not_ContainerWidth[Not_LIST_FULL_NOTICES] + 50); Not_ContainerWidth[Not_LIST_FULL_NOTICES] + 50);
Box_StartBox (StrWidth, Box_StartBox (StrWidth,
Gbl.CurrentCrs.Notices.HighlightNotCod > 0 ? Txt_All_notices : Gbl.CurrentCrs.Notices.HighlightNotCod > 0 ? Txt_All_notices :
Txt_Notices, Txt_Notices,
Not_PutIconsListNotices, Not_PutIconsListNotices,
Hlp_MESSAGES_Notices, Hlp_MESSAGES_Notices,
false); // Not closable false); // Not closable
if (!NumNotices) if (!NumNotices)
Ale_ShowAlert (Ale_INFO,Txt_No_notices); Ale_ShowAlert (Ale_INFO,Txt_No_notices);
} }

View File

@ -391,8 +391,8 @@ void Ntf_ShowMyNotifications (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Notifications,Ntf_PutIconsNotif, Box_StartBox (NULL,Txt_Notifications,Ntf_PutIconsNotif,
Hlp_MESSAGES_Notifications, Hlp_MESSAGES_Notifications,
false); // Not closable false); // Not closable
/***** List my notifications *****/ /***** List my notifications *****/
if (NumNotifications) // Notifications found if (NumNotifications) // Notifications found
@ -1900,8 +1900,8 @@ void Ntf_PutFormChangeNotifSentByEMail (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Notifications,Ntf_PutIconsNotif, Box_StartBox (NULL,Txt_Notifications,Ntf_PutIconsNotif,
Hlp_PROFILE_Preferences_notifications, Hlp_PROFILE_Preferences_notifications,
false); // Not closable false); // Not closable
/***** Start form *****/ /***** Start form *****/
Act_FormStart (ActChgNtfPrf); Act_FormStart (ActChgNtfPrf);

View File

@ -254,8 +254,8 @@ void Pwd_ShowFormSendNewPwd (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Forgotten_password,NULL, Box_StartBox (NULL,Txt_Forgotten_password,NULL,
Hlp_PROFILE_Password, Hlp_PROFILE_Password,
false); // Not closable false); // Not closable
/***** Help text *****/ /***** Help text *****/
Ale_ShowAlert (Ale_INFO,Txt_If_you_have_forgotten_your_password_); Ale_ShowAlert (Ale_INFO,Txt_If_you_have_forgotten_your_password_);
@ -700,9 +700,9 @@ void Pwd_ShowFormChgPwd (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBoxTable (NULL,Txt_Password,NULL, Box_StartBoxTable (NULL,Txt_Password,NULL,
Hlp_PROFILE_Password, Hlp_PROFILE_Password,
false, // Not closable false, // Not closable
2); 2);
/* Current password */ /* Current password */
if (IHaveAPasswordInDB) // If I have a password in database... if (IHaveAPasswordInDB) // If I have a password in database...
@ -829,8 +829,8 @@ void Pwd_ShowFormOthPwd (void)
{ {
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Password,NULL, Box_StartBox (NULL,Txt_Password,NULL,
NULL, NULL,
false); // Not closable false); // Not closable
/***** Show user's record *****/ /***** Show user's record *****/
Rec_ShowSharedUsrRecord (Rec_SHA_RECORD_LIST, Rec_ShowSharedUsrRecord (Rec_SHA_RECORD_LIST,

View File

@ -327,10 +327,10 @@ static void Pho_ReqPhoto (const struct UsrData *UsrDat,const char *PhotoURL)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Photo, Box_StartBox (NULL,Txt_Photo,
ItsMe ? Pho_PutIconToRequestRemoveMyPhoto : ItsMe ? Pho_PutIconToRequestRemoveMyPhoto :
Pho_PutIconToRequestRemoveOtherUsrPhoto, Pho_PutIconToRequestRemoveOtherUsrPhoto,
Hlp_PROFILE_Photo, Hlp_PROFILE_Photo,
false); // Not closable false); // Not closable
/***** Start form *****/ /***** Start form *****/
if (ItsMe) if (ItsMe)
@ -1693,10 +1693,9 @@ void Pho_ShowOrPrintPhotoDegree (Pho_AvgPhotoSeeOrPrint_t SeeOrPrint)
Pho_PutLinkToCalculateDegreeStats (); Pho_PutLinkToCalculateDegreeStats ();
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Degrees, Box_StartBox (NULL,Txt_Degrees,Pho_PutIconToPrintDegreeStats,
Pho_PutIconToPrintDegreeStats, Hlp_STATS_Degrees,
Hlp_STATS_Degrees, false); // Not closable
false); // Not closable
Tbl_StartTableCenter (2); Tbl_StartTableCenter (2);
/***** Put a selector for the type of average *****/ /***** Put a selector for the type of average *****/
@ -1713,8 +1712,8 @@ void Pho_ShowOrPrintPhotoDegree (Pho_AvgPhotoSeeOrPrint_t SeeOrPrint)
case Pho_DEGREES_PRINT: case Pho_DEGREES_PRINT:
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Degrees,NULL, Box_StartBox (NULL,Txt_Degrees,NULL,
NULL, NULL,
false); // Not closable false); // Not closable
break; break;
} }

View File

@ -118,11 +118,10 @@ void Plc_SeePlaces (void)
Plc_GetListPlaces (); Plc_GetListPlaces ();
/***** Table head *****/ /***** Table head *****/
Box_StartBox (NULL,Txt_Places, Box_StartBox (NULL,Txt_Places,ICanEdit ? Plc_PutIconToEditPlaces :
ICanEdit ? Plc_PutIconToEditPlaces : NULL,
NULL, Hlp_INSTITUTION_Places,
Hlp_INSTITUTION_Places, false); // Not closable
false); // Not closable
Tbl_StartTableWideMargin (2); Tbl_StartTableWideMargin (2);
fprintf (Gbl.F.Out,"<tr>"); fprintf (Gbl.F.Out,"<tr>");
for (Order = Plc_ORDER_BY_PLACE; for (Order = Plc_ORDER_BY_PLACE;
@ -251,8 +250,8 @@ void Plc_EditPlaces (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Places,Plc_PutIconToViewPlacesWhenEditing, Box_StartBox (NULL,Txt_Places,Plc_PutIconToViewPlacesWhenEditing,
Hlp_INSTITUTION_Places_edit, Hlp_INSTITUTION_Places_edit,
false); // Not closable false); // Not closable
/***** Put a form to create a new place *****/ /***** Put a form to create a new place *****/
Plc_PutFormToCreatePlace (); Plc_PutFormToCreatePlace ();
@ -743,9 +742,9 @@ static void Plc_PutFormToCreatePlace (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBoxTable (NULL,Txt_New_place,NULL, Box_StartBoxTable (NULL,Txt_New_place,NULL,
NULL, NULL,
false, // Not closable false, // Not closable
2); 2);
/***** Write heading *****/ /***** Write heading *****/
Plc_PutHeadPlaces (); Plc_PutHeadPlaces ();

View File

@ -91,13 +91,13 @@ void Plg_ListPlugins (void)
/***** Get list of plugins *****/ /***** Get list of plugins *****/
Plg_GetListPlugins (); Plg_GetListPlugins ();
/***** Table start *****/ /***** Start box and table *****/
Box_StartBoxTable (NULL,Txt_Plugins, Box_StartBoxTable (NULL,Txt_Plugins,
Gbl.Usrs.Me.Role.Logged == Rol_SYS_ADM ? Plg_PutIconToEditPlugins : Gbl.Usrs.Me.Role.Logged == Rol_SYS_ADM ? Plg_PutIconToEditPlugins :
NULL, NULL,
NULL, NULL,
false, // Not closable false, // Not closable
2); 2);
/***** Write table heading *****/ /***** Write table heading *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -141,7 +141,7 @@ void Plg_ListPlugins (void)
Plg->Name); Plg->Name);
} }
/***** End table *****/ /***** End table and box *****/
Box_EndBoxTable (); Box_EndBoxTable ();
/***** Free list of plugins *****/ /***** Free list of plugins *****/
@ -347,12 +347,11 @@ static void Plg_ListPluginsForEdition (void)
unsigned NumPlg; unsigned NumPlg;
struct Plugin *Plg; struct Plugin *Plg;
Box_StartBoxTable (NULL,Txt_Plugins,NULL,
NULL,
false, // Not closable
2);
/***** Table head *****/ /***** Table head *****/
Box_StartBoxTable (NULL,Txt_Plugins,NULL,
NULL,
false, // Not closable
2);
Plg_PutHeadPlugins (); Plg_PutHeadPlugins ();
/***** Write all the plugins *****/ /***** Write all the plugins *****/
@ -845,9 +844,9 @@ static void Plg_PutFormToCreatePlugin (void)
/***** Start of frame *****/ /***** Start of frame *****/
Box_StartBoxTable (NULL,Txt_New_plugin,NULL, Box_StartBoxTable (NULL,Txt_New_plugin,NULL,
NULL, NULL,
false, // Not closable false, // Not closable
2); 2);
/***** Write heading *****/ /***** Write heading *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"

View File

@ -76,8 +76,8 @@ void Pre_EditPrefs (void)
/***** Internationalization: language, first day of week, date format *****/ /***** Internationalization: language, first day of week, date format *****/
Box_StartBox (NULL,Txt_Internationalization,NULL, Box_StartBox (NULL,Txt_Internationalization,NULL,
Hlp_PROFILE_Preferences_internationalization, Hlp_PROFILE_Preferences_internationalization,
false); // Not closable false); // Not closable
fprintf (Gbl.F.Out,"<div class=\"FRAME_INLINE\">"); fprintf (Gbl.F.Out,"<div class=\"FRAME_INLINE\">");
Lan_PutBoxToSelectLanguage (); // 1. Language Lan_PutBoxToSelectLanguage (); // 1. Language
fprintf (Gbl.F.Out,"</div>" fprintf (Gbl.F.Out,"</div>"
@ -91,8 +91,8 @@ void Pre_EditPrefs (void)
/***** Design: icon set, menu, theme, side columns *****/ /***** Design: icon set, menu, theme, side columns *****/
Box_StartBox (NULL,Txt_Design,NULL, Box_StartBox (NULL,Txt_Design,NULL,
Hlp_PROFILE_Preferences_design, Hlp_PROFILE_Preferences_design,
false); // Not closable false); // Not closable
fprintf (Gbl.F.Out,"<div class=\"FRAME_INLINE\">"); fprintf (Gbl.F.Out,"<div class=\"FRAME_INLINE\">");
Ico_PutIconsToSelectIconSet (); // 4. Icon set Ico_PutIconsToSelectIconSet (); // 4. Icon set
fprintf (Gbl.F.Out,"</div>" fprintf (Gbl.F.Out,"</div>"
@ -240,8 +240,8 @@ static void Pre_PutIconsToSelectSideCols (void)
unsigned SideCols; unsigned SideCols;
Box_StartBox (NULL,Txt_Columns,Pre_PutIconsSideColumns, Box_StartBox (NULL,Txt_Columns,Pre_PutIconsSideColumns,
Hlp_PROFILE_Preferences_columns, Hlp_PROFILE_Preferences_columns,
false); // Not closable false); // Not closable
fprintf (Gbl.F.Out,"<div class=\"PREF_CONTAINER\">"); fprintf (Gbl.F.Out,"<div class=\"PREF_CONTAINER\">");
for (SideCols = 0; for (SideCols = 0;
SideCols <= Lay_SHOW_BOTH_COLUMNS; SideCols <= Lay_SHOW_BOTH_COLUMNS;

View File

@ -176,8 +176,8 @@ void Prf_RequestUserProfile (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Another_user_s_profile,NULL, Box_StartBox (NULL,Txt_Another_user_s_profile,NULL,
Hlp_SOCIAL_Profiles_view_public_profile, Hlp_SOCIAL_Profiles_view_public_profile,
false); // Not closable false); // Not closable
/***** Form to request user's @nickname *****/ /***** Form to request user's @nickname *****/
/* By default, the nickname is filled with my nickname /* By default, the nickname is filled with my nickname

View File

@ -185,9 +185,9 @@ void Rec_ReqEditRecordFields (void)
if (Gbl.CurrentCrs.Records.LstFields.Num) // Fields found... if (Gbl.CurrentCrs.Records.LstFields.Num) // Fields found...
{ {
Box_StartBoxTable (NULL,Txt_Record_fields,NULL, Box_StartBoxTable (NULL,Txt_Record_fields,NULL,
Hlp_USERS_Students_course_record_card, Hlp_USERS_Students_course_record_card,
false, // Not closable false, // Not closable
2); 2);
Rec_ListFieldsRecordsForEdition (); Rec_ListFieldsRecordsForEdition ();
Box_EndBoxTable (); Box_EndBoxTable ();
} }
@ -361,9 +361,9 @@ void Rec_ShowFormCreateRecordField (void)
/***** Start of frame *****/ /***** Start of frame *****/
Box_StartBoxTable (NULL,Txt_New_record_field,NULL, Box_StartBoxTable (NULL,Txt_New_record_field,NULL,
Hlp_USERS_Students_course_record_card, Hlp_USERS_Students_course_record_card,
false, // Not closable false, // Not closable
2); 2);
/***** Write heading *****/ /***** Write heading *****/
Rec_WriteHeadingRecordFields (); Rec_WriteHeadingRecordFields ();
@ -1364,8 +1364,8 @@ static void Rec_ShowRecordOneTchCrs (void)
fprintf (Gbl.F.Out,"<div class=\"REC_TT\">"); fprintf (Gbl.F.Out,"<div class=\"REC_TT\">");
Gbl.TimeTable.Type = TT_TUTORING_TIMETABLE; Gbl.TimeTable.Type = TT_TUTORING_TIMETABLE;
Box_StartBox (Width,Txt_TIMETABLE_TYPES[Gbl.TimeTable.Type],NULL, Box_StartBox (Width,Txt_TIMETABLE_TYPES[Gbl.TimeTable.Type],NULL,
Hlp_USERS_Teachers_timetable, Hlp_USERS_Teachers_timetable,
false); // Not closable false); // Not closable
TT_ShowTimeTable (Gbl.Usrs.Other.UsrDat.UsrCod); TT_ShowTimeTable (Gbl.Usrs.Other.UsrDat.UsrCod);
Box_EndBox (); Box_EndBox ();
fprintf (Gbl.F.Out,"</div>"); fprintf (Gbl.F.Out,"</div>");
@ -1489,9 +1489,9 @@ static void Rec_ListRecordsTchs (Rec_SharedRecordViewType_t TypeOfView)
fprintf (Gbl.F.Out,"<div class=\"REC_TT\">"); fprintf (Gbl.F.Out,"<div class=\"REC_TT\">");
Gbl.TimeTable.Type = TT_TUTORING_TIMETABLE; Gbl.TimeTable.Type = TT_TUTORING_TIMETABLE;
Box_StartBox (Width,Txt_TIMETABLE_TYPES[Gbl.TimeTable.Type], Box_StartBox (Width,Txt_TIMETABLE_TYPES[Gbl.TimeTable.Type],
NULL, NULL,
Hlp_USERS_Teachers_timetable, Hlp_USERS_Teachers_timetable,
false); // Not closable false); // Not closable
TT_ShowTimeTable (UsrDat.UsrCod); TT_ShowTimeTable (UsrDat.UsrCod);
Box_EndBox (); Box_EndBox ();
fprintf (Gbl.F.Out,"</div>"); fprintf (Gbl.F.Out,"</div>");
@ -1780,9 +1780,9 @@ static void Rec_ShowCrsRecord (Rec_CourseRecordViewType_t TypeOfView,
/***** Start frame *****/ /***** Start frame *****/
sprintf (StrRecordWidth,"%upx",Rec_RECORD_WIDTH); sprintf (StrRecordWidth,"%upx",Rec_RECORD_WIDTH);
Box_StartBoxTable (StrRecordWidth,NULL,NULL, Box_StartBoxTable (StrRecordWidth,NULL,NULL,
Rec_RecordHelp[TypeOfView], Rec_RecordHelp[TypeOfView],
false, // Not closable false, // Not closable
2); 2);
/***** Header *****/ /***** Header *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -2318,11 +2318,11 @@ void Rec_ShowSharedUsrRecord (Rec_SharedRecordViewType_t TypeOfView,
Gbl.Record.UsrDat = UsrDat; Gbl.Record.UsrDat = UsrDat;
Gbl.Record.TypeOfView = TypeOfView; Gbl.Record.TypeOfView = TypeOfView;
Box_StartBoxTable (StrRecordWidth,NULL, Box_StartBoxTable (StrRecordWidth,NULL,
TypeOfView == Rec_SHA_OTHER_NEW_USR_FORM ? NULL : // New user ==> don't put icons TypeOfView == Rec_SHA_OTHER_NEW_USR_FORM ? NULL : // New user ==> don't put icons
Rec_PutIconsCommands, Rec_PutIconsCommands,
Rec_RecordHelp[TypeOfView], Rec_RecordHelp[TypeOfView],
false, // Not closable false, // Not closable
2); 2);
/***** Institution and user's photo *****/ /***** Institution and user's photo *****/
fprintf (Gbl.F.Out,"<tr>"); fprintf (Gbl.F.Out,"<tr>");
@ -3994,13 +3994,12 @@ void Rec_ShowFormMyInsCtrDpt (void)
} }
/***** Start table *****/ /***** Start table *****/
Box_StartBoxTable ("800px", Box_StartBoxTable ("800px",IAmATeacher ? Txt_Institution_centre_and_department :
IAmATeacher ? Txt_Institution_centre_and_department : Txt_Institution,
Txt_Institution, NULL,
NULL, Hlp_PROFILE_Institution,
Hlp_PROFILE_Institution, false, // Not closable
false, // Not closable 2);
2);
/***** Country *****/ /***** Country *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"

View File

@ -157,8 +157,8 @@ void Rep_ReqMyUsageReport (void)
/***** Start frame *****/ /***** Start frame *****/
sprintf (Gbl.Title,Txt_Report_of_use_of_PLATFORM,Cfg_PLATFORM_SHORT_NAME); sprintf (Gbl.Title,Txt_Report_of_use_of_PLATFORM,Cfg_PLATFORM_SHORT_NAME);
Box_StartBox (NULL,Gbl.Title,NULL, Box_StartBox (NULL,Gbl.Title,NULL,
Hlp_STATS_Report, Hlp_STATS_Report,
false); // Not closable false); // Not closable
/***** Header *****/ /***** Header *****/
Req_TitleReport (NULL); // NULL means do not write date Req_TitleReport (NULL); // NULL means do not write date
@ -263,8 +263,8 @@ static void Rep_PutLinkToMyUsageReport (struct Rep_Report *Report)
/***** Start frame *****/ /***** Start frame *****/
sprintf (Gbl.Title,Txt_Report_of_use_of_PLATFORM,Cfg_PLATFORM_SHORT_NAME); sprintf (Gbl.Title,Txt_Report_of_use_of_PLATFORM,Cfg_PLATFORM_SHORT_NAME);
Box_StartBox (NULL,Gbl.Title,NULL, Box_StartBox (NULL,Gbl.Title,NULL,
Hlp_STATS_Report, Hlp_STATS_Report,
false); // Not closable false); // Not closable
/***** Header *****/ /***** Header *****/
Req_TitleReport (&Report->CurrentTimeUTC); Req_TitleReport (&Report->CurrentTimeUTC);

View File

@ -238,8 +238,8 @@ static void Sch_PutFormToSearchWithWhatToSearchAndScope (Act_Action_t Action,Sco
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\">"); fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\">");
Act_FormStart (Action); Act_FormStart (Action);
Box_StartBox (NULL,Txt_Search,NULL, Box_StartBox (NULL,Txt_Search,NULL,
Hlp_Search, Hlp_Search,
false); // Not closable false); // Not closable
/***** Scope (whole platform, current country, current institution, /***** Scope (whole platform, current country, current institution,
current centre, current degree or current course) *****/ current centre, current degree or current course) *****/

View File

@ -923,8 +923,8 @@ static void Soc_ShowTimeline (const char *Query,const char *Title,
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (Soc_WIDTH_TIMELINE,Title,Soc_PutIconsTimeline, Box_StartBox (Soc_WIDTH_TIMELINE,Title,Soc_PutIconsTimeline,
Hlp_SOCIAL_Timeline, Hlp_SOCIAL_Timeline,
false); // Not closable false); // Not closable
/***** Put form to select users whom public activity is displayed *****/ /***** Put form to select users whom public activity is displayed *****/
if (GlobalTimeline) if (GlobalTimeline)
@ -1277,8 +1277,8 @@ static void Soc_WriteSocialNote (const struct SocialNote *SocNot,
if (ShowNoteAlone) if (ShowNoteAlone)
{ {
Box_StartBox (Soc_WIDTH_TIMELINE,NULL,NULL, Box_StartBox (Soc_WIDTH_TIMELINE,NULL,NULL,
NULL, NULL,
true); // Closable true); // Closable
fprintf (Gbl.F.Out,"<ul class=\"LIST_LEFT\">"); fprintf (Gbl.F.Out,"<ul class=\"LIST_LEFT\">");
} }
@ -2533,8 +2533,8 @@ static void Soc_WriteSocialComment (struct SocialComment *SocCom,
if (ShowCommentAlone) if (ShowCommentAlone)
{ {
Box_StartBox (Soc_WIDTH_TIMELINE,NULL,NULL, Box_StartBox (Soc_WIDTH_TIMELINE,NULL,NULL,
NULL, NULL,
false); // Not closable false); // Not closable
/***** Write sharer/commenter if distinct to author *****/ /***** Write sharer/commenter if distinct to author *****/
Soc_WriteTopMessage (TopMessage,UsrCod); Soc_WriteTopMessage (TopMessage,UsrCod);

View File

@ -477,8 +477,8 @@ void Sta_AskShowCrsHits (void)
sprintf (Gbl.Title,Txt_Statistics_of_visits_to_the_course_X, sprintf (Gbl.Title,Txt_Statistics_of_visits_to_the_course_X,
Gbl.CurrentCrs.Crs.ShrtName); Gbl.CurrentCrs.Crs.ShrtName);
Box_StartBox (NULL,Gbl.Title,NULL, Box_StartBox (NULL,Gbl.Title,NULL,
Hlp_STATS_Visits_visits_to_course, Hlp_STATS_Visits_visits_to_course,
false); // Not closable false); // Not closable
/***** Show form to select the groups *****/ /***** Show form to select the groups *****/
Grp_ShowFormToSelectSeveralGroups (ActReqAccCrs); Grp_ShowFormToSelectSeveralGroups (ActReqAccCrs);
@ -675,9 +675,9 @@ void Sta_AskShowGblHits (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBoxTable (NULL,Txt_Statistics_of_all_visits,NULL, Box_StartBoxTable (NULL,Txt_Statistics_of_all_visits,NULL,
Hlp_STATS_Visits_global_visits, Hlp_STATS_Visits_global_visits,
false, // Not closable false, // Not closable
2); 2);
/***** Start and end dates for the search *****/ /***** Start and end dates for the search *****/
Dat_PutFormStartEndClientLocalDateTimesWithYesterdayToday (Gbl.Action.Act == ActReqAccGbl); Dat_PutFormStartEndClientLocalDateTimesWithYesterdayToday (Gbl.Action.Act == ActReqAccGbl);
@ -3917,8 +3917,8 @@ void Sta_ReqShowFigures (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Figures,NULL, Box_StartBox (NULL,Txt_Figures,NULL,
Hlp_STATS_Figures, Hlp_STATS_Figures,
false); // Not closable false); // Not closable
/***** Compute stats for anywhere, degree or course? *****/ /***** Compute stats for anywhere, degree or course? *****/
fprintf (Gbl.F.Out,"<label class=\"%s\">%s:&nbsp;", fprintf (Gbl.F.Out,"<label class=\"%s\">%s:&nbsp;",
@ -4082,9 +4082,9 @@ static void Sta_GetAndShowUsersStats (void)
/***** Number of users *****/ /***** Number of users *****/
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_USERS],NULL, Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_USERS],NULL,
Hlp_STATS_Figures_users, Hlp_STATS_Figures_users,
false, // Not closable false, // Not closable
2); 2);
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
"<th class=\"RIGHT_MIDDLE\">" "<th class=\"RIGHT_MIDDLE\">"
@ -4214,9 +4214,9 @@ static void Sta_GetAndShowUsersRanking (void)
/***** Start table *****/ /***** Start table *****/
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_USERS_RANKING],NULL, Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_USERS_RANKING],NULL,
Hlp_STATS_Figures_ranking, Hlp_STATS_Figures_ranking,
false, // Not closable false, // Not closable
2); 2);
/***** Header *****/ /***** Header *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -4283,9 +4283,9 @@ static void Sta_GetAndShowHierarchyStats (void)
extern const char *Txt_STAT_USE_STAT_TYPES[Sta_NUM_FIGURES]; extern const char *Txt_STAT_USE_STAT_TYPES[Sta_NUM_FIGURES];
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_HIERARCHY],NULL, Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_HIERARCHY],NULL,
Hlp_STATS_Figures_hierarchy, Hlp_STATS_Figures_hierarchy,
false, // Not closable false, // Not closable
2); 2);
Sta_WriteHeadDegsCrssInSWAD (); Sta_WriteHeadDegsCrssInSWAD ();
Sta_GetAndShowNumCtysInSWAD (); Sta_GetAndShowNumCtysInSWAD ();
Sta_GetAndShowNumInssInSWAD (); Sta_GetAndShowNumInssInSWAD ();
@ -4973,8 +4973,8 @@ static void Sta_GetAndShowInstitutionsStats (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Institutions,NULL, Box_StartBox (NULL,Txt_Institutions,NULL,
Hlp_STATS_Figures_institutions, Hlp_STATS_Figures_institutions,
false); // Not closable false); // Not closable
/***** Form to select type of list used to display degree photos *****/ /***** Form to select type of list used to display degree photos *****/
Usr_GetAndUpdatePrefsAboutUsrList (); Usr_GetAndUpdatePrefsAboutUsrList ();
@ -5011,9 +5011,9 @@ static void Sta_GetAndShowInssOrderedByNumCtrs (void)
/****** Institutions ordered by number of centres ******/ /****** Institutions ordered by number of centres ******/
Box_StartBoxTable ("100%",Txt_Institutions_by_number_of_centres,NULL, Box_StartBoxTable ("100%",Txt_Institutions_by_number_of_centres,NULL,
NULL, NULL,
false, // Not closable false, // Not closable
2); 2);
/***** Get institutions ordered by number of centres *****/ /***** Get institutions ordered by number of centres *****/
switch (Gbl.Scope.Current) switch (Gbl.Scope.Current)
@ -5065,9 +5065,9 @@ static void Sta_GetAndShowInssOrderedByNumDegs (void)
/****** Institutions ordered by number of centres ******/ /****** Institutions ordered by number of centres ******/
Box_StartBoxTable ("100%",Txt_Institutions_by_number_of_degrees,NULL, Box_StartBoxTable ("100%",Txt_Institutions_by_number_of_degrees,NULL,
NULL, NULL,
false, // Not closable false, // Not closable
2); 2);
/***** Get institutions ordered by number of degrees *****/ /***** Get institutions ordered by number of degrees *****/
switch (Gbl.Scope.Current) switch (Gbl.Scope.Current)
@ -5122,9 +5122,9 @@ static void Sta_GetAndShowInssOrderedByNumCrss (void)
/****** Institutions ordered by number of centres ******/ /****** Institutions ordered by number of centres ******/
Box_StartBoxTable ("100%",Txt_Institutions_by_number_of_courses,NULL, Box_StartBoxTable ("100%",Txt_Institutions_by_number_of_courses,NULL,
NULL, NULL,
false, // Not closable false, // Not closable
2); 2);
/***** Get institutions ordered by number of courses *****/ /***** Get institutions ordered by number of courses *****/
switch (Gbl.Scope.Current) switch (Gbl.Scope.Current)
@ -5181,11 +5181,10 @@ static void Sta_GetAndShowInssOrderedByNumUsrsInCrss (void)
char Query[1024]; char Query[1024];
/****** Institutions ordered by number of centres ******/ /****** Institutions ordered by number of centres ******/
Box_StartBoxTable ("100%",Txt_Institutions_by_number_of_users_in_courses, Box_StartBoxTable ("100%",Txt_Institutions_by_number_of_users_in_courses,NULL,
NULL, NULL,
NULL, false, // Not closable
false, // Not closable 2);
2);
/***** Get institutions ordered by number of users in courses *****/ /***** Get institutions ordered by number of users in courses *****/
switch (Gbl.Scope.Current) switch (Gbl.Scope.Current)
@ -5247,10 +5246,10 @@ static void Sta_GetAndShowInssOrderedByNumUsrsWhoClaimToBelongToThem (void)
/****** Institutions ordered by number of centres ******/ /****** Institutions ordered by number of centres ******/
Box_StartBoxTable ("100%",Txt_Institutions_by_number_of_users_who_claim_to_belong_to_them, Box_StartBoxTable ("100%",Txt_Institutions_by_number_of_users_who_claim_to_belong_to_them,
NULL, NULL,
NULL, NULL,
false, // Not closable false, // Not closable
2); 2);
/***** Get institutions ordered by number of users who claim to belong to them *****/ /***** Get institutions ordered by number of users who claim to belong to them *****/
switch (Gbl.Scope.Current) switch (Gbl.Scope.Current)
@ -5478,11 +5477,10 @@ static void Sta_GetAndShowFileBrowsersStats (void)
unsigned NumStat; unsigned NumStat;
/***** Start table *****/ /***** Start table *****/
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_FOLDERS_AND_FILES], Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_FOLDERS_AND_FILES],NULL,
NULL, Hlp_STATS_Figures_folders_and_files,
Hlp_STATS_Figures_folders_and_files, false, // Not closable
false, // Not closable 2);
2);
/***** Write table heading *****/ /***** Write table heading *****/
Sta_WriteStatsExpTreesTableHead (); Sta_WriteStatsExpTreesTableHead ();
@ -6558,9 +6556,9 @@ static void Sta_GetAndShowOERsStats (void)
/***** Start table *****/ /***** Start table *****/
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_OER],NULL, Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_OER],NULL,
Hlp_STATS_Figures_open_educational_resources_oer, Hlp_STATS_Figures_open_educational_resources_oer,
false, // Not closable false, // Not closable
2); 2);
/***** Write table heading *****/ /***** Write table heading *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -6750,9 +6748,9 @@ static void Sta_GetAndShowAssignmentsStats (void)
/***** Start table *****/ /***** Start table *****/
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_ASSIGNMENTS],NULL, Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_ASSIGNMENTS],NULL,
Hlp_STATS_Figures_assignments, Hlp_STATS_Figures_assignments,
false, // Not closable false, // Not closable
2); 2);
/***** Write table heading *****/ /***** Write table heading *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -6822,9 +6820,9 @@ static void Sta_GetAndShowTestsStats (void)
/***** Start table *****/ /***** Start table *****/
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_TESTS],NULL, Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_TESTS],NULL,
Hlp_STATS_Figures_tests, Hlp_STATS_Figures_tests,
false, // Not closable false, // Not closable
2); 2);
/***** Write table heading *****/ /***** Write table heading *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -6993,11 +6991,10 @@ static void Sta_GetAndShowSocialActivityStats (void)
unsigned NumUsrsTotal; unsigned NumUsrsTotal;
/***** Start table *****/ /***** Start table *****/
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_SOCIAL_ACTIVITY], Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_SOCIAL_ACTIVITY],NULL,
NULL, Hlp_STATS_Figures_timeline,
Hlp_STATS_Figures_timeline, false, // Not closable
false, // Not closable 2);
2);
/***** Heading row *****/ /***** Heading row *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -7285,9 +7282,9 @@ static void Sta_GetAndShowFollowStats (void)
/***** Start table *****/ /***** Start table *****/
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_FOLLOW],NULL, Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_FOLLOW],NULL,
Hlp_STATS_Figures_followed_followers, Hlp_STATS_Figures_followed_followers,
false, // Not closable false, // Not closable
2); 2);
/***** Heading row *****/ /***** Heading row *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -7546,11 +7543,11 @@ static void Sta_GetAndShowForumStats (void)
StatsForum.NumPosts = 0; StatsForum.NumPosts = 0;
StatsForum.NumUsrsToBeNotifiedByEMail = 0; StatsForum.NumUsrsToBeNotifiedByEMail = 0;
/***** Start table *****/ /***** Start box and table *****/
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_FORUMS],NULL, Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_FORUMS],NULL,
Hlp_STATS_Figures_forums, Hlp_STATS_Figures_forums,
false, // Not closable false, // Not closable
2); 2);
/***** Write table heading *****/ /***** Write table heading *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -7658,7 +7655,7 @@ static void Sta_GetAndShowForumStats (void)
Sta_WriteForumTotalStats (&StatsForum); Sta_WriteForumTotalStats (&StatsForum);
/***** End table *****/ /***** End table and box *****/
Box_EndBoxTable (); Box_EndBoxTable ();
} }
@ -7905,11 +7902,11 @@ static void Sta_GetAndShowNumUsrsPerNotifyEvent (void)
unsigned NumMailsTotal = 0; unsigned NumMailsTotal = 0;
unsigned NumMails[Ntf_NUM_NOTIFY_EVENTS]; unsigned NumMails[Ntf_NUM_NOTIFY_EVENTS];
/***** Start table *****/ /***** Start box and table *****/
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_NOTIFY_EVENTS],NULL, Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_NOTIFY_EVENTS],NULL,
Hlp_STATS_Figures_notifications, Hlp_STATS_Figures_notifications,
false, // Not closable false, // Not closable
2); 2);
/***** Heading row *****/ /***** Heading row *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -8252,11 +8249,11 @@ static void Sta_GetAndShowNoticesStats (void)
NumTotalNotices += NumNoticesDeleted; NumTotalNotices += NumNoticesDeleted;
NumTotalNotifications += NumNotif; NumTotalNotifications += NumNotif;
/***** Start table *****/ /***** Start box and table *****/
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_NOTICES],NULL, Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_NOTICES],NULL,
Hlp_STATS_Figures_notices, Hlp_STATS_Figures_notices,
false, // Not closable false, // Not closable
2); 2);
/***** Write table heading *****/ /***** Write table heading *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -8306,7 +8303,7 @@ static void Sta_GetAndShowNoticesStats (void)
NumTotalNotices, NumTotalNotices,
NumTotalNotifications); NumTotalNotifications);
/***** End table *****/ /***** End table and box *****/
Box_EndBoxTable (); Box_EndBoxTable ();
} }
@ -8337,11 +8334,11 @@ static void Sta_GetAndShowMsgsStats (void)
NumMsgsReceivedAndDeleted = Msg_GetNumMsgsReceived (Gbl.Scope.Current,Msg_STATUS_DELETED ); NumMsgsReceivedAndDeleted = Msg_GetNumMsgsReceived (Gbl.Scope.Current,Msg_STATUS_DELETED );
NumMsgsReceivedAndNotified = Msg_GetNumMsgsReceived (Gbl.Scope.Current,Msg_STATUS_NOTIFIED); NumMsgsReceivedAndNotified = Msg_GetNumMsgsReceived (Gbl.Scope.Current,Msg_STATUS_NOTIFIED);
/***** Start table *****/ /***** Start box and table *****/
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_MESSAGES],NULL, Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_MESSAGES],NULL,
Hlp_STATS_Figures_messages, Hlp_STATS_Figures_messages,
false, // Not closable false, // Not closable
2); 2);
/***** Write table heading *****/ /***** Write table heading *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -8446,9 +8443,9 @@ static void Sta_GetAndShowSurveysStats (void)
/***** Start table *****/ /***** Start table *****/
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_SURVEYS],NULL, Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_SURVEYS],NULL,
Hlp_STATS_Figures_surveys, Hlp_STATS_Figures_surveys,
false, // Not closable false, // Not closable
2); 2);
/***** Write table heading *****/ /***** Write table heading *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -8515,9 +8512,9 @@ static void Sta_GetAndShowNumUsrsPerPrivacy (void)
/***** Start table *****/ /***** Start table *****/
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_PRIVACY],NULL, Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_PRIVACY],NULL,
Hlp_STATS_Figures_privacy, Hlp_STATS_Figures_privacy,
false, // Not closable false, // Not closable
2); 2);
/***** Privacy for photo *****/ /***** Privacy for photo *****/
Sta_GetAndShowNumUsrsPerPrivacyForAnObject (Txt_Photo,"PhotoVisibility"); Sta_GetAndShowNumUsrsPerPrivacyForAnObject (Txt_Photo,"PhotoVisibility");
@ -8685,9 +8682,9 @@ static void Sta_GetAndShowNumUsrsPerLanguage (void)
/***** Start table *****/ /***** Start table *****/
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_LANGUAGES],NULL, Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_LANGUAGES],NULL,
Hlp_STATS_Figures_language, Hlp_STATS_Figures_language,
false, // Not closable false, // Not closable
2); 2);
/***** Heading row *****/ /***** Heading row *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -8827,11 +8824,10 @@ static void Sta_GetAndShowNumUsrsPerFirstDayOfWeek (void)
unsigned NumUsrsTotal = 0; unsigned NumUsrsTotal = 0;
/***** Start table *****/ /***** Start table *****/
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_FIRST_DAY_OF_WEEK], Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_FIRST_DAY_OF_WEEK],NULL,
NULL, Hlp_STATS_Figures_calendar,
Hlp_STATS_Figures_calendar, false, // Not closable
false, // Not closable 2);
2);
/***** Heading row *****/ /***** Heading row *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -8971,9 +8967,9 @@ static void Sta_GetAndShowNumUsrsPerDateFormat (void)
/***** Start table *****/ /***** Start table *****/
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_DATE_FORMAT],NULL, Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_DATE_FORMAT],NULL,
Hlp_STATS_Figures_dates, Hlp_STATS_Figures_dates,
false, // Not closable false, // Not closable
2); 2);
/***** Heading row *****/ /***** Heading row *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -9111,9 +9107,9 @@ static void Sta_GetAndShowNumUsrsPerIconSet (void)
/***** Start table *****/ /***** Start table *****/
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_ICON_SETS],NULL, Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_ICON_SETS],NULL,
Hlp_STATS_Figures_icons, Hlp_STATS_Figures_icons,
false, // Not closable false, // Not closable
2); 2);
/***** Heading row *****/ /***** Heading row *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -9256,9 +9252,9 @@ static void Sta_GetAndShowNumUsrsPerMenu (void)
/***** Start table *****/ /***** Start table *****/
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_MENUS],NULL, Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_MENUS],NULL,
Hlp_STATS_Figures_menu, Hlp_STATS_Figures_menu,
false, // Not closable false, // Not closable
2); 2);
/***** Heading row *****/ /***** Heading row *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -9398,9 +9394,9 @@ static void Sta_GetAndShowNumUsrsPerTheme (void)
/***** Start table *****/ /***** Start table *****/
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_THEMES],NULL, Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_THEMES],NULL,
Hlp_STATS_Figures_theme, Hlp_STATS_Figures_theme,
false, // Not closable false, // Not closable
2); 2);
/***** Heading row *****/ /***** Heading row *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -9539,9 +9535,9 @@ static void Sta_GetAndShowNumUsrsPerSideColumns (void)
/***** Start table *****/ /***** Start table *****/
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_SIDE_COLUMNS],NULL, Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_SIDE_COLUMNS],NULL,
Hlp_STATS_Figures_columns, Hlp_STATS_Figures_columns,
false, // Not closable false, // Not closable
2); 2);
/***** Heading row *****/ /***** Heading row *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"

View File

@ -215,8 +215,8 @@ static void Svy_ListAllSurveys (struct SurveyQuestion *SvyQst)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox ("100%",Txt_Surveys,Svy_PutIconsListSurveys, Box_StartBox ("100%",Txt_Surveys,Svy_PutIconsListSurveys,
Hlp_ASSESSMENT_Surveys, Hlp_ASSESSMENT_Surveys,
false); // Not closable false); // Not closable
/***** Select whether show only my groups or all groups *****/ /***** Select whether show only my groups or all groups *****/
if (Gbl.CurrentCrs.Grps.NumGrps) if (Gbl.CurrentCrs.Grps.NumGrps)
@ -435,8 +435,8 @@ static void Svy_ShowOneSurvey (long SvyCod,struct SurveyQuestion *SvyQst,
/***** Start frame *****/ /***** Start frame *****/
if (ShowOnlyThisSvyComplete) if (ShowOnlyThisSvyComplete)
Box_StartBox (NULL,Txt_Survey,NULL, Box_StartBox (NULL,Txt_Survey,NULL,
Hlp_ASSESSMENT_Surveys, Hlp_ASSESSMENT_Surveys,
false); // Not closable false); // Not closable
/***** Get data of this survey *****/ /***** Get data of this survey *****/
Svy.SvyCod = SvyCod; Svy.SvyCod = SvyCod;
@ -1818,12 +1818,16 @@ void Svy_RequestCreatOrEditSvy (void)
Svy_PutParams (); Svy_PutParams ();
/***** Start frame *****/ /***** Start frame *****/
Box_StartBoxTable (NULL,ItsANewSurvey ? Txt_New_survey : if (ItsANewSurvey)
Txt_Edit_survey, Box_StartBoxTable (NULL,Txt_New_survey,NULL,
NULL,ItsANewSurvey ? Hlp_ASSESSMENT_Surveys_new_survey : Hlp_ASSESSMENT_Surveys_new_survey,
Hlp_ASSESSMENT_Surveys_edit_survey, false, // Not closable
false, // Not closable 2);
2); else
Box_StartBoxTable (NULL,Txt_Edit_survey,NULL,
Hlp_ASSESSMENT_Surveys_edit_survey,
false, // Not closable
2);
/***** Scope of the survey *****/ /***** Scope of the survey *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -2020,9 +2024,9 @@ static void Svy_ShowLstGrpsToEditSurvey (long SvyCod)
The_ClassForm[Gbl.Prefs.Theme], The_ClassForm[Gbl.Prefs.Theme],
Txt_Groups); Txt_Groups);
Box_StartBoxTable ("95%",NULL,NULL, Box_StartBoxTable ("95%",NULL,NULL,
NULL, NULL,
false, // Not closable false, // Not closable
0); 0);
/***** First row: checkbox to select the whole course *****/ /***** First row: checkbox to select the whole course *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -2659,13 +2663,13 @@ static void Svy_ShowFormEditOneQst (long SvyCod,struct SurveyQuestion *SvyQst,
sprintf (Gbl.Title,"%s %u", sprintf (Gbl.Title,"%s %u",
Txt_Question,SvyQst->QstInd + 1); // Question index may be 0, 1, 2, 3,... Txt_Question,SvyQst->QstInd + 1); // Question index may be 0, 1, 2, 3,...
Box_StartBox (NULL,Gbl.Title,Svy_PutIconToRemoveOneQst, Box_StartBox (NULL,Gbl.Title,Svy_PutIconToRemoveOneQst,
NULL, NULL,
false); // Not closable false); // Not closable
} }
else else
Box_StartBox (NULL,Txt_New_question,NULL, Box_StartBox (NULL,Txt_New_question,NULL,
Hlp_ASSESSMENT_Surveys_questions, Hlp_ASSESSMENT_Surveys_questions,
false); // Not closable false); // Not closable
/***** Start form *****/ /***** Start form *****/
Act_FormStart (ActRcvSvyQst); Act_FormStart (ActRcvSvyQst);
@ -3180,11 +3184,10 @@ static void Svy_ListSvyQuestions (struct Survey *Svy,struct SurveyQuestion *SvyQ
/***** Start frame *****/ /***** Start frame *****/
Gbl.Svys.SvyCodToEdit = Svy->SvyCod; Gbl.Svys.SvyCodToEdit = Svy->SvyCod;
Box_StartBox (NULL,Txt_Questions, Box_StartBox (NULL,Txt_Questions,Svy->Status.ICanEdit ? Svy_PutIconToAddNewQuestion :
Svy->Status.ICanEdit ? Svy_PutIconToAddNewQuestion : NULL,
NULL, Hlp_ASSESSMENT_Surveys_questions,
Hlp_ASSESSMENT_Surveys_questions, false); // Not closable
false); // Not closable
if (NumQsts) if (NumQsts)
{ {

View File

@ -243,12 +243,12 @@ bool Syl_CheckAndEditSyllabus (void)
Gbl.Usrs.Me.Role.Logged == Rol_SYS_ADM; Gbl.Usrs.Me.Role.Logged == Rol_SYS_ADM;
PutIconToEdit = ICanEdit && !Gbl.Syllabus.EditionIsActive; PutIconToEdit = ICanEdit && !Gbl.Syllabus.EditionIsActive;
Box_StartBoxTable (NULL,Txt_INFO_TITLE[Gbl.CurrentCrs.Info.Type], Box_StartBoxTable (NULL,Txt_INFO_TITLE[Gbl.CurrentCrs.Info.Type],
PutIconToEdit ? Inf_PutIconToEditInfo : PutIconToEdit ? Inf_PutIconToEditInfo :
NULL, NULL,
Gbl.Syllabus.EditionIsActive ? Hlp_COURSE_Syllabus_edit : Gbl.Syllabus.EditionIsActive ? Hlp_COURSE_Syllabus_edit :
Hlp_COURSE_Syllabus, Hlp_COURSE_Syllabus,
false, // Not closable false, // Not closable
1); 1);
/***** Write the current syllabus *****/ /***** Write the current syllabus *****/
Syl_ShowSyllabus (); Syl_ShowSyllabus ();

View File

@ -318,8 +318,8 @@ void Tst_ShowFormAskTst (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Take_a_test,Tst_PutIconsTests, Box_StartBox (NULL,Txt_Take_a_test,Tst_PutIconsTests,
Hlp_ASSESSMENT_Tests, Hlp_ASSESSMENT_Tests,
false); // Not closable false); // Not closable
/***** Get tags *****/ /***** Get tags *****/
if ((NumRows = Tst_GetEnabledTagsFromThisCrs (&mysql_res)) != 0) if ((NumRows = Tst_GetEnabledTagsFromThisCrs (&mysql_res)) != 0)
@ -437,8 +437,8 @@ void Tst_ShowNewTest (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Test,NULL, Box_StartBox (NULL,Txt_Test,NULL,
Hlp_ASSESSMENT_Tests, Hlp_ASSESSMENT_Tests,
false); // Not closable false); // Not closable
Lay_WriteHeaderClassPhoto (false,false, Lay_WriteHeaderClassPhoto (false,false,
Gbl.CurrentIns.Ins.InsCod, Gbl.CurrentIns.Ins.InsCod,
Gbl.CurrentDeg.Deg.DegCod, Gbl.CurrentDeg.Deg.DegCod,
@ -537,8 +537,8 @@ void Tst_AssessTest (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Test_result,NULL, Box_StartBox (NULL,Txt_Test_result,NULL,
Hlp_ASSESSMENT_Tests, Hlp_ASSESSMENT_Tests,
false); // Not closable false); // Not closable
Lay_WriteHeaderClassPhoto (false,false, Lay_WriteHeaderClassPhoto (false,false,
Gbl.CurrentIns.Ins.InsCod, Gbl.CurrentIns.Ins.InsCod,
Gbl.CurrentDeg.Deg.DegCod, Gbl.CurrentDeg.Deg.DegCod,
@ -1282,8 +1282,8 @@ void Tst_ShowFormAskEditTsts (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_List_edit_questions,Tst_PutIconsTests, Box_StartBox (NULL,Txt_List_edit_questions,Tst_PutIconsTests,
Hlp_ASSESSMENT_Tests, Hlp_ASSESSMENT_Tests,
false); // Not closable false); // Not closable
/***** Get tags already present in the table of questions *****/ /***** Get tags already present in the table of questions *****/
if ((NumRows = Tst_GetAllTagsFromCurrentCrs (&mysql_res))) if ((NumRows = Tst_GetAllTagsFromCurrentCrs (&mysql_res)))
@ -1739,9 +1739,9 @@ static void Tst_ShowFormEditTags (void)
{ {
/***** Start table *****/ /***** Start table *****/
Box_StartBoxTable (NULL,Txt_Tags,NULL, Box_StartBoxTable (NULL,Txt_Tags,NULL,
Hlp_ASSESSMENT_Tests, Hlp_ASSESSMENT_Tests,
false, // Not closable false, // Not closable
2); 2);
/***** Show tags *****/ /***** Show tags *****/
for (NumRow = 0; for (NumRow = 0;
@ -1854,8 +1854,8 @@ static void Tst_ShowFormConfigTst (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Configure_tests,Tst_PutIconsTests, Box_StartBox (NULL,Txt_Configure_tests,Tst_PutIconsTests,
Hlp_ASSESSMENT_Tests, Hlp_ASSESSMENT_Tests,
false); // Not closable false); // Not closable
/***** Start form *****/ /***** Start form *****/
Act_FormStart (ActRcvCfgTst); Act_FormStart (ActRcvCfgTst);
@ -2735,8 +2735,8 @@ static void Tst_ListOneOrMoreQuestionsToEdit (unsigned long NumRows,MYSQL_RES *m
/***** Table start *****/ /***** Table start *****/
Box_StartBox (NULL,Txt_Questions,Tst_PutIconsTests, Box_StartBox (NULL,Txt_Questions,Tst_PutIconsTests,
Hlp_ASSESSMENT_Tests, Hlp_ASSESSMENT_Tests,
false); // Not closable false); // Not closable
/***** Write the heading *****/ /***** Write the heading *****/
Tbl_StartTableWideMargin (2); Tbl_StartTableWideMargin (2);
@ -4527,13 +4527,13 @@ static void Tst_PutFormEditOneQst (char Stem[Cns_MAX_BYTES_TEXT + 1],
{ {
sprintf (Title,Txt_Question_code_X,Gbl.Test.QstCod); sprintf (Title,Txt_Question_code_X,Gbl.Test.QstCod);
Box_StartBox (NULL,Title,Tst_PutIconToRemoveOneQst, Box_StartBox (NULL,Title,Tst_PutIconToRemoveOneQst,
Hlp_ASSESSMENT_Tests, Hlp_ASSESSMENT_Tests,
false); // Not closable false); // Not closable
} }
else else
Box_StartBox (NULL,Txt_New_question,NULL, Box_StartBox (NULL,Txt_New_question,NULL,
Hlp_ASSESSMENT_Tests, Hlp_ASSESSMENT_Tests,
false); // Not closable false); // Not closable
/***** Start form *****/ /***** Start form *****/
Act_FormStart (ActRcvTstQst); Act_FormStart (ActRcvTstQst);
@ -6993,8 +6993,8 @@ void Tst_SelUsrsToSeeUsrsTestResults (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Test_results,NULL, Box_StartBox (NULL,Txt_Test_results,NULL,
Hlp_ASSESSMENT_Tests_test_results, Hlp_ASSESSMENT_Tests_test_results,
false); // Not closable false); // Not closable
/***** Show form to select the groups *****/ /***** Show form to select the groups *****/
Grp_ShowFormToSelectSeveralGroups (ActReqSeeUsrTstRes); Grp_ShowFormToSelectSeveralGroups (ActReqSeeUsrTstRes);
@ -7079,9 +7079,9 @@ void Tst_SelDatesToSeeMyTestResults (void)
/***** Starting and ending dates in the search *****/ /***** Starting and ending dates in the search *****/
Box_StartBoxTable (NULL,Txt_Test_results,NULL, Box_StartBoxTable (NULL,Txt_Test_results,NULL,
Hlp_ASSESSMENT_Tests_test_results, Hlp_ASSESSMENT_Tests_test_results,
false, // Not closable false, // Not closable
2); 2);
Dat_PutFormStartEndClientLocalDateTimesWithYesterdayToday (false); Dat_PutFormStartEndClientLocalDateTimesWithYesterdayToday (false);
/***** Send button and end frame *****/ /***** Send button and end frame *****/
@ -7154,9 +7154,9 @@ void Tst_ShowUsrsTestResults (void)
{ {
/***** Header of the table with the list of users *****/ /***** Header of the table with the list of users *****/
Box_StartBoxTable (NULL,Txt_Test_results,NULL, Box_StartBoxTable (NULL,Txt_Test_results,NULL,
Hlp_ASSESSMENT_Tests_test_results, Hlp_ASSESSMENT_Tests_test_results,
false, // Not closable false, // Not closable
2); 2);
Tst_ShowHeaderTestResults (); Tst_ShowHeaderTestResults ();
/***** List the assignments and works of the selected users *****/ /***** List the assignments and works of the selected users *****/
@ -7249,9 +7249,9 @@ void Tst_ShowMyTestResults (void)
/***** Header of the table with the list of users *****/ /***** Header of the table with the list of users *****/
Box_StartBoxTable (NULL,Txt_Test_results,NULL, Box_StartBoxTable (NULL,Txt_Test_results,NULL,
Hlp_ASSESSMENT_Tests_test_results, Hlp_ASSESSMENT_Tests_test_results,
false, // Not closable false, // Not closable
2); 2);
Tst_ShowHeaderTestResults (); Tst_ShowHeaderTestResults ();
/***** List my test results *****/ /***** List my test results *****/
@ -7717,8 +7717,8 @@ void Tst_ShowOneTestResult (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Test_result,NULL, Box_StartBox (NULL,Txt_Test_result,NULL,
Hlp_ASSESSMENT_Tests_test_results, Hlp_ASSESSMENT_Tests_test_results,
false); // Not closable false); // Not closable
Lay_WriteHeaderClassPhoto (false,false, Lay_WriteHeaderClassPhoto (false,false,
Gbl.CurrentIns.Ins.InsCod, Gbl.CurrentIns.Ins.InsCod,
Gbl.CurrentDeg.Deg.DegCod, Gbl.CurrentDeg.Deg.DegCod,

View File

@ -138,8 +138,8 @@ void TsI_ShowFormImportQstsFromXML (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Import_questions,NULL, Box_StartBox (NULL,Txt_Import_questions,NULL,
Hlp_ASSESSMENT_Tests, Hlp_ASSESSMENT_Tests,
false); // Not closable false); // Not closable
/***** Write help message *****/ /***** Write help message *****/
Ale_ShowAlert (Ale_INFO,Txt_You_need_an_XML_file_containing_a_list_of_questions); Ale_ShowAlert (Ale_INFO,Txt_You_need_an_XML_file_containing_a_list_of_questions);
@ -511,8 +511,8 @@ static void TsI_ImportQuestionsFromXMLBuffer (const char *XMLBuffer)
/***** Table start *****/ /***** Table start *****/
Box_StartBox (NULL,Txt_Imported_questions,NULL, Box_StartBox (NULL,Txt_Imported_questions,NULL,
Hlp_ASSESSMENT_Tests, Hlp_ASSESSMENT_Tests,
false); // Not closable false); // Not closable
/***** Print XML tree *****/ /***** Print XML tree *****/
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\"" fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\""

View File

@ -241,8 +241,8 @@ void The_PutIconsToSelectTheme (void)
The_Theme_t Theme; The_Theme_t Theme;
Box_StartBox (NULL,Txt_Theme_SKIN,The_PutIconsTheme, Box_StartBox (NULL,Txt_Theme_SKIN,The_PutIconsTheme,
Hlp_PROFILE_Preferences_theme, Hlp_PROFILE_Preferences_theme,
false); // Not closable false); // Not closable
fprintf (Gbl.F.Out,"<div class=\"PREF_CONTAINER\">"); fprintf (Gbl.F.Out,"<div class=\"PREF_CONTAINER\">");
for (Theme = (The_Theme_t) 0; for (Theme = (The_Theme_t) 0;
Theme < The_NUM_THEMES; Theme < The_NUM_THEMES;

View File

@ -352,12 +352,12 @@ void TT_ShowClassTimeTable (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox ("100%",Txt_TIMETABLE_TYPES[Gbl.TimeTable.Type], Box_StartBox ("100%",Txt_TIMETABLE_TYPES[Gbl.TimeTable.Type],
(Gbl.TimeTable.ContextualIcons.PutIconEditCrsTT || (Gbl.TimeTable.ContextualIcons.PutIconEditCrsTT ||
Gbl.TimeTable.ContextualIcons.PutIconEditOfficeHours || Gbl.TimeTable.ContextualIcons.PutIconEditOfficeHours ||
Gbl.TimeTable.ContextualIcons.PutIconPrint) ? TT_PutContextualIcons : Gbl.TimeTable.ContextualIcons.PutIconPrint) ? TT_PutContextualIcons :
NULL, NULL,
Help[Gbl.TimeTable.Type], Help[Gbl.TimeTable.Type],
false); // Not closable false); // Not closable
/***** Start time table drawing *****/ /***** Start time table drawing *****/
if (Gbl.TimeTable.Type == TT_COURSE_TIMETABLE) if (Gbl.TimeTable.Type == TT_COURSE_TIMETABLE)
@ -433,10 +433,9 @@ void TT_EditCrsTimeTable (void)
/***** Editable time table *****/ /***** Editable time table *****/
Gbl.TimeTable.Type = TT_COURSE_TIMETABLE; Gbl.TimeTable.Type = TT_COURSE_TIMETABLE;
Box_StartBox ("100%",Txt_TIMETABLE_TYPES[Gbl.TimeTable.Type], Box_StartBox ("100%",Txt_TIMETABLE_TYPES[Gbl.TimeTable.Type],TT_PutIconToViewCrsTT,
TT_PutIconToViewCrsTT, Hlp_COURSE_Timetable,
Hlp_COURSE_Timetable, false); // Not closable
false); // Not closable
TT_ShowTimeTable (Gbl.Usrs.Me.UsrDat.UsrCod); TT_ShowTimeTable (Gbl.Usrs.Me.UsrDat.UsrCod);
Box_EndBox (); Box_EndBox ();
} }
@ -452,10 +451,9 @@ void TT_EditMyTutTimeTable (void)
/***** Time table *****/ /***** Time table *****/
Gbl.TimeTable.Type = TT_TUTORING_TIMETABLE; Gbl.TimeTable.Type = TT_TUTORING_TIMETABLE;
Box_StartBox ("100%",Txt_TIMETABLE_TYPES[Gbl.TimeTable.Type], Box_StartBox ("100%",Txt_TIMETABLE_TYPES[Gbl.TimeTable.Type],TT_PutIconToViewMyTT,
TT_PutIconToViewMyTT, Hlp_PROFILE_Timetable,
Hlp_PROFILE_Timetable, false); // Not closable
false); // Not closable
TT_ShowTimeTable (Gbl.Usrs.Me.UsrDat.UsrCod); TT_ShowTimeTable (Gbl.Usrs.Me.UsrDat.UsrCod);
Box_EndBox (); Box_EndBox ();
} }

View File

@ -2263,9 +2263,9 @@ void Usr_WriteFormLogin (Act_Action_t NextAction,void (*FuncParams) ())
/***** Start frame and table *****/ /***** Start frame and table *****/
Box_StartBoxTable (NULL,Txt_Log_in,NULL, Box_StartBoxTable (NULL,Txt_Log_in,NULL,
Hlp_PROFILE_LogIn, Hlp_PROFILE_LogIn,
false, // Not closable false, // Not closable
2); 2);
/***** User's ID/nickname *****/ /***** User's ID/nickname *****/
fprintf (Gbl.F.Out,"<div class=\"LEFT_MIDDLE\">" fprintf (Gbl.F.Out,"<div class=\"LEFT_MIDDLE\">"
@ -3156,8 +3156,8 @@ void Usr_ShowFormsLogoutAndRole (void)
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_Role,NULL, Box_StartBox (NULL,Txt_Role,NULL,
Hlp_PROFILE_Session_role, Hlp_PROFILE_Session_role,
false); // Not closable false); // Not closable
/***** Put a form to change my role *****/ /***** Put a form to change my role *****/
if (Rol_GetNumAvailableRoles () == 1) if (Rol_GetNumAvailableRoles () == 1)
@ -6675,9 +6675,9 @@ 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])); Txt_ROLES_PLURAL_abc[Role][Sex]));
Box_StartBoxTable (NULL,Gbl.Title,NULL, Box_StartBoxTable (NULL,Gbl.Title,NULL,
NULL, NULL,
false, // Not closable false, // Not closable
2); 2);
/***** Heading row with column names *****/ /***** Heading row with column names *****/
Gbl.Usrs.Listing.WithPhotos = true; Gbl.Usrs.Listing.WithPhotos = true;
@ -6825,10 +6825,9 @@ void Usr_ListDataAdms (void)
Usr_GetAdmsLst (Gbl.Scope.Current); Usr_GetAdmsLst (Gbl.Scope.Current);
/***** Start frame with list of administrators *****/ /***** Start frame with list of administrators *****/
Box_StartBox (NULL,Txt_ROLES_PLURAL_Abc[Rol_DEG_ADM][Usr_SEX_UNKNOWN], Box_StartBox (NULL,Txt_ROLES_PLURAL_Abc[Rol_DEG_ADM][Usr_SEX_UNKNOWN],NULL,
NULL, Hlp_USERS_Administrators,
Hlp_USERS_Administrators, false); // Not closable
false); // Not closable
/***** Form to select scope *****/ /***** Form to select scope *****/
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\">"); fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\">");
@ -7302,10 +7301,9 @@ void Usr_SeeGuests (void)
Usr_GetGstsLst (Gbl.Scope.Current); Usr_GetGstsLst (Gbl.Scope.Current);
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_ROLES_PLURAL_Abc[Rol_GST][Usr_SEX_UNKNOWN], Box_StartBox (NULL,Txt_ROLES_PLURAL_Abc[Rol_GST][Usr_SEX_UNKNOWN],Usr_PutIconsListGsts,
Usr_PutIconsListGsts, Hlp_USERS_Guests,
Hlp_USERS_Guests, false); // Not closable
false); // Not closable
/***** Form to select scope *****/ /***** Form to select scope *****/
if (Gbl.Usrs.Me.Role.Logged == Rol_SYS_ADM) if (Gbl.Usrs.Me.Role.Logged == Rol_SYS_ADM)
@ -7450,10 +7448,9 @@ void Usr_SeeStudents (void)
Usr_GetListUsrs (Gbl.Scope.Current,Rol_STD); Usr_GetListUsrs (Gbl.Scope.Current,Rol_STD);
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_ROLES_PLURAL_Abc[Rol_STD][Usr_SEX_UNKNOWN], Box_StartBox (NULL,Txt_ROLES_PLURAL_Abc[Rol_STD][Usr_SEX_UNKNOWN],Usr_PutIconsListStds,
Usr_PutIconsListStds, Hlp_USERS_Students,
Hlp_USERS_Students, false); // Not closable
false); // Not closable
/***** Form to select scope *****/ /***** Form to select scope *****/
switch (Gbl.Usrs.Me.Role.Logged) switch (Gbl.Usrs.Me.Role.Logged)
@ -7637,10 +7634,9 @@ void Usr_SeeTeachers (void)
1 << Rol_TCH); 1 << Rol_TCH);
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Txt_ROLES_PLURAL_Abc[Rol_TCH][Usr_SEX_UNKNOWN], Box_StartBox (NULL,Txt_ROLES_PLURAL_Abc[Rol_TCH][Usr_SEX_UNKNOWN],Usr_PutIconsListTchs,
Usr_PutIconsListTchs, Hlp_USERS_Teachers,
Hlp_USERS_Teachers, false); // Not closable
false); // Not closable
/***** Form to select scope *****/ /***** Form to select scope *****/
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\">"); fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\">");
@ -8812,8 +8808,8 @@ void Usr_PrintUsrQRCode (void)
{ {
/***** Start frame *****/ /***** Start frame *****/
Box_StartBox (NULL,Gbl.Usrs.Other.UsrDat.FullName,NULL, Box_StartBox (NULL,Gbl.Usrs.Other.UsrDat.FullName,NULL,
NULL, NULL,
false); // Not closable false); // Not closable
/***** Show QR code *****/ /***** Show QR code *****/
if (Gbl.Usrs.Other.UsrDat.Nickname[0]) if (Gbl.Usrs.Other.UsrDat.Nickname[0])