mirror of
https://github.com/acanas/swad-core.git
synced 2024-06-16 13:44:06 +02:00
Version 16.86.2
This commit is contained in:
parent
986a48d830
commit
820a6779e6
|
@ -2786,8 +2786,8 @@ struct Act_Actions Act_Actions[Act_NUM_ACTIONS] =
|
||||||
/* ActFrmRolSes */{ 843, 1,TabPrf,ActFrmRolSes ,0x1FE,0x1FE,0x1FE,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Usr_WriteFormLogout ,"keyuser64x64.gif" },
|
/* ActFrmRolSes */{ 843, 1,TabPrf,ActFrmRolSes ,0x1FE,0x1FE,0x1FE,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Usr_WriteFormLogout ,"keyuser64x64.gif" },
|
||||||
/* ActMyCrs */{ 987, 2,TabPrf,ActMyCrs ,0x1FE,0x1FE,0x1FE,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Crs_ReqSelectOneOfMyCourses ,"hierarchy64x64.png" },
|
/* ActMyCrs */{ 987, 2,TabPrf,ActMyCrs ,0x1FE,0x1FE,0x1FE,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Crs_ReqSelectOneOfMyCourses ,"hierarchy64x64.png" },
|
||||||
/* ActSeeMyTT */{ 408, 3,TabPrf,ActSeeMyTT ,0x1FE,0x1FE,0x1FE,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,TT_ShowClassTimeTable ,"clock64x64.gif" },
|
/* ActSeeMyTT */{ 408, 3,TabPrf,ActSeeMyTT ,0x1FE,0x1FE,0x1FE,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,TT_ShowClassTimeTable ,"clock64x64.gif" },
|
||||||
// /* ActSeeMyAgd */{1602, 4,TabPrf,ActSeeMyAgd ,0x1FE,0x1FE,0x1FE,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Agd_ShowMyAgenda ,"date64x64.gif" },
|
/* ActSeeMyAgd */{1602, 4,TabPrf,ActSeeMyAgd ,0x1FE,0x1FE,0x1FE,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Agd_ShowMyAgenda ,"date64x64.gif" },
|
||||||
/* ActSeeMyAgd */{1602, 4,TabPrf,ActSeeMyAgd ,0x100,0x100,0x100,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Agd_ShowMyAgenda ,"date64x64.gif" }, // TODO: Remove when debugged
|
// /* ActSeeMyAgd */{1602, 4,TabPrf,ActSeeMyAgd ,0x100,0x100,0x100,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Agd_ShowMyAgenda ,"date64x64.gif" }, // TODO: Remove when debugged
|
||||||
/* ActFrmMyAcc */{ 36, 5,TabPrf,ActFrmMyAcc ,0x1FF,0x1FF,0x1FF,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Acc_ShowFormMyAccount ,"arroba64x64.gif" },
|
/* ActFrmMyAcc */{ 36, 5,TabPrf,ActFrmMyAcc ,0x1FF,0x1FF,0x1FF,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Acc_ShowFormMyAccount ,"arroba64x64.gif" },
|
||||||
/* ActReqEdiRecCom */{ 285, 6,TabPrf,ActReqEdiRecCom ,0x1FE,0x1FE,0x1FE,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Rec_ShowFormMySharedRecord ,"card64x64.gif" },
|
/* ActReqEdiRecCom */{ 285, 6,TabPrf,ActReqEdiRecCom ,0x1FE,0x1FE,0x1FE,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Rec_ShowFormMySharedRecord ,"card64x64.gif" },
|
||||||
/* ActEdiPrf */{ 673, 7,TabPrf,ActEdiPrf ,0x1FF,0x1FF,0x1FF,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Pre_EditPrefs ,"heart64x64.gif" },
|
/* ActEdiPrf */{ 673, 7,TabPrf,ActEdiPrf ,0x1FF,0x1FF,0x1FF,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Pre_EditPrefs ,"heart64x64.gif" },
|
||||||
|
|
|
@ -72,6 +72,7 @@ typedef enum
|
||||||
|
|
||||||
static void Agd_ShowEvents (Agd_AgendaType_t AgendaType);
|
static void Agd_ShowEvents (Agd_AgendaType_t AgendaType);
|
||||||
|
|
||||||
|
static void Agd_PutIconToViewEditMyAgenda (void);
|
||||||
static void Agd_PutIconsListEvents (void);
|
static void Agd_PutIconsListEvents (void);
|
||||||
static void Agd_PutIconToCreateNewEvent (void);
|
static void Agd_PutIconToCreateNewEvent (void);
|
||||||
static void Agd_PutIconToShowQR (void);
|
static void Agd_PutIconToShowQR (void);
|
||||||
|
@ -185,6 +186,7 @@ static void Agd_ShowEvents (Agd_AgendaType_t AgendaType)
|
||||||
extern const char *Txt_Event;
|
extern const char *Txt_Event;
|
||||||
extern const char *Txt_Location;
|
extern const char *Txt_Location;
|
||||||
extern const char *Txt_No_events;
|
extern const char *Txt_No_events;
|
||||||
|
bool ItsMe;
|
||||||
Agd_Order_t Order;
|
Agd_Order_t Order;
|
||||||
struct Pagination Pagination;
|
struct Pagination Pagination;
|
||||||
unsigned NumEvent;
|
unsigned NumEvent;
|
||||||
|
@ -216,7 +218,9 @@ static void Agd_ShowEvents (Agd_AgendaType_t AgendaType)
|
||||||
case Agd_USR_AGENDA:
|
case Agd_USR_AGENDA:
|
||||||
/***** Start frame *****/
|
/***** Start frame *****/
|
||||||
sprintf (Gbl.Title,Txt_Public_agenda_USER,Gbl.Usrs.Other.UsrDat.FullName);
|
sprintf (Gbl.Title,Txt_Public_agenda_USER,Gbl.Usrs.Other.UsrDat.FullName);
|
||||||
|
ItsMe = (Gbl.Usrs.Me.UsrDat.UsrCod == Gbl.Usrs.Other.UsrDat.UsrCod);
|
||||||
Lay_StartRoundFrame ("100%",Gbl.Title,
|
Lay_StartRoundFrame ("100%",Gbl.Title,
|
||||||
|
ItsMe ? Agd_PutIconToViewEditMyAgenda :
|
||||||
NULL,
|
NULL,
|
||||||
Hlp_PROFILE_Agenda); // TODO: Change
|
Hlp_PROFILE_Agenda); // TODO: Change
|
||||||
break;
|
break;
|
||||||
|
@ -314,6 +318,21 @@ static void Agd_ShowEvents (Agd_AgendaType_t AgendaType)
|
||||||
Agd_FreeListEvents ();
|
Agd_FreeListEvents ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
/*************** Put contextual icon to view/edit my agenda ******************/
|
||||||
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
static void Agd_PutIconToViewEditMyAgenda (void)
|
||||||
|
{
|
||||||
|
extern const char *Txt_Edit;
|
||||||
|
|
||||||
|
/***** Put icon to view/edit my agenda *****/
|
||||||
|
Lay_PutContextualLink (ActSeeMyAgd,NULL,
|
||||||
|
"edit64x64.png",
|
||||||
|
Txt_Edit,NULL,
|
||||||
|
NULL);
|
||||||
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/***************** Put contextual icons in list of events ********************/
|
/***************** Put contextual icons in list of events ********************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
|
@ -179,18 +179,21 @@
|
||||||
// TODO: When teacher sees "No hay estudiantes", put a button to add students
|
// TODO: When teacher sees "No hay estudiantes", put a button to add students
|
||||||
// TODO: When admin sees "No hay profesores", put a button to add teachers
|
// TODO: When admin sees "No hay profesores", put a button to add teachers
|
||||||
|
|
||||||
|
// TODO: Do not show hidden events of my agenda when selected "Only public events"
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/****************************** Public constants *****************************/
|
/****************************** Public constants *****************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
#define Log_PLATFORM_VERSION "SWAD 16.87.1 (2016-12-05)"
|
#define Log_PLATFORM_VERSION "SWAD 16.87.2 (2016-12-05)"
|
||||||
#define CSS_FILE "swad16.86.5.css"
|
#define CSS_FILE "swad16.86.5.css"
|
||||||
#define JS_FILE "swad16.84.2.js"
|
#define JS_FILE "swad16.84.2.js"
|
||||||
|
|
||||||
// Number of lines (includes comments but not blank lines) has been got with the following command:
|
// Number of lines (includes comments but not blank lines) has been got with the following command:
|
||||||
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*?.h sql/swad*.sql | tail -1
|
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*?.h sql/swad*.sql | tail -1
|
||||||
/*
|
/*
|
||||||
Version 16.87.1: Dec 05, 2016 Temporary permissions to debug agendas. (209963 lines)
|
Version 16.87.2: Dec 05, 2016 Icon to edit user's agenda. (209987 lines)
|
||||||
|
Version 16.87.1: Dec 05, 2016 Temporary permissions to debug agendas. (209969 lines)
|
||||||
Copy the following icons to icon public directory:
|
Copy the following icons to icon public directory:
|
||||||
sudo cp icon/lock-on64x64.png /var/www/html/swad/icon/
|
sudo cp icon/lock-on64x64.png /var/www/html/swad/icon/
|
||||||
sudo cp icon/lock-off64x64.png /var/www/html/swad/icon/
|
sudo cp icon/lock-off64x64.png /var/www/html/swad/icon/
|
||||||
|
@ -198,6 +201,12 @@ sudo cp icon/unlock-off64x64.png /var/www/html/swad/icon/
|
||||||
sudo cp icon/unlock-on64x64.png /var/www/html/swad/icon/
|
sudo cp icon/unlock-on64x64.png /var/www/html/swad/icon/
|
||||||
sudo cp icon/lockunlock64x64.png /var/www/html/swad/icon/
|
sudo cp icon/lockunlock64x64.png /var/www/html/swad/icon/
|
||||||
sudo cp icon/unlock64x64.png /var/www/html/swad/icon/
|
sudo cp icon/unlock64x64.png /var/www/html/swad/icon/
|
||||||
|
sudo cp icon/iconset/awesome/action64x64/hierarchy64x64.png /var/www/html/swad/icon/iconset/awesome/action64x64/
|
||||||
|
sudo cp icon/iconset/nuvola/action64x64/hierarchy64x64.png /var/www/html/swad/icon/iconset/nuvola/action64x64/
|
||||||
|
sudo cp icon/hierarchy64x64.png /var/www/html/swad/icon/
|
||||||
|
sudo cp icon/myhierarchy64x64.png /var/www/html/swad/icon/
|
||||||
|
If you prefer MyISAM tables:
|
||||||
|
ALTER TABLE agendas ENGINE=MyISAM;
|
||||||
|
|
||||||
Version 16.87: Dec 05, 2016 Change language after log in to view another user's public agenda. (209952 lines)
|
Version 16.87: Dec 05, 2016 Change language after log in to view another user's public agenda. (209952 lines)
|
||||||
1 change necessary in database:
|
1 change necessary in database:
|
||||||
|
|
|
@ -765,7 +765,7 @@ static void Hld_ChangeDate (Hld_StartOrEndDate_t StartOrEndDate)
|
||||||
struct Holiday *Hld;
|
struct Holiday *Hld;
|
||||||
struct Date NewDate;
|
struct Date NewDate;
|
||||||
struct Date *PtrDate = NULL; // Initialized to avoid warning
|
struct Date *PtrDate = NULL; // Initialized to avoid warning
|
||||||
const char *StrStartOrEndDate;
|
const char *StrStartOrEndDate = NULL; // Initialized to avoid warning
|
||||||
char StrDate[11];
|
char StrDate[11];
|
||||||
|
|
||||||
Hld = &Gbl.Hlds.EditingHld;
|
Hld = &Gbl.Hlds.EditingHld;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user