From e31be6734613ba142cd419db6ab7c712d9de4c7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Mon, 30 May 2016 19:44:21 +0200 Subject: [PATCH] Version 15.212.8 --- swad_changelog.h | 3 ++- swad_institution.c | 25 +++++++++++++++++-------- 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/swad_changelog.h b/swad_changelog.h index c8608dc12..e0760d1d1 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -140,13 +140,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 15.212.7 (2016-05-30)" +#define Log_PLATFORM_VERSION "SWAD 15.212.8 (2016-05-30)" #define CSS_FILE "swad15.210.css" #define JS_FILE "swad15.197.js" // 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.212.8: May 30, 2016 Link to list centres of institution in institution configuration. (201555 lines) Version 15.212.7: May 30, 2016 Link to list degrees of centre in centre configuration. (201547 lines) Version 15.212.6: May 30, 2016 Link to list courses of degree in degree configuration. (201539 lines) Version 15.212.5: May 30, 2016 Fixed bug in number of courses of a degree. (201531 lines) diff --git a/swad_institution.c b/swad_institution.c index 8e099f78a..644fa83ac 100644 --- a/swad_institution.c +++ b/swad_institution.c @@ -241,13 +241,14 @@ void Ins_PrintConfiguration (void) static void Ins_Configuration (bool PrintView) { extern const char *The_ClassForm[The_NUM_THEMES]; - extern const char *Txt_Centres; extern const char *Txt_Institution; extern const char *Txt_Short_name; extern const char *Txt_Web; extern const char *Txt_Shortcut; extern const char *Txt_STR_LANG_ID[1+Txt_NUM_LANGUAGES]; extern const char *Txt_QR_code; + extern const char *Txt_Centres; + extern const char *Txt_Centres_of_INSTITUTION_X; extern const char *Txt_Degrees; extern const char *Txt_Courses; extern const char *Txt_Departments; @@ -383,15 +384,23 @@ static void Ins_Configuration (bool PrintView) /***** Number of centres *****/ fprintf (Gbl.F.Out,"" "" - "%s:" - "" - "" - "%u" - "" - "", + "%s:" + "" + "", The_ClassForm[Gbl.Prefs.Theme], - Txt_Centres, + Txt_Centres); + + /* Form to go to see centres of this institution */ + Act_FormGoToStart (ActSeeCtr); + Deg_PutParamDegCod (Gbl.CurrentIns.Ins.InsCod); + sprintf (Gbl.Title,Txt_Centres_of_INSTITUTION_X,Gbl.CurrentIns.Ins.ShortName); + Act_LinkFormSubmit (Gbl.Title,"DAT"); + fprintf (Gbl.F.Out,"%u", Ctr_GetNumCtrsInIns (Gbl.CurrentIns.Ins.InsCod)); + Act_FormEnd (); + + fprintf (Gbl.F.Out,"" + ""); /***** Number of degrees *****/ fprintf (Gbl.F.Out,""