From: Florent Bruneau Date: Sun, 8 Jun 2008 15:33:38 +0000 (+0200) Subject: Add trigWarning() too. Update xnet CSS. X-Git-Tag: core/1.0.0~121 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=e00bc67e218cc6ba38923da4ca1af7219b648cce;p=platal.git Add trigWarning() too. Update xnet CSS. Signed-off-by: Florent Bruneau --- diff --git a/classes/platalpage.php b/classes/platalpage.php index bfb588e..59c3c20 100644 --- a/classes/platalpage.php +++ b/classes/platalpage.php @@ -207,6 +207,11 @@ abstract class PlatalPage extends Smarty $this->trig($msg, 'errors'); } + public function trigWarning($msg) + { + $this->trig($msg, 'warnings'); + } + public function trigSuccess($msg) { $this->trig($msg, 'success'); diff --git a/htdocs/css/default.css b/htdocs/css/default.css index 04e69ce..fa87cf7 100644 --- a/htdocs/css/default.css +++ b/htdocs/css/default.css @@ -80,6 +80,13 @@ p { width: 98%; } +.warnings { + margin-top: 10px; + border: 1px solid #ed0; + background-color: #ffc; + width: 98%; +} + .success { margin-top: 10px; border: 1px solid #0d2; diff --git a/htdocs/css/keynote.css b/htdocs/css/keynote.css index 4f4c040..3304c51 100644 --- a/htdocs/css/keynote.css +++ b/htdocs/css/keynote.css @@ -95,6 +95,13 @@ p.smaller { background-color: #200; } +.warnings { + width: 98%; + border: 1px solid #ff0; + margin-top: 10px; + background-color: #220; +} + .success { width: 98%; border: 1px solid #0d3; diff --git a/htdocs/css/openweb.css b/htdocs/css/openweb.css index d45611e..08f1a5c 100644 --- a/htdocs/css/openweb.css +++ b/htdocs/css/openweb.css @@ -83,6 +83,13 @@ p { width: 98%; } +.warnings { + margin-top: 10px; + border: 1px solid #ed0; + background-color: #ffc; + width: 98%; +} + .success { margin-top: 10px; border: 1px solid #0d2; diff --git a/htdocs/css/xnet.css b/htdocs/css/xnet.css index 4eb241d..47029e8 100644 --- a/htdocs/css/xnet.css +++ b/htdocs/css/xnet.css @@ -188,6 +188,27 @@ td#menu { * CLASSES ***************************************************************************/ +.errors { + margin-top: 10px; + border: 1px solid #f00; + background-color: #faa; + width: 98%; +} + +.warnings { + margin-top: 10px; + border: 1px solid #dc0; + background-color: #ee7; + width: 98%; +} + +.success { + margin-top: 10px; + border: 1px solid #0d2; + background-color: #7fa; + width: 98%; +} + .erreur { color: red !important; } .error { color: red !important; } .center { text-align: center; }