From cc25cabf6e5fa208604a0ab0b3380e1d4c0e7ce9 Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Sun, 27 Mar 2011 13:00:19 +0000 Subject: [PATCH] mise en forme bien meilleure du systeme de mail temporaire. Remplacement par un radio 'est-ce un email temporaire' OUI/NON --- bureau/admin/mail_add.php | 3 +- bureau/admin/mail_edit.php | 3 +- bureau/admin/mail_list.php | 21 +++++---- bureau/admin/trash_dateselect.php | 47 ++++++++++++-------- bureau/locales/fr_FR/LC_MESSAGES/messages.po | 9 ++-- 5 files changed, 46 insertions(+), 37 deletions(-) diff --git a/bureau/admin/mail_add.php b/bureau/admin/mail_add.php index 256d6410..4174795c 100644 --- a/bureau/admin/mail_add.php +++ b/bureau/admin/mail_add.php @@ -75,8 +75,7 @@ if (!empty($dst_mail)) $pop=0; ()
-
- be deleted at expiration");?> +
diff --git a/bureau/admin/mail_edit.php b/bureau/admin/mail_edit.php index 56fe922a..0dad974e 100644 --- a/bureau/admin/mail_edit.php +++ b/bureau/admin/mail_edit.php @@ -87,8 +87,7 @@ echo "
"._("WARNING: turning POP/IMAP off will DELETE t ()
-
- be deleted at expiration time");?> +
diff --git a/bureau/admin/mail_list.php b/bureau/admin/mail_list.php index d9aa2843..335ce077 100644 --- a/bureau/admin/mail_list.php +++ b/bureau/admin/mail_list.php @@ -55,8 +55,9 @@ if ($error) {

- %s"),$domain); ?> - %s"),$domain); ?> + %s"),$domain); ?> +

+ %s"),$domain); ?>


- %s"),$domain); ?> - %s"),$domain); ?> + %s"),$domain); ?> +

+ %s"),$domain); ?>

"; if (! is_null($val['expiration_date'])) { - // It's a temporary account - echo __("Manage this temporary account"); - } else { - // It's a normal account - echo ""; - echo __("Create alias"); - echo ""; + // It's a temporary account + $trash_info=new m_trash(); + $trash_info->set_from_db($val["expiration_date"]); + echo __("This account will be deleted on"); echo "
".$trash_info->human_display(); } echo ""; echo ""; diff --git a/bureau/admin/trash_dateselect.php b/bureau/admin/trash_dateselect.php index 30771de8..86b79972 100644 --- a/bureau/admin/trash_dateselect.php +++ b/bureau/admin/trash_dateselect.php @@ -28,18 +28,21 @@ ---------------------------------------------------------------------- */ require_once("../class/config.php"); + +$istrash=false; +if (! is_null($res['trash_info']) && $res['trash_info']->is_trash ) { + $istrash=true; +} ?> +

+ onclick="hide('trash_expire_picker');"> + onclick="show('trash_expire_picker');"> +

+
- - - -
- - - -
@@ -57,32 +60,34 @@ require_once("../class/config.php");
- + +
- " /> + " />
+
+ +
diff --git a/bureau/locales/fr_FR/LC_MESSAGES/messages.po b/bureau/locales/fr_FR/LC_MESSAGES/messages.po index 5b112cd2..7a35b7ad 100644 --- a/bureau/locales/fr_FR/LC_MESSAGES/messages.po +++ b/bureau/locales/fr_FR/LC_MESSAGES/messages.po @@ -3459,9 +3459,12 @@ msgstr "une adresse email par ligne" msgid "Informations for temporary account" msgstr "Informations du compte temporaire" +msgid "Is it a temporary mail account?" +msgstr "Souhaitez-vous que ce mail soit temporaire ?" + #: ../admin/mail_add.php:79 -msgid "All this account information will
be deleted at expiration" -msgstr "L'adresse email sera détruite
à la date d'expiration" +msgid "All this account information will be deleted at expiration" +msgstr "L'adresse email sera détruite à la date d'expiration" #: ../admin/mail_add.php:85 msgid "Create this email address" @@ -3809,7 +3812,7 @@ msgstr "Pas de date d'autosuppression" #: ../admin/trash_dateselect.php:47 msgid "You want it to be deleted in" -msgstr "Vous souhaitez que cette adresse soit supprimée le" +msgstr "Vous souhaitez que cette adresse soit supprimée dans" #: ../admin/trash_dateselect.php:54 msgid "Hours"