mirror of
https://github.com/acanas/swad-core.git
synced 2024-06-03 15:25:22 +02:00
Version 15.64.12
This commit is contained in:
parent
d4a8008102
commit
4338036194
|
@ -117,12 +117,13 @@
|
|||
/****************************** Public constants *****************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define Log_PLATFORM_VERSION "SWAD 15.64.11 (2015/12/13)"
|
||||
#define Log_PLATFORM_VERSION "SWAD 15.64.12 (2015/12/13)"
|
||||
#define CSS_FILE "swad15.64.5.css"
|
||||
|
||||
// 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 15.64.12: Dec 13, 2015 Code refactoring in contextual links. (187061 lines)
|
||||
Version 15.64.11: Dec 13, 2015 Code refactoring in contextual links. (187056 lines)
|
||||
Version 15.64.10: Dec 13, 2015 Code refactoring in contextual links. (187060 lines)
|
||||
Version 15.64.9: Dec 13, 2015 Code refactoring in contextual links. (187061 lines)
|
||||
|
|
31
swad_exam.c
31
swad_exam.c
|
@ -77,6 +77,8 @@ static long Exa_AddExamAnnouncementToDB (void);
|
|||
static void Exa_ModifyExamAnnouncementInDB (long ExaCod);
|
||||
static void Exa_GetDataExamAnnouncementFromDB (long ExaCod);
|
||||
static void Exa_ShowExamAnnouncement (long ExaCod,Exa_TypeViewExamAnnouncement_t TypeViewExamAnnouncement);
|
||||
static void Exa_PutParamExaCod (void);
|
||||
|
||||
static void Exa_GetNotifContentExamAnnouncement (char **ContentStr);
|
||||
|
||||
/*****************************************************************************/
|
||||
|
@ -767,6 +769,8 @@ static void Exa_ShowExamAnnouncement (long ExaCod,Exa_TypeViewExamAnnouncement_t
|
|||
|
||||
if (TypeViewExamAnnouncement == Exa_NORMAL_VIEW)
|
||||
{
|
||||
Gbl.LstExamAnnouncements.ExaCodToEdit = ExaCod; // Used as parameters in contextual links
|
||||
|
||||
fprintf (Gbl.F.Out,"<tr>" \
|
||||
"<td class=\"LEFT_MIDDLE\">");
|
||||
|
||||
|
@ -774,23 +778,17 @@ static void Exa_ShowExamAnnouncement (long ExaCod,Exa_TypeViewExamAnnouncement_t
|
|||
Gbl.Usrs.Me.LoggedRole == Rol_SYS_ADM)
|
||||
{
|
||||
/***** Link to remove this exam announcement *****/
|
||||
Act_FormStart (ActRemExaAnn);
|
||||
Par_PutHiddenParamLong ("ExaCod",ExaCod);
|
||||
Lay_PutIconLink ("remove-on64x64.png",Txt_Remove,NULL,NULL);
|
||||
Act_FormEnd ();
|
||||
Lay_PutContextualLink (ActRemExaAnn,Exa_PutParamExaCod,"remove-on64x64.png",
|
||||
Txt_Remove,NULL);
|
||||
|
||||
/***** Link to edit this exam announcement *****/
|
||||
Act_FormStart (ActEdiExaAnn);
|
||||
Par_PutHiddenParamLong ("ExaCod",ExaCod);
|
||||
Lay_PutIconLink ("edit64x64.png",Txt_Edit,NULL,NULL);
|
||||
Act_FormEnd ();
|
||||
Lay_PutContextualLink (ActEdiExaAnn,Exa_PutParamExaCod,"edit64x64.png",
|
||||
Txt_Edit,NULL);
|
||||
}
|
||||
|
||||
/***** Link to print view *****/
|
||||
Act_FormStart (ActPrnExaAnn);
|
||||
Par_PutHiddenParamLong ("ExaCod",ExaCod);
|
||||
Lay_PutIconLink ("print64x64.png",Txt_Print,NULL,NULL);
|
||||
Act_FormEnd ();
|
||||
Lay_PutContextualLink (ActPrnExaAnn,Exa_PutParamExaCod,"print64x64.png",
|
||||
Txt_Print,NULL);
|
||||
|
||||
fprintf (Gbl.F.Out,"</td>"
|
||||
"</tr>");
|
||||
|
@ -1217,6 +1215,15 @@ static void Exa_ShowExamAnnouncement (long ExaCod,Exa_TypeViewExamAnnouncement_t
|
|||
QR_ExamAnnnouncement ();
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
/***************** Params used to edit an attendance event *******************/
|
||||
/*****************************************************************************/
|
||||
|
||||
static void Exa_PutParamExaCod (void)
|
||||
{
|
||||
Par_PutHiddenParamLong ("ExaCod",Gbl.LstExamAnnouncements.ExaCodToEdit);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
/*********** Get data for notification about an exam announcement ************/
|
||||
/*****************************************************************************/
|
||||
|
|
|
@ -481,6 +481,7 @@ struct Globals
|
|||
{
|
||||
struct Date *Lst; // List of dates of announcements of exams
|
||||
unsigned NumExamAnnounc; // Number of announcements of exam in the list
|
||||
long ExaCodToEdit; // Used as parameter in contextual links
|
||||
} LstExamAnnouncements;
|
||||
struct
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user