From 34ffe99a42bfc01301feaa791a9b80eb82bcb1a6 Mon Sep 17 00:00:00 2001 From: x2003bruneau Date: Wed, 26 Jul 2006 12:06:38 +0000 Subject: [PATCH] Fix #397: death date edition from user admin page git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@663 839d8a87-29fc-0310-9880-83ba4fa771e5 --- ChangeLog | 1 + modules/admin.php | 2 ++ templates/admin/utilisateurs.tpl | 8 ++++++++ 3 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index cae0545..8158148 100644 --- a/ChangeLog +++ b/ChangeLog @@ -73,6 +73,7 @@ Bug/Wish: * Admin: - #430: Specify date format on downtime admin page. -Car + - #397: Can edit death date in user admin page -FRU * Carnet: - #435: Calendar contains yearly events for all the contacts. -FRU diff --git a/modules/admin.php b/modules/admin.php index 451b74e..4a311ad 100644 --- a/modules/admin.php +++ b/modules/admin.php @@ -219,6 +219,7 @@ class AdminModule extends PLModule require_once('secure_hash.inc.php'); $pass_encrypted = Env::v('newpass_clair') != "********" ? hash_encrypt(Env::v('newpass_clair')) : Env::v('passw'); $naiss = Env::v('naissanceN'); + $deces = Env::v('decesN'); $perms = Env::v('permsN'); $prenm = Env::v('prenomN'); $nom = Env::v('nomN'); @@ -228,6 +229,7 @@ class AdminModule extends PLModule $query = "UPDATE auth_user_md5 SET naissance = '$naiss', + deces = '$deces', password = '$pass_encrypted', perms = '$perms', prenom = '".addslashes($prenm)."', diff --git a/templates/admin/utilisateurs.tpl b/templates/admin/utilisateurs.tpl index 4f66fc0..4ceaebd 100644 --- a/templates/admin/utilisateurs.tpl +++ b/templates/admin/utilisateurs.tpl @@ -186,6 +186,14 @@ function act_fwd(fwd, activate) { + Date de décès + + + + + + + Promo -- 2.1.4