mirror of https://github.com/acanas/swad-core.git
Version 16.47.1
This commit is contained in:
parent
422a44a9bf
commit
3e20dee347
Binary file not shown.
After Width: | Height: | Size: 482 B |
|
@ -156,13 +156,16 @@
|
||||||
/****************************** Public constants *****************************/
|
/****************************** Public constants *****************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
#define Log_PLATFORM_VERSION "SWAD 16.47 (2016-11-06)"
|
#define Log_PLATFORM_VERSION "SWAD 16.47.1 (2016-11-06)"
|
||||||
#define CSS_FILE "swad16.32.1.css"
|
#define CSS_FILE "swad16.32.1.css"
|
||||||
#define JS_FILE "swad16.46.1.js"
|
#define JS_FILE "swad16.46.1.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.47.1: Nov 06, 2016 Icon in list of notices to show figure (statistics). (206129 lines)
|
||||||
|
Copy icon/pie64x64.gif to icon directory
|
||||||
|
|
||||||
Version 16.47: Nov 06, 2016 New functions to put a contextual icon to show a figure (statistics). (206113 lines)
|
Version 16.47: Nov 06, 2016 New functions to put a contextual icon to show a figure (statistics). (206113 lines)
|
||||||
Version 16.46.10: Nov 06, 2016 Code refactoring in statistics. (206080 lines)
|
Version 16.46.10: Nov 06, 2016 Code refactoring in statistics. (206080 lines)
|
||||||
Version 16.46.9: Nov 06, 2016 Fixed bug in figures (statistics). (206064 lines)
|
Version 16.46.9: Nov 06, 2016 Fixed bug in figures (statistics). (206064 lines)
|
||||||
|
|
|
@ -463,6 +463,7 @@ struct Globals
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
long HighlightNotCod; // Notice code of a notice to be highlighted
|
long HighlightNotCod; // Notice code of a notice to be highlighted
|
||||||
|
bool ICanEdit;
|
||||||
} Notices;
|
} Notices;
|
||||||
} CurrentCrs;
|
} CurrentCrs;
|
||||||
struct
|
struct
|
||||||
|
|
|
@ -66,6 +66,7 @@ const unsigned Not_MaxCharsURLOnScreen[Not_NUM_TYPES_LISTING] =
|
||||||
/***************************** Private prototypes ****************************/
|
/***************************** Private prototypes ****************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
static void Not_PutIconsNotices (void);
|
||||||
static void Not_PutIconToAddNewNotice (void);
|
static void Not_PutIconToAddNewNotice (void);
|
||||||
static void Not_PutButtonToAddNewNotice (void);
|
static void Not_PutButtonToAddNewNotice (void);
|
||||||
static void Not_GetDataAndShowNotice (long NotCod,bool ICanEdit);
|
static void Not_GetDataAndShowNotice (long NotCod,bool ICanEdit);
|
||||||
|
@ -395,11 +396,11 @@ void Not_ShowNotices (Not_Listing_t TypeNoticesListing,bool ICanEdit)
|
||||||
/***** Start frame *****/
|
/***** Start frame *****/
|
||||||
sprintf (StrWidth,"%upx",
|
sprintf (StrWidth,"%upx",
|
||||||
Not_ContainerWidth[Not_LIST_FULL_NOTICES] + 50);
|
Not_ContainerWidth[Not_LIST_FULL_NOTICES] + 50);
|
||||||
|
Gbl.CurrentCrs.Notices.ICanEdit = ICanEdit;
|
||||||
Lay_StartRoundFrame (StrWidth,
|
Lay_StartRoundFrame (StrWidth,
|
||||||
Gbl.CurrentCrs.Notices.HighlightNotCod > 0 ? Txt_All_notices :
|
Gbl.CurrentCrs.Notices.HighlightNotCod > 0 ? Txt_All_notices :
|
||||||
Txt_Notices,
|
Txt_Notices,
|
||||||
ICanEdit ? Not_PutIconToAddNewNotice :
|
Not_PutIconsNotices);
|
||||||
NULL);
|
|
||||||
if (!NumNotices)
|
if (!NumNotices)
|
||||||
Lay_ShowAlert (Lay_INFO,Txt_No_notices);
|
Lay_ShowAlert (Lay_INFO,Txt_No_notices);
|
||||||
}
|
}
|
||||||
|
@ -483,6 +484,21 @@ void Not_ShowNotices (Not_Listing_t TypeNoticesListing,bool ICanEdit)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
/***************** Put conteextual icons in list of notices ******************/
|
||||||
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
static void Not_PutIconsNotices (void)
|
||||||
|
{
|
||||||
|
/***** Put icon to add a new notice *****/
|
||||||
|
if (Gbl.CurrentCrs.Notices.ICanEdit)
|
||||||
|
Not_PutIconToAddNewNotice ();
|
||||||
|
|
||||||
|
/***** Put icon to show a figure *****/
|
||||||
|
Gbl.Stat.FigureType = Sta_NOTICES;
|
||||||
|
Sta_PutIconToShowFigure ();
|
||||||
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/*********************** Put icon to add a new notice ************************/
|
/*********************** Put icon to add a new notice ************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
Loading…
Reference in New Issue