Version 16.232.7

This commit is contained in:
Antonio Cañas Vargas 2017-06-03 18:13:28 +02:00
parent ccc1bc4a83
commit b547c93298
6 changed files with 47 additions and 10 deletions

BIN
icon/link64x64.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 470 B

View File

@ -1546,7 +1546,7 @@ struct Act_Actions Act_Actions[Act_NUM_ACTIONS] =
/* ActReqRemOldCrs */{1109,-1,TabUnk,ActSeePen , 0, 0, 0, 0, 0, 0,0x200,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Crs_AskRemoveOldCrss ,NULL}, /* ActReqRemOldCrs */{1109,-1,TabUnk,ActSeePen , 0, 0, 0, 0, 0, 0,0x200,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Crs_AskRemoveOldCrss ,NULL},
/* ActRemOldCrs */{1110,-1,TabUnk,ActSeePen , 0, 0, 0, 0, 0, 0,0x200,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Crs_RemoveOldCrss ,NULL}, /* ActRemOldCrs */{1110,-1,TabUnk,ActSeePen , 0, 0, 0, 0, 0, 0,0x200,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Crs_RemoveOldCrss ,NULL},
/* ActSeeBan */{1137,-1,TabUnk,ActSeeLnk , 0, 0, 0, 0, 0, 0,0x200,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Ban_SeeBanners ,NULL}, /* ActSeeBan */{1137,-1,TabUnk,ActSeeLnk , 0, 0, 0, 0, 0, 0,0x3FF,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Ban_SeeBanners ,NULL},
/* ActEdiBan */{1138,-1,TabUnk,ActSeeLnk , 0, 0, 0, 0, 0, 0,0x200,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Ban_EditBanners ,NULL}, /* ActEdiBan */{1138,-1,TabUnk,ActSeeLnk , 0, 0, 0, 0, 0, 0,0x200,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Ban_EditBanners ,NULL},
/* ActNewBan */{1139,-1,TabUnk,ActSeeLnk , 0, 0, 0, 0, 0, 0,0x200,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Ban_RecFormNewBanner ,NULL}, /* ActNewBan */{1139,-1,TabUnk,ActSeeLnk , 0, 0, 0, 0, 0, 0,0x200,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Ban_RecFormNewBanner ,NULL},
/* ActRemBan */{1140,-1,TabUnk,ActSeeLnk , 0, 0, 0, 0, 0, 0,0x200,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Ban_RemoveBanner ,NULL}, /* ActRemBan */{1140,-1,TabUnk,ActSeeLnk , 0, 0, 0, 0, 0, 0,0x200,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Ban_RemoveBanner ,NULL},

View File

