From cb66e25ba4e1558303be36f14b1b2afeddcb5f88 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Fri, 28 Sep 2007 19:29:10 +0000 Subject: [PATCH] templates/header.tpl: basic flash messaging, basic capability for info and error messages; needs css styling git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@103 a1433add-5e2c-0410-b055-b7f2511e0802 --- templates/header.tpl | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/templates/header.tpl b/templates/header.tpl index 89ba4006..46ffffa8 100644 --- a/templates/header.tpl +++ b/templates/header.tpl @@ -38,3 +38,23 @@ if (($CONF['show_header_text'] == "YES") and ($CONF['header_text'])) } ?> + +'; + foreach($_SESSION['flash']['info'] as $msg) { + echo "
  • $msg
  • "; + } + echo ''; + } + if(isset($_SESSION['flash']['error'])) { + echo ''; + } + /* nuke it from orbit. It's the only way to be sure. */ + $_SESSION['flash'] = array(); +}