From e078a618ccd5bf5650991cfbdb1f5e91b228f0da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Wed, 31 Dec 2014 01:32:42 +0100 Subject: [PATCH] Version 14.48.7 --- swad_changelog.h | 5 +++-- swad_enrollment.c | 19 +++++++++++++++++++ swad_text.c | 23 ++++++++++++++++++++++- 3 files changed, 44 insertions(+), 3 deletions(-) diff --git a/swad_changelog.h b/swad_changelog.h index d41992bc9..df4ee6836 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -35,14 +35,15 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 14.48.6 (2014/12/31)" +#define Log_PLATFORM_VERSION "SWAD 14.48.7 (2014/12/31)" // 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 | tail -1 /* + Version 14.48.7 :Dec 31, 2014 New link to admin one user in option to admin several users. (174440 lines) Version 14.48.6 :Dec 31, 2014 Option to see accesses to the current course removed from main menu. The text of some menu items has been reduced to a single word. (174404 lines) - Version 14.48.5 :Dec 31, 2014 New links to see accesses to the current course in platform accesses. (174463 lines) + Version 14.48.5 :Dec 31, 2014 New link to see accesses to the current course in platform accesses. (174463 lines) Version 14.48.4 :Dec 31, 2014 The text of some menu items has been reduced to a single word. Fixed bugs in layout. (174420 lines) Version 14.48.3 :Dec 30, 2014 Options to see the results of test exams removed from main menu. (174418 lines) diff --git a/swad_enrollment.c b/swad_enrollment.c index 046efb347..054ae8d4e 100644 --- a/swad_enrollment.c +++ b/swad_enrollment.c @@ -97,6 +97,7 @@ static void Enr_MarkOfficialStdsAsRemovable (long ImpGrpCod,bool RemoveSpecified static void Enr_PutFormToRemAllStdsThisCrs (void); static void Enr_RemoveEnrollmentRequest (long CrsCod,long UsrCod); +static void Enr_PutFormToAdminOneUsr (void); static void Enr_ReqAnotherUsrIDToRegisterRemove (void); static void Enr_AskIfRegRemMe (void); @@ -445,6 +446,9 @@ void Enr_ShowFormRegRemSeveralUsrs (void) fprintf (Gbl.F.Out,"
"); + /***** Put form to go to admin one user *****/ + Enr_PutFormToAdminOneUsr (); + /***** Put link to remove all the students in the current course *****/ if (Gbl.CurrentCrs.Crs.CrsCod > 0) // Course selected Enr_PutFormToRemAllStdsThisCrs (); @@ -2371,6 +2375,21 @@ static void Enr_RemoveEnrollmentRequest (long CrsCod,long UsrCod) DB_QueryDELETE (Query,"can not remove a request for enrollment"); } +/*****************************************************************************/ +/********************** Write a form to admin one user ***********************/ +/*****************************************************************************/ + +static void Enr_PutFormToAdminOneUsr (void) + { + extern const char *The_ClassFormul[The_NUM_THEMES]; + extern const char *Txt_Admin_one_user; + + Act_FormStart (ActReqMdfOneUsr); + Act_LinkFormSubmit (Txt_Admin_one_user,The_ClassFormul[Gbl.Prefs.Theme]); + Lay_PutSendIcon ("configtest",Txt_Admin_one_user,Txt_Admin_one_user); + fprintf (Gbl.F.Out,""); + } + /*****************************************************************************/ /************** Form to request the user's ID of another user ****************/ /*****************************************************************************/ diff --git a/swad_text.c b/swad_text.c index 0763fca2c..d9f2f6850 100644 --- a/swad_text.c +++ b/swad_text.c @@ -1640,6 +1640,27 @@ const char *Txt_Action = "Ação"; #endif +const char *Txt_Admin_one_user = +#if L==0 + "Administrar un usuari"; +#elif L==1 + "Verwalten eines Benutzer"; +#elif L==2 + "Admin one user"; +#elif L==3 + "Administrar un usuario"; +#elif L==4 + "Gérer un utilisateur"; +#elif L==5 + "Administrar un usuario"; // Okoteve traducción +#elif L==6 + "Gestire un utente"; +#elif L==7 + "Zarządzaj użytkownika"; +#elif L==8 + "Gerenciar um utilizador"; +#endif + const char *Txt_Admin_user = #if L==0 "Administrar usuari"; @@ -18569,7 +18590,7 @@ const char *Txt_MENU_NO_BR[Act_NUM_TABS][Act_MAX_OPTIONS_IN_MENU_PER_TAB] = #elif L==1 "Verwalten eines Benutzer" #elif L==2 - "Admin a user" + "Admin one user" #elif L==3 "Administrar un usuario" #elif L==4