@ -100,6 +100,14 @@ void Ban_SeeBanners (void)
extern const char *Txt_No_banners; extern const char *Txt_No_banners;
extern const char *Txt_New_banner; extern const char *Txt_New_banner;
/***** Put contextual links *****/
fprintf (Gbl.F.Out,"<div class=\"CONTEXT_MENU\">");
/* Put link to view links */
Lnk_PutLinkToViewLinks ();
fprintf (Gbl.F.Out,"</div>");
/***** Get list of banners *****/ /***** Get list of banners *****/
Ban_GetListBanners ("SELECT BanCod,Hidden,ShortName,FullName,Img,WWW" Ban_GetListBanners ("SELECT BanCod,Hidden,ShortName,FullName,Img,WWW"
" FROM banners" " FROM banners"
@ -184,6 +192,14 @@ void Ban_EditBanners (void)
extern const char *Hlp_SYSTEM_Banners_edit; extern const char *Hlp_SYSTEM_Banners_edit;
extern const char *Txt_Banners; extern const char *Txt_Banners;
/***** Put contextual links *****/
fprintf (Gbl.F.Out,"<div class=\"CONTEXT_MENU\">");
/* Put link to view links */
Lnk_PutLinkToViewLinks ();
fprintf (Gbl.F.Out,"</div>");
/***** Get list of banners *****/ /***** Get list of banners *****/
Ban_GetListBanners ("SELECT BanCod,Hidden,ShortName,FullName,Img,WWW" Ban_GetListBanners ("SELECT BanCod,Hidden,ShortName,FullName,Img,WWW"
" FROM banners ORDER BY ShortName"); " FROM banners ORDER BY ShortName");

View File

@ -233,15 +233,16 @@
/****************************** Public constants *****************************/ /****************************** Public constants *****************************/
/*****************************************************************************/ /*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 16.232.6 (2017-06-03)" #define Log_PLATFORM_VERSION "SWAD 16.232.7 (2017-06-03)"
#define CSS_FILE "swad16.226.css" #define CSS_FILE "swad16.226.css"
#define JS_FILE "swad16.206.3.js" #define JS_FILE "swad16.206.3.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.232.7: Jun 03, 2017 Changed contextual links in institutional links and banners. (? lines)
Version 16.232.6: Jun 03, 2017 Changed layout of edition of banners. (221123 lines) Version 16.232.6: Jun 03, 2017 Changed layout of edition of banners. (221123 lines)
Version 16.232.5: Jun 03, 2017 Changed layout of edition of links. (221108 lines) Version 16.232.5: Jun 03, 2017 Changed layout of edition of institutional links. (221108 lines)
Version 16.232.4: Jun 01, 2017 Changed alert when session expired. (221092 lines) Version 16.232.4: Jun 01, 2017 Changed alert when session expired. (221092 lines)
Version 16.232.3: Jun 01, 2017 Fixed bug in permission of deletion of forum threads. (221091 lines) Version 16.232.3: Jun 01, 2017 Fixed bug in permission of deletion of forum threads. (221091 lines)
Version 16.232.2: May 31, 2017 Fixed bug in selection of user's centre and department. (221089 lines) Version 16.232.2: May 31, 2017 Fixed bug in selection of user's centre and department. (221089 lines)

View File

@ -73,6 +73,20 @@ static void Lnk_PutFormToCreateLink (void);
static void Lnk_PutHeadLinks (void); static void Lnk_PutHeadLinks (void);
static void Lnk_CreateLink (struct Link *Lnk); static void Lnk_CreateLink (struct Link *Lnk);
/*****************************************************************************/
/************************** Put link to view links ***************************/
/*****************************************************************************/
void Lnk_PutLinkToViewLinks (void)
{
extern const char *Txt_Links;
Lay_PutContextualLink (ActSeeLnk,NULL,NULL,
"link64x64.gif",
Txt_Links,Txt_Links,
NULL);
}
/*****************************************************************************/ /*****************************************************************************/
/*************************** List all the links ******************************/ /*************************** List all the links ******************************/
/*****************************************************************************/ /*****************************************************************************/
@ -85,15 +99,12 @@ void Lnk_SeeLinks (void)
extern const char *Txt_New_link; extern const char *Txt_New_link;
/***** Put contextual links *****/ /***** Put contextual links *****/
if (Gbl.Usrs.Me.LoggedRole == Rol_SYS_ADM) // Only for system admins fprintf (Gbl.F.Out,"<div class=\"CONTEXT_MENU\">");
{
fprintf (Gbl.F.Out,"<div class=\"CONTEXT_MENU\">");
/* Put link to view banners */ /* Put link to view banners */
Ban_PutLinkToViewBanners (); Ban_PutLinkToViewBanners ();
fprintf (Gbl.F.Out,"</div>"); fprintf (Gbl.F.Out,"</div>");
}
/***** Get list of links *****/ /***** Get list of links *****/
Lnk_GetListLinks (); Lnk_GetListLinks ();
@ -204,6 +215,14 @@ void Lnk_EditLinks (void)
extern const char *Hlp_SYSTEM_Links_edit; extern const char *Hlp_SYSTEM_Links_edit;
extern const char *Txt_Links; extern const char *Txt_Links;
/***** Put contextual links *****/
fprintf (Gbl.F.Out,"<div class=\"CONTEXT_MENU\">");
/* Put link to view banners */
Ban_PutLinkToViewBanners ();
fprintf (Gbl.F.Out,"</div>");
/***** Get list of links *****/ /***** Get list of links *****/
Lnk_GetListLinks (); Lnk_GetListLinks ();

View File

@ -49,6 +49,7 @@ struct Link
/****************************** Public prototypes ****************************/ /****************************** Public prototypes ****************************/
/*****************************************************************************/ /*****************************************************************************/
void Lnk_PutLinkToViewLinks (void);
void Lnk_SeeLinks (void); void Lnk_SeeLinks (void);
void Lnk_WriteMenuWithInstitutionalLinks (void); void Lnk_WriteMenuWithInstitutionalLinks (void);