From: p d. t. <pdo...@us...> - 2003-09-27 23:38:38
|
Update of /cvsroot/squirrelmail/squirrelmail/src In directory sc8-pr-cvs1:/tmp/cvs-serv18155 Modified Files: options.php Log Message: Put display code together where it belongs and fix javascript autodetect Index: options.php =================================================================== RCS file: /cvsroot/squirrelmail/squirrelmail/src/options.php,v retrieving revision 1.123 retrieving revision 1.124 diff -u -w -r1.123 -r1.124 --- options.php 16 Jun 2003 17:07:05 -0000 1.123 +++ options.php 27 Sep 2003 23:38:25 -0000 1.124 @@ -28,8 +28,6 @@ /*** Build the resultant page. ***/ /*********************************/ -displayPageHeader($color, 'None'); - define('SMOPT_MODE_DISPLAY', 'display'); define('SMOPT_MODE_SUBMIT', 'submit'); define('SMOPT_MODE_LINK', 'link'); @@ -217,21 +215,12 @@ break; } } -/*** MOVE THIS DISPLAY CODE DOWN EVENTUALLY!!! ***/ $optpage_title = _("Options"); if (isset($optpage_name) && ($optpage_name != '')) { $optpage_title .= " - $optpage_name"; } -echo html_tag( 'table', '', 'center', $color[0], 'width="95%" cellpadding="1" cellspacing="0" border="0"' ) . "\n" . - html_tag( 'tr' ) . "\n" . - html_tag( 'td', '', 'center' ) . - "<b>$optpage_title</b><br>\n". - html_tag( 'table', '', '', '', 'width="100%" cellpadding="5" cellspacing="0" border="0"' ) . "\n" . - html_tag( 'tr' ) . "\n" . - html_tag( 'td', '', 'center', $color[4] ) . "\n"; - /*******************************************************************/ /* DO OLD SAVING OF SUBMITTED OPTIONS. THIS WILL BE REMOVED LATER. */ /*******************************************************************/ @@ -272,6 +261,16 @@ /***************************************************************/ /* Finally, display whatever page we are supposed to show now. */ /***************************************************************/ + +displayPageHeader($color, 'None', (isset($optpage_data['xtra']) ? $optpage_data['xtra'] : '')); + +echo html_tag( 'table', '', 'center', $color[0], 'width="95%" cellpadding="1" cellspacing="0" border="0"' ) . "\n" . + html_tag( 'tr' ) . "\n" . + html_tag( 'td', '', 'center' ) . + "<b>$optpage_title</b><br>\n". + html_tag( 'table', '', '', '', 'width="100%" cellpadding="5" cellspacing="0" border="0"' ) . "\n" . + html_tag( 'tr' ) . "\n" . + html_tag( 'td', '', 'center', $color[4] ) . "\n"; /* * The main option page has a different layout then the rest of the option |