mirror of https://github.com/acanas/swad-core.git
Version 18.45.3
This commit is contained in:
parent
90cfed7554
commit
85b0e6100e
|
@ -101,17 +101,17 @@ extern struct Globals Gbl;
|
||||||
|
|
||||||
Start:
|
Start:
|
||||||
1285. ActFrmLogIn Show landing page (forms to log in and to create a new account)
|
1285. ActFrmLogIn Show landing page (forms to log in and to create a new account)
|
||||||
10. ActSysReqSch Request search in system tab
|
10. ActReqSch Request search in system tab
|
||||||
1057. ActSeeSocTmlGbl Show social timeline (global)
|
1057. ActSeeSocTmlGbl Show social timeline (global)
|
||||||
1058. ActSeeSocPrf Suggest list of users to follow
|
1058. ActSeeSocPrf Suggest list of users to follow
|
||||||
16. ActSeeCalSys Show the academic calendar
|
16. ActSeeCal Show the academic calendar
|
||||||
1228. ActSeeNtf Show my recent notifications
|
1228. ActSeeNtf Show my recent notifications
|
||||||
|
|
||||||
1293. ActReqSndNewPwd Show form to send a new password via email
|
1293. ActReqSndNewPwd Show form to send a new password via email
|
||||||
1294. ActSndNewPwd Send a new password via email
|
1294. ActSndNewPwd Send a new password via email
|
||||||
1295. ActLogOut Close session
|
1295. ActLogOut Close session
|
||||||
|
|
||||||
17. ActSysSch Search for courses, teachers, documents...
|
17. ActSch Search for courses, teachers, documents...
|
||||||
|
|
||||||
1061. ActRcvSocPstGbl Receive a public social post to be displayed in the timeline (global)
|
1061. ActRcvSocPstGbl Receive a public social post to be displayed in the timeline (global)
|
||||||
1062. ActRcvSocComGbl Comment a social note in the timeline (global)
|
1062. ActRcvSocComGbl Comment a social note in the timeline (global)
|
||||||
|
@ -1601,17 +1601,17 @@ struct Act_Actions Act_Actions[Act_NUM_ACTIONS] =
|
||||||
|
|
||||||
// TabSta ******************************************************************
|
// TabSta ******************************************************************
|
||||||
/* ActFrmLogIn */{1521, 0,TabSta,ActFrmLogIn , 0,0x001,0x001,0x001,0x001,0x001,0x001,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Usr_WriteLandingPage ,"power-off" },
|
/* ActFrmLogIn */{1521, 0,TabSta,ActFrmLogIn , 0,0x001,0x001,0x001,0x001,0x001,0x001,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Usr_WriteLandingPage ,"power-off" },
|
||||||
/* ActSysReqSch */{ 627, 1,TabSta,ActSysReqSch ,0x3F8,0x3C7,0x3C7,0x3C7,0x3C7,0x3C7,0x3C7,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Sch_ReqSysSearch ,"search" },
|
/* ActReqSch */{ 627, 1,TabSta,ActReqSch ,0x3F8,0x3C7,0x3C7,0x3C7,0x3C7,0x3C7,0x3C7,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Sch_ReqSysSearch ,"search" },
|
||||||
/* ActSeeSocTmlGbl */{1490, 2,TabSta,ActSeeSocTmlGbl ,0x3F8,0x3C6,0x3C6,0x3C6,0x3C6,0x3C6,0x3C6,Act_CONT_NORM,Act_BRW_1ST_TAB,Soc_ShowTimelineGbl1 ,Soc_ShowTimelineGbl2 ,"comment-dots" },
|
/* ActSeeSocTmlGbl */{1490, 2,TabSta,ActSeeSocTmlGbl ,0x3F8,0x3C6,0x3C6,0x3C6,0x3C6,0x3C6,0x3C6,Act_CONT_NORM,Act_BRW_1ST_TAB,Soc_ShowTimelineGbl1 ,Soc_ShowTimelineGbl2 ,"comment-dots" },
|
||||||
/* ActSeeSocPrf */{1520, 3,TabSta,ActSeeSocPrf ,0x3F8,0x3C7,0x3C7,0x3C7,0x3C7,0x3C7,0x3C7,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Prf_SeeSocialProfiles ,"user-check" },
|
/* ActSeeSocPrf */{1520, 3,TabSta,ActSeeSocPrf ,0x3F8,0x3C7,0x3C7,0x3C7,0x3C7,0x3C7,0x3C7,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Prf_SeeSocialProfiles ,"user-check" },
|
||||||
/* ActSeeCalSys */{1622, 4,TabSta,ActSeeCalSys ,0x3F8,0x3C7,0x3C7,0x3C7,0x3C7,0x3C7,0x3C7,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Cal_DrawCalendarSys ,"calendar" },
|
/* ActSeeCal */{1622, 4,TabSta,ActSeeCal ,0x3F8,0x3C7,0x3C7,0x3C7,0x3C7,0x3C7,0x3C7,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Cal_ShowCalendar ,"calendar" },
|
||||||
/* ActSeeNtf */{ 990, 5,TabSta,ActSeeNtf ,0x3F8,0x3C6,0x3C6,0x3C6,0x3C6,0x3C6,0x3C6,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Ntf_ShowMyNotifications ,"bell" },
|
/* ActSeeNtf */{ 990, 5,TabSta,ActSeeNtf ,0x3F8,0x3C6,0x3C6,0x3C6,0x3C6,0x3C6,0x3C6,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Ntf_ShowMyNotifications ,"bell" },
|
||||||
|
|
||||||
/* ActReqSndNewPwd */{ 665,-1,TabUnk,ActFrmLogIn , 0,0x001,0x001,0x001,0x001,0x001,0x001,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Pwd_ShowFormSendNewPwd ,NULL},
|
/* ActReqSndNewPwd */{ 665,-1,TabUnk,ActFrmLogIn , 0,0x001,0x001,0x001,0x001,0x001,0x001,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Pwd_ShowFormSendNewPwd ,NULL},
|
||||||
/* ActSndNewPwd */{ 633,-1,TabUnk,ActFrmLogIn , 0,0x001,0x001,0x001,0x001,0x001,0x001,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Pwd_ChkIdLoginAndSendNewPwd ,NULL},
|
/* ActSndNewPwd */{ 633,-1,TabUnk,ActFrmLogIn , 0,0x001,0x001,0x001,0x001,0x001,0x001,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Pwd_ChkIdLoginAndSendNewPwd ,NULL},
|
||||||
/* ActLogOut */{ 10,-1,TabUnk,ActFrmLogIn ,0x3F8,0x3C7,0x3C7,0x3C7,0x3C7,0x3C7,0x3C7,Act_CONT_NORM,Act_BRW_1ST_TAB,Ses_CloseSession ,Usr_Logout ,NULL},
|
/* ActLogOut */{ 10,-1,TabUnk,ActFrmLogIn ,0x3F8,0x3C7,0x3C7,0x3C7,0x3C7,0x3C7,0x3C7,Act_CONT_NORM,Act_BRW_1ST_TAB,Ses_CloseSession ,Usr_Logout ,NULL},
|
||||||
|
|
||||||
/* ActSysSch */{ 628,-1,TabUnk,ActSysReqSch ,0x3F8,0x3C7,0x3C7,0x3C7,0x3C7,0x3C7,0x3C7,Act_CONT_NORM,Act_BRW_1ST_TAB,Sch_GetParamsSearch ,Sch_SysSearch ,NULL},
|
/* ActSch */{ 628,-1,TabUnk,ActReqSch ,0x3F8,0x3C7,0x3C7,0x3C7,0x3C7,0x3C7,0x3C7,Act_CONT_NORM,Act_BRW_1ST_TAB,Sch_GetParamsSearch ,Sch_SysSearch ,NULL},
|
||||||
|
|
||||||
/* ActRcvSocPstGbl */{1492,-1,TabUnk,ActSeeSocTmlGbl ,0x3F8,0x3C6,0x3C6,0x3C6,0x3C6,0x3C6,0x3C6,Act_CONT_DATA,Act_BRW_1ST_TAB,Soc_ShowTimelineGbl1 ,Soc_ReceiveSocialPostGbl ,NULL},
|
/* ActRcvSocPstGbl */{1492,-1,TabUnk,ActSeeSocTmlGbl ,0x3F8,0x3C6,0x3C6,0x3C6,0x3C6,0x3C6,0x3C6,Act_CONT_DATA,Act_BRW_1ST_TAB,Soc_ShowTimelineGbl1 ,Soc_ReceiveSocialPostGbl ,NULL},
|
||||||
/* ActRcvSocComGbl */{1503,-1,TabUnk,ActSeeSocTmlGbl ,0x3F8,0x3C6,0x3C6,0x3C6,0x3C6,0x3C6,0x3C6,Act_CONT_DATA,Act_BRW_1ST_TAB,Soc_ShowTimelineGbl1 ,Soc_ReceiveCommentGbl ,NULL},
|
/* ActRcvSocComGbl */{1503,-1,TabUnk,ActSeeSocTmlGbl ,0x3F8,0x3C6,0x3C6,0x3C6,0x3C6,0x3C6,0x3C6,Act_CONT_DATA,Act_BRW_1ST_TAB,Soc_ShowTimelineGbl1 ,Soc_ReceiveCommentGbl ,NULL},
|
||||||
|
@ -1653,8 +1653,8 @@ struct Act_Actions Act_Actions[Act_NUM_ACTIONS] =
|
||||||
/* ActSeeFlg */{1412,-1,TabUnk,ActSeeSocPrf ,0x3F8,0x3C7,0x3C7,0x3C7,0x3C7,0x3C7,0x3C7,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Fol_ListFollowing ,NULL},
|
/* ActSeeFlg */{1412,-1,TabUnk,ActSeeSocPrf ,0x3F8,0x3C7,0x3C7,0x3C7,0x3C7,0x3C7,0x3C7,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Fol_ListFollowing ,NULL},
|
||||||
/* ActSeeFlr */{1413,-1,TabUnk,ActSeeSocPrf ,0x3F8,0x3C7,0x3C7,0x3C7,0x3C7,0x3C7,0x3C7,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Fol_ListFollowers ,NULL},
|
/* ActSeeFlr */{1413,-1,TabUnk,ActSeeSocPrf ,0x3F8,0x3C7,0x3C7,0x3C7,0x3C7,0x3C7,0x3C7,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Fol_ListFollowers ,NULL},
|
||||||
|
|
||||||
/* ActPrnCalSys */{1623,-1,TabUnk,ActSeeCalSys ,0x3F8,0x3C7,0x3C7,0x3C7,0x3C7,0x3C7,0x3C7,Act_CONT_NORM,Act_BRW_NEW_TAB,NULL ,Cal_PrintCalendar ,NULL},
|
/* ActPrnCal */{1623,-1,TabUnk,ActSeeCal ,0x3F8,0x3C7,0x3C7,0x3C7,0x3C7,0x3C7,0x3C7,Act_CONT_NORM,Act_BRW_NEW_TAB,NULL ,Cal_PrintCalendar ,NULL},
|
||||||
/* ActChgCalSys1stDay*/{1624,-1,TabUnk,ActSeeCalSys ,0x3F8,0x3C7,0x3C7,0x3C7,0x3C7,0x3C7,0x3C7,Act_CONT_NORM,Act_BRW_1ST_TAB,Cal_ChangeFirstDayOfWeek ,Cal_DrawCalendarSys ,NULL},
|
/* ActChgCal1stDay */{1624,-1,TabUnk,ActSeeCal ,0x3F8,0x3C7,0x3C7,0x3C7,0x3C7,0x3C7,0x3C7,Act_CONT_NORM,Act_BRW_1ST_TAB,Cal_ChangeFirstDayOfWeek ,Cal_ShowCalendar ,NULL},
|
||||||
|
|
||||||
/* ActSeeNewNtf */{ 991,-1,TabUnk,ActSeeNtf ,0x3F8,0x3C6,0x3C6,0x3C6,0x3C6,0x3C6,0x3C6,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Ntf_ShowMyNotifications ,NULL},
|
/* ActSeeNewNtf */{ 991,-1,TabUnk,ActSeeNtf ,0x3F8,0x3C6,0x3C6,0x3C6,0x3C6,0x3C6,0x3C6,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Ntf_ShowMyNotifications ,NULL},
|
||||||
/* ActMrkNtfSee */{1146,-1,TabUnk,ActSeeNtf ,0x3F8,0x3C6,0x3C6,0x3C6,0x3C6,0x3C6,0x3C6,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Ntf_MarkAllNotifAsSeen ,NULL},
|
/* ActMrkNtfSee */{1146,-1,TabUnk,ActSeeNtf ,0x3F8,0x3C6,0x3C6,0x3C6,0x3C6,0x3C6,0x3C6,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Ntf_MarkAllNotifAsSeen ,NULL},
|
||||||
|
@ -1737,7 +1737,7 @@ struct Act_Actions Act_Actions[Act_NUM_ACTIONS] =
|
||||||
/* ActSeeCtr */{ 676, 1,TabIns,ActSeeCtr , 0, 0, 0, 0,0x3C7, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Ctr_ShowCtrsOfCurrentIns ,"building" },
|
/* ActSeeCtr */{ 676, 1,TabIns,ActSeeCtr , 0, 0, 0, 0,0x3C7, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Ctr_ShowCtrsOfCurrentIns ,"building" },
|
||||||
/* ActSeePlc */{ 703, 2,TabIns,ActSeePlc , 0, 0, 0, 0,0x3C7, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Plc_SeePlaces ,"map-marker-alt" },
|
/* ActSeePlc */{ 703, 2,TabIns,ActSeePlc , 0, 0, 0, 0,0x3C7, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Plc_SeePlaces ,"map-marker-alt" },
|
||||||
/* ActSeeDpt */{ 675, 3,TabIns,ActSeeDpt , 0, 0, 0, 0,0x3C7, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Dpt_SeeDepts ,"users" },
|
/* ActSeeDpt */{ 675, 3,TabIns,ActSeeDpt , 0, 0, 0, 0,0x3C7, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Dpt_SeeDepts ,"users" },
|
||||||
/* ActSeeHld */{ 707,-1,TabIns,ActSeeHld , 0, 0, 0, 0,0x3C7, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Hld_SeeHolidays ,"calendar-day" },
|
/* ActSeeHld */{ 707, 4,TabIns,ActSeeHld , 0, 0, 0, 0,0x3C7, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Hld_SeeHolidays ,"calendar-day" },
|
||||||
|
|
||||||
// Actions not in menu:
|
// Actions not in menu:
|
||||||
/* ActPrnInsInf */{1154,-1,TabUnk,ActSeeInsInf , 0, 0, 0, 0,0x3C7, 0, 0,Act_CONT_NORM,Act_BRW_NEW_TAB,NULL ,Ins_PrintConfiguration ,NULL},
|
/* ActPrnInsInf */{1154,-1,TabUnk,ActSeeInsInf , 0, 0, 0, 0,0x3C7, 0, 0,Act_CONT_NORM,Act_BRW_NEW_TAB,NULL ,Ins_PrintConfiguration ,NULL},
|
||||||
|
@ -3774,8 +3774,8 @@ Act_Action_t Act_FromActCodToAction[1 + Act_MAX_ACTION_COD] = // Do not reuse un
|
||||||
ActEnbPstForCrsUsr, // #624
|
ActEnbPstForCrsUsr, // #624
|
||||||
ActDisPstForSWAUsr, // #625
|
ActDisPstForSWAUsr, // #625
|
||||||
-1, // #626 (obsolete action)
|
-1, // #626 (obsolete action)
|
||||||
ActSysReqSch, // #627
|
ActReqSch, // #627
|
||||||
ActSysSch, // #628
|
ActSch, // #628
|
||||||
-1, // #629 (obsolete action)
|
-1, // #629 (obsolete action)
|
||||||
-1, // #630 (obsolete action)
|
-1, // #630 (obsolete action)
|
||||||
ActExpAdmMrkGrp, // #631
|
ActExpAdmMrkGrp, // #631
|
||||||
|
@ -4769,9 +4769,9 @@ Act_Action_t Act_FromActCodToAction[1 + Act_MAX_ACTION_COD] = // Do not reuse un
|
||||||
ActReqRemExaAnn, // #1619
|
ActReqRemExaAnn, // #1619
|
||||||
ActHidExaAnn, // #1620
|
ActHidExaAnn, // #1620
|
||||||
ActShoExaAnn, // #1621
|
ActShoExaAnn, // #1621
|
||||||
ActSeeCalSys, // #1622
|
ActSeeCal, // #1622
|
||||||
ActPrnCalSys, // #1623
|
ActPrnCal, // #1623
|
||||||
ActChgCalSys1stDay, // #1624
|
ActChgCal1stDay, // #1624
|
||||||
-1, // #1625 (obsolete action)
|
-1, // #1625 (obsolete action)
|
||||||
-1, // #1626 (obsolete action)
|
-1, // #1626 (obsolete action)
|
||||||
-1, // #1627 (obsolete action)
|
-1, // #1627 (obsolete action)
|
||||||
|
|
|
@ -90,10 +90,10 @@ typedef signed int Act_Action_t; // Must be a signed type, because -1 is used to
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
// Actions in menu
|
// Actions in menu
|
||||||
#define ActFrmLogIn (ActWebSvc + 1)
|
#define ActFrmLogIn (ActWebSvc + 1)
|
||||||
#define ActSysReqSch (ActWebSvc + 2)
|
#define ActReqSch (ActWebSvc + 2)
|
||||||
#define ActSeeSocTmlGbl (ActWebSvc + 3)
|
#define ActSeeSocTmlGbl (ActWebSvc + 3)
|
||||||
#define ActSeeSocPrf (ActWebSvc + 4)
|
#define ActSeeSocPrf (ActWebSvc + 4)
|
||||||
#define ActSeeCalSys (ActWebSvc + 5)
|
#define ActSeeCal (ActWebSvc + 5)
|
||||||
#define ActSeeNtf (ActWebSvc + 6)
|
#define ActSeeNtf (ActWebSvc + 6)
|
||||||
|
|
||||||
// Secondary actions
|
// Secondary actions
|
||||||
|
@ -101,7 +101,7 @@ typedef signed int Act_Action_t; // Must be a signed type, because -1 is used to
|
||||||
#define ActSndNewPwd (ActWebSvc + 8)
|
#define ActSndNewPwd (ActWebSvc + 8)
|
||||||
#define ActLogOut (ActWebSvc + 9)
|
#define ActLogOut (ActWebSvc + 9)
|
||||||
|
|
||||||
#define ActSysSch (ActWebSvc + 10)
|
#define ActSch (ActWebSvc + 10)
|
||||||
|
|
||||||
#define ActRcvSocPstGbl (ActWebSvc + 11)
|
#define ActRcvSocPstGbl (ActWebSvc + 11)
|
||||||
#define ActRcvSocComGbl (ActWebSvc + 12)
|
#define ActRcvSocComGbl (ActWebSvc + 12)
|
||||||
|
@ -143,8 +143,8 @@ typedef signed int Act_Action_t; // Must be a signed type, because -1 is used to
|
||||||
#define ActSeeFlg (ActWebSvc + 44)
|
#define ActSeeFlg (ActWebSvc + 44)
|
||||||
#define ActSeeFlr (ActWebSvc + 45)
|
#define ActSeeFlr (ActWebSvc + 45)
|
||||||
|
|
||||||
#define ActPrnCalSys (ActWebSvc + 46)
|
#define ActPrnCal (ActWebSvc + 46)
|
||||||
#define ActChgCalSys1stDay (ActWebSvc + 47)
|
#define ActChgCal1stDay (ActWebSvc + 47)
|
||||||
|
|
||||||
#define ActSeeNewNtf (ActWebSvc + 48)
|
#define ActSeeNewNtf (ActWebSvc + 48)
|
||||||
#define ActMrkNtfSee (ActWebSvc + 49)
|
#define ActMrkNtfSee (ActWebSvc + 49)
|
||||||
|
|
|
@ -71,7 +71,7 @@ static void Cal_DrawCalendar (Act_Action_t ActionSeeCalendar,
|
||||||
Act_Action_t ActionChangeCalendar1stDay,
|
Act_Action_t ActionChangeCalendar1stDay,
|
||||||
void (*FunctionToDrawContextualIcons) (void),
|
void (*FunctionToDrawContextualIcons) (void),
|
||||||
bool PrintView);
|
bool PrintView);
|
||||||
static void Cal_PutIconToPrintCalendarSys (void);
|
static void Cal_PutIconsCalendar (void);
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/************** Put icons to select the first day of the week ****************/
|
/************** Put icons to select the first day of the week ****************/
|
||||||
|
@ -221,7 +221,7 @@ void Cal_DrawCurrentMonth (void)
|
||||||
Gbl.CurrentCtr.Ctr.PlcCod,
|
Gbl.CurrentCtr.Ctr.PlcCod,
|
||||||
Cfg_URL_SWAD_CGI,
|
Cfg_URL_SWAD_CGI,
|
||||||
Lan_STR_LANG_ID[Gbl.Prefs.Language]);
|
Lan_STR_LANG_ID[Gbl.Prefs.Language]);
|
||||||
Frm_SetParamsForm (ParamsStr,ActSeeCalSys,true);
|
Frm_SetParamsForm (ParamsStr,ActSeeCal,true);
|
||||||
fprintf (Gbl.F.Out,"'%s',",ParamsStr);
|
fprintf (Gbl.F.Out,"'%s',",ParamsStr);
|
||||||
Frm_SetParamsForm (ParamsStr,ActSeeDatExaAnn,true);
|
Frm_SetParamsForm (ParamsStr,ActSeeDatExaAnn,true);
|
||||||
fprintf (Gbl.F.Out,"'%s');"
|
fprintf (Gbl.F.Out,"'%s');"
|
||||||
|
@ -232,9 +232,9 @@ void Cal_DrawCurrentMonth (void)
|
||||||
/************************ Draw an academic calendar **************************/
|
/************************ Draw an academic calendar **************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
void Cal_DrawCalendarSys (void)
|
void Cal_ShowCalendar (void)
|
||||||
{
|
{
|
||||||
Cal_DrawCalendar (ActSeeCalSys,ActChgCalSys1stDay,Cal_PutIconToPrintCalendarSys,false);
|
Cal_DrawCalendar (ActSeeCal,ActChgCal1stDay,Cal_PutIconsCalendar,false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Cal_PrintCalendar (void)
|
void Cal_PrintCalendar (void)
|
||||||
|
@ -300,21 +300,30 @@ static void Cal_DrawCalendar (Act_Action_t ActionSeeCalendar,
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/************************ Put icon to print calendar *************************/
|
/******************** Put contextual icons in calendar ***********************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
static void Cal_PutIconToPrintCalendarSys (void)
|
static void Cal_PutIconsCalendar (void)
|
||||||
{
|
{
|
||||||
extern const char *Txt_Holidays;
|
|
||||||
|
|
||||||
/***** Print calendar *****/
|
/***** Print calendar *****/
|
||||||
Ico_PutContextualIconToPrint (ActPrnCalSys,NULL);
|
Ico_PutContextualIconToPrint (ActPrnCal,NULL);
|
||||||
|
|
||||||
/***** View holidays *****/
|
/***** View holidays *****/
|
||||||
if (Gbl.CurrentIns.Ins.InsCod > 0 && // Institution selected
|
if (Gbl.CurrentIns.Ins.InsCod > 0 && // Institution selected
|
||||||
(Gbl.Hlds.Num || // There are holidays
|
(Gbl.Hlds.Num || // There are holidays
|
||||||
Gbl.Usrs.Me.Role.Logged >= Rol_INS_ADM)) // Institution admin or system admin
|
Gbl.Usrs.Me.Role.Logged >= Rol_INS_ADM)) // Institution admin or system admin
|
||||||
Lay_PutContextualLinkOnlyIcon (ActSeeHld,NULL,NULL,
|
Hld_PutIconToSeeHlds ();
|
||||||
"calendar-day.svg",
|
}
|
||||||
Txt_Holidays);
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
/************************** Put icon to see calendar *************************/
|
||||||
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
void Cal_PutIconToSeeCalendar (void)
|
||||||
|
{
|
||||||
|
extern const char *Txt_Calendar;
|
||||||
|
|
||||||
|
Lay_PutContextualLinkOnlyIcon (ActSeeCal,NULL,NULL,
|
||||||
|
"calendar.svg",
|
||||||
|
Txt_Calendar);
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,7 +50,9 @@ unsigned Cal_GetFirstDayOfWeekFromStr (const char *Str);
|
||||||
|
|
||||||
void Cal_DrawCurrentMonth (void);
|
void Cal_DrawCurrentMonth (void);
|
||||||
|
|
||||||
void Cal_DrawCalendarSys (void);
|
void Cal_ShowCalendar (void);
|
||||||
void Cal_PrintCalendar (void);
|
void Cal_PrintCalendar (void);
|
||||||
|
|
||||||
|
void Cal_PutIconToSeeCalendar (void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -386,11 +386,12 @@ En OpenSWAD:
|
||||||
ps2pdf source.ps destination.pdf
|
ps2pdf source.ps destination.pdf
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define Log_PLATFORM_VERSION "SWAD 18.45.2 (2019-02-15)"
|
#define Log_PLATFORM_VERSION "SWAD 18.45.3 (2019-02-15)"
|
||||||
#define CSS_FILE "swad18.41.1.css"
|
#define CSS_FILE "swad18.41.1.css"
|
||||||
#define JS_FILE "swad18.32.1.js"
|
#define JS_FILE "swad18.32.1.js"
|
||||||
/*
|
/*
|
||||||
Version 18.45.2: Feb 15, 2019 Changed holidays icon. (? lines)
|
Version 18.45.3: Feb 15, 2019 Contextual icon to see calendar from holidays. (238434 lines)
|
||||||
|
Version 18.45.2: Feb 15, 2019 Changed holidays icon. (238411 lines)
|
||||||
Copy the following icons to icon public directory:
|
Copy the following icons to icon public directory:
|
||||||
sudo cp icon/calendar.svg /var/www/html/swad/icon/
|
sudo cp icon/calendar.svg /var/www/html/swad/icon/
|
||||||
sudo cp icon/calendar-minus.svg /var/www/html/swad/icon/
|
sudo cp icon/calendar-minus.svg /var/www/html/swad/icon/
|
||||||
|
|
|
@ -1064,7 +1064,7 @@ void Crs_WriteSelectorMyCoursesInBreadcrumb (void)
|
||||||
|
|
||||||
/***** Start form *****/
|
/***** Start form *****/
|
||||||
Frm_StartFormGoTo (Gbl.Usrs.Me.MyCrss.Num ? ActSeeCrsInf :
|
Frm_StartFormGoTo (Gbl.Usrs.Me.MyCrss.Num ? ActSeeCrsInf :
|
||||||
ActSysReqSch);
|
ActReqSch);
|
||||||
|
|
||||||
/***** Start selector of courses *****/
|
/***** Start selector of courses *****/
|
||||||
fprintf (Gbl.F.Out,"<select id=\"my_courses\" name=\"crs\""
|
fprintf (Gbl.F.Out,"<select id=\"my_courses\" name=\"crs\""
|
||||||
|
@ -2961,7 +2961,7 @@ static void Crs_PutIconToSearchCourses (void)
|
||||||
extern const char *Txt_Search_courses;
|
extern const char *Txt_Search_courses;
|
||||||
|
|
||||||
/***** Put form to search / select courses *****/
|
/***** Put form to search / select courses *****/
|
||||||
Lay_PutContextualLinkOnlyIcon (ActSysReqSch,
|
Lay_PutContextualLinkOnlyIcon (ActReqSch,
|
||||||
NULL,Sch_PutLinkToSearchCoursesParams,
|
NULL,Sch_PutLinkToSearchCoursesParams,
|
||||||
"search.svg",
|
"search.svg",
|
||||||
Txt_Search_courses);
|
Txt_Search_courses);
|
||||||
|
|
|
@ -315,7 +315,7 @@ void Dat_ShowClientLocalTime (void)
|
||||||
|
|
||||||
/* Month with link to calendar */
|
/* Month with link to calendar */
|
||||||
fprintf (Gbl.F.Out,"<div id=\"current_month\">");
|
fprintf (Gbl.F.Out,"<div id=\"current_month\">");
|
||||||
Frm_StartForm (ActSeeCalSys);
|
Frm_StartForm (ActSeeCal);
|
||||||
Frm_LinkFormSubmit (Txt_Show_calendar,"CURRENT_MONTH",NULL);
|
Frm_LinkFormSubmit (Txt_Show_calendar,"CURRENT_MONTH",NULL);
|
||||||
fprintf (Gbl.F.Out,"<span id=\"current_month_txt\">" // JavaScript will write HTML here
|
fprintf (Gbl.F.Out,"<span id=\"current_month_txt\">" // JavaScript will write HTML here
|
||||||
"</span>"
|
"</span>"
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
#include <string.h> // For string functions
|
#include <string.h> // For string functions
|
||||||
|
|
||||||
#include "swad_box.h"
|
#include "swad_box.h"
|
||||||
|
#include "swad_calendar.h"
|
||||||
#include "swad_database.h"
|
#include "swad_database.h"
|
||||||
#include "swad_form.h"
|
#include "swad_form.h"
|
||||||
#include "swad_global.h"
|
#include "swad_global.h"
|
||||||
|
@ -63,7 +64,7 @@ extern struct Globals Gbl;
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
static void Hld_GetParamHldOrder (void);
|
static void Hld_GetParamHldOrder (void);
|
||||||
static void Hld_PutIconToEditHlds (void);
|
static void Hld_PutIconsSeeHolidays (void);
|
||||||
|
|
||||||
static void Hld_GetDataOfHolidayByCod (struct Holiday *Hld);
|
static void Hld_GetDataOfHolidayByCod (struct Holiday *Hld);
|
||||||
|
|
||||||
|
@ -104,9 +105,7 @@ void Hld_SeeHolidays (void)
|
||||||
Hld_GetListHolidays ();
|
Hld_GetListHolidays ();
|
||||||
|
|
||||||
/***** Table head *****/
|
/***** Table head *****/
|
||||||
Box_StartBox (NULL,Txt_Holidays,
|
Box_StartBox (NULL,Txt_Holidays,Hld_PutIconsSeeHolidays,
|
||||||
Gbl.Usrs.Me.Role.Logged >= Rol_INS_ADM ? Hld_PutIconToEditHlds :
|
|
||||||
NULL,
|
|
||||||
Hlp_INSTITUTION_Holidays,Box_NOT_CLOSABLE);
|
Hlp_INSTITUTION_Holidays,Box_NOT_CLOSABLE);
|
||||||
if (Gbl.Hlds.Num)
|
if (Gbl.Hlds.Num)
|
||||||
{
|
{
|
||||||
|
@ -209,12 +208,30 @@ static void Hld_GetParamHldOrder (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/************************* Put icon to edit holidays *************************/
|
/******************** Put contextual icons in calendar ***********************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
static void Hld_PutIconToEditHlds (void)
|
static void Hld_PutIconsSeeHolidays (void)
|
||||||
{
|
{
|
||||||
Ico_PutContextualIconToEdit (ActEdiHld,NULL);
|
/***** Edit holidays calendar *****/
|
||||||
|
if (Gbl.Usrs.Me.Role.Logged >= Rol_INS_ADM)
|
||||||
|
Ico_PutContextualIconToEdit (ActEdiHld,NULL);
|
||||||
|
|
||||||
|
/***** View calendar *****/
|
||||||
|
Cal_PutIconToSeeCalendar ();
|
||||||
|
}
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
/************************** Put icon to see holidays *************************/
|
||||||
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
void Hld_PutIconToSeeHlds (void)
|
||||||
|
{
|
||||||
|
extern const char *Txt_Holidays;
|
||||||
|
|
||||||
|
Lay_PutContextualLinkOnlyIcon (ActSeeHld,NULL,NULL,
|
||||||
|
"calendar-day.svg",
|
||||||
|
Txt_Holidays);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -514,7 +531,7 @@ static void Hld_ListHolidaysForEdition (void)
|
||||||
Hld_HolidayType_t HolidayType;
|
Hld_HolidayType_t HolidayType;
|
||||||
|
|
||||||
/***** Start box and table *****/
|
/***** Start box and table *****/
|
||||||
Box_StartBoxTable (NULL,Txt_Holidays,NULL,
|
Box_StartBoxTable (NULL,Txt_Holidays,Cal_PutIconToSeeCalendar,
|
||||||
Hlp_INSTITUTION_Holidays_edit,Box_NOT_CLOSABLE,2);
|
Hlp_INSTITUTION_Holidays_edit,Box_NOT_CLOSABLE,2);
|
||||||
|
|
||||||
/***** Write heading *****/
|
/***** Write heading *****/
|
||||||
|
|
|
@ -75,6 +75,7 @@ typedef enum
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
void Hld_SeeHolidays (void);
|
void Hld_SeeHolidays (void);
|
||||||
|
void Hld_PutIconToSeeHlds (void);
|
||||||
void Hld_EditHolidays (void);
|
void Hld_EditHolidays (void);
|
||||||
void Hld_GetListHolidays (void);
|
void Hld_GetListHolidays (void);
|
||||||
void Hld_FreeListHolidays (void);
|
void Hld_FreeListHolidays (void);
|
||||||
|
|
|
@ -494,9 +494,9 @@ static void Lay_WriteScripts (void)
|
||||||
/***** Prepare script to draw months *****/
|
/***** Prepare script to draw months *****/
|
||||||
if ((Gbl.Prefs.SideCols & Lay_SHOW_LEFT_COLUMN) || // Left column visible
|
if ((Gbl.Prefs.SideCols & Lay_SHOW_LEFT_COLUMN) || // Left column visible
|
||||||
(Gbl.CurrentIns.Ins.InsCod > 0 && // Institution selected
|
(Gbl.CurrentIns.Ins.InsCod > 0 && // Institution selected
|
||||||
(Gbl.Action.Act == ActSeeCalSys || // Viewing calendar
|
(Gbl.Action.Act == ActSeeCal || // Viewing calendar
|
||||||
Gbl.Action.Act == ActPrnCalSys || // Printing calendar
|
Gbl.Action.Act == ActPrnCal || // Printing calendar
|
||||||
Gbl.Action.Act == ActChgCalSys1stDay))) // Changing first day
|
Gbl.Action.Act == ActChgCal1stDay))) // Changing first day
|
||||||
{
|
{
|
||||||
/***** Get list of holidays *****/
|
/***** Get list of holidays *****/
|
||||||
if (!Gbl.Hlds.LstIsRead)
|
if (!Gbl.Hlds.LstIsRead)
|
||||||
|
|
|
@ -90,10 +90,10 @@ const Act_Action_t Mnu_MenuActions[Tab_NUM_TABS][Act_MAX_OPTIONS_IN_MENU_PER_TAB
|
||||||
// TabSta *******************
|
// TabSta *******************
|
||||||
{
|
{
|
||||||
ActFrmLogIn, // 0
|
ActFrmLogIn, // 0
|
||||||
ActSysReqSch, // 1
|
ActReqSch, // 1
|
||||||
ActSeeSocTmlGbl, // 2
|
ActSeeSocTmlGbl, // 2
|
||||||
ActSeeSocPrf, // 3
|
ActSeeSocPrf, // 3
|
||||||
ActSeeCalSys, // 4
|
ActSeeCal, // 4
|
||||||
ActSeeNtf, // 5
|
ActSeeNtf, // 5
|
||||||
0, // 6
|
0, // 6
|
||||||
0, // 7
|
0, // 7
|
||||||
|
|
|
@ -89,7 +89,7 @@ void Sch_ReqSysSearch (void)
|
||||||
{
|
{
|
||||||
/***** Search courses, teachers, documents... *****/
|
/***** Search courses, teachers, documents... *****/
|
||||||
Sch_GetParamWhatToSearch ();
|
Sch_GetParamWhatToSearch ();
|
||||||
Sch_PutFormToSearchWithWhatToSearchAndScope (ActSysSch,Sco_SCOPE_SYS);
|
Sch_PutFormToSearchWithWhatToSearchAndScope (ActSch,Sco_SCOPE_SYS);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -230,7 +230,7 @@ void Sch_PutFormToSearchInPageTopHeading (void)
|
||||||
{
|
{
|
||||||
/***** Put form *****/
|
/***** Put form *****/
|
||||||
fprintf (Gbl.F.Out,"<div id=\"head_row_1_search\">");
|
fprintf (Gbl.F.Out,"<div id=\"head_row_1_search\">");
|
||||||
Frm_StartForm (ActSysSch);
|
Frm_StartForm (ActSch);
|
||||||
Sco_PutParamScope ("ScopeSch",Sco_SCOPE_SYS);
|
Sco_PutParamScope ("ScopeSch",Sco_SCOPE_SYS);
|
||||||
Sch_PutInputStringToSearch ("head_search_text");
|
Sch_PutInputStringToSearch ("head_search_text");
|
||||||
Sch_PutMagnifyingGlassButton ("search-white.svg");
|
Sch_PutMagnifyingGlassButton ("search-white.svg");
|
||||||
|
@ -329,7 +329,7 @@ void Sch_SysSearch (void)
|
||||||
if (Gbl.Search.Str[0])
|
if (Gbl.Search.Str[0])
|
||||||
{
|
{
|
||||||
/***** Show search form again *****/
|
/***** Show search form again *****/
|
||||||
Sch_PutFormToSearchWithWhatToSearchAndScope (ActSysSch,Sco_SCOPE_SYS);
|
Sch_PutFormToSearchWithWhatToSearchAndScope (ActSch,Sco_SCOPE_SYS);
|
||||||
|
|
||||||
/***** Show results of search *****/
|
/***** Show results of search *****/
|
||||||
Sch_SearchInDB ();
|
Sch_SearchInDB ();
|
||||||
|
|
|
@ -17701,7 +17701,7 @@ const char *Txt_MENU_TITLE[Tab_NUM_TABS][Act_MAX_OPTIONS_IN_MENU_PER_TAB] =
|
||||||
"Entrar"
|
"Entrar"
|
||||||
#endif
|
#endif
|
||||||
,
|
,
|
||||||
// 1: ActSysReqSch
|
// 1: ActReqSch
|
||||||
#if L==1 // ca
|
#if L==1 // ca
|
||||||
"Cercar"
|
"Cercar"
|
||||||
#elif L==2 // de
|
#elif L==2 // de
|
||||||
|
@ -17764,7 +17764,7 @@ const char *Txt_MENU_TITLE[Tab_NUM_TABS][Act_MAX_OPTIONS_IN_MENU_PER_TAB] =
|
||||||
"Perfiles"
|
"Perfiles"
|
||||||
#endif
|
#endif
|
||||||
,
|
,
|
||||||
// 4: ActSeeCalSys
|
// 4: ActSeeCal
|
||||||
#if L==1 // ca
|
#if L==1 // ca
|
||||||
"Calendari"
|
"Calendari"
|
||||||
#elif L==2 // de
|
#elif L==2 // de
|
||||||
|
@ -19508,7 +19508,7 @@ const char *Txt_MENU_SUBTITLE[Tab_NUM_TABS][Act_MAX_OPTIONS_IN_MENU_PER_TAB] =
|
||||||
"Papel nesta sessão"
|
"Papel nesta sessão"
|
||||||
#endif
|
#endif
|
||||||
,
|
,
|
||||||
// 1: ActSysReqSch
|
// 1: ActReqSch
|
||||||
#if L==1 // ca
|
#if L==1 // ca
|
||||||
"Cerca d'assignatures, professors i documents"
|
"Cerca d'assignatures, professors i documents"
|
||||||
#elif L==2 // de
|
#elif L==2 // de
|
||||||
|
@ -19571,7 +19571,7 @@ const char *Txt_MENU_SUBTITLE[Tab_NUM_TABS][Act_MAX_OPTIONS_IN_MENU_PER_TAB] =
|
||||||
"Perfis públicos"
|
"Perfis públicos"
|
||||||
#endif
|
#endif
|
||||||
,
|
,
|
||||||
// 4: ActSeeCalSys
|
// 4: ActSeeCal
|
||||||
#if L==1 // ca
|
#if L==1 // ca
|
||||||
"Calendari acadèmic"
|
"Calendari acadèmic"
|
||||||
#elif L==2 // de
|
#elif L==2 // de
|
||||||
|
|
Loading…
Reference in New Issue