mirror of https://github.com/acanas/swad-core.git
Version 16.244
This commit is contained in:
parent
ea27d14911
commit
44853999c0
|
@ -551,8 +551,7 @@ void ID_ShowFormOthIDs (void)
|
|||
{
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_ID,NULL,
|
||||
NULL,
|
||||
false); // Not closable
|
||||
NULL,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Show user's record *****/
|
||||
Rec_ShowSharedUsrRecord (Rec_SHA_RECORD_LIST,
|
||||
|
|
|
@ -225,8 +225,7 @@ void MFU_WriteBigMFUActions (struct MFU_ListMFUActions *ListMFUActions)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_My_frequent_actions,NULL,
|
||||
Hlp_STATS_Frequent,
|
||||
false); // Not closable
|
||||
Hlp_STATS_Frequent,Box_NOT_CLOSABLE);
|
||||
fprintf (Gbl.F.Out,"<div id=\"MFU_actions_big\">");
|
||||
|
||||
/***** Write list of frequently used actions *****/
|
||||
|
|
|
@ -145,8 +145,7 @@ static void Acc_ShowFormCheckIfIHaveAccount (const char *Title)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Title,NULL,
|
||||
Hlp_PROFILE_SignUp,
|
||||
true); // Closable
|
||||
Hlp_PROFILE_SignUp,Box_CLOSABLE);
|
||||
|
||||
/***** Help alert *****/
|
||||
Ale_ShowAlert (Ale_INFO,Txt_If_you_think_you_may_have_been_registered_);
|
||||
|
@ -219,9 +218,7 @@ void Acc_CheckIfEmptyAccountExists (void)
|
|||
(NumUsrs == 1) ? Txt_Do_you_think_you_are_this_user :
|
||||
Txt_Do_you_think_you_are_one_of_these_users,
|
||||
NULL,
|
||||
NULL,
|
||||
true, // Closable
|
||||
5);
|
||||
NULL,Box_CLOSABLE,5);
|
||||
|
||||
/***** Initialize structure with user's data *****/
|
||||
Usr_UsrDataConstructor (&UsrDat);
|
||||
|
@ -350,9 +347,7 @@ static void Acc_ShowFormRequestNewAccountWithParams (const char *NewNicknameWith
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_Create_account,NULL,
|
||||
Hlp_PROFILE_SignUp,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_PROFILE_SignUp,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Nickname *****/
|
||||
if (NewNicknameWithoutArroba[0])
|
||||
|
@ -417,8 +412,7 @@ void Acc_ShowFormGoToRequestNewAccount (void)
|
|||
/***** Start box *****/
|
||||
sprintf (Gbl.Title,Txt_New_on_PLATFORM_Sign_up,Cfg_PLATFORM_SHORT_NAME);
|
||||
Box_StartBox (NULL,Gbl.Title,NULL,
|
||||
Hlp_PROFILE_SignUp,
|
||||
false); // Not closable
|
||||
Hlp_PROFILE_SignUp,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Button to go to request the creation of a new account *****/
|
||||
Act_FormStart (ActFrmMyAcc);
|
||||
|
@ -478,9 +472,7 @@ void Acc_ShowFormChangeMyAccount (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_User_account,NULL,
|
||||
Hlp_PROFILE_Account,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_PROFILE_Account,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Nickname *****/
|
||||
if (IMustFillNickname)
|
||||
|
|
|
@ -149,8 +149,7 @@ void Agd_ShowMyAgenda (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox ("100%",Txt_My_agenda,Agd_PutIconsMyFullAgenda,
|
||||
Hlp_PROFILE_Agenda,
|
||||
false); // Not closable
|
||||
Hlp_PROFILE_Agenda,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Put forms to choice which events to show *****/
|
||||
Agd_ShowFormToSelPast__FutureEvents ();
|
||||
|
@ -370,8 +369,7 @@ void Agd_ShowUsrAgenda (void)
|
|||
Box_StartBox ("100%",Gbl.Title,
|
||||
ItsMe ? Agd_PutIconsMyPublicAgenda :
|
||||
Agd_PutIconsOtherPublicAgenda,
|
||||
Hlp_PROFILE_Agenda_public_agenda,
|
||||
false); // Not closable
|
||||
Hlp_PROFILE_Agenda_public_agenda,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Show the current events in the user's agenda *****/
|
||||
Agd_ShowEventsToday (Agd_ANOTHER_AGENDA_TODAY);
|
||||
|
@ -414,8 +412,7 @@ void Agd_ShowOtherAgendaAfterLogIn (void)
|
|||
Box_StartBox ("100%",Gbl.Title,
|
||||
ItsMe ? Agd_PutIconToViewEditMyFullAgenda :
|
||||
Agd_PutIconsOtherPublicAgenda,
|
||||
Hlp_PROFILE_Agenda_public_agenda,
|
||||
false); // Not closable
|
||||
Hlp_PROFILE_Agenda_public_agenda,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Show the current events in the user's agenda *****/
|
||||
Agd_ShowEventsToday (Agd_ANOTHER_AGENDA_TODAY);
|
||||
|
@ -1538,14 +1535,10 @@ void Agd_RequestCreatOrEditEvent (void)
|
|||
/***** Start box and table *****/
|
||||
if (ItsANewEvent)
|
||||
Box_StartBoxTable (NULL,Txt_New_event,NULL,
|
||||
Hlp_PROFILE_Agenda_new_event,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_PROFILE_Agenda_new_event,Box_NOT_CLOSABLE,2);
|
||||
else
|
||||
Box_StartBoxTable (NULL,Txt_Edit_event,NULL,
|
||||
Hlp_PROFILE_Agenda_edit_event,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_PROFILE_Agenda_edit_event,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Event *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
@ -1949,8 +1942,7 @@ void Agd_PrintAgdQRCode (void)
|
|||
/***** Start box *****/
|
||||
sprintf (Gbl.Title,Txt_Where_s_USER,Gbl.Usrs.Me.UsrDat.FullName);
|
||||
Box_StartBox (NULL,Gbl.Title,NULL,
|
||||
NULL,
|
||||
false); // Not closable
|
||||
NULL,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Print QR code ****/
|
||||
QR_PrintQRCode ();
|
||||
|
|
|
@ -123,9 +123,7 @@ void Ann_ShowAllAnnouncements (void)
|
|||
Box_StartBox ("550px",Txt_Announcements,
|
||||
ICanEdit ? Ann_PutIconToAddNewAnnouncement :
|
||||
NULL,
|
||||
Hlp_MESSAGES_Announcements,
|
||||
false); // Not closable
|
||||
|
||||
Hlp_MESSAGES_Announcements,Box_NOT_CLOSABLE);
|
||||
if (!NumAnnouncements)
|
||||
Ale_ShowAlert (Ale_INFO,Txt_No_announcements);
|
||||
|
||||
|
@ -413,9 +411,7 @@ void Ann_ShowFormAnnouncement (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_New_announcement,NULL,
|
||||
Hlp_MESSAGES_Announcements,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_MESSAGES_Announcements,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Announcement subject and body *****/
|
||||
Ann_PutSubjectMessage ("Subject",Txt_MSG_Subject, 2);
|
||||
|
|
|
@ -138,8 +138,7 @@ static void Asg_ShowAllAssignments (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox ("100%",Txt_Assignments,Asg_PutIconsListAssignments,
|
||||
Hlp_ASSESSMENT_Assignments,
|
||||
false); // Not closable
|
||||
Hlp_ASSESSMENT_Assignments,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Select whether show only my groups or all groups *****/
|
||||
if (Gbl.CurrentCrs.Grps.NumGrps)
|
||||
|
@ -1175,14 +1174,10 @@ void Asg_RequestCreatOrEditAsg (void)
|
|||
/***** Start box and table *****/
|
||||
if (ItsANewAssignment)
|
||||
Box_StartBoxTable (NULL,Txt_New_assignment,NULL,
|
||||
Hlp_ASSESSMENT_Assignments_new_assignment,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_ASSESSMENT_Assignments_new_assignment,Box_NOT_CLOSABLE,2);
|
||||
else
|
||||
Box_StartBoxTable (NULL,Txt_Edit_assignment,NULL,
|
||||
Hlp_ASSESSMENT_Assignments_edit_assignment,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_ASSESSMENT_Assignments_edit_assignment,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Assignment title *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
@ -1275,9 +1270,7 @@ static void Asg_ShowLstGrpsToEditAssignment (long AsgCod)
|
|||
The_ClassForm[Gbl.Prefs.Theme],
|
||||
Txt_Groups);
|
||||
Box_StartBoxTable ("100%",NULL,NULL,
|
||||
Hlp_USERS_Groups,
|
||||
false, // Not closable
|
||||
0);
|
||||
Hlp_USERS_Groups,Box_NOT_CLOSABLE,0);
|
||||
|
||||
/***** First row: checkbox to select the whole course *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
|
|
@ -226,8 +226,7 @@ static void Att_ShowAllAttEvents (void)
|
|||
/***** Start box *****/
|
||||
Box_StartBox ("100%",Txt_Events,ICanEdit ? Att_PutIconToCreateNewAttEvent :
|
||||
NULL,
|
||||
Hlp_USERS_Attendance,
|
||||
false); // Not closable
|
||||
Hlp_USERS_Attendance,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Select whether show only my groups or all groups *****/
|
||||
if (Gbl.CurrentCrs.Grps.NumGrps)
|
||||
|
@ -1090,14 +1089,10 @@ void Att_RequestCreatOrEditAttEvent (void)
|
|||
/***** Start box and table *****/
|
||||
if (ItsANewAttEvent)
|
||||
Box_StartBoxTable (NULL,Txt_New_event,NULL,
|
||||
Hlp_USERS_Attendance_new_event,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_USERS_Attendance_new_event,Box_NOT_CLOSABLE,2);
|
||||
else
|
||||
Box_StartBoxTable (NULL,Txt_Edit_event,NULL,
|
||||
Hlp_USERS_Attendance_edit_event,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_USERS_Attendance_edit_event,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Attendance event title *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
@ -1197,9 +1192,7 @@ static void Att_ShowLstGrpsToEditAttEvent (long AttCod)
|
|||
"<td class=\"LEFT_TOP\">",
|
||||
The_ClassForm[Gbl.Prefs.Theme],Txt_Groups);
|
||||
Box_StartBoxTable ("100%",NULL,NULL,
|
||||
NULL,
|
||||
false, // Not closable
|
||||
0);
|
||||
NULL,Box_NOT_CLOSABLE,0);
|
||||
|
||||
/***** First row: checkbox to select the whole course *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
@ -1830,9 +1823,7 @@ void Att_SeeOneAttEvent (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_Event,NULL,
|
||||
Hlp_USERS_Attendance,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_USERS_Attendance,Box_NOT_CLOSABLE,2);
|
||||
|
||||
Att.AttCod = Gbl.AttEvents.AttCod;
|
||||
Att_ShowOneAttEvent (&Att,true);
|
||||
|
@ -1882,9 +1873,7 @@ static void Att_ListAttOnlyMeAsStudent (struct AttendanceEvent *Att)
|
|||
/***** List students' data *****/
|
||||
/* Start box and table */
|
||||
Box_StartBoxTable (NULL,NULL,NULL,
|
||||
Hlp_USERS_Attendance,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_USERS_Attendance,Box_NOT_CLOSABLE,2);
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<th></th>"
|
||||
"<th></th>"
|
||||
|
@ -1943,8 +1932,7 @@ static void Att_ListAttStudents (struct AttendanceEvent *Att)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Attendance,NULL,
|
||||
Hlp_USERS_Attendance,
|
||||
false); // Not closable
|
||||
Hlp_USERS_Attendance,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Form to select groups *****/
|
||||
Grp_ShowFormToSelectSeveralGroups (ActSeeOneAtt);
|
||||
|
@ -2681,8 +2669,7 @@ void Usr_ReqListStdsAttendanceCrs (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_ROLES_PLURAL_Abc[Rol_STD][Usr_SEX_UNKNOWN],NULL,
|
||||
Hlp_USERS_Attendance_attendance_list,
|
||||
false); // Not closable
|
||||
Hlp_USERS_Attendance_attendance_list,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Form to select groups *****/
|
||||
Grp_ShowFormToSelectSeveralGroups (ActReqLstStdAtt);
|
||||
|
@ -3114,8 +3101,7 @@ static void Att_ListEventsToSelect (Att_TypeOfView_t TypeOfView)
|
|||
Box_StartBoxTable (NULL,Txt_Events,NULL,
|
||||
TypeOfView == Att_PRINT_VIEW ? NULL :
|
||||
Hlp_USERS_Attendance_attendance_list,
|
||||
false, // Not closable
|
||||
2);
|
||||
Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Heading row *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
@ -3229,7 +3215,7 @@ static void Att_ListStdsAttendanceTable (Att_TypeOfView_t TypeOfView,
|
|||
NULL),
|
||||
TypeOfView == Att_PRINT_VIEW ? NULL :
|
||||
Hlp_USERS_Attendance_attendance_list,
|
||||
false); // Not closable
|
||||
Box_NOT_CLOSABLE);
|
||||
if (PutButtonShowDetails)
|
||||
Tbl_StartTableWideMargin (2);
|
||||
else
|
||||
|
@ -3449,8 +3435,7 @@ static void Att_ListStdsWithAttEventsDetails (Att_TypeOfView_t TypeOfView,
|
|||
Box_StartBoxTable (NULL,Txt_Details,NULL,
|
||||
TypeOfView == Att_PRINT_VIEW ? NULL :
|
||||
Hlp_USERS_Attendance_attendance_list,
|
||||
false, // Not closable
|
||||
2);
|
||||
Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** List students with attendance details *****/
|
||||
for (NumStd = 0, Gbl.RowEvenOdd = 0;
|
||||
|
|
|
@ -118,8 +118,7 @@ void Ban_SeeBanners (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Banners,Ban_PutFormToEditBanners,
|
||||
Hlp_SYSTEM_Banners,
|
||||
false); // Not closable
|
||||
Hlp_SYSTEM_Banners,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Write all banners *****/
|
||||
if (Gbl.Banners.Num) // There are banners
|
||||
|
@ -209,8 +208,7 @@ void Ban_EditBanners (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Banners,Ban_PutIconToViewBanners,
|
||||
Hlp_SYSTEM_Banners_edit,
|
||||
false); // Not closable
|
||||
Hlp_SYSTEM_Banners_edit,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Put a form to create a new banner *****/
|
||||
Ban_PutFormToCreateBanner ();
|
||||
|
@ -834,9 +832,7 @@ static void Ban_PutFormToCreateBanner (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_New_banner,NULL,
|
||||
Hlp_SYSTEM_Banners_edit,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_SYSTEM_Banners_edit,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write heading *****/
|
||||
Ban_PutHeadBanners ();
|
||||
|
|
21
swad_box.c
21
swad_box.c
|
@ -58,7 +58,7 @@ extern struct Globals Gbl;
|
|||
|
||||
static void Box_StartBoxInternal (const char *Width,const char *Title,
|
||||
void (*FunctionToDrawContextualIcons) (void),
|
||||
const char *HelpLink,bool Closable,
|
||||
const char *HelpLink,Box_Closable_t Closable,
|
||||
const char *ClassFrame);
|
||||
|
||||
/*****************************************************************************/
|
||||
|
@ -68,12 +68,11 @@ static void Box_StartBoxInternal (const char *Width,const char *Title,
|
|||
|
||||
void Box_StartBoxTable (const char *Width,const char *Title,
|
||||
void (*FunctionToDrawContextualIcons) (void),
|
||||
const char *HelpLink,bool Closable,
|
||||
const char *HelpLink,Box_Closable_t Closable,
|
||||
unsigned CellPadding) // CellPadding must be 0, 1, 2, 5 or 10
|
||||
{
|
||||
Box_StartBox (Width,Title,FunctionToDrawContextualIcons,
|
||||
HelpLink,
|
||||
Closable);
|
||||
HelpLink,Closable);
|
||||
Tbl_StartTableWide (CellPadding);
|
||||
}
|
||||
|
||||
|
@ -90,12 +89,11 @@ void Box_StartBoxTableShadow (const char *Width,const char *Title,
|
|||
|
||||
void Box_StartBox (const char *Width,const char *Title,
|
||||
void (*FunctionToDrawContextualIcons) (void),
|
||||
const char *HelpLink,bool Closable)
|
||||
const char *HelpLink,Box_Closable_t Closable)
|
||||
{
|
||||
Box_StartBoxInternal (Width,Title,
|
||||
FunctionToDrawContextualIcons,
|
||||
HelpLink,
|
||||
Closable,
|
||||
HelpLink,Closable,
|
||||
"FRAME");
|
||||
}
|
||||
|
||||
|
@ -105,14 +103,13 @@ void Box_StartBoxShadow (const char *Width,const char *Title,
|
|||
{
|
||||
Box_StartBoxInternal (Width,Title,
|
||||
FunctionToDrawContextualIcons,
|
||||
HelpLink,
|
||||
false, // Not closable
|
||||
HelpLink,Box_NOT_CLOSABLE,
|
||||
"FRAME_SHADOW");
|
||||
}
|
||||
|
||||
static void Box_StartBoxInternal (const char *Width,const char *Title,
|
||||
void (*FunctionToDrawContextualIcons) (void),
|
||||
const char *HelpLink,bool Closable,
|
||||
const char *HelpLink,Box_Closable_t Closable,
|
||||
const char *ClassFrame)
|
||||
{
|
||||
extern const char *Txt_Help;
|
||||
|
@ -121,7 +118,7 @@ static void Box_StartBoxInternal (const char *Width,const char *Title,
|
|||
|
||||
/***** Start box container *****/
|
||||
fprintf (Gbl.F.Out,"<div class=\"FRAME_CONTAINER\"");
|
||||
if (Closable)
|
||||
if (Closable == Box_CLOSABLE)
|
||||
{
|
||||
/* Create unique id for alert */
|
||||
Act_SetUniqueId (IdFrame);
|
||||
|
@ -161,7 +158,7 @@ static void Box_StartBoxInternal (const char *Width,const char *Title,
|
|||
Gbl.Prefs.IconsURL,
|
||||
Txt_Help,Txt_Help);
|
||||
|
||||
if (Closable) // Icon to close the box
|
||||
if (Closable == Box_CLOSABLE) // Icon to close the box
|
||||
fprintf (Gbl.F.Out,"<a href=\"\""
|
||||
" onclick=\"toggleDisplay('%s');return false;\" />"
|
||||
"<div class=\"CONTEXT_OPT HLP_HIGHLIGHT\">"
|
||||
|
|
10
swad_box.h
10
swad_box.h
|
@ -39,17 +39,23 @@
|
|||
/********************************* Public types ******************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
typedef enum
|
||||
{
|
||||
Box_NOT_CLOSABLE,
|
||||
Box_CLOSABLE,
|
||||
} Box_Closable_t;
|
||||
|
||||
/*****************************************************************************/
|
||||
/****************************** Public prototypes ****************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
void Box_StartBoxTable (const char *Width,const char *Title,
|
||||
void (*FunctionToDrawContextualIcons) (void),
|
||||
const char *HelpLink,bool Closable,
|
||||
const char *HelpLink,Box_Closable_t Closable,
|
||||
unsigned CellPadding);
|
||||
void Box_StartBox (const char *Width,const char *Title,
|
||||
void (*FunctionToDrawContextualIcons) (void),
|
||||
const char *HelpLink,bool Closable);
|
||||
const char *HelpLink,Box_Closable_t Closable);
|
||||
void Box_StartBoxShadow (const char *Width,const char *Title,
|
||||
void (*FunctionToDrawContextualIcons) (void),
|
||||
const char *HelpLink);
|
||||
|
|
|
@ -85,8 +85,7 @@ void Cal_PutIconsToSelectFirstDayOfWeek (void)
|
|||
extern const char *Txt_Calendar;
|
||||
|
||||
Box_StartBox (NULL,Txt_Calendar,Cal_PutIconsFirstDayOfWeek,
|
||||
Hlp_PROFILE_Preferences_calendar,
|
||||
false); // Not closable
|
||||
Hlp_PROFILE_Preferences_calendar,Box_NOT_CLOSABLE);
|
||||
Cal_ShowFormToSelFirstDayOfWeek (ActChg1stDay,NULL,"ICO25x25B");
|
||||
Box_EndBox ();
|
||||
}
|
||||
|
@ -317,8 +316,7 @@ static void Cal_DrawCalendar (Act_Action_t ActionSeeCalendar,
|
|||
/***** Start box *****/
|
||||
Box_StartBox (NULL,NULL,FunctionToDrawContextualIcons,
|
||||
PrintView ? NULL :
|
||||
Hlp_Calendar,
|
||||
false); // Not closable
|
||||
Hlp_Calendar,Box_NOT_CLOSABLE);
|
||||
Lay_WriteHeaderClassPhoto (PrintView,false,
|
||||
Gbl.CurrentIns.Ins.InsCod,
|
||||
Gbl.CurrentDeg.Deg.DegCod,
|
||||
|
|
|
@ -168,9 +168,7 @@ void Ctr_SeeCtrWithPendingDegs (void)
|
|||
{
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_Centres_with_pending_degrees,NULL,
|
||||
Hlp_SYSTEM_Hierarchy_pending,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_SYSTEM_Hierarchy_pending,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Wrtie heading *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
@ -316,12 +314,10 @@ static void Ctr_Configuration (bool PrintView)
|
|||
/***** Start box *****/
|
||||
if (PrintView)
|
||||
Box_StartBox (NULL,NULL,NULL,
|
||||
NULL,
|
||||
false); // Not closable
|
||||
NULL,Box_NOT_CLOSABLE);
|
||||
else
|
||||
Box_StartBox (NULL,NULL,Ctr_PutIconsToPrintAndUpload,
|
||||
Hlp_CENTRE_Information,
|
||||
false); // Not closable
|
||||
Hlp_CENTRE_Information,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Title *****/
|
||||
fprintf (Gbl.F.Out,"<div class=\"FRAME_TITLE FRAME_TITLE_BIG\">");
|
||||
|
@ -754,8 +750,7 @@ static void Ctr_ListCentres (void)
|
|||
/***** Start box *****/
|
||||
sprintf (Gbl.Title,Txt_Centres_of_INSTITUTION_X,Gbl.CurrentIns.Ins.FullName);
|
||||
Box_StartBox (NULL,Gbl.Title,Ctr_PutIconsListCentres,
|
||||
Hlp_INSTITUTION_Centres,
|
||||
false); // Not closable
|
||||
Hlp_INSTITUTION_Centres,Box_NOT_CLOSABLE);
|
||||
|
||||
if (Gbl.Ctrs.Num) // There are centres in the current institution
|
||||
{
|
||||
|
@ -947,8 +942,7 @@ void Ctr_EditCentres (void)
|
|||
sprintf (Gbl.Title,Txt_Centres_of_INSTITUTION_X,
|
||||
Gbl.CurrentIns.Ins.FullName);
|
||||
Box_StartBox (NULL,Gbl.Title,Ctr_PutIconsEditingCentres,
|
||||
Hlp_INSTITUTION_Centres,
|
||||
false); // Not closable
|
||||
Hlp_INSTITUTION_Centres,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Put a form to create a new centre *****/
|
||||
Ctr_PutFormToCreateCentre ();
|
||||
|
@ -2229,8 +2223,7 @@ void Ctr_RequestPhoto (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Photo,NULL,
|
||||
NULL,
|
||||
false); // Not closable
|
||||
NULL,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Write help message *****/
|
||||
sprintf (Gbl.Alert.Txt,"%s: %s<br />"
|
||||
|
@ -2425,9 +2418,7 @@ static void Ctr_PutFormToCreateCentre (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_New_centre,NULL,
|
||||
NULL,
|
||||
false, // Not closable
|
||||
2);
|
||||
NULL,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write heading *****/
|
||||
Ctr_PutHeadCentresForEdition ();
|
||||
|
@ -2903,9 +2894,7 @@ unsigned Ctr_ListCtrsFound (const char *Query)
|
|||
NumCtrs,(NumCtrs == 1) ? Txt_centre :
|
||||
Txt_centres);
|
||||
Box_StartBoxTable (NULL,Gbl.Title,NULL,
|
||||
NULL,
|
||||
false, // Not closable
|
||||
2);
|
||||
NULL,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write heading *****/
|
||||
Ctr_PutHeadCentresForSeeing (false); // Order not selectable
|
||||
|
|
|
@ -239,13 +239,14 @@
|
|||
/****************************** Public constants *****************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define Log_PLATFORM_VERSION "SWAD 16.243 (2017-06-11)"
|
||||
#define Log_PLATFORM_VERSION "SWAD 16.244 (2017-06-11)"
|
||||
#define CSS_FILE "swad16.235.1.css"
|
||||
#define JS_FILE "swad16.206.3.js"
|
||||
|
||||
// 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
|
||||
/*
|
||||
Version 16.244: Jun 12, 2017 Code refactoring related with boxes. (221815 lines)
|
||||
Version 16.243: Jun 12, 2017 Code refactoring related with boxes. (222174 lines)
|
||||
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)
|
||||
|
|
|
@ -125,8 +125,7 @@ void Cht_ShowListOfAvailableChatRooms (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Chat_rooms,NULL,
|
||||
NULL,
|
||||
false); // Not closable
|
||||
NULL,Box_NOT_CLOSABLE);
|
||||
fprintf (Gbl.F.Out,"<ul class=\"LIST_LEFT\">");
|
||||
|
||||
/***** Title of top level *****/
|
||||
|
@ -265,9 +264,7 @@ void Cht_ShowListOfChatRoomsWithUsrs (void)
|
|||
{
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_Rooms_with_users,NULL,
|
||||
NULL,
|
||||
false, // Not closable
|
||||
2);
|
||||
NULL,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write heading *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
|
|
@ -100,8 +100,7 @@ void Con_ShowConnectedUsrs (void)
|
|||
sprintf (Gbl.Title,"%s<div id=\"connected_current_time\"></div>",
|
||||
Txt_Connected_users);
|
||||
Box_StartBox (NULL,Gbl.Title,Con_PutIconToUpdateConnected,
|
||||
Hlp_USERS_Connected,
|
||||
false); // Not closable
|
||||
Hlp_USERS_Connected,Box_NOT_CLOSABLE);
|
||||
fprintf (Gbl.F.Out,"<script type=\"text/javascript\">"
|
||||
"writeLocalDateHMSFromUTC('connected_current_time',%ld,"
|
||||
"%u,', ',null,false,true,0x7);"
|
||||
|
@ -163,8 +162,7 @@ void Con_ShowLastClicks (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Last_clicks_in_real_time,NULL,
|
||||
Hlp_USERS_Connected_last_clicks,
|
||||
false); // Not closable
|
||||
Hlp_USERS_Connected_last_clicks,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Get and show last clicks *****/
|
||||
fprintf (Gbl.F.Out,"<div id=\"lastclicks\"" // Used for AJAX based refresh
|
||||
|
|
|
@ -139,9 +139,7 @@ void Cty_SeeCtyWithPendingInss (void)
|
|||
{
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_Countries_with_pending_institutions,NULL,
|
||||
Hlp_SYSTEM_Hierarchy_pending,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_SYSTEM_Hierarchy_pending,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write heading *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
@ -248,12 +246,10 @@ static void Cty_Configuration (bool PrintView)
|
|||
/***** Start box *****/
|
||||
if (PrintView)
|
||||
Box_StartBox (NULL,NULL,NULL,
|
||||
NULL,
|
||||
false); // Not closable
|
||||
NULL,Box_NOT_CLOSABLE);
|
||||
else
|
||||
Box_StartBox (NULL,NULL,Cty_PutIconToPrint,
|
||||
Hlp_COUNTRY_Information,
|
||||
false); // Not closable
|
||||
Hlp_COUNTRY_Information,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Title *****/
|
||||
fprintf (Gbl.F.Out,"<div class=\"FRAME_TITLE FRAME_TITLE_BIG\">");
|
||||
|
@ -519,9 +515,7 @@ void Cty_ListCountries2 (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_Countries,Cty_PutIconsListCountries,
|
||||
Hlp_SYSTEM_Countries,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_SYSTEM_Countries,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write heading *****/
|
||||
Cty_PutHeadCountriesForSeeing (true); // Order selectable
|
||||
|
@ -955,8 +949,7 @@ void Cty_EditCountries (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Countries,Cty_PutIconToViewCountries,
|
||||
Hlp_SYSTEM_Countries,
|
||||
false); // Not closable
|
||||
Hlp_SYSTEM_Countries,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Put a form to create a new country *****/
|
||||
Cty_PutFormToCreateCountry ();
|
||||
|
@ -1942,9 +1935,7 @@ static void Cty_PutFormToCreateCountry (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_New_country,NULL,
|
||||
NULL,
|
||||
false, // Not closable
|
||||
2);
|
||||
NULL,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write heading *****/
|
||||
Cty_PutHeadCountriesForEdition ();
|
||||
|
@ -2372,9 +2363,7 @@ unsigned Cty_ListCtysFound (const char *Query)
|
|||
NumCtys,NumCtys == 1 ? Txt_country :
|
||||
Txt_countries);
|
||||
Box_StartBoxTable (NULL,Gbl.Title,NULL,
|
||||
NULL,
|
||||
false, // Not closable
|
||||
2);
|
||||
NULL,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write heading *****/
|
||||
Cty_PutHeadCountriesForSeeing (false); // Order not selectable
|
||||
|
|
|
@ -199,12 +199,10 @@ static void Crs_Configuration (bool PrintView)
|
|||
/***** Start box *****/
|
||||
if (PrintView)
|
||||
Box_StartBox (NULL,NULL,NULL,
|
||||
NULL,
|
||||
false); // Not closable
|
||||
NULL,Box_NOT_CLOSABLE);
|
||||
else
|
||||
Box_StartBox (NULL,NULL,Crs_PutIconToPrint,
|
||||
Hlp_COURSE_Information,
|
||||
false); // Not closable
|
||||
Hlp_COURSE_Information,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Title *****/
|
||||
fprintf (Gbl.F.Out,"<div class=\"FRAME_TITLE FRAME_TITLE_BIG\">");
|
||||
|
@ -551,8 +549,7 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_My_courses,NULL,
|
||||
Hlp_PROFILE_Courses,
|
||||
false); // Not closable
|
||||
Hlp_PROFILE_Courses,Box_NOT_CLOSABLE);
|
||||
fprintf (Gbl.F.Out,"<ul class=\"LIST_LEFT\">");
|
||||
|
||||
/***** Write link to platform *****/
|
||||
|
@ -1141,8 +1138,7 @@ static void Crs_ListCourses (void)
|
|||
/***** Start box *****/
|
||||
sprintf (Gbl.Title,Txt_Courses_of_DEGREE_X,Gbl.CurrentDeg.Deg.ShrtName);
|
||||
Box_StartBox (NULL,Gbl.Title,Crs_PutIconsListCourses,
|
||||
Hlp_DEGREE_Courses,
|
||||
false); // Not closable
|
||||
Hlp_DEGREE_Courses,Box_NOT_CLOSABLE);
|
||||
|
||||
if (Gbl.CurrentDeg.NumCrss) // There are courses in the current degree
|
||||
{
|
||||
|
@ -1341,8 +1337,7 @@ void Crs_EditCourses (void)
|
|||
/***** Start box *****/
|
||||
sprintf (Gbl.Alert.Txt,Txt_Courses_of_DEGREE_X,Gbl.CurrentDeg.Deg.ShrtName);
|
||||
Box_StartBox (NULL,Gbl.Alert.Txt,Crs_PutIconToViewCourses,
|
||||
Hlp_DEGREE_Courses,
|
||||
false); // Not closable
|
||||
Hlp_DEGREE_Courses,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Put a form to create or request a new course *****/
|
||||
Crs_PutFormToCreateCourse ();
|
||||
|
@ -1647,9 +1642,7 @@ static void Crs_PutFormToCreateCourse (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_New_course,NULL,
|
||||
NULL,
|
||||
false, // Not closable
|
||||
2);
|
||||
NULL,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write heading *****/
|
||||
Crs_PutHeadCoursesForEdition ();
|
||||
|
@ -3009,9 +3002,7 @@ void Crs_GetAndWriteCrssOfAUsr (const struct UsrData *UsrDat,Rol_Role_t Role)
|
|||
{
|
||||
/* Start box and table */
|
||||
Box_StartBoxTable ("100%",NULL,NULL,
|
||||
NULL,
|
||||
false, // Not closable
|
||||
2);
|
||||
NULL,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/* Heading row */
|
||||
sprintf (Gbl.Title,Txt_USER_in_COURSE,
|
||||
|
@ -3096,9 +3087,7 @@ unsigned Crs_ListCrssFound (const char *Query)
|
|||
NumCrss,(NumCrss == 1) ? Txt_course :
|
||||
Txt_courses);
|
||||
Box_StartBoxTable (NULL,Gbl.Title,NULL,
|
||||
NULL,
|
||||
false, // Not closable
|
||||
2);
|
||||
NULL,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Heading row *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
@ -3335,8 +3324,7 @@ void Crs_AskRemoveOldCrss (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Eliminate_old_courses,NULL,
|
||||
Hlp_SYSTEM_Hierarchy_eliminate_old_courses,
|
||||
false); // Not closable
|
||||
Hlp_SYSTEM_Hierarchy_eliminate_old_courses,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Form to request number of months without clicks *****/
|
||||
fprintf (Gbl.F.Out,"<label class=\"%s\">%s "
|
||||
|
|
|
@ -104,8 +104,7 @@ void Dat_PutBoxToSelectDateFormat (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Dates,Dat_PutIconsDateFormat,
|
||||
Hlp_PROFILE_Preferences_dates,
|
||||
false); // Not closable
|
||||
Hlp_PROFILE_Preferences_dates,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Form with list of options *****/
|
||||
Act_FormStart (ActChgDatFmt);
|
||||
|
|
|
@ -171,9 +171,7 @@ void Deg_SeeDegWithPendingCrss (void)
|
|||
{
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_Degrees_with_pending_courses,NULL,
|
||||
Hlp_SYSTEM_Hierarchy_pending,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_SYSTEM_Hierarchy_pending,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write heading *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
@ -304,12 +302,10 @@ static void Deg_Configuration (bool PrintView)
|
|||
/***** Start box *****/
|
||||
if (PrintView)
|
||||
Box_StartBox (NULL,NULL,NULL,
|
||||
NULL,
|
||||
false); // Not closable
|
||||
NULL,Box_NOT_CLOSABLE);
|
||||
else
|
||||
Box_StartBox (NULL,NULL,Deg_PutIconsToPrintAndUpload,
|
||||
Hlp_DEGREE_Information,
|
||||
false); // Not closable
|
||||
Hlp_DEGREE_Information,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Title *****/
|
||||
fprintf (Gbl.F.Out,"<div class=\"FRAME_TITLE FRAME_TITLE_BIG\">");
|
||||
|
@ -948,9 +944,7 @@ static void Deg_PutFormToCreateDegree (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_New_degree,NULL,
|
||||
NULL,
|
||||
false, // Not closable
|
||||
2);
|
||||
NULL,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write heading *****/
|
||||
Deg_PutHeadDegreesForEdition ();
|
||||
|
@ -1180,8 +1174,7 @@ static void Deg_ListDegrees (void)
|
|||
/***** Start box *****/
|
||||
sprintf (Gbl.Title,Txt_Degrees_of_CENTRE_X,Gbl.CurrentCtr.Ctr.ShrtName);
|
||||
Box_StartBox (NULL,Gbl.Title,Deg_PutIconsListDegrees,
|
||||
Hlp_CENTRE_Degrees,
|
||||
false); // Not closable
|
||||
Hlp_CENTRE_Degrees,Box_NOT_CLOSABLE);
|
||||
|
||||
if (Gbl.CurrentCtr.Ctr.Degs.Num) // There are degrees in the current centre
|
||||
{
|
||||
|
@ -1360,8 +1353,7 @@ void Deg_EditDegrees (void)
|
|||
sprintf (Gbl.Title,Txt_Degrees_of_CENTRE_X,
|
||||
Gbl.CurrentCtr.Ctr.FullName);
|
||||
Box_StartBox (NULL,Gbl.Title,Deg_PutIconsEditingDegrees,
|
||||
Hlp_CENTRE_Degrees,
|
||||
false); // Not closable
|
||||
Hlp_CENTRE_Degrees,Box_NOT_CLOSABLE);
|
||||
|
||||
if (Gbl.Degs.DegTypes.Num)
|
||||
{
|
||||
|
@ -2581,9 +2573,7 @@ unsigned Deg_ListDegsFound (const char *Query)
|
|||
NumDegs,(NumDegs == 1) ? Txt_degree :
|
||||
Txt_degrees);
|
||||
Box_StartBoxTable (NULL,Gbl.Title,NULL,
|
||||
NULL,
|
||||
false, // Not closable
|
||||
2);
|
||||
NULL,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write heading *****/
|
||||
Deg_PutHeadDegreesForSeeing ();
|
||||
|
|
|
@ -211,13 +211,11 @@ static void DT_ListDegreeTypes (Act_Action_t NextAction,DT_Order_t SelectedOrder
|
|||
{
|
||||
case ActSeeDegTyp:
|
||||
Box_StartBox (NULL,Txt_Types_of_degree,DT_PutIconsListDegTypes,
|
||||
Hlp_CENTRE_DegreeTypes,
|
||||
false); // Not closable
|
||||
Hlp_CENTRE_DegreeTypes,Box_NOT_CLOSABLE);
|
||||
break;
|
||||
case ActSeeUseGbl:
|
||||
Box_StartBox (NULL,Txt_Types_of_degree,DT_PutIconToEditDegTypes,
|
||||
Hlp_STATS_Figures_types_of_degree,
|
||||
false); // Not closable
|
||||
Hlp_STATS_Figures_types_of_degree,Box_NOT_CLOSABLE);
|
||||
break;
|
||||
default: // Bad call
|
||||
return;
|
||||
|
@ -265,8 +263,7 @@ void DT_EditDegreeTypes (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Types_of_degree,DT_PutIconToViewDegreeTypesWhenEditing,
|
||||
Hlp_CENTRE_DegreeTypes_edit,
|
||||
false); // Not closable
|
||||
Hlp_CENTRE_DegreeTypes_edit,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Put a form to create a new degree type *****/
|
||||
DT_PutFormToCreateDegreeType ();
|
||||
|
@ -437,9 +434,7 @@ void DT_PutFormToCreateDegreeType (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_New_type_of_degree,NULL,
|
||||
NULL,
|
||||
false, // Not closable
|
||||
2);
|
||||
NULL,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write heading *****/
|
||||
DT_PutHeadDegreeTypesForEdition ();
|
||||
|
|
|
@ -104,9 +104,7 @@ void Dpt_SeeDepts (void)
|
|||
Box_StartBoxTable (NULL,Txt_Departments,
|
||||
Gbl.Usrs.Me.Role.Logged == Rol_SYS_ADM ? Dpt_PutIconToEditDpts :
|
||||
NULL,
|
||||
Hlp_INSTITUTION_Departments,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_INSTITUTION_Departments,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write heading *****/
|
||||
fprintf (Gbl.F.Out,"<tr>");
|
||||
|
@ -491,9 +489,7 @@ static void Dpt_ListDepartmentsForEdition (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_Departments,NULL,
|
||||
Hlp_INSTITUTION_Departments_edit,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_INSTITUTION_Departments_edit,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write heading *****/
|
||||
Dpt_PutHeadDepartments ();
|
||||
|
@ -896,9 +892,7 @@ static void Dpt_PutFormToCreateDepartment (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_New_department,NULL,
|
||||
Hlp_INSTITUTION_Departments_edit,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_INSTITUTION_Departments_edit,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write heading *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
|
|
@ -142,8 +142,7 @@ void Dup_ListDuplicateUsrs (void)
|
|||
|
||||
/***** Start box with list of possible duplicate users *****/
|
||||
Box_StartBox (NULL,Txt_Possibly_duplicate_users,NULL,
|
||||
Hlp_USERS_Duplicates_possibly_duplicate_users,
|
||||
false); // Not closable
|
||||
Hlp_USERS_Duplicates_possibly_duplicate_users,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Build query *****/
|
||||
sprintf (Query,"SELECT UsrCod,COUNT(*) AS N,MIN(UNIX_TIMESTAMP(InformTime)) AS T"
|
||||
|
@ -262,8 +261,7 @@ static void Dup_ListSimilarUsrs (void)
|
|||
|
||||
/***** Start box with list of possible duplicate users *****/
|
||||
Box_StartBox (NULL,Txt_Similar_users,NULL,
|
||||
Hlp_USERS_Duplicates_similar_users,
|
||||
false); // Not closable
|
||||
Hlp_USERS_Duplicates_similar_users,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Build query *****/
|
||||
if (Gbl.Usrs.Other.UsrDat.Surname1[0] &&
|
||||
|
|
|
@ -379,8 +379,7 @@ void Enr_ReqAcceptRegisterInCrs (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Enrolment,NULL,
|
||||
Hlp_USERS_SignUp_confirm_enrolment,
|
||||
false); // Not closable
|
||||
Hlp_USERS_SignUp_confirm_enrolment,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Show message *****/
|
||||
sprintf (Gbl.Alert.Txt,Txt_A_teacher_or_administrator_has_enroled_you_as_X_into_the_course_Y,
|
||||
|
@ -708,8 +707,7 @@ static void Enr_ShowFormRegRemSeveralUsrs (Rol_Role_t Role)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Title,NULL,
|
||||
Hlp_USERS_Administration_administer_multiple_users,
|
||||
false); // Not closable
|
||||
Hlp_USERS_Administration_administer_multiple_users,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Step 1: List of students to be enroled / removed *****/
|
||||
fprintf (Gbl.F.Out,"<div class=\"%s LEFT_MIDDLE\">"
|
||||
|
@ -799,8 +797,7 @@ void Enr_AskRemoveOldUsrs (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Eliminate_old_users,NULL,
|
||||
NULL,
|
||||
false); // Not closable
|
||||
NULL,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Form to request number of months without clicks *****/
|
||||
fprintf (Gbl.F.Out,"<label class=\"%s\">%s ",
|
||||
|
@ -1856,8 +1853,7 @@ void Enr_AskRemAllStdsThisCrs (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Remove_all_students,NULL,
|
||||
Hlp_USERS_Administration_remove_all_students,
|
||||
false); // Not closable
|
||||
Hlp_USERS_Administration_remove_all_students,Box_NOT_CLOSABLE);
|
||||
|
||||
if (Gbl.CurrentCrs.Crs.NumUsrs[Rol_STD])
|
||||
{
|
||||
|
@ -2309,8 +2305,7 @@ static void Enr_ShowEnrolmentRequestsGivenRoles (unsigned RolesSelected)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox ("100%",Txt_Enrolment_requests,NULL,
|
||||
Hlp_USERS_Requests,
|
||||
false); // Not closable
|
||||
Hlp_USERS_Requests,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Selection of scope and roles *****/
|
||||
/* Start form and table */
|
||||
|
@ -3128,8 +3123,7 @@ static void Enr_ReqAnotherUsrIDToRegisterRemove (Rol_Role_t Role)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Administer_one_user,NULL,
|
||||
Hlp_USERS_Administration_administer_one_user,
|
||||
false); // Not closable
|
||||
Hlp_USERS_Administration_administer_one_user,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Write form to request another user's ID *****/
|
||||
switch (Role)
|
||||
|
|
|
@ -653,8 +653,7 @@ static void Exa_ListExamAnnouncements (Exa_TypeViewExamAnnouncement_t TypeViewEx
|
|||
Txt_Announcements_of_exams,
|
||||
ICanEdit ? Exa_PutIconToCreateNewExamAnnouncement :
|
||||
NULL,
|
||||
Hlp_ASSESSMENT_Announcements,
|
||||
false); // Not closable
|
||||
Hlp_ASSESSMENT_Announcements,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** The result of the query may be empty *****/
|
||||
if (!NumExaAnns)
|
||||
|
@ -1077,7 +1076,7 @@ static void Exa_ShowExamAnnouncement (Exa_TypeViewExamAnnouncement_t TypeViewExa
|
|||
TypeViewExamAnnouncement == Exa_FORM_VIEW ? ((Gbl.ExamAnns.ExaDat.ExaCod > 0) ? Hlp_ASSESSMENT_Announcements_edit_announcement :
|
||||
Hlp_ASSESSMENT_Announcements_new_announcement) :
|
||||
NULL,
|
||||
false); // Not closable
|
||||
Box_NOT_CLOSABLE);
|
||||
|
||||
if (TypeViewExamAnnouncement == Exa_FORM_VIEW)
|
||||
{
|
||||
|
|
|
@ -3121,8 +3121,7 @@ void Brw_AskEditWorksCrs (void)
|
|||
|
||||
/***** Draw class photos to select users *****/
|
||||
Box_StartBox (NULL,Txt_Users,NULL,
|
||||
Hlp_FILES_Homework_for_teachers,
|
||||
false); // Not closable
|
||||
Hlp_FILES_Homework_for_teachers,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Show form to select the groups *****/
|
||||
Grp_ShowFormToSelectSeveralGroups (ActReqAsgWrkCrs);
|
||||
|
@ -3219,9 +3218,7 @@ static void Brw_ShowFileBrowsersAsgWrkCrs (void)
|
|||
/***** Start box and table *****/
|
||||
Box_StartBoxTable ("100%",Txt_Assignments_and_other_works,
|
||||
Brw_PutIconShowFigure,
|
||||
Hlp_FILES_Homework_for_teachers,
|
||||
false, // Not closable
|
||||
0);
|
||||
Hlp_FILES_Homework_for_teachers,Box_NOT_CLOSABLE,0);
|
||||
|
||||
/***** List the assignments and works of the selected users *****/
|
||||
Ptr = Gbl.Usrs.Select[Rol_UNK];
|
||||
|
@ -3691,8 +3688,7 @@ static void Brw_ShowFileBrowser (void)
|
|||
Lay_StartSection (FileBrowserSectionId);
|
||||
Box_StartBox ("100%",Brw_TitleOfFileBrowser[Gbl.FileBrowser.Type],
|
||||
Brw_PutIconsFileBrowser,
|
||||
Brw_HelpOfFileBrowser[Gbl.FileBrowser.Type],
|
||||
false); // Not closable
|
||||
Brw_HelpOfFileBrowser[Gbl.FileBrowser.Type],Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Subtitle *****/
|
||||
Brw_WriteSubtitleOfFileBrowser ();
|
||||
|
@ -7986,8 +7982,7 @@ static void Brw_PutFormToCreateAFolder (const char FileNameToShow[NAME_MAX + 1])
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Create_folder,NULL,
|
||||
NULL,
|
||||
false); // Not closable
|
||||
NULL,Box_NOT_CLOSABLE);
|
||||
sprintf (Gbl.Alert.Txt,Txt_You_can_create_a_new_folder_inside_the_folder_X,
|
||||
FileNameToShow);
|
||||
Ale_ShowAlert (Ale_INFO,Gbl.Alert.Txt);
|
||||
|
@ -8025,8 +8020,7 @@ static void Brw_PutFormToUploadFilesUsingDropzone (const char *FileNameToShow)
|
|||
/***** Start box *****/
|
||||
fprintf (Gbl.F.Out,"<div id=\"dropzone-upload\">");
|
||||
Box_StartBox ("95%",Txt_Upload_files,NULL,
|
||||
NULL,
|
||||
false); // Not closable
|
||||
NULL,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Help message *****/
|
||||
sprintf (Gbl.Alert.Txt,Txt_or_you_can_upload_new_files_to_the_folder_X,
|
||||
|
@ -8088,8 +8082,7 @@ static void Brw_PutFormToUploadOneFileClassic (const char *FileNameToShow)
|
|||
/***** Start box *****/
|
||||
fprintf (Gbl.F.Out,"<div id=\"classic-upload\" style=\"display:none;\">");
|
||||
Box_StartBox (NULL,Txt_Upload_file,NULL,
|
||||
NULL,
|
||||
false); // Not closable
|
||||
NULL,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Help message *****/
|
||||
sprintf (Gbl.Alert.Txt,Txt_or_you_can_upload_a_new_file_to_the_folder_X,
|
||||
|
@ -8132,8 +8125,7 @@ static void Brw_PutFormToPasteAFileOrFolder (const char *FileNameToShow)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Paste,NULL,
|
||||
NULL,
|
||||
false); // Not closable
|
||||
NULL,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Help message *****/
|
||||
sprintf (Gbl.Alert.Txt,Txt_or_you_can_make_a_file_copy_to_the_folder_X,
|
||||
|
@ -8169,8 +8161,7 @@ static void Brw_PutFormToCreateALink (const char *FileNameToShow)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Create_link,NULL,
|
||||
NULL,
|
||||
false); // Not closable
|
||||
NULL,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Help message *****/
|
||||
sprintf (Gbl.Alert.Txt,Txt_or_you_can_create_a_new_link_inside_the_folder_X,
|
||||
|
@ -11345,9 +11336,7 @@ unsigned Brw_ListDocsFound (const char *Query,
|
|||
NumDocs,(NumDocs == 1) ? TitleSingular :
|
||||
TitlePlural);
|
||||
Box_StartBoxTable (NULL,Gbl.Title,NULL,
|
||||
NULL,
|
||||
false, // Not closable
|
||||
2);
|
||||
NULL,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write heading *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
@ -11705,8 +11694,7 @@ void Brw_AskRemoveOldFiles (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Remove_old_files,NULL,
|
||||
NULL,
|
||||
false); // Not closable
|
||||
NULL,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Form to request number of months (to remove files older) *****/
|
||||
fprintf (Gbl.F.Out,"<label class=\"%s\">%s ",
|
||||
|
|
|
@ -133,9 +133,7 @@ void Fol_SuggestUsrsToFollowMainZone (void)
|
|||
{
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable ("560px",Txt_Who_to_follow,Fol_PutIconsWhoToFollow,
|
||||
Hlp_SOCIAL_Profiles_who_to_follow,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_SOCIAL_Profiles_who_to_follow,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Initialize structure with user's data *****/
|
||||
Usr_UsrDataConstructor (&UsrDat);
|
||||
|
@ -689,9 +687,7 @@ static void Fol_ListFollowingUsr (struct UsrData *UsrDat)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable ("560px",Txt_Following,NULL,
|
||||
NULL,
|
||||
false, // Not closable
|
||||
2);
|
||||
NULL,Box_NOT_CLOSABLE,2);
|
||||
|
||||
for (NumUsr = 0;
|
||||
NumUsr < NumUsrs;
|
||||
|
@ -775,9 +771,7 @@ static void Fol_ListFollowersUsr (struct UsrData *UsrDat)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable ("560px",Txt_Followers,NULL,
|
||||
NULL,
|
||||
false, // Not closable
|
||||
2);
|
||||
NULL,Box_NOT_CLOSABLE,2);
|
||||
|
||||
for (NumUsr = 0;
|
||||
NumUsr < NumUsrs;
|
||||
|
|
15
swad_forum.c
15
swad_forum.c
|
@ -1011,8 +1011,7 @@ static void For_ShowPostsOfAThread (Ale_AlertType_t AlertType,const char *Messag
|
|||
/***** Start box *****/
|
||||
sprintf (FrameTitle,"%s: %s",Txt_Thread,Thr.Subject);
|
||||
Box_StartBox (NULL,FrameTitle,For_PutIconNewPost,
|
||||
Hlp_SOCIAL_Forums_posts,
|
||||
false); // Not closable
|
||||
Hlp_SOCIAL_Forums_posts,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Get posts of a thread from database *****/
|
||||
sprintf (Query,"SELECT PstCod,UNIX_TIMESTAMP(CreatTime)"
|
||||
|
@ -1608,8 +1607,7 @@ static void For_ShowForumList (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Forums,For_PutIconsForums,
|
||||
Hlp_SOCIAL_Forums,
|
||||
false); // Not closable
|
||||
Hlp_SOCIAL_Forums,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Put a form to select which forums *****/
|
||||
For_PutFormWhichForums ();
|
||||
|
@ -2575,8 +2573,7 @@ static void For_ShowForumThreadsHighlightingOneThread (long ThrCodHighlighted,
|
|||
/***** Start box for threads of this forum *****/
|
||||
sprintf (FrameTitle,"%s: %s",Txt_Forum,ForumName);
|
||||
Box_StartBox (NULL,FrameTitle,For_PutIconNewThread,
|
||||
Hlp_SOCIAL_Forums_threads,
|
||||
false); // Not closable
|
||||
Hlp_SOCIAL_Forums_threads,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** List the threads *****/
|
||||
if (NumThrs)
|
||||
|
@ -3861,12 +3858,10 @@ static void For_WriteFormForumPst (bool IsReply,const char *Subject)
|
|||
/***** Start box *****/
|
||||
if (IsReply)
|
||||
Box_StartBox (NULL,Txt_New_post,NULL,
|
||||
Hlp_SOCIAL_Forums_new_post,
|
||||
false); // Not closable
|
||||
Hlp_SOCIAL_Forums_new_post,Box_NOT_CLOSABLE);
|
||||
else
|
||||
Box_StartBox (NULL,Txt_New_thread,NULL,
|
||||
Hlp_SOCIAL_Forums_new_thread,
|
||||
false); // Not closable
|
||||
Hlp_SOCIAL_Forums_new_thread,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Start form *****/
|
||||
if (IsReply) // Form to write a reply to a post of an existing thread
|
||||
|
|
24
swad_group.c
24
swad_group.c
|
@ -268,8 +268,7 @@ static void Grp_EditGroupTypes (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Types_of_group,Grp_PutIconsEditingGroupTypes,
|
||||
Hlp_USERS_Groups,
|
||||
false); // Not closable
|
||||
Hlp_USERS_Groups,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Put a form to create a new group type *****/
|
||||
Grp_PutFormToCreateGroupType ();
|
||||
|
@ -300,8 +299,7 @@ static void Grp_EditGroups (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Groups,Grp_PutIconsEditingGroups,
|
||||
Hlp_USERS_Groups,
|
||||
false); // Not closable
|
||||
Hlp_USERS_Groups,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Put a form to create a new group *****/
|
||||
Grp_PutFormToCreateGroup ();
|
||||
|
@ -367,8 +365,7 @@ void Grp_ShowFormToSelectSeveralGroups (Act_Action_t NextAction)
|
|||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Groups,ICanEdit ? Grp_PutIconToEditGroups :
|
||||
NULL,
|
||||
Hlp_USERS_Groups,
|
||||
true); // Closable
|
||||
Hlp_USERS_Groups,Box_CLOSABLE);
|
||||
|
||||
/***** Start form to update the students listed
|
||||
depending on the groups selected *****/
|
||||
|
@ -1727,8 +1724,7 @@ void Grp_ShowLstGrpsToChgMyGrps (void)
|
|||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_My_groups,ICanEdit ? Grp_PutIconToEditGroups :
|
||||
NULL,
|
||||
Hlp_USERS_Groups,
|
||||
false); // Not closable
|
||||
Hlp_USERS_Groups,Box_NOT_CLOSABLE);
|
||||
|
||||
if (Gbl.CurrentCrs.Grps.NumGrps) // This course has groups
|
||||
{
|
||||
|
@ -1944,9 +1940,7 @@ void Grp_ShowLstGrpsToChgOtherUsrsGrps (long UsrCod)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_Groups,NULL,
|
||||
Hlp_USERS_Groups,
|
||||
false, // Not closable
|
||||
0);
|
||||
Hlp_USERS_Groups,Box_NOT_CLOSABLE,0);
|
||||
|
||||
/***** List to select the groups the user belongs to *****/
|
||||
for (NumGrpTyp = 0;
|
||||
|
@ -2348,9 +2342,7 @@ static void Grp_PutFormToCreateGroupType (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBoxTable (NULL,Txt_New_type_of_group,NULL,
|
||||
NULL,
|
||||
false, // Not closable
|
||||
2);
|
||||
NULL,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write heading *****/
|
||||
Grp_WriteHeadingGroupTypes ();
|
||||
|
@ -2464,9 +2456,7 @@ static void Grp_PutFormToCreateGroup (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_New_group,NULL,
|
||||
NULL,
|
||||
false, // Not closable
|
||||
2);
|
||||
NULL,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write heading *****/
|
||||
Grp_WriteHeadingGroups ();
|
||||
|
|
|
@ -130,9 +130,7 @@ void Hlp_ShowHelpWhatWouldYouLikeToDo (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_What_would_you_like_to_do,NULL,
|
||||
NULL,
|
||||
true, // Closable
|
||||
2);
|
||||
NULL,Box_CLOSABLE,2);
|
||||
|
||||
if (Gbl.Usrs.Me.Logged) // I am logged
|
||||
{
|
||||
|
|
|
@ -104,8 +104,7 @@ void Hld_SeeHolidays (void)
|
|||
Box_StartBox (NULL,Txt_Holidays,
|
||||
Gbl.Usrs.Me.Role.Logged >= Rol_INS_ADM ? Hld_PutIconToEditHlds :
|
||||
NULL,
|
||||
Hlp_INSTITUTION_Holidays,
|
||||
false); // Not closable
|
||||
Hlp_INSTITUTION_Holidays,Box_NOT_CLOSABLE);
|
||||
if (Gbl.Hlds.Num)
|
||||
{
|
||||
Tbl_StartTableWideMargin (2);
|
||||
|
@ -504,9 +503,7 @@ static void Hld_ListHolidaysForEdition (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_Holidays,NULL,
|
||||
Hlp_INSTITUTION_Holidays_edit,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_INSTITUTION_Holidays_edit,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write heading *****/
|
||||
Hld_PutHeadHolidays ();
|
||||
|
@ -965,9 +962,7 @@ static void Hld_PutFormToCreateHoliday (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_New_holiday,NULL,
|
||||
Hlp_INSTITUTION_Holidays_edit,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_INSTITUTION_Holidays_edit,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write heading *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
|
|
@ -78,8 +78,7 @@ void Ico_PutIconsToSelectIconSet (void)
|
|||
Ico_IconSet_t IconSet;
|
||||
|
||||
Box_StartBox (NULL,Txt_Icons,Ico_PutIconsIconSet,
|
||||
Hlp_PROFILE_Preferences_icons,
|
||||
false); // Not closable
|
||||
Hlp_PROFILE_Preferences_icons,Box_NOT_CLOSABLE);
|
||||
fprintf (Gbl.F.Out,"<div class=\"PREF_CONTAINER\">");
|
||||
for (IconSet = (Ico_IconSet_t) 0;
|
||||
IconSet < Ico_NUM_ICON_SETS;
|
||||
|
|
|
@ -108,8 +108,7 @@ void Ind_ReqIndicatorsCourses (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Indicators_of_courses,NULL,
|
||||
Hlp_STATS_Indicators,
|
||||
false); // Not closable
|
||||
Hlp_STATS_Indicators,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Form to update indicators *****/
|
||||
/* Start form and table */
|
||||
|
|
25
swad_info.c
25
swad_info.c
|
@ -445,8 +445,7 @@ void Inf_ShowInfo (void)
|
|||
Box_StartBox ("100%",Txt_INFO_TITLE[Gbl.CurrentCrs.Info.Type],
|
||||
ICanEdit ? Inf_PutIconToEditInfo :
|
||||
NULL,
|
||||
Help[Gbl.CurrentCrs.Info.Type],
|
||||
false); // Not closable
|
||||
Help[Gbl.CurrentCrs.Info.Type],Box_NOT_CLOSABLE);
|
||||
Ale_ShowAlert (Ale_INFO,Txt_No_information);
|
||||
if (ICanEdit)
|
||||
Inf_PutButtonToEditInfo ();
|
||||
|
@ -591,8 +590,7 @@ void Inf_WriteMsgYouMustReadInfo (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Required_reading,NULL,
|
||||
NULL,
|
||||
false); // Not closable
|
||||
NULL,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Write message *****/
|
||||
Ale_ShowAlert (Ale_WARNING,Txt_You_should_read_the_following_information);
|
||||
|
@ -1035,8 +1033,7 @@ static void Inf_ShowPage (const char *URL)
|
|||
Box_StartBox (NULL,Txt_INFO_TITLE[Gbl.CurrentCrs.Info.Type],
|
||||
ICanEdit ? Inf_PutIconToEditInfo :
|
||||
NULL,
|
||||
Help[Gbl.CurrentCrs.Info.Type],
|
||||
false); // Not closable
|
||||
Help[Gbl.CurrentCrs.Info.Type],Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Link to view in a new window *****/
|
||||
fprintf (Gbl.F.Out,"<a href=\"%s\" target=\"_blank\" class=\"%s\">",
|
||||
|
@ -1120,9 +1117,7 @@ void Inf_FormsToSelSendInfo (void)
|
|||
/***** Form to choice between alternatives *****/
|
||||
/* Start box and table */
|
||||
Box_StartBoxTable (NULL,Txt_Source_of_information,Inf_PutIconToViewInfo,
|
||||
HelpEdit[Gbl.CurrentCrs.Info.Type],
|
||||
false, // Not closable
|
||||
4);
|
||||
HelpEdit[Gbl.CurrentCrs.Info.Type],Box_NOT_CLOSABLE,4);
|
||||
|
||||
/* Options */
|
||||
for (InfoSrc = (Inf_InfoSrc_t) 0;
|
||||
|
@ -1792,8 +1787,7 @@ static bool Inf_CheckAndShowPlainTxt (void)
|
|||
Box_StartBox (NULL,Txt_INFO_TITLE[Gbl.CurrentCrs.Info.Type],
|
||||
ICanEdit ? Inf_PutIconToEditInfo :
|
||||
NULL,
|
||||
Help[Gbl.CurrentCrs.Info.Type],
|
||||
false); // Not closable
|
||||
Help[Gbl.CurrentCrs.Info.Type],Box_NOT_CLOSABLE);
|
||||
|
||||
if (Gbl.CurrentCrs.Info.Type == Inf_INTRODUCTION ||
|
||||
Gbl.CurrentCrs.Info.Type == Inf_TEACHING_GUIDE)
|
||||
|
@ -1877,8 +1871,7 @@ static bool Inf_CheckAndShowRichTxt (void)
|
|||
Box_StartBox (NULL,Txt_INFO_TITLE[Gbl.CurrentCrs.Info.Type],
|
||||
ICanEdit ? Inf_PutIconToEditInfo :
|
||||
NULL,
|
||||
Help[Gbl.CurrentCrs.Info.Type],
|
||||
false); // Not closable
|
||||
Help[Gbl.CurrentCrs.Info.Type],Box_NOT_CLOSABLE);
|
||||
|
||||
if (Gbl.CurrentCrs.Info.Type == Inf_INTRODUCTION ||
|
||||
Gbl.CurrentCrs.Info.Type == Inf_TEACHING_GUIDE)
|
||||
|
@ -2064,8 +2057,7 @@ void Inf_EditPlainTxtInfo (void)
|
|||
/***** Start form and box *****/
|
||||
Act_FormStart (Inf_ActionsRcvPlaTxtInfo[Gbl.CurrentCrs.Info.Type]);
|
||||
Box_StartBox (NULL,Txt_INFO_TITLE[Gbl.CurrentCrs.Info.Type],NULL,
|
||||
HelpEdit[Gbl.CurrentCrs.Info.Type],
|
||||
false); // Not closable
|
||||
HelpEdit[Gbl.CurrentCrs.Info.Type],Box_NOT_CLOSABLE);
|
||||
|
||||
if (Gbl.CurrentCrs.Info.Type == Inf_INTRODUCTION ||
|
||||
Gbl.CurrentCrs.Info.Type == Inf_TEACHING_GUIDE)
|
||||
|
@ -2116,8 +2108,7 @@ void Inf_EditRichTxtInfo (void)
|
|||
/***** Start form and box *****/
|
||||
Act_FormStart (Inf_ActionsRcvRchTxtInfo[Gbl.CurrentCrs.Info.Type]);
|
||||
Box_StartBox (NULL,Txt_INFO_TITLE[Gbl.CurrentCrs.Info.Type],NULL,
|
||||
HelpEdit[Gbl.CurrentCrs.Info.Type],
|
||||
false); // Not closable
|
||||
HelpEdit[Gbl.CurrentCrs.Info.Type],Box_NOT_CLOSABLE);
|
||||
|
||||
if (Gbl.CurrentCrs.Info.Type == Inf_INTRODUCTION ||
|
||||
Gbl.CurrentCrs.Info.Type == Inf_TEACHING_GUIDE)
|
||||
|
|
|
@ -153,9 +153,7 @@ void Ins_SeeInsWithPendingCtrs (void)
|
|||
{
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_Institutions_with_pending_centres,NULL,
|
||||
Hlp_SYSTEM_Hierarchy_pending,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_SYSTEM_Hierarchy_pending,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write heading *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
@ -313,12 +311,10 @@ static void Ins_Configuration (bool PrintView)
|
|||
/***** Start box *****/
|
||||
if (PrintView)
|
||||
Box_StartBox (NULL,NULL,NULL,
|
||||
NULL,
|
||||
false); // Not closable
|
||||
NULL,Box_NOT_CLOSABLE);
|
||||
else
|
||||
Box_StartBox (NULL,NULL,Ins_PutIconsToPrintAndUpload,
|
||||
Hlp_INSTITUTION_Information,
|
||||
false); // Not closable
|
||||
Hlp_INSTITUTION_Information,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Title *****/
|
||||
fprintf (Gbl.F.Out,"<div class=\"FRAME_TITLE FRAME_TITLE_BIG\">");
|
||||
|
@ -676,8 +672,7 @@ static void Ins_ListInstitutions (void)
|
|||
/***** Start box *****/
|
||||
sprintf (Gbl.Title,Txt_Institutions_of_COUNTRY_X,Gbl.CurrentCty.Cty.Name[Gbl.Prefs.Language]);
|
||||
Box_StartBox (NULL,Gbl.Title,Ins_PutIconsListInstitutions,
|
||||
Hlp_COUNTRY_Institutions,
|
||||
false); // Not closable
|
||||
Hlp_COUNTRY_Institutions,Box_NOT_CLOSABLE);
|
||||
|
||||
if (Gbl.Inss.Num) // There are institutions in the current country
|
||||
{
|
||||
|
@ -927,8 +922,7 @@ void Ins_EditInstitutions (void)
|
|||
sprintf (Gbl.Title,Txt_Institutions_of_COUNTRY_X,
|
||||
Gbl.CurrentCty.Cty.Name[Gbl.Prefs.Language]);
|
||||
Box_StartBox (NULL,Gbl.Title,Ins_PutIconToViewInstitutions,
|
||||
Hlp_COUNTRY_Institutions,
|
||||
false); // Not closable
|
||||
Hlp_COUNTRY_Institutions,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Put a form to create a new institution *****/
|
||||
Ins_PutFormToCreateInstitution ();
|
||||
|
@ -2164,9 +2158,7 @@ static void Ins_PutFormToCreateInstitution (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_New_institution,NULL,
|
||||
NULL,
|
||||
false, // Not closable
|
||||
2);
|
||||
NULL,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write heading *****/
|
||||
Ins_PutHeadInstitutionsForEdition ();
|
||||
|
@ -2526,9 +2518,7 @@ unsigned Ins_ListInssFound (const char *Query)
|
|||
NumInss,NumInss == 1 ? Txt_institution :
|
||||
Txt_institutions);
|
||||
Box_StartBoxTable (NULL,Gbl.Title,NULL,
|
||||
NULL,
|
||||
false, // Not closable
|
||||
2);
|
||||
NULL,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write heading *****/
|
||||
Ins_PutHeadInstitutionsForSeeing (false); // Order not selectable
|
||||
|
|
|
@ -1499,9 +1499,7 @@ void Lay_AdvertisementMobile (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,NULL,NULL,
|
||||
NULL,
|
||||
false, // Not closable
|
||||
8);
|
||||
NULL,Box_NOT_CLOSABLE,8);
|
||||
|
||||
/***** Show advertisement *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
|
10
swad_link.c
10
swad_link.c
|
@ -115,8 +115,7 @@ void Lnk_SeeLinks (void)
|
|||
Box_StartBox (NULL,Txt_Links,
|
||||
Gbl.Usrs.Me.Role.Logged == Rol_SYS_ADM ? Lnk_PutIconToEditLinks :
|
||||
NULL,
|
||||
Hlp_SYSTEM_Links,
|
||||
false); // Not closable
|
||||
Hlp_SYSTEM_Links,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Write all links *****/
|
||||
if (Gbl.Links.Num) // There are links
|
||||
|
@ -231,8 +230,7 @@ void Lnk_EditLinks (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Links,Lnk_PutIconToViewLinks,
|
||||
Hlp_SYSTEM_Links_edit,
|
||||
false); // Not closable
|
||||
Hlp_SYSTEM_Links_edit,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Put a form to create a new link *****/
|
||||
Lnk_PutFormToCreateLink ();
|
||||
|
@ -710,9 +708,7 @@ static void Lnk_PutFormToCreateLink (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_New_link,NULL,
|
||||
Hlp_SYSTEM_Links_edit,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_SYSTEM_Links_edit,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write heading *****/
|
||||
Lnk_PutHeadLinks ();
|
||||
|
|
|
@ -285,8 +285,7 @@ void Log_RequestLogo (Sco_Scope_t Scope)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Logo,NULL,
|
||||
NULL,
|
||||
false); // Not closable
|
||||
NULL,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** 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,
|
||||
|
|
24
swad_mail.c
24
swad_mail.c
|
@ -112,9 +112,7 @@ void Mai_SeeMailDomains (void)
|
|||
Box_StartBoxTable (NULL,Txt_Email_domains_allowed_for_notifications,
|
||||
Gbl.Usrs.Me.Role.Logged == Rol_SYS_ADM ? Mai_PutIconToEditMailDomains :
|
||||
NULL,
|
||||
Hlp_MESSAGES_Domains,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_MESSAGES_Domains,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write heading *****/
|
||||
fprintf (Gbl.F.Out,"<tr>");
|
||||
|
@ -454,9 +452,7 @@ static void Mai_ListMailDomainsForEdition (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_Email_domains_allowed_for_notifications,NULL,
|
||||
Hlp_MESSAGES_Domains_edit,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_MESSAGES_Domains_edit,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write heading *****/
|
||||
Mai_PutHeadMailDomains ();
|
||||
|
@ -724,9 +720,7 @@ static void Mai_PutFormToCreateMailDomain (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_New_email_domain,NULL,
|
||||
Hlp_MESSAGES_Domains_edit,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_MESSAGES_Domains_edit,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write heading *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
@ -894,10 +888,8 @@ void Mai_ListEmails (void)
|
|||
Usr_GetListUsrs (Sco_SCOPE_CRS,Rol_STD);
|
||||
|
||||
/***** Start the box used to list the emails *****/
|
||||
Box_StartBox (NULL,Txt_Students_who_have_accepted_and_who_have_email,
|
||||
NULL,
|
||||
Hlp_MESSAGES_Email,
|
||||
false); // Not closable
|
||||
Box_StartBox (NULL,Txt_Students_who_have_accepted_and_who_have_email,NULL,
|
||||
Hlp_MESSAGES_Email,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Form to select groups *****/
|
||||
Grp_ShowFormToSelectSeveralGroups (ActMaiStd);
|
||||
|
@ -1194,8 +1186,7 @@ void Mai_ShowFormOthEmail (void)
|
|||
{
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Email,NULL,
|
||||
NULL,
|
||||
false); // Not closable
|
||||
NULL,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Show user's record *****/
|
||||
Rec_ShowSharedUsrRecord (Rec_SHA_RECORD_LIST,
|
||||
|
@ -1635,8 +1626,7 @@ void Mai_PutButtonToCheckEmailAddress (void)
|
|||
|
||||
/***** Box with button to check email address *****/
|
||||
Box_StartBox (NULL,Txt_Email_unconfirmed,NULL,
|
||||
Hlp_PROFILE_Account_email,
|
||||
true); // Closable
|
||||
Hlp_PROFILE_Account_email,Box_CLOSABLE);
|
||||
Ale_ShowAlertAndButton (Ale_WARNING,Txt_Please_check_and_confirm_your_email_address,
|
||||
ActFrmMyAcc,NULL,NULL,NULL,
|
||||
Btn_CONFIRM_BUTTON,Txt_Check);
|
||||
|
|
|
@ -400,8 +400,7 @@ void Mnu_PutIconsToSelectMenu (void)
|
|||
Mnu_Menu_t Menu;
|
||||
|
||||
Box_StartBox (NULL,Txt_Menu,Mnu_PutIconsMenu,
|
||||
Hlp_PROFILE_Preferences_menu,
|
||||
false); // Not closable
|
||||
Hlp_PROFILE_Preferences_menu,Box_NOT_CLOSABLE);
|
||||
fprintf (Gbl.F.Out,"<div class=\"PREF_CONTAINER\">");
|
||||
for (Menu = (Mnu_Menu_t) 0;
|
||||
Menu < Mnu_NUM_MENUS;
|
||||
|
|
|
@ -226,10 +226,8 @@ static void Msg_PutFormMsgUsrs (char Content[Cns_MAX_BYTES_LONG_TEXT + 1])
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Gbl.Msg.Reply.IsReply ? Txt_Reply_message :
|
||||
Txt_New_message,
|
||||
NULL,
|
||||
Hlp_MESSAGES_Write,
|
||||
false); // Not closable
|
||||
Txt_New_message,NULL,
|
||||
Hlp_MESSAGES_Write,Box_NOT_CLOSABLE);
|
||||
|
||||
if (Gbl.Msg.ShowOnlyOneRecipient)
|
||||
/***** Form to show several potential recipients *****/
|
||||
|
@ -1756,14 +1754,12 @@ static void Msg_ShowSentOrReceivedMessages (void)
|
|||
|
||||
/***** Start box with messages *****/
|
||||
Box_StartBox ("97%",Msg_WriteNumMsgs (NumUnreadMsgs),Msg_PutIconsListMsgs,
|
||||
Help[Gbl.Msg.TypeOfMessages],
|
||||
false); // Not closable
|
||||
Help[Gbl.Msg.TypeOfMessages],Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Filter messages *****/
|
||||
/* Start box with filter */
|
||||
Box_StartBox (NULL,Txt_Filter,NULL,
|
||||
HelpFilter[Gbl.Msg.TypeOfMessages],
|
||||
true); // Closable
|
||||
HelpFilter[Gbl.Msg.TypeOfMessages],Box_CLOSABLE);
|
||||
|
||||
/* Form to see messages again */
|
||||
Act_FormStart (ActionSee[Gbl.Msg.TypeOfMessages]);
|
||||
|
@ -3780,9 +3776,7 @@ void Msg_ListBannedUsrs (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_Banned_users,NULL,
|
||||
NULL,
|
||||
false, // Not closable
|
||||
2);
|
||||
NULL,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** List users *****/
|
||||
for (NumUsr = 1;
|
||||
|
|
|
@ -301,9 +301,7 @@ void Net_ShowFormMyWebsAndSocialNets (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_Webs_social_networks,Net_PutIconsWebsSocialNetworks,
|
||||
Hlp_PROFILE_Webs,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_PROFILE_Webs,Box_NOT_CLOSABLE,2);
|
||||
|
||||
for (NumURL = (Net_WebsAndSocialNetworks_t) 0;
|
||||
NumURL < Net_NUM_WEBS_AND_SOCIAL_NETWORKS;
|
||||
|
@ -537,9 +535,7 @@ void Net_ShowWebAndSocialNetworksStats (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_SOCIAL_NETWORKS],NULL,
|
||||
Hlp_STATS_Figures_webs_social_networks,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_STATS_Figures_webs_social_networks,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write heading *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
|
|
@ -104,8 +104,7 @@ void Not_ShowFormNotice (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_New_notice,NULL,
|
||||
Hlp_MESSAGES_Notices,
|
||||
false); // Not closable
|
||||
Hlp_MESSAGES_Notices,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Message body *****/
|
||||
fprintf (Gbl.F.Out,"<textarea name=\"Content\" cols=\"30\" rows=\"10\""
|
||||
|
@ -395,8 +394,7 @@ void Not_ShowNotices (Not_Listing_t TypeNoticesListing)
|
|||
Gbl.CurrentCrs.Notices.HighlightNotCod > 0 ? Txt_All_notices :
|
||||
Txt_Notices,
|
||||
Not_PutIconsListNotices,
|
||||
Hlp_MESSAGES_Notices,
|
||||
false); // Not closable
|
||||
Hlp_MESSAGES_Notices,Box_NOT_CLOSABLE);
|
||||
if (!NumNotices)
|
||||
Ale_ShowAlert (Ale_INFO,Txt_No_notices);
|
||||
}
|
||||
|
|
|
@ -391,8 +391,7 @@ void Ntf_ShowMyNotifications (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Notifications,Ntf_PutIconsNotif,
|
||||
Hlp_MESSAGES_Notifications,
|
||||
false); // Not closable
|
||||
Hlp_MESSAGES_Notifications,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** List my notifications *****/
|
||||
if (NumNotifications) // Notifications found
|
||||
|
@ -1900,8 +1899,7 @@ void Ntf_PutFormChangeNotifSentByEMail (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Notifications,Ntf_PutIconsNotif,
|
||||
Hlp_PROFILE_Preferences_notifications,
|
||||
false); // Not closable
|
||||
Hlp_PROFILE_Preferences_notifications,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Start form *****/
|
||||
Act_FormStart (ActChgNtfPrf);
|
||||
|
|
|
@ -254,8 +254,7 @@ void Pwd_ShowFormSendNewPwd (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Forgotten_password,NULL,
|
||||
Hlp_PROFILE_Password,
|
||||
false); // Not closable
|
||||
Hlp_PROFILE_Password,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Help text *****/
|
||||
Ale_ShowAlert (Ale_INFO,Txt_If_you_have_forgotten_your_password_);
|
||||
|
@ -700,9 +699,7 @@ void Pwd_ShowFormChgPwd (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_Password,NULL,
|
||||
Hlp_PROFILE_Password,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_PROFILE_Password,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/* Current password */
|
||||
if (IHaveAPasswordInDB) // If I have a password in database...
|
||||
|
@ -829,8 +826,7 @@ void Pwd_ShowFormOthPwd (void)
|
|||
{
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Password,NULL,
|
||||
NULL,
|
||||
false); // Not closable
|
||||
NULL,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Show user's record *****/
|
||||
Rec_ShowSharedUsrRecord (Rec_SHA_RECORD_LIST,
|
||||
|
|
|
@ -329,8 +329,7 @@ static void Pho_ReqPhoto (const struct UsrData *UsrDat,const char *PhotoURL)
|
|||
Box_StartBox (NULL,Txt_Photo,
|
||||
ItsMe ? Pho_PutIconToRequestRemoveMyPhoto :
|
||||
Pho_PutIconToRequestRemoveOtherUsrPhoto,
|
||||
Hlp_PROFILE_Photo,
|
||||
false); // Not closable
|
||||
Hlp_PROFILE_Photo,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Start form *****/
|
||||
if (ItsMe)
|
||||
|
@ -1694,8 +1693,7 @@ void Pho_ShowOrPrintPhotoDegree (Pho_AvgPhotoSeeOrPrint_t SeeOrPrint)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Degrees,Pho_PutIconToPrintDegreeStats,
|
||||
Hlp_STATS_Degrees,
|
||||
false); // Not closable
|
||||
Hlp_STATS_Degrees,Box_NOT_CLOSABLE);
|
||||
Tbl_StartTableCenter (2);
|
||||
|
||||
/***** Put a selector for the type of average *****/
|
||||
|
@ -1712,8 +1710,7 @@ void Pho_ShowOrPrintPhotoDegree (Pho_AvgPhotoSeeOrPrint_t SeeOrPrint)
|
|||
case Pho_DEGREES_PRINT:
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Degrees,NULL,
|
||||
NULL,
|
||||
false); // Not closable
|
||||
NULL,Box_NOT_CLOSABLE);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
10
swad_place.c
10
swad_place.c
|
@ -120,8 +120,7 @@ void Plc_SeePlaces (void)
|
|||
/***** Table head *****/
|
||||
Box_StartBox (NULL,Txt_Places,ICanEdit ? Plc_PutIconToEditPlaces :
|
||||
NULL,
|
||||
Hlp_INSTITUTION_Places,
|
||||
false); // Not closable
|
||||
Hlp_INSTITUTION_Places,Box_NOT_CLOSABLE);
|
||||
Tbl_StartTableWideMargin (2);
|
||||
fprintf (Gbl.F.Out,"<tr>");
|
||||
for (Order = Plc_ORDER_BY_PLACE;
|
||||
|
@ -250,8 +249,7 @@ void Plc_EditPlaces (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Places,Plc_PutIconToViewPlacesWhenEditing,
|
||||
Hlp_INSTITUTION_Places_edit,
|
||||
false); // Not closable
|
||||
Hlp_INSTITUTION_Places_edit,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Put a form to create a new place *****/
|
||||
Plc_PutFormToCreatePlace ();
|
||||
|
@ -742,9 +740,7 @@ static void Plc_PutFormToCreatePlace (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_New_place,NULL,
|
||||
NULL,
|
||||
false, // Not closable
|
||||
2);
|
||||
NULL,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write heading *****/
|
||||
Plc_PutHeadPlaces ();
|
||||
|
|
|
@ -95,9 +95,7 @@ void Plg_ListPlugins (void)
|
|||
Box_StartBoxTable (NULL,Txt_Plugins,
|
||||
Gbl.Usrs.Me.Role.Logged == Rol_SYS_ADM ? Plg_PutIconToEditPlugins :
|
||||
NULL,
|
||||
NULL,
|
||||
false, // Not closable
|
||||
2);
|
||||
NULL,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write table heading *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
@ -349,9 +347,7 @@ static void Plg_ListPluginsForEdition (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_Plugins,NULL,
|
||||
NULL,
|
||||
false, // Not closable
|
||||
2);
|
||||
NULL,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write heading *****/
|
||||
Plg_PutHeadPlugins ();
|
||||
|
@ -847,9 +843,7 @@ static void Plg_PutFormToCreatePlugin (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_New_plugin,NULL,
|
||||
NULL,
|
||||
false, // Not closable
|
||||
2);
|
||||
NULL,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write heading *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
|
|
@ -76,8 +76,7 @@ void Pre_EditPrefs (void)
|
|||
|
||||
/***** Internationalization: language, first day of week, date format *****/
|
||||
Box_StartBox (NULL,Txt_Internationalization,NULL,
|
||||
Hlp_PROFILE_Preferences_internationalization,
|
||||
false); // Not closable
|
||||
Hlp_PROFILE_Preferences_internationalization,Box_NOT_CLOSABLE);
|
||||
fprintf (Gbl.F.Out,"<div class=\"FRAME_INLINE\">");
|
||||
Lan_PutBoxToSelectLanguage (); // 1. Language
|
||||
fprintf (Gbl.F.Out,"</div>"
|
||||
|
@ -91,8 +90,7 @@ void Pre_EditPrefs (void)
|
|||
|
||||
/***** Design: icon set, menu, theme, side columns *****/
|
||||
Box_StartBox (NULL,Txt_Design,NULL,
|
||||
Hlp_PROFILE_Preferences_design,
|
||||
false); // Not closable
|
||||
Hlp_PROFILE_Preferences_design,Box_NOT_CLOSABLE);
|
||||
fprintf (Gbl.F.Out,"<div class=\"FRAME_INLINE\">");
|
||||
Ico_PutIconsToSelectIconSet (); // 4. Icon set
|
||||
fprintf (Gbl.F.Out,"</div>"
|
||||
|
@ -240,8 +238,7 @@ static void Pre_PutIconsToSelectSideCols (void)
|
|||
unsigned SideCols;
|
||||
|
||||
Box_StartBox (NULL,Txt_Columns,Pre_PutIconsSideColumns,
|
||||
Hlp_PROFILE_Preferences_columns,
|
||||
false); // Not closable
|
||||
Hlp_PROFILE_Preferences_columns,Box_NOT_CLOSABLE);
|
||||
fprintf (Gbl.F.Out,"<div class=\"PREF_CONTAINER\">");
|
||||
for (SideCols = 0;
|
||||
SideCols <= Lay_SHOW_BOTH_COLUMNS;
|
||||
|
|
|
@ -104,9 +104,7 @@ void Pri_EditMyPrivacy (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_Privacy,Pri_PutIconsPrivacy,
|
||||
Hlp_PROFILE_Preferences_privacy,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_PROFILE_Preferences_privacy,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Edit photo visibility *****/
|
||||
Pri_PutFormVisibility (Txt_Photo,
|
||||
|
|
|
@ -176,8 +176,7 @@ void Prf_RequestUserProfile (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Another_user_s_profile,NULL,
|
||||
Hlp_SOCIAL_Profiles_view_public_profile,
|
||||
false); // Not closable
|
||||
Hlp_SOCIAL_Profiles_view_public_profile,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Form to request user's @nickname *****/
|
||||
/* By default, the nickname is filled with my nickname
|
||||
|
|
|
@ -186,9 +186,7 @@ void Rec_ReqEditRecordFields (void)
|
|||
{
|
||||
/* Start box and table */
|
||||
Box_StartBoxTable (NULL,Txt_Record_fields,NULL,
|
||||
Hlp_USERS_Students_course_record_card,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_USERS_Students_course_record_card,Box_NOT_CLOSABLE,2);
|
||||
|
||||
Rec_ListFieldsRecordsForEdition ();
|
||||
|
||||
|
@ -365,9 +363,7 @@ void Rec_ShowFormCreateRecordField (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_New_record_field,NULL,
|
||||
Hlp_USERS_Students_course_record_card,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_USERS_Students_course_record_card,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write heading *****/
|
||||
Rec_WriteHeadingRecordFields ();
|
||||
|
@ -1368,8 +1364,7 @@ static void Rec_ShowRecordOneTchCrs (void)
|
|||
fprintf (Gbl.F.Out,"<div class=\"REC_TT\">");
|
||||
Gbl.TimeTable.Type = TT_TUTORING_TIMETABLE;
|
||||
Box_StartBox (Width,Txt_TIMETABLE_TYPES[Gbl.TimeTable.Type],NULL,
|
||||
Hlp_USERS_Teachers_timetable,
|
||||
false); // Not closable
|
||||
Hlp_USERS_Teachers_timetable,Box_NOT_CLOSABLE);
|
||||
TT_ShowTimeTable (Gbl.Usrs.Other.UsrDat.UsrCod);
|
||||
Box_EndBox ();
|
||||
fprintf (Gbl.F.Out,"</div>");
|
||||
|
@ -1492,10 +1487,8 @@ static void Rec_ListRecordsTchs (Rec_SharedRecordViewType_t TypeOfView)
|
|||
{
|
||||
fprintf (Gbl.F.Out,"<div class=\"REC_TT\">");
|
||||
Gbl.TimeTable.Type = TT_TUTORING_TIMETABLE;
|
||||
Box_StartBox (Width,Txt_TIMETABLE_TYPES[Gbl.TimeTable.Type],
|
||||
NULL,
|
||||
Hlp_USERS_Teachers_timetable,
|
||||
false); // Not closable
|
||||
Box_StartBox (Width,Txt_TIMETABLE_TYPES[Gbl.TimeTable.Type],NULL,
|
||||
Hlp_USERS_Teachers_timetable,Box_NOT_CLOSABLE);
|
||||
TT_ShowTimeTable (UsrDat.UsrCod);
|
||||
Box_EndBox ();
|
||||
fprintf (Gbl.F.Out,"</div>");
|
||||
|
@ -1784,9 +1777,7 @@ static void Rec_ShowCrsRecord (Rec_CourseRecordViewType_t TypeOfView,
|
|||
/***** Start box and table *****/
|
||||
sprintf (StrRecordWidth,"%upx",Rec_RECORD_WIDTH);
|
||||
Box_StartBoxTable (StrRecordWidth,NULL,NULL,
|
||||
Rec_RecordHelp[TypeOfView],
|
||||
false, // Not closable
|
||||
2);
|
||||
Rec_RecordHelp[TypeOfView],Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write heading *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
@ -2328,9 +2319,7 @@ void Rec_ShowSharedUsrRecord (Rec_SharedRecordViewType_t TypeOfView,
|
|||
Box_StartBoxTable (StrRecordWidth,NULL,
|
||||
TypeOfView == Rec_SHA_OTHER_NEW_USR_FORM ? NULL : // New user ==> don't put icons
|
||||
Rec_PutIconsCommands,
|
||||
Rec_RecordHelp[TypeOfView],
|
||||
false, // Not closable
|
||||
2);
|
||||
Rec_RecordHelp[TypeOfView],Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Institution and user's photo *****/
|
||||
fprintf (Gbl.F.Out,"<tr>");
|
||||
|
@ -4005,9 +3994,7 @@ void Rec_ShowFormMyInsCtrDpt (void)
|
|||
Box_StartBoxTable ("800px",IAmATeacher ? Txt_Institution_centre_and_department :
|
||||
Txt_Institution,
|
||||
NULL,
|
||||
Hlp_PROFILE_Institution,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_PROFILE_Institution,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Country *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
|
|
@ -157,8 +157,7 @@ void Rep_ReqMyUsageReport (void)
|
|||
/***** Start box *****/
|
||||
sprintf (Gbl.Title,Txt_Report_of_use_of_PLATFORM,Cfg_PLATFORM_SHORT_NAME);
|
||||
Box_StartBox (NULL,Gbl.Title,NULL,
|
||||
Hlp_STATS_Report,
|
||||
false); // Not closable
|
||||
Hlp_STATS_Report,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Header *****/
|
||||
Req_TitleReport (NULL); // NULL means do not write date
|
||||
|
@ -263,8 +262,7 @@ static void Rep_PutLinkToMyUsageReport (struct Rep_Report *Report)
|
|||
/***** Start box *****/
|
||||
sprintf (Gbl.Title,Txt_Report_of_use_of_PLATFORM,Cfg_PLATFORM_SHORT_NAME);
|
||||
Box_StartBox (NULL,Gbl.Title,NULL,
|
||||
Hlp_STATS_Report,
|
||||
false); // Not closable
|
||||
Hlp_STATS_Report,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Header *****/
|
||||
Req_TitleReport (&Report->CurrentTimeUTC);
|
||||
|
|
|
@ -238,8 +238,7 @@ static void Sch_PutFormToSearchWithWhatToSearchAndScope (Act_Action_t Action,Sco
|
|||
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\">");
|
||||
Act_FormStart (Action);
|
||||
Box_StartBox (NULL,Txt_Search,NULL,
|
||||
Hlp_Search,
|
||||
false); // Not closable
|
||||
Hlp_Search,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Scope (whole platform, current country, current institution,
|
||||
current centre, current degree or current course) *****/
|
||||
|
|
|
@ -923,8 +923,7 @@ static void Soc_ShowTimeline (const char *Query,const char *Title,
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (Soc_WIDTH_TIMELINE,Title,Soc_PutIconsTimeline,
|
||||
Hlp_SOCIAL_Timeline,
|
||||
false); // Not closable
|
||||
Hlp_SOCIAL_Timeline,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Put form to select users whom public activity is displayed *****/
|
||||
if (GlobalTimeline)
|
||||
|
@ -1277,8 +1276,7 @@ static void Soc_WriteSocialNote (const struct SocialNote *SocNot,
|
|||
if (ShowNoteAlone)
|
||||
{
|
||||
Box_StartBox (Soc_WIDTH_TIMELINE,NULL,NULL,
|
||||
NULL,
|
||||
true); // Closable
|
||||
NULL,Box_CLOSABLE);
|
||||
fprintf (Gbl.F.Out,"<ul class=\"LIST_LEFT\">");
|
||||
}
|
||||
|
||||
|
@ -2533,8 +2531,7 @@ static void Soc_WriteSocialComment (struct SocialComment *SocCom,
|
|||
if (ShowCommentAlone)
|
||||
{
|
||||
Box_StartBox (Soc_WIDTH_TIMELINE,NULL,NULL,
|
||||
NULL,
|
||||
false); // Not closable
|
||||
NULL,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Write sharer/commenter if distinct to author *****/
|
||||
Soc_WriteTopMessage (TopMessage,UsrCod);
|
||||
|
|
127
swad_statistic.c
127
swad_statistic.c
|
@ -477,8 +477,7 @@ void Sta_AskShowCrsHits (void)
|
|||
sprintf (Gbl.Title,Txt_Statistics_of_visits_to_the_course_X,
|
||||
Gbl.CurrentCrs.Crs.ShrtName);
|
||||
Box_StartBox (NULL,Gbl.Title,NULL,
|
||||
Hlp_STATS_Visits_visits_to_course,
|
||||
false); // Not closable
|
||||
Hlp_STATS_Visits_visits_to_course,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Show form to select the groups *****/
|
||||
Grp_ShowFormToSelectSeveralGroups (ActReqAccCrs);
|
||||
|
@ -675,9 +674,7 @@ void Sta_AskShowGblHits (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_Statistics_of_all_visits,NULL,
|
||||
Hlp_STATS_Visits_global_visits,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_STATS_Visits_global_visits,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Start and end dates for the search *****/
|
||||
Dat_PutFormStartEndClientLocalDateTimesWithYesterdayToday (Gbl.Action.Act == ActReqAccGbl);
|
||||
|
@ -1471,12 +1468,10 @@ static void Sta_ShowHits (Sta_GlobalOrCourseAccesses_t GlobalOrCourse)
|
|||
/***** Put the table with the clicks *****/
|
||||
if (Gbl.Stat.ClicksGroupedBy == Sta_CLICKS_CRS_DETAILED_LIST)
|
||||
Box_StartBox ("100%",Txt_List_of_detailed_clicks,NULL,
|
||||
NULL,
|
||||
false); // Not closable
|
||||
NULL,Box_NOT_CLOSABLE);
|
||||
else
|
||||
Box_StartBox (NULL,Txt_STAT_TYPE_COUNT_CAPS[Gbl.Stat.CountType],NULL,
|
||||
NULL,
|
||||
false); // Not closable
|
||||
NULL,Box_NOT_CLOSABLE);
|
||||
|
||||
fprintf (Gbl.F.Out,"<table");
|
||||
if (Sta_CellPadding[Gbl.Stat.ClicksGroupedBy])
|
||||
|
@ -3919,8 +3914,7 @@ void Sta_ReqShowFigures (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Figures,NULL,
|
||||
Hlp_STATS_Figures,
|
||||
false); // Not closable
|
||||
Hlp_STATS_Figures,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Compute stats for anywhere, degree or course? *****/
|
||||
fprintf (Gbl.F.Out,"<label class=\"%s\">%s: ",
|
||||
|
@ -4084,9 +4078,7 @@ static void Sta_GetAndShowUsersStats (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_USERS],NULL,
|
||||
Hlp_STATS_Figures_users,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_STATS_Figures_users,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write heading *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
@ -4219,9 +4211,7 @@ static void Sta_GetAndShowUsersRanking (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_USERS_RANKING],NULL,
|
||||
Hlp_STATS_Figures_ranking,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_STATS_Figures_ranking,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write heading *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
@ -4289,9 +4279,7 @@ static void Sta_GetAndShowHierarchyStats (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_HIERARCHY],NULL,
|
||||
Hlp_STATS_Figures_hierarchy,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_STATS_Figures_hierarchy,Box_NOT_CLOSABLE,2);
|
||||
|
||||
Sta_WriteHeadDegsCrssInSWAD ();
|
||||
Sta_GetAndShowNumCtysInSWAD ();
|
||||
|
@ -4982,8 +4970,7 @@ static void Sta_GetAndShowInstitutionsStats (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Institutions,NULL,
|
||||
Hlp_STATS_Figures_institutions,
|
||||
false); // Not closable
|
||||
Hlp_STATS_Figures_institutions,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Form to select type of list used to display degree photos *****/
|
||||
Usr_GetAndUpdatePrefsAboutUsrList ();
|
||||
|
@ -5020,9 +5007,7 @@ static void Sta_GetAndShowInssOrderedByNumCtrs (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable ("100%",Txt_Institutions_by_number_of_centres,NULL,
|
||||
NULL,
|
||||
false, // Not closable
|
||||
2);
|
||||
NULL,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Get institutions ordered by number of centres *****/
|
||||
switch (Gbl.Scope.Current)
|
||||
|
@ -5075,9 +5060,7 @@ static void Sta_GetAndShowInssOrderedByNumDegs (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable ("100%",Txt_Institutions_by_number_of_degrees,NULL,
|
||||
NULL,
|
||||
false, // Not closable
|
||||
2);
|
||||
NULL,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Get institutions ordered by number of degrees *****/
|
||||
switch (Gbl.Scope.Current)
|
||||
|
@ -5133,9 +5116,7 @@ static void Sta_GetAndShowInssOrderedByNumCrss (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable ("100%",Txt_Institutions_by_number_of_courses,NULL,
|
||||
NULL,
|
||||
false, // Not closable
|
||||
2);
|
||||
NULL,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Get institutions ordered by number of courses *****/
|
||||
switch (Gbl.Scope.Current)
|
||||
|
@ -5194,9 +5175,7 @@ static void Sta_GetAndShowInssOrderedByNumUsrsInCrss (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable ("100%",Txt_Institutions_by_number_of_users_in_courses,NULL,
|
||||
NULL,
|
||||
false, // Not closable
|
||||
2);
|
||||
NULL,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Get institutions ordered by number of users in courses *****/
|
||||
switch (Gbl.Scope.Current)
|
||||
|
@ -5260,9 +5239,7 @@ static void Sta_GetAndShowInssOrderedByNumUsrsWhoClaimToBelongToThem (void)
|
|||
/***** Start box and table *****/
|
||||
Box_StartBoxTable ("100%",Txt_Institutions_by_number_of_users_who_claim_to_belong_to_them,
|
||||
NULL,
|
||||
NULL,
|
||||
false, // Not closable
|
||||
2);
|
||||
NULL,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Get institutions ordered by number of users who claim to belong to them *****/
|
||||
switch (Gbl.Scope.Current)
|
||||
|
@ -5492,9 +5469,7 @@ static void Sta_GetAndShowFileBrowsersStats (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_FOLDERS_AND_FILES],NULL,
|
||||
Hlp_STATS_Figures_folders_and_files,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_STATS_Figures_folders_and_files,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write table heading *****/
|
||||
Sta_WriteStatsExpTreesTableHead ();
|
||||
|
@ -6570,9 +6545,7 @@ static void Sta_GetAndShowOERsStats (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_OER],NULL,
|
||||
Hlp_STATS_Figures_open_educational_resources_oer,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_STATS_Figures_open_educational_resources_oer,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write table heading *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
@ -6762,9 +6735,7 @@ static void Sta_GetAndShowAssignmentsStats (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_ASSIGNMENTS],NULL,
|
||||
Hlp_STATS_Figures_assignments,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_STATS_Figures_assignments,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write table heading *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
@ -6834,9 +6805,7 @@ static void Sta_GetAndShowTestsStats (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_TESTS],NULL,
|
||||
Hlp_STATS_Figures_tests,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_STATS_Figures_tests,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write table heading *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
@ -7006,9 +6975,7 @@ static void Sta_GetAndShowSocialActivityStats (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_SOCIAL_ACTIVITY],NULL,
|
||||
Hlp_STATS_Figures_timeline,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_STATS_Figures_timeline,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Heading row *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
@ -7296,9 +7263,7 @@ static void Sta_GetAndShowFollowStats (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_FOLLOW],NULL,
|
||||
Hlp_STATS_Figures_followed_followers,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_STATS_Figures_followed_followers,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Heading row *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
@ -7559,9 +7524,7 @@ static void Sta_GetAndShowForumStats (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_FORUMS],NULL,
|
||||
Hlp_STATS_Figures_forums,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_STATS_Figures_forums,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write table heading *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
@ -7918,9 +7881,7 @@ static void Sta_GetAndShowNumUsrsPerNotifyEvent (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_NOTIFY_EVENTS],NULL,
|
||||
Hlp_STATS_Figures_notifications,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_STATS_Figures_notifications,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Heading row *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
@ -8265,9 +8226,7 @@ static void Sta_GetAndShowNoticesStats (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_NOTICES],NULL,
|
||||
Hlp_STATS_Figures_notices,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_STATS_Figures_notices,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write table heading *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
@ -8350,9 +8309,7 @@ static void Sta_GetAndShowMsgsStats (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_MESSAGES],NULL,
|
||||
Hlp_STATS_Figures_messages,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_STATS_Figures_messages,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write table heading *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
@ -8457,9 +8414,7 @@ static void Sta_GetAndShowSurveysStats (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_SURVEYS],NULL,
|
||||
Hlp_STATS_Figures_surveys,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_STATS_Figures_surveys,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Write table heading *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
@ -8526,9 +8481,7 @@ static void Sta_GetAndShowNumUsrsPerPrivacy (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_PRIVACY],NULL,
|
||||
Hlp_STATS_Figures_privacy,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_STATS_Figures_privacy,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Privacy for photo *****/
|
||||
Sta_GetAndShowNumUsrsPerPrivacyForAnObject (Txt_Photo,"PhotoVisibility");
|
||||
|
@ -8696,9 +8649,7 @@ static void Sta_GetAndShowNumUsrsPerLanguage (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_LANGUAGES],NULL,
|
||||
Hlp_STATS_Figures_language,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_STATS_Figures_language,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Heading row *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
@ -8839,9 +8790,7 @@ static void Sta_GetAndShowNumUsrsPerFirstDayOfWeek (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_FIRST_DAY_OF_WEEK],NULL,
|
||||
Hlp_STATS_Figures_calendar,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_STATS_Figures_calendar,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Heading row *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
@ -8981,9 +8930,7 @@ static void Sta_GetAndShowNumUsrsPerDateFormat (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_DATE_FORMAT],NULL,
|
||||
Hlp_STATS_Figures_dates,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_STATS_Figures_dates,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Heading row *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
@ -9121,9 +9068,7 @@ static void Sta_GetAndShowNumUsrsPerIconSet (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_ICON_SETS],NULL,
|
||||
Hlp_STATS_Figures_icons,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_STATS_Figures_icons,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Heading row *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
@ -9266,9 +9211,7 @@ static void Sta_GetAndShowNumUsrsPerMenu (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_MENUS],NULL,
|
||||
Hlp_STATS_Figures_menu,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_STATS_Figures_menu,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Heading row *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
@ -9408,9 +9351,7 @@ static void Sta_GetAndShowNumUsrsPerTheme (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_THEMES],NULL,
|
||||
Hlp_STATS_Figures_theme,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_STATS_Figures_theme,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Heading row *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
@ -9549,9 +9490,7 @@ static void Sta_GetAndShowNumUsrsPerSideColumns (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_SIDE_COLUMNS],NULL,
|
||||
Hlp_STATS_Figures_columns,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_STATS_Figures_columns,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Heading row *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
|
|
@ -215,8 +215,7 @@ static void Svy_ListAllSurveys (struct SurveyQuestion *SvyQst)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox ("100%",Txt_Surveys,Svy_PutIconsListSurveys,
|
||||
Hlp_ASSESSMENT_Surveys,
|
||||
false); // Not closable
|
||||
Hlp_ASSESSMENT_Surveys,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Select whether show only my groups or all groups *****/
|
||||
if (Gbl.CurrentCrs.Grps.NumGrps)
|
||||
|
@ -435,8 +434,7 @@ static void Svy_ShowOneSurvey (long SvyCod,struct SurveyQuestion *SvyQst,
|
|||
/***** Start box *****/
|
||||
if (ShowOnlyThisSvyComplete)
|
||||
Box_StartBox (NULL,Txt_Survey,NULL,
|
||||
Hlp_ASSESSMENT_Surveys,
|
||||
false); // Not closable
|
||||
Hlp_ASSESSMENT_Surveys,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Get data of this survey *****/
|
||||
Svy.SvyCod = SvyCod;
|
||||
|
@ -1820,14 +1818,10 @@ void Svy_RequestCreatOrEditSvy (void)
|
|||
/***** Start box and table *****/
|
||||
if (ItsANewSurvey)
|
||||
Box_StartBoxTable (NULL,Txt_New_survey,NULL,
|
||||
Hlp_ASSESSMENT_Surveys_new_survey,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_ASSESSMENT_Surveys_new_survey,Box_NOT_CLOSABLE,2);
|
||||
else
|
||||
Box_StartBoxTable (NULL,Txt_Edit_survey,NULL,
|
||||
Hlp_ASSESSMENT_Surveys_edit_survey,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_ASSESSMENT_Surveys_edit_survey,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Scope of the survey *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
@ -2024,9 +2018,7 @@ static void Svy_ShowLstGrpsToEditSurvey (long SvyCod)
|
|||
The_ClassForm[Gbl.Prefs.Theme],
|
||||
Txt_Groups);
|
||||
Box_StartBoxTable ("95%",NULL,NULL,
|
||||
NULL,
|
||||
false, // Not closable
|
||||
0);
|
||||
NULL,Box_NOT_CLOSABLE,0);
|
||||
|
||||
/***** First row: checkbox to select the whole course *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
@ -2663,13 +2655,11 @@ static void Svy_ShowFormEditOneQst (long SvyCod,struct SurveyQuestion *SvyQst,
|
|||
sprintf (Gbl.Title,"%s %u",
|
||||
Txt_Question,SvyQst->QstInd + 1); // Question index may be 0, 1, 2, 3,...
|
||||
Box_StartBox (NULL,Gbl.Title,Svy_PutIconToRemoveOneQst,
|
||||
NULL,
|
||||
false); // Not closable
|
||||
NULL,Box_NOT_CLOSABLE);
|
||||
}
|
||||
else
|
||||
Box_StartBox (NULL,Txt_New_question,NULL,
|
||||
Hlp_ASSESSMENT_Surveys_questions,
|
||||
false); // Not closable
|
||||
Hlp_ASSESSMENT_Surveys_questions,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Start form *****/
|
||||
Act_FormStart (ActRcvSvyQst);
|
||||
|
@ -3186,8 +3176,7 @@ static void Svy_ListSvyQuestions (struct Survey *Svy,struct SurveyQuestion *SvyQ
|
|||
Gbl.Svys.SvyCodToEdit = Svy->SvyCod;
|
||||
Box_StartBox (NULL,Txt_Questions,Svy->Status.ICanEdit ? Svy_PutIconToAddNewQuestion :
|
||||
NULL,
|
||||
Hlp_ASSESSMENT_Surveys_questions,
|
||||
false); // Not closable
|
||||
Hlp_ASSESSMENT_Surveys_questions,Box_NOT_CLOSABLE);
|
||||
|
||||
if (NumQsts)
|
||||
{
|
||||
|
|
|
@ -249,8 +249,7 @@ bool Syl_CheckAndEditSyllabus (void)
|
|||
NULL,
|
||||
Gbl.Syllabus.EditionIsActive ? Hlp_COURSE_Syllabus_edit :
|
||||
Hlp_COURSE_Syllabus,
|
||||
false, // Not closable
|
||||
1);
|
||||
Box_NOT_CLOSABLE,1);
|
||||
|
||||
/***** Write the current syllabus *****/
|
||||
Syl_ShowSyllabus ();
|
||||
|
|
46
swad_test.c
46
swad_test.c
|
@ -318,8 +318,7 @@ void Tst_ShowFormAskTst (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Take_a_test,Tst_PutIconsTests,
|
||||
Hlp_ASSESSMENT_Tests,
|
||||
false); // Not closable
|
||||
Hlp_ASSESSMENT_Tests,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Get tags *****/
|
||||
if ((NumRows = Tst_GetEnabledTagsFromThisCrs (&mysql_res)) != 0)
|
||||
|
@ -437,8 +436,7 @@ void Tst_ShowNewTest (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Test,NULL,
|
||||
Hlp_ASSESSMENT_Tests,
|
||||
false); // Not closable
|
||||
Hlp_ASSESSMENT_Tests,Box_NOT_CLOSABLE);
|
||||
Lay_WriteHeaderClassPhoto (false,false,
|
||||
Gbl.CurrentIns.Ins.InsCod,
|
||||
Gbl.CurrentDeg.Deg.DegCod,
|
||||
|
@ -537,8 +535,7 @@ void Tst_AssessTest (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Test_result,NULL,
|
||||
Hlp_ASSESSMENT_Tests,
|
||||
false); // Not closable
|
||||
Hlp_ASSESSMENT_Tests,Box_NOT_CLOSABLE);
|
||||
Lay_WriteHeaderClassPhoto (false,false,
|
||||
Gbl.CurrentIns.Ins.InsCod,
|
||||
Gbl.CurrentDeg.Deg.DegCod,
|
||||
|
@ -1282,8 +1279,7 @@ void Tst_ShowFormAskEditTsts (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_List_edit_questions,Tst_PutIconsTests,
|
||||
Hlp_ASSESSMENT_Tests,
|
||||
false); // Not closable
|
||||
Hlp_ASSESSMENT_Tests,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Get tags already present in the table of questions *****/
|
||||
if ((NumRows = Tst_GetAllTagsFromCurrentCrs (&mysql_res)))
|
||||
|
@ -1739,9 +1735,7 @@ static void Tst_ShowFormEditTags (void)
|
|||
{
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_Tags,NULL,
|
||||
Hlp_ASSESSMENT_Tests,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_ASSESSMENT_Tests,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Show tags *****/
|
||||
for (NumRow = 0;
|
||||
|
@ -1854,8 +1848,7 @@ static void Tst_ShowFormConfigTst (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Configure_tests,Tst_PutIconsTests,
|
||||
Hlp_ASSESSMENT_Tests,
|
||||
false); // Not closable
|
||||
Hlp_ASSESSMENT_Tests,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Start form *****/
|
||||
Act_FormStart (ActRcvCfgTst);
|
||||
|
@ -2735,8 +2728,7 @@ static void Tst_ListOneOrMoreQuestionsToEdit (unsigned long NumRows,MYSQL_RES *m
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Questions,Tst_PutIconsTests,
|
||||
Hlp_ASSESSMENT_Tests,
|
||||
false); // Not closable
|
||||
Hlp_ASSESSMENT_Tests,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Write the heading *****/
|
||||
Tbl_StartTableWideMargin (2);
|
||||
|
@ -4527,13 +4519,11 @@ static void Tst_PutFormEditOneQst (char Stem[Cns_MAX_BYTES_TEXT + 1],
|
|||
{
|
||||
sprintf (Title,Txt_Question_code_X,Gbl.Test.QstCod);
|
||||
Box_StartBox (NULL,Title,Tst_PutIconToRemoveOneQst,
|
||||
Hlp_ASSESSMENT_Tests,
|
||||
false); // Not closable
|
||||
Hlp_ASSESSMENT_Tests,Box_NOT_CLOSABLE);
|
||||
}
|
||||
else
|
||||
Box_StartBox (NULL,Txt_New_question,NULL,
|
||||
Hlp_ASSESSMENT_Tests,
|
||||
false); // Not closable
|
||||
Hlp_ASSESSMENT_Tests,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Start form *****/
|
||||
Act_FormStart (ActRcvTstQst);
|
||||
|
@ -6993,8 +6983,7 @@ void Tst_SelUsrsToSeeUsrsTestResults (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Test_results,NULL,
|
||||
Hlp_ASSESSMENT_Tests_test_results,
|
||||
false); // Not closable
|
||||
Hlp_ASSESSMENT_Tests_test_results,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Show form to select the groups *****/
|
||||
Grp_ShowFormToSelectSeveralGroups (ActReqSeeUsrTstRes);
|
||||
|
@ -7079,9 +7068,7 @@ void Tst_SelDatesToSeeMyTestResults (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_Test_results,NULL,
|
||||
Hlp_ASSESSMENT_Tests_test_results,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_ASSESSMENT_Tests_test_results,Box_NOT_CLOSABLE,2);
|
||||
Dat_PutFormStartEndClientLocalDateTimesWithYesterdayToday (false);
|
||||
|
||||
/***** End table, send button and end box *****/
|
||||
|
@ -7154,9 +7141,7 @@ void Tst_ShowUsrsTestResults (void)
|
|||
{
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_Test_results,NULL,
|
||||
Hlp_ASSESSMENT_Tests_test_results,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_ASSESSMENT_Tests_test_results,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Header of the table with the list of users *****/
|
||||
Tst_ShowHeaderTestResults ();
|
||||
|
@ -7251,9 +7236,7 @@ void Tst_ShowMyTestResults (void)
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_Test_results,NULL,
|
||||
Hlp_ASSESSMENT_Tests_test_results,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_ASSESSMENT_Tests_test_results,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Header of the table with the list of users *****/
|
||||
Tst_ShowHeaderTestResults ();
|
||||
|
@ -7721,8 +7704,7 @@ void Tst_ShowOneTestResult (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Test_result,NULL,
|
||||
Hlp_ASSESSMENT_Tests_test_results,
|
||||
false); // Not closable
|
||||
Hlp_ASSESSMENT_Tests_test_results,Box_NOT_CLOSABLE);
|
||||
Lay_WriteHeaderClassPhoto (false,false,
|
||||
Gbl.CurrentIns.Ins.InsCod,
|
||||
Gbl.CurrentDeg.Deg.DegCod,
|
||||
|
|
|
@ -138,8 +138,7 @@ void TsI_ShowFormImportQstsFromXML (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Import_questions,NULL,
|
||||
Hlp_ASSESSMENT_Tests,
|
||||
false); // Not closable
|
||||
Hlp_ASSESSMENT_Tests,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Write help message *****/
|
||||
Ale_ShowAlert (Ale_INFO,Txt_You_need_an_XML_file_containing_a_list_of_questions);
|
||||
|
@ -511,8 +510,7 @@ static void TsI_ImportQuestionsFromXMLBuffer (const char *XMLBuffer)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Imported_questions,NULL,
|
||||
Hlp_ASSESSMENT_Tests,
|
||||
false); // Not closable
|
||||
Hlp_ASSESSMENT_Tests,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Print XML tree *****/
|
||||
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\""
|
||||
|
|
|
@ -241,8 +241,7 @@ void The_PutIconsToSelectTheme (void)
|
|||
The_Theme_t Theme;
|
||||
|
||||
Box_StartBox (NULL,Txt_Theme_SKIN,The_PutIconsTheme,
|
||||
Hlp_PROFILE_Preferences_theme,
|
||||
false); // Not closable
|
||||
Hlp_PROFILE_Preferences_theme,Box_NOT_CLOSABLE);
|
||||
fprintf (Gbl.F.Out,"<div class=\"PREF_CONTAINER\">");
|
||||
for (Theme = (The_Theme_t) 0;
|
||||
Theme < The_NUM_THEMES;
|
||||
|
|
|
@ -356,8 +356,7 @@ void TT_ShowClassTimeTable (void)
|
|||
Gbl.TimeTable.ContextualIcons.PutIconEditOfficeHours ||
|
||||
Gbl.TimeTable.ContextualIcons.PutIconPrint) ? TT_PutContextualIcons :
|
||||
NULL,
|
||||
Help[Gbl.TimeTable.Type],
|
||||
false); // Not closable
|
||||
Help[Gbl.TimeTable.Type],Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Start time table drawing *****/
|
||||
if (Gbl.TimeTable.Type == TT_COURSE_TIMETABLE)
|
||||
|
@ -434,8 +433,7 @@ void TT_EditCrsTimeTable (void)
|
|||
/***** Editable time table *****/
|
||||
Gbl.TimeTable.Type = TT_COURSE_TIMETABLE;
|
||||
Box_StartBox ("100%",Txt_TIMETABLE_TYPES[Gbl.TimeTable.Type],TT_PutIconToViewCrsTT,
|
||||
Hlp_COURSE_Timetable,
|
||||
false); // Not closable
|
||||
Hlp_COURSE_Timetable,Box_NOT_CLOSABLE);
|
||||
TT_ShowTimeTable (Gbl.Usrs.Me.UsrDat.UsrCod);
|
||||
Box_EndBox ();
|
||||
}
|
||||
|
@ -452,8 +450,7 @@ void TT_EditMyTutTimeTable (void)
|
|||
/***** Time table *****/
|
||||
Gbl.TimeTable.Type = TT_TUTORING_TIMETABLE;
|
||||
Box_StartBox ("100%",Txt_TIMETABLE_TYPES[Gbl.TimeTable.Type],TT_PutIconToViewMyTT,
|
||||
Hlp_PROFILE_Timetable,
|
||||
false); // Not closable
|
||||
Hlp_PROFILE_Timetable,Box_NOT_CLOSABLE);
|
||||
TT_ShowTimeTable (Gbl.Usrs.Me.UsrDat.UsrCod);
|
||||
Box_EndBox ();
|
||||
}
|
||||
|
|
26
swad_user.c
26
swad_user.c
|
@ -2263,9 +2263,7 @@ void Usr_WriteFormLogin (Act_Action_t NextAction,void (*FuncParams) ())
|
|||
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_Log_in,NULL,
|
||||
Hlp_PROFILE_LogIn,
|
||||
false, // Not closable
|
||||
2);
|
||||
Hlp_PROFILE_LogIn,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** User's ID/nickname *****/
|
||||
fprintf (Gbl.F.Out,"<div class=\"LEFT_MIDDLE\">"
|
||||
|
@ -3156,8 +3154,7 @@ void Usr_ShowFormsLogoutAndRole (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_Role,NULL,
|
||||
Hlp_PROFILE_Session_role,
|
||||
false); // Not closable
|
||||
Hlp_PROFILE_Session_role,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Put a form to change my role *****/
|
||||
if (Rol_GetNumAvailableRoles () == 1)
|
||||
|
@ -6675,9 +6672,7 @@ unsigned Usr_ListUsrsFound (Rol_Role_t Role,
|
|||
((NumUsrs == 1) ? Txt_ROLES_SINGUL_abc[Role][Sex] :
|
||||
Txt_ROLES_PLURAL_abc[Role][Sex]));
|
||||
Box_StartBoxTable (NULL,Gbl.Title,NULL,
|
||||
NULL,
|
||||
false, // Not closable
|
||||
2);
|
||||
NULL,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Heading row with column names *****/
|
||||
Gbl.Usrs.Listing.WithPhotos = true;
|
||||
|
@ -6826,8 +6821,7 @@ void Usr_ListDataAdms (void)
|
|||
|
||||
/***** Start box with list of administrators *****/
|
||||
Box_StartBox (NULL,Txt_ROLES_PLURAL_Abc[Rol_DEG_ADM][Usr_SEX_UNKNOWN],NULL,
|
||||
Hlp_USERS_Administrators,
|
||||
false); // Not closable
|
||||
Hlp_USERS_Administrators,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Form to select scope *****/
|
||||
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\">");
|
||||
|
@ -7302,8 +7296,7 @@ void Usr_SeeGuests (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_ROLES_PLURAL_Abc[Rol_GST][Usr_SEX_UNKNOWN],Usr_PutIconsListGsts,
|
||||
Hlp_USERS_Guests,
|
||||
false); // Not closable
|
||||
Hlp_USERS_Guests,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Form to select scope *****/
|
||||
if (Gbl.Usrs.Me.Role.Logged == Rol_SYS_ADM)
|
||||
|
@ -7449,8 +7442,7 @@ void Usr_SeeStudents (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_ROLES_PLURAL_Abc[Rol_STD][Usr_SEX_UNKNOWN],Usr_PutIconsListStds,
|
||||
Hlp_USERS_Students,
|
||||
false); // Not closable
|
||||
Hlp_USERS_Students,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Form to select scope *****/
|
||||
switch (Gbl.Usrs.Me.Role.Logged)
|
||||
|
@ -7635,8 +7627,7 @@ void Usr_SeeTeachers (void)
|
|||
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Txt_ROLES_PLURAL_Abc[Rol_TCH][Usr_SEX_UNKNOWN],Usr_PutIconsListTchs,
|
||||
Hlp_USERS_Teachers,
|
||||
false); // Not closable
|
||||
Hlp_USERS_Teachers,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Form to select scope *****/
|
||||
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\">");
|
||||
|
@ -8808,8 +8799,7 @@ void Usr_PrintUsrQRCode (void)
|
|||
{
|
||||
/***** Start box *****/
|
||||
Box_StartBox (NULL,Gbl.Usrs.Other.UsrDat.FullName,NULL,
|
||||
NULL,
|
||||
false); // Not closable
|
||||
NULL,Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Show QR code *****/
|
||||
if (Gbl.Usrs.Other.UsrDat.Nickname[0])
|
||||
|
|
Loading…
Reference in New Issue