From: x2003bruneau Date: Wed, 2 Aug 2006 11:05:55 +0000 (+0000) Subject: Fixes X-Git-Tag: xorg/0.9.11~142 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=2069538b27eb8a8c5ee4f2704fefcd3b14908735;p=platal.git Fixes git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@773 839d8a87-29fc-0310-9880-83ba4fa771e5 --- diff --git a/include/emails.inc.php b/include/emails.inc.php index d1044c9..580d388 100644 --- a/include/emails.inc.php +++ b/include/emails.inc.php @@ -119,13 +119,14 @@ class Email var $rewrite; var $panne; var $last; + var $panne_level; // }}} // {{{ constructor function Email($row) { - list($this->email, $flags, $this->rewrite, $this->panne, $this->last) = $row; + list($this->email, $flags, $this->rewrite, $this->panne, $this->last, $this->panne_level) = $row; $this->active = ($flags == 'active'); $this->broken = ($flags == 'panne'); } @@ -194,7 +195,7 @@ class Redirect { $this->uid=$_uid; $res = XDB::iterRow(" - SELECT email, flags, rewrite, panne, last + SELECT email, flags, rewrite, panne, last, panne_level FROM emails WHERE uid = {?} AND flags != 'filter'", $_uid); $this->emails=Array(); while ($row = $res->next()) { diff --git a/templates/admin/utilisateurs.tpl b/templates/admin/utilisateurs.tpl index 6ed30d6..0855e3c 100644 --- a/templates/admin/utilisateurs.tpl +++ b/templates/admin/utilisateurs.tpl @@ -278,7 +278,8 @@ Pour ceci changer ses permissions en 'disabled'. {foreach item=mail from=$emails} - + {cycle assign=class values="impair,pair"} + {if $mail->active}active{/if} @@ -294,8 +295,17 @@ Pour ceci changer ses permissions en 'disabled'. delete + {if $mail->panne && $mail->panne neq "0000-00-00"} + + + {icon name=error title="Panne"} + Panne de {$mail->email} le {$mail->panne|date_format} + {if $mail->panne neq $mail->last}confirmée le {$mail->last|date_format}{/if} + + + {/if} {/foreach} - + Ajouter un email @@ -313,13 +323,6 @@ Pour ceci changer ses permissions en 'disabled'. -{foreach from=$emails item=mail} -{if $email->panne && $email->panne neq "0000-00-00"} -

-Panne pour l'email "{$mail->email}" le {$mail->panne|date_format} -

-{/if} -{/foreach} {/if} {/if} diff --git a/templates/admin/valider.tpl b/templates/admin/valider.tpl index f7ea92f..6e3cef7 100644 --- a/templates/admin/valider.tpl +++ b/templates/admin/valider.tpl @@ -120,13 +120,14 @@

Afficher seulement les validation suivantes : -

- {foreach from=$categories item=type} -
-
- {/foreach} -
-

+
+ {foreach from=$categories item=type} +
+
+ {/foreach} +
+
+ {* vim:set et sw=2 sts=2 sws=2: *}