From 24fec4fdd6ea628716f119ed04a869e9e1da1840 Mon Sep 17 00:00:00 2001 From: tokul Date: Sat, 11 Feb 2006 17:42:27 +0000 Subject: [PATCH] css requires more hacks in order to center table correctly. reverting to html alignment. fixed order of closing select tag start filters table only when filters exists. removes empty table when filters are not defined. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10709 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- plugins/filters/options.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/plugins/filters/options.php b/plugins/filters/options.php index 58ecfddd..8978818e 100644 --- a/plugins/filters/options.php +++ b/plugins/filters/options.php @@ -104,8 +104,7 @@ if (sqgetGlobalVar('filter_submit',$filter_submit,SQ_POST)) { 'center', '', 'width="95%" border="0" cellpadding="2" cellspacing="0"' ) . '
'. - '
'. - html_tag( 'table', '', '', '', 'border="0" cellpadding="2" cellspacing="0"' ) . + html_tag( 'table', '', 'center', '', 'border="0" cellpadding="2" cellspacing="0"' ) . html_tag( 'tr' ) . html_tag( 'th', _("What to Scan:"), 'right', '', 'style="white-space: nowrap;"' ) . html_tag( 'td', '', 'left' ) . @@ -124,7 +123,6 @@ if (sqgetGlobalVar('filter_submit',$filter_submit,SQ_POST)) { ''. html_tag( 'td', '', 'left' ) . ''. - '
'. '
'. html_tag( 'div', '[' . _("New") . @@ -202,8 +200,8 @@ if (sqgetGlobalVar('filter_submit',$filter_submit,SQ_POST)) { if ( isset($filters[$theid]['folder']) ) $selected = array(strtolower($filters[$theid]['folder'])); echo sqimap_mailbox_option_list(0, $selected, 0, $boxes); - echo ''. - ''. + echo ''. + ''. ''. ''. ''. @@ -214,6 +212,7 @@ if (sqgetGlobalVar('filter_submit',$filter_submit,SQ_POST)) { } +if (count($filters)) { echo html_tag( 'table', '', 'center', '', 'border="0" cellpadding="3" cellspacing="0"' ); for ($i=0, $num = count($filters); $i < $num; $i++) { @@ -254,8 +253,9 @@ if (sqgetGlobalVar('filter_submit',$filter_submit,SQ_POST)) { echo ''; } - echo ''. - html_tag( 'table', + echo ''; +} + echo html_tag( 'table', html_tag( 'tr', html_tag( 'td', ' ', 'left' ) ) , -- 2.25.1