Version 14.48.7

This commit is contained in:
Antonio Cañas Vargas 2014-12-31 01:32:42 +01:00
parent a6146d3b3f
commit e078a618cc
3 changed files with 44 additions and 3 deletions

View File

@ -35,14 +35,15 @@
/****************************** Public constants *****************************/ /****************************** 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: // 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 // 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. 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) 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. 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) 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) Version 14.48.3 :Dec 30, 2014 Options to see the results of test exams removed from main menu. (174418 lines)

View File

@ -97,6 +97,7 @@ static void Enr_MarkOfficialStdsAsRemovable (long ImpGrpCod,bool RemoveSpecified
static void Enr_PutFormToRemAllStdsThisCrs (void); static void Enr_PutFormToRemAllStdsThisCrs (void);
static void Enr_RemoveEnrollmentRequest (long CrsCod,long UsrCod); static void Enr_RemoveEnrollmentRequest (long CrsCod,long UsrCod);
static void Enr_PutFormToAdminOneUsr (void);
static void Enr_ReqAnotherUsrIDToRegisterRemove (void); static void Enr_ReqAnotherUsrIDToRegisterRemove (void);
static void Enr_AskIfRegRemMe (void); static void Enr_AskIfRegRemMe (void);
@ -445,6 +446,9 @@ void Enr_ShowFormRegRemSeveralUsrs (void)
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"); fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
/***** Put form to go to admin one user *****/
Enr_PutFormToAdminOneUsr ();
/***** Put link to remove all the students in the current course *****/ /***** Put link to remove all the students in the current course *****/
if (Gbl.CurrentCrs.Crs.CrsCod > 0) // Course selected if (Gbl.CurrentCrs.Crs.CrsCod > 0) // Course selected
Enr_PutFormToRemAllStdsThisCrs (); Enr_PutFormToRemAllStdsThisCrs ();
@ -2371,6 +2375,21 @@ static void Enr_RemoveEnrollmentRequest (long CrsCod,long UsrCod)
DB_QueryDELETE (Query,"can not remove a request for enrollment"); 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>");
}
/*****************************************************************************/ /*****************************************************************************/
/************** Form to request the user's ID of another user ****************/ /************** Form to request the user's ID of another user ****************/
/*****************************************************************************/ /*****************************************************************************/

View File

@ -1640,6 +1640,27 @@ const char *Txt_Action =
"A&ccedil;&atilde;o"; "A&ccedil;&atilde;o";
#endif #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&eacute;rer un utilisateur";
#elif L==5
"Administrar un usuario"; // Okoteve traducción
#elif L==6
"Gestire un utente";
#elif L==7
"Zarz&aogon;dzaj u&zdot;ytkownika";
#elif L==8
"Gerenciar um utilizador";
#endif
const char *Txt_Admin_user = const char *Txt_Admin_user =
#if L==0 #if L==0
"Administrar usuari"; "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 #elif L==1
"Verwalten eines Benutzer" "Verwalten eines Benutzer"
#elif L==2 #elif L==2
"Admin a user" "Admin one user"
#elif L==3 #elif L==3
"Administrar un usuario" "Administrar un usuario"
#elif L==4 #elif L==4