From 644997d8b03cba95a806a6fbb121de9118728f6c Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Tue, 2 Oct 2007 23:31:47 +0000 Subject: [PATCH] - fix colspan in table headlines - fix: display create mailbox link even if no mailbox exists yet git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@120 a1433add-5e2c-0410-b055-b7f2511e0802 --- templates/overview.tpl | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/templates/overview.tpl b/templates/overview.tpl index 697925cb..70a22455 100644 --- a/templates/overview.tpl +++ b/templates/overview.tpl @@ -58,7 +58,7 @@ if (sizeof ($tAlias) > 0) { print "\n"; print " \n"; - print " "; + print " "; print " "; print " \n"; if ($CONF['show_status'] == 'YES') { print "\n"; } @@ -151,9 +151,12 @@ if (sizeof ($tAlias) > 0) if (sizeof ($tMailbox) > 0) { + $colspan=8; + if ($CONF['vacation_control_admin'] == 'YES') $colspan=$colspan+1; + if ($CONF['alias_control_admin'] == 'YES') $colspan=$colspan+1; print "

".$PALANG['pOverview_alias_title']."

".$PALANG['pOverview_alias_title']."

\n"; print " \n"; - print " "; + print " "; print " "; print " \n"; if ($CONF['show_status'] == 'YES') { print "\n"; } @@ -162,9 +165,7 @@ if (sizeof ($tMailbox) > 0) if ($CONF['quota'] == 'YES') print " \n"; print " \n"; print " \n"; - $colspan=2; - if ($CONF['vacation_control_admin'] == 'YES') $colspan=$colspan+1; - if ($CONF['alias_control_admin'] == 'YES') $colspan=$colspan+1; + $colspan = $colspan - 6; print " \n"; print " \n"; @@ -241,9 +242,8 @@ if (sizeof ($tMailbox) > 0) print "\""\n"; } print "\n"; - - print "

" . $PALANG['pMenu_create_mailbox'] . "\n"; } +print "

" . $PALANG['pMenu_create_mailbox'] . "\n"; if ($CONF['show_status'] == 'YES' && $CONF['show_status_key'] == 'YES') { @@ -267,8 +267,7 @@ if ($CONF['show_status'] == 'YES' && $CONF['show_status_key'] == 'YES') $CONF['show_custom_domains'][$i] . "\n"; } } - } -/* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */ +/* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3 ft=php */ ?>

".$PALANG['pOverview_mailbox_title']."

".$PALANG['pOverview_mailbox_title']."

" . $PALANG['pOverview_mailbox_quota'] . "" . $PALANG['pOverview_mailbox_modified'] . "" . $PALANG['pOverview_mailbox_active'] . "