mirror of https://github.com/acanas/swad-core.git
Version 16.242
This commit is contained in:
parent
2c550544ec
commit
47e543e1a7
|
@ -148,8 +148,7 @@ void Agd_ShowMyAgenda (void)
|
|||
Agd_GetParams (Agd_MY_AGENDA);
|
||||
|
||||
/***** Start frame *****/
|
||||
Box_StartBox ("100%",Txt_My_agenda,
|
||||
Agd_PutIconsMyFullAgenda,
|
||||
Box_StartBox ("100%",Txt_My_agenda,Agd_PutIconsMyFullAgenda,
|
||||
Hlp_PROFILE_Agenda,
|
||||
false); // Not closable
|
||||
|
||||
|
@ -535,14 +534,12 @@ static void Agd_ShowEventsToday (Agd_AgendaType_t AgendaType)
|
|||
switch (AgendaType)
|
||||
{
|
||||
case Agd_MY_AGENDA_TODAY:
|
||||
Box_StartBoxTableShadow (NULL,Txt_Today,
|
||||
NULL,
|
||||
Box_StartBoxTableShadow (NULL,Txt_Today,NULL,
|
||||
Hlp_PROFILE_Agenda,
|
||||
2);
|
||||
break;
|
||||
case Agd_ANOTHER_AGENDA_TODAY:
|
||||
Box_StartBoxTableShadow (NULL,Txt_Today,
|
||||
NULL,
|
||||
Box_StartBoxTableShadow (NULL,Txt_Today,NULL,
|
||||
Hlp_PROFILE_Agenda_public_agenda,
|
||||
2);
|
||||
break;
|
||||
|
@ -1539,11 +1536,13 @@ void Agd_RequestCreatOrEditEvent (void)
|
|||
Agd_PutCurrentParamsMyAgenda ();
|
||||
|
||||
/***** Table start *****/
|
||||
Box_StartBoxTable (NULL,
|
||||
ItsANewEvent ? Txt_New_event :
|
||||
Txt_Edit_event,
|
||||
NULL,
|
||||
ItsANewEvent ? Hlp_PROFILE_Agenda_new_event :
|
||||
if (ItsANewEvent)
|
||||
Box_StartBoxTable (NULL,Txt_New_event,NULL,
|
||||
Hlp_PROFILE_Agenda_new_event,
|
||||
false, // Not closable
|
||||
2);
|
||||
else
|
||||
Box_StartBoxTable (NULL,Txt_Edit_event,NULL,
|
||||
Hlp_PROFILE_Agenda_edit_event,
|
||||
false, // Not closable
|
||||
2);
|
||||
|
|
|
@ -1173,11 +1173,13 @@ void Asg_RequestCreatOrEditAsg (void)
|
|||
Asg_PutParams ();
|
||||
|
||||
/***** Table start *****/
|
||||
Box_StartBoxTable (NULL,
|
||||
ItsANewAssignment ? Txt_New_assignment :
|
||||
Txt_Edit_assignment,
|
||||
NULL,
|
||||
ItsANewAssignment ? Hlp_ASSESSMENT_Assignments_new_assignment :
|
||||
if (ItsANewAssignment)
|
||||
Box_StartBoxTable (NULL,Txt_New_assignment,NULL,
|
||||
Hlp_ASSESSMENT_Assignments_new_assignment,
|
||||
false, // Not closable
|
||||
2);
|
||||
else
|
||||
Box_StartBoxTable (NULL,Txt_Edit_assignment,NULL,
|
||||
Hlp_ASSESSMENT_Assignments_edit_assignment,
|
||||
false, // Not closable
|
||||
2);
|
||||
|
|
|
@ -224,8 +224,7 @@ static void Att_ShowAllAttEvents (void)
|
|||
&Pagination);
|
||||
|
||||
/***** Start frame *****/
|
||||
Box_StartBox ("100%",Txt_Events,
|
||||
ICanEdit ? Att_PutIconToCreateNewAttEvent :
|
||||
Box_StartBox ("100%",Txt_Events,ICanEdit ? Att_PutIconToCreateNewAttEvent :
|
||||
NULL,
|
||||
Hlp_USERS_Attendance,
|
||||
false); // Not closable
|
||||
|
@ -1089,11 +1088,13 @@ void Att_RequestCreatOrEditAttEvent (void)
|
|||
Pag_PutHiddenParamPagNum (Pag_ATT_EVENTS,Gbl.AttEvents.CurrentPage);
|
||||
|
||||
/***** Table start *****/
|
||||
Box_StartBoxTable (NULL,
|
||||
ItsANewAttEvent ? Txt_New_event :
|
||||
Txt_Edit_event,
|
||||
NULL,
|
||||
ItsANewAttEvent ? Hlp_USERS_Attendance_new_event :
|
||||
if (ItsANewAttEvent)
|
||||
Box_StartBoxTable (NULL,Txt_New_event,NULL,
|
||||
Hlp_USERS_Attendance_new_event,
|
||||
false, // Not closable
|
||||
2);
|
||||
else
|
||||
Box_StartBoxTable (NULL,Txt_Edit_event,NULL,
|
||||
Hlp_USERS_Attendance_edit_event,
|
||||
false, // Not closable
|
||||
2);
|
||||
|
@ -2676,8 +2677,7 @@ void Usr_ReqListStdsAttendanceCrs (void)
|
|||
Usr_GetListUsrs (Sco_SCOPE_CRS,Rol_STD);
|
||||
|
||||
/***** Start frame *****/
|
||||
Box_StartBox (NULL,Txt_ROLES_PLURAL_Abc[Rol_STD][Usr_SEX_UNKNOWN],
|
||||
NULL,
|
||||
Box_StartBox (NULL,Txt_ROLES_PLURAL_Abc[Rol_STD][Usr_SEX_UNKNOWN],NULL,
|
||||
Hlp_USERS_Attendance_attendance_list,
|
||||
false); // Not closable
|
||||
|
||||
|
|
|
@ -311,10 +311,12 @@ static void Ctr_Configuration (bool PrintView)
|
|||
PhotoExists = Fil_CheckIfPathExists (PathPhoto);
|
||||
|
||||
/***** Start frame *****/
|
||||
Box_StartBox (NULL,NULL,
|
||||
PrintView ? NULL :
|
||||
Ctr_PutIconsToPrintAndUpload,
|
||||
PrintView ? NULL :
|
||||
if (PrintView)
|
||||
Box_StartBox (NULL,NULL,NULL,
|
||||
NULL,
|
||||
false); // Not closable
|
||||
else
|
||||
Box_StartBox (NULL,NULL,Ctr_PutIconsToPrintAndUpload,
|
||||
Hlp_CENTRE_Information,
|
||||
false); // Not closable
|
||||
|
||||
|
|
|
@ -239,13 +239,14 @@
|
|||
/****************************** Public constants *****************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define Log_PLATFORM_VERSION "SWAD 16.241.1 (2017-06-11)"
|
||||
#define Log_PLATFORM_VERSION "SWAD 16.242 (2017-06-11)"
|
||||
#define CSS_FILE "swad16.235.1.css"
|
||||
#define 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.242: Jun 11, 2017 Code refactoring related with boxes. (222128 lines)
|
||||
Version 16.241.2: Jun 11, 2017 Changes in alignment of dates in statistics. (222131 lines)
|
||||
Version 16.241.1: Jun 11, 2017 Fix bug confirming another user's ID. (222132 lines)
|
||||
Version 16.241: Jun 11, 2017 New module swad_table to draw tables. (222132 lines)
|
||||
|
|
|
@ -138,8 +138,8 @@ void Cty_SeeCtyWithPendingInss (void)
|
|||
if ((NumCtys = (unsigned) DB_QuerySELECT (Query,&mysql_res,"can not get countries with pending institutions")))
|
||||
{
|
||||
/***** Write heading *****/
|
||||
Box_StartBoxTable (NULL,Txt_Countries_with_pending_institutions,
|
||||
NULL,Hlp_SYSTEM_Hierarchy_pending,
|
||||
Box_StartBoxTable (NULL,Txt_Countries_with_pending_institutions,NULL,
|
||||
Hlp_SYSTEM_Hierarchy_pending,
|
||||
false, // Not closable
|
||||
2);
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
@ -243,10 +243,12 @@ static void Cty_Configuration (bool PrintView)
|
|||
if (Gbl.CurrentCty.Cty.CtyCod > 0)
|
||||
{
|
||||
/***** Start frame *****/
|
||||
Box_StartBox (NULL,NULL,
|
||||
PrintView ? NULL :
|
||||
Cty_PutIconToPrint,
|
||||
PrintView ? NULL :
|
||||
if (PrintView)
|
||||
Box_StartBox (NULL,NULL,NULL,
|
||||
NULL,
|
||||
false); // Not closable
|
||||
else
|
||||
Box_StartBox (NULL,NULL,Cty_PutIconToPrint,
|
||||
Hlp_COUNTRY_Information,
|
||||
false); // Not closable
|
||||
|
||||
|
|
|
@ -197,10 +197,12 @@ static void Crs_Configuration (bool PrintView)
|
|||
}
|
||||
|
||||
/***** Start frame *****/
|
||||
Box_StartBox (NULL,NULL,
|
||||
PrintView ? NULL :
|
||||
Crs_PutIconToPrint,
|
||||
PrintView ? NULL :
|
||||
if (PrintView)
|
||||
Box_StartBox (NULL,NULL,NULL,
|
||||
NULL,
|
||||
false); // Not closable
|
||||
else
|
||||
Box_StartBox (NULL,NULL,Crs_PutIconToPrint,
|
||||
Hlp_COURSE_Information,
|
||||
false); // Not closable
|
||||
|
||||
|
|
|
@ -299,10 +299,12 @@ static void Deg_Configuration (bool PrintView)
|
|||
if (Gbl.CurrentDeg.Deg.DegCod > 0)
|
||||
{
|
||||
/***** Start frame *****/
|
||||
Box_StartBox (NULL,NULL,
|
||||
PrintView ? NULL :
|
||||
Deg_PutIconsToPrintAndUpload,
|
||||
PrintView ? NULL :
|
||||
if (PrintView)
|
||||
Box_StartBox (NULL,NULL,NULL,
|
||||
NULL,
|
||||
false); // Not closable
|
||||
else
|
||||
Box_StartBox (NULL,NULL,Deg_PutIconsToPrintAndUpload,
|
||||
Hlp_DEGREE_Information,
|
||||
false); // Not closable
|
||||
|
||||
|
|
|
@ -264,8 +264,7 @@ void DT_EditDegreeTypes (void)
|
|||
DT_GetListDegreeTypes (Sco_SCOPE_SYS,DT_ORDER_BY_DEGREE_TYPE);
|
||||
|
||||
/***** Start frame *****/
|
||||
Box_StartBox (NULL,Txt_Types_of_degree,
|
||||
DT_PutIconToViewDegreeTypesWhenEditing,
|
||||
Box_StartBox (NULL,Txt_Types_of_degree,DT_PutIconToViewDegreeTypesWhenEditing,
|
||||
Hlp_CENTRE_DegreeTypes_edit,
|
||||
false); // Not closable
|
||||
|
||||
|
|
11
swad_forum.c
11
swad_forum.c
|
@ -3859,11 +3859,12 @@ static void For_WriteFormForumPst (bool IsReply,const char *Subject)
|
|||
extern const char *Txt_Send;
|
||||
|
||||
/***** Start frame *****/
|
||||
Box_StartBox (NULL,
|
||||
IsReply ? Txt_New_post :
|
||||
Txt_New_thread,
|
||||
NULL,
|
||||
IsReply ? Hlp_SOCIAL_Forums_new_post :
|
||||
if (IsReply)
|
||||
Box_StartBox (NULL,Txt_New_post,NULL,
|
||||
Hlp_SOCIAL_Forums_new_post,
|
||||
false); // Not closable
|
||||
else
|
||||
Box_StartBox (NULL,Txt_New_thread,NULL,
|
||||
Hlp_SOCIAL_Forums_new_thread,
|
||||
false); // Not closable
|
||||
|
||||
|
|
|
@ -267,8 +267,7 @@ static void Grp_EditGroupTypes (void)
|
|||
extern const char *Txt_There_are_no_types_of_group_in_the_course_X;
|
||||
|
||||
/***** Start frame *****/
|
||||
Box_StartBox (NULL,Txt_Types_of_group,
|
||||
Grp_PutIconsEditingGroupTypes,
|
||||
Box_StartBox (NULL,Txt_Types_of_group,Grp_PutIconsEditingGroupTypes,
|
||||
Hlp_USERS_Groups,
|
||||
false); // Not closable
|
||||
|
||||
|
@ -366,8 +365,7 @@ void Grp_ShowFormToSelectSeveralGroups (Act_Action_t NextAction)
|
|||
Gbl.Usrs.Me.Role.Logged == Rol_SYS_ADM);
|
||||
|
||||
/***** Start frame *****/
|
||||
Box_StartBox (NULL,Txt_Groups,
|
||||
ICanEdit ? Grp_PutIconToEditGroups :
|
||||
Box_StartBox (NULL,Txt_Groups,ICanEdit ? Grp_PutIconToEditGroups :
|
||||
NULL,
|
||||
Hlp_USERS_Groups,
|
||||
true); // Closable
|
||||
|
@ -1727,8 +1725,7 @@ void Grp_ShowLstGrpsToChgMyGrps (void)
|
|||
}
|
||||
|
||||
/***** Start frame *****/
|
||||
Box_StartBox (NULL,Txt_My_groups,
|
||||
ICanEdit ? Grp_PutIconToEditGroups :
|
||||
Box_StartBox (NULL,Txt_My_groups,ICanEdit ? Grp_PutIconToEditGroups :
|
||||
NULL,
|
||||
Hlp_USERS_Groups,
|
||||
false); // Not closable
|
||||
|
|
|
@ -129,7 +129,7 @@ void Hlp_ShowHelpWhatWouldYouLikeToDo (void)
|
|||
}
|
||||
|
||||
/***** Contextual buttons *****/
|
||||
/* Start table */
|
||||
/* Start box and table */
|
||||
Box_StartBoxTable (NULL,Txt_What_would_you_like_to_do,NULL,
|
||||
NULL,
|
||||
true, // Closable
|
||||
|
@ -253,7 +253,7 @@ void Hlp_ShowHelpWhatWouldYouLikeToDo (void)
|
|||
Btn_CREATE_BUTTON,Txt_Create_account);
|
||||
}
|
||||
|
||||
/* End table */
|
||||
/* End table and box */
|
||||
Box_EndBoxTable ();
|
||||
}
|
||||
|
||||
|
|
|
@ -77,8 +77,8 @@ void Ico_PutIconsToSelectIconSet (void)
|
|||
extern const char *Txt_Icons;
|
||||
Ico_IconSet_t IconSet;
|
||||
|
||||
Box_StartBox (NULL,Txt_Icons,
|
||||
Ico_PutIconsIconSet,Hlp_PROFILE_Preferences_icons,
|
||||
Box_StartBox (NULL,Txt_Icons,Ico_PutIconsIconSet,
|
||||
Hlp_PROFILE_Preferences_icons,
|
||||
false); // Not closable
|
||||
fprintf (Gbl.F.Out,"<div class=\"PREF_CONTAINER\">");
|
||||
for (IconSet = (Ico_IconSet_t) 0;
|
||||
|
|
|
@ -309,10 +309,12 @@ static void Ins_Configuration (bool PrintView)
|
|||
if (Gbl.CurrentIns.Ins.InsCod > 0)
|
||||
{
|
||||
/***** Start frame *****/
|
||||
Box_StartBox (NULL,NULL,
|
||||
PrintView ? NULL :
|
||||
Ins_PutIconsToPrintAndUpload,
|
||||
PrintView ? NULL :
|
||||
if (PrintView)
|
||||
Box_StartBox (NULL,NULL,NULL,
|
||||
NULL,
|
||||
false); // Not closable
|
||||
else
|
||||
Box_StartBox (NULL,NULL,Ins_PutIconsToPrintAndUpload,
|
||||
Hlp_INSTITUTION_Information,
|
||||
false); // Not closable
|
||||
|
||||
|
|
|
@ -225,10 +225,10 @@ static void Msg_PutFormMsgUsrs (char Content[Cns_MAX_BYTES_LONG_TEXT + 1])
|
|||
}
|
||||
|
||||
/***** Start frame *****/
|
||||
Box_StartBox (NULL,
|
||||
Gbl.Msg.Reply.IsReply ? Txt_Reply_message :
|
||||
Box_StartBox (NULL,Gbl.Msg.Reply.IsReply ? Txt_Reply_message :
|
||||
Txt_New_message,
|
||||
NULL,Hlp_MESSAGES_Write,
|
||||
NULL,
|
||||
Hlp_MESSAGES_Write,
|
||||
false); // Not closable
|
||||
|
||||
if (Gbl.Msg.ShowOnlyOneRecipient)
|
||||
|
@ -1755,9 +1755,8 @@ static void Msg_ShowSentOrReceivedMessages (void)
|
|||
Gbl.Msg.NumMsgs = (unsigned) NumRows;
|
||||
|
||||
/***** Start frame with messages *****/
|
||||
Box_StartBox ("97%",
|
||||
Msg_WriteNumMsgs (NumUnreadMsgs),
|
||||
Msg_PutIconsListMsgs,Help[Gbl.Msg.TypeOfMessages],
|
||||
Box_StartBox ("97%",Msg_WriteNumMsgs (NumUnreadMsgs),Msg_PutIconsListMsgs,
|
||||
Help[Gbl.Msg.TypeOfMessages],
|
||||
false); // Not closable
|
||||
|
||||
/***** Filter messages *****/
|
||||
|
|
|
@ -300,8 +300,7 @@ void Net_ShowFormMyWebsAndSocialNets (void)
|
|||
char URL[Cns_MAX_BYTES_WWW + 1];
|
||||
|
||||
/***** Start table *****/
|
||||
Box_StartBoxTable (NULL,Txt_Webs_social_networks,
|
||||
Net_PutIconsWebsSocialNetworks,
|
||||
Box_StartBoxTable (NULL,Txt_Webs_social_networks,Net_PutIconsWebsSocialNetworks,
|
||||
Hlp_PROFILE_Webs,
|
||||
false, // Not closable
|
||||
2);
|
||||
|
|
|
@ -1693,8 +1693,7 @@ void Pho_ShowOrPrintPhotoDegree (Pho_AvgPhotoSeeOrPrint_t SeeOrPrint)
|
|||
Pho_PutLinkToCalculateDegreeStats ();
|
||||
|
||||
/***** Start frame *****/
|
||||
Box_StartBox (NULL,Txt_Degrees,
|
||||
Pho_PutIconToPrintDegreeStats,
|
||||
Box_StartBox (NULL,Txt_Degrees,Pho_PutIconToPrintDegreeStats,
|
||||
Hlp_STATS_Degrees,
|
||||
false); // Not closable
|
||||
Tbl_StartTableCenter (2);
|
||||
|
|
|
@ -118,8 +118,7 @@ void Plc_SeePlaces (void)
|
|||
Plc_GetListPlaces ();
|
||||
|
||||
/***** Table head *****/
|
||||
Box_StartBox (NULL,Txt_Places,
|
||||
ICanEdit ? Plc_PutIconToEditPlaces :
|
||||
Box_StartBox (NULL,Txt_Places,ICanEdit ? Plc_PutIconToEditPlaces :
|
||||
NULL,
|
||||
Hlp_INSTITUTION_Places,
|
||||
false); // Not closable
|
||||
|
|
|
@ -91,7 +91,7 @@ void Plg_ListPlugins (void)
|
|||
/***** Get list of plugins *****/
|
||||
Plg_GetListPlugins ();
|
||||
|
||||
/***** Table start *****/
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_Plugins,
|
||||
Gbl.Usrs.Me.Role.Logged == Rol_SYS_ADM ? Plg_PutIconToEditPlugins :
|
||||
NULL,
|
||||
|
@ -141,7 +141,7 @@ void Plg_ListPlugins (void)
|
|||
Plg->Name);
|
||||
}
|
||||
|
||||
/***** End table *****/
|
||||
/***** End table and box *****/
|
||||
Box_EndBoxTable ();
|
||||
|
||||
/***** Free list of plugins *****/
|
||||
|
@ -347,12 +347,11 @@ static void Plg_ListPluginsForEdition (void)
|
|||
unsigned NumPlg;
|
||||
struct Plugin *Plg;
|
||||
|
||||
/***** Table head *****/
|
||||
Box_StartBoxTable (NULL,Txt_Plugins,NULL,
|
||||
NULL,
|
||||
false, // Not closable
|
||||
2);
|
||||
|
||||
/***** Table head *****/
|
||||
Plg_PutHeadPlugins ();
|
||||
|
||||
/***** Write all the plugins *****/
|
||||
|
|
|
@ -3994,8 +3994,7 @@ void Rec_ShowFormMyInsCtrDpt (void)
|
|||
}
|
||||
|
||||
/***** Start table *****/
|
||||
Box_StartBoxTable ("800px",
|
||||
IAmATeacher ? Txt_Institution_centre_and_department :
|
||||
Box_StartBoxTable ("800px",IAmATeacher ? Txt_Institution_centre_and_department :
|
||||
Txt_Institution,
|
||||
NULL,
|
||||
Hlp_PROFILE_Institution,
|
||||
|
|
|
@ -5181,8 +5181,7 @@ static void Sta_GetAndShowInssOrderedByNumUsrsInCrss (void)
|
|||
char Query[1024];
|
||||
|
||||
/****** Institutions ordered by number of centres ******/
|
||||
Box_StartBoxTable ("100%",Txt_Institutions_by_number_of_users_in_courses,
|
||||
NULL,
|
||||
Box_StartBoxTable ("100%",Txt_Institutions_by_number_of_users_in_courses,NULL,
|
||||
NULL,
|
||||
false, // Not closable
|
||||
2);
|
||||
|
@ -5478,8 +5477,7 @@ static void Sta_GetAndShowFileBrowsersStats (void)
|
|||
unsigned NumStat;
|
||||
|
||||
/***** Start table *****/
|
||||
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_FOLDERS_AND_FILES],
|
||||
NULL,
|
||||
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_FOLDERS_AND_FILES],NULL,
|
||||
Hlp_STATS_Figures_folders_and_files,
|
||||
false, // Not closable
|
||||
2);
|
||||
|
@ -6993,8 +6991,7 @@ static void Sta_GetAndShowSocialActivityStats (void)
|
|||
unsigned NumUsrsTotal;
|
||||
|
||||
/***** Start table *****/
|
||||
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_SOCIAL_ACTIVITY],
|
||||
NULL,
|
||||
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_SOCIAL_ACTIVITY],NULL,
|
||||
Hlp_STATS_Figures_timeline,
|
||||
false, // Not closable
|
||||
2);
|
||||
|
@ -7546,7 +7543,7 @@ static void Sta_GetAndShowForumStats (void)
|
|||
StatsForum.NumPosts = 0;
|
||||
StatsForum.NumUsrsToBeNotifiedByEMail = 0;
|
||||
|
||||
/***** Start table *****/
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_FORUMS],NULL,
|
||||
Hlp_STATS_Figures_forums,
|
||||
false, // Not closable
|
||||
|
@ -7658,7 +7655,7 @@ static void Sta_GetAndShowForumStats (void)
|
|||
|
||||
Sta_WriteForumTotalStats (&StatsForum);
|
||||
|
||||
/***** End table *****/
|
||||
/***** End table and box *****/
|
||||
Box_EndBoxTable ();
|
||||
}
|
||||
|
||||
|
@ -7905,7 +7902,7 @@ static void Sta_GetAndShowNumUsrsPerNotifyEvent (void)
|
|||
unsigned NumMailsTotal = 0;
|
||||
unsigned NumMails[Ntf_NUM_NOTIFY_EVENTS];
|
||||
|
||||
/***** Start table *****/
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_NOTIFY_EVENTS],NULL,
|
||||
Hlp_STATS_Figures_notifications,
|
||||
false, // Not closable
|
||||
|
@ -8252,7 +8249,7 @@ static void Sta_GetAndShowNoticesStats (void)
|
|||
NumTotalNotices += NumNoticesDeleted;
|
||||
NumTotalNotifications += NumNotif;
|
||||
|
||||
/***** Start table *****/
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_NOTICES],NULL,
|
||||
Hlp_STATS_Figures_notices,
|
||||
false, // Not closable
|
||||
|
@ -8306,7 +8303,7 @@ static void Sta_GetAndShowNoticesStats (void)
|
|||
NumTotalNotices,
|
||||
NumTotalNotifications);
|
||||
|
||||
/***** End table *****/
|
||||
/***** End table and box *****/
|
||||
Box_EndBoxTable ();
|
||||
}
|
||||
|
||||
|
@ -8337,7 +8334,7 @@ static void Sta_GetAndShowMsgsStats (void)
|
|||
NumMsgsReceivedAndDeleted = Msg_GetNumMsgsReceived (Gbl.Scope.Current,Msg_STATUS_DELETED );
|
||||
NumMsgsReceivedAndNotified = Msg_GetNumMsgsReceived (Gbl.Scope.Current,Msg_STATUS_NOTIFIED);
|
||||
|
||||
/***** Start table *****/
|
||||
/***** Start box and table *****/
|
||||
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_MESSAGES],NULL,
|
||||
Hlp_STATS_Figures_messages,
|
||||
false, // Not closable
|
||||
|
@ -8827,8 +8824,7 @@ static void Sta_GetAndShowNumUsrsPerFirstDayOfWeek (void)
|
|||
unsigned NumUsrsTotal = 0;
|
||||
|
||||
/***** Start table *****/
|
||||
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_FIRST_DAY_OF_WEEK],
|
||||
NULL,
|
||||
Box_StartBoxTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_FIRST_DAY_OF_WEEK],NULL,
|
||||
Hlp_STATS_Figures_calendar,
|
||||
false, // Not closable
|
||||
2);
|
||||
|
|
|
@ -1818,9 +1818,13 @@ void Svy_RequestCreatOrEditSvy (void)
|
|||
Svy_PutParams ();
|
||||
|
||||
/***** Start frame *****/
|
||||
Box_StartBoxTable (NULL,ItsANewSurvey ? Txt_New_survey :
|
||||
Txt_Edit_survey,
|
||||
NULL,ItsANewSurvey ? Hlp_ASSESSMENT_Surveys_new_survey :
|
||||
if (ItsANewSurvey)
|
||||
Box_StartBoxTable (NULL,Txt_New_survey,NULL,
|
||||
Hlp_ASSESSMENT_Surveys_new_survey,
|
||||
false, // Not closable
|
||||
2);
|
||||
else
|
||||
Box_StartBoxTable (NULL,Txt_Edit_survey,NULL,
|
||||
Hlp_ASSESSMENT_Surveys_edit_survey,
|
||||
false, // Not closable
|
||||
2);
|
||||
|
@ -3180,8 +3184,7 @@ static void Svy_ListSvyQuestions (struct Survey *Svy,struct SurveyQuestion *SvyQ
|
|||
|
||||
/***** Start frame *****/
|
||||
Gbl.Svys.SvyCodToEdit = Svy->SvyCod;
|
||||
Box_StartBox (NULL,Txt_Questions,
|
||||
Svy->Status.ICanEdit ? Svy_PutIconToAddNewQuestion :
|
||||
Box_StartBox (NULL,Txt_Questions,Svy->Status.ICanEdit ? Svy_PutIconToAddNewQuestion :
|
||||
NULL,
|
||||
Hlp_ASSESSMENT_Surveys_questions,
|
||||
false); // Not closable
|
||||
|
|
|
@ -433,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,
|
||||
Box_StartBox ("100%",Txt_TIMETABLE_TYPES[Gbl.TimeTable.Type],TT_PutIconToViewCrsTT,
|
||||
Hlp_COURSE_Timetable,
|
||||
false); // Not closable
|
||||
TT_ShowTimeTable (Gbl.Usrs.Me.UsrDat.UsrCod);
|
||||
|
@ -452,8 +451,7 @@ void TT_EditMyTutTimeTable (void)
|
|||
|
||||
/***** Time table *****/
|
||||
Gbl.TimeTable.Type = TT_TUTORING_TIMETABLE;
|
||||
Box_StartBox ("100%",Txt_TIMETABLE_TYPES[Gbl.TimeTable.Type],
|
||||
TT_PutIconToViewMyTT,
|
||||
Box_StartBox ("100%",Txt_TIMETABLE_TYPES[Gbl.TimeTable.Type],TT_PutIconToViewMyTT,
|
||||
Hlp_PROFILE_Timetable,
|
||||
false); // Not closable
|
||||
TT_ShowTimeTable (Gbl.Usrs.Me.UsrDat.UsrCod);
|
||||
|
|
12
swad_user.c
12
swad_user.c
|
@ -6825,8 +6825,7 @@ void Usr_ListDataAdms (void)
|
|||
Usr_GetAdmsLst (Gbl.Scope.Current);
|
||||
|
||||
/***** Start frame with list of administrators *****/
|
||||
Box_StartBox (NULL,Txt_ROLES_PLURAL_Abc[Rol_DEG_ADM][Usr_SEX_UNKNOWN],
|
||||
NULL,
|
||||
Box_StartBox (NULL,Txt_ROLES_PLURAL_Abc[Rol_DEG_ADM][Usr_SEX_UNKNOWN],NULL,
|
||||
Hlp_USERS_Administrators,
|
||||
false); // Not closable
|
||||
|
||||
|
@ -7302,8 +7301,7 @@ void Usr_SeeGuests (void)
|
|||
Usr_GetGstsLst (Gbl.Scope.Current);
|
||||
|
||||
/***** Start frame *****/
|
||||
Box_StartBox (NULL,Txt_ROLES_PLURAL_Abc[Rol_GST][Usr_SEX_UNKNOWN],
|
||||
Usr_PutIconsListGsts,
|
||||
Box_StartBox (NULL,Txt_ROLES_PLURAL_Abc[Rol_GST][Usr_SEX_UNKNOWN],Usr_PutIconsListGsts,
|
||||
Hlp_USERS_Guests,
|
||||
false); // Not closable
|
||||
|
||||
|
@ -7450,8 +7448,7 @@ void Usr_SeeStudents (void)
|
|||
Usr_GetListUsrs (Gbl.Scope.Current,Rol_STD);
|
||||
|
||||
/***** Start frame *****/
|
||||
Box_StartBox (NULL,Txt_ROLES_PLURAL_Abc[Rol_STD][Usr_SEX_UNKNOWN],
|
||||
Usr_PutIconsListStds,
|
||||
Box_StartBox (NULL,Txt_ROLES_PLURAL_Abc[Rol_STD][Usr_SEX_UNKNOWN],Usr_PutIconsListStds,
|
||||
Hlp_USERS_Students,
|
||||
false); // Not closable
|
||||
|
||||
|
@ -7637,8 +7634,7 @@ void Usr_SeeTeachers (void)
|
|||
1 << Rol_TCH);
|
||||
|
||||
/***** Start frame *****/
|
||||
Box_StartBox (NULL,Txt_ROLES_PLURAL_Abc[Rol_TCH][Usr_SEX_UNKNOWN],
|
||||
Usr_PutIconsListTchs,
|
||||
Box_StartBox (NULL,Txt_ROLES_PLURAL_Abc[Rol_TCH][Usr_SEX_UNKNOWN],Usr_PutIconsListTchs,
|
||||
Hlp_USERS_Teachers,
|
||||
false); // Not closable
|
||||
|
||||
|
|
Loading…
Reference in New Issue