X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Foptions_order.php;h=7309da7b3a31423077d919e4ec820285a508cddb;hb=1e12d1ffb4f54350932a17397d38917db21d64df;hp=1d55b975a6d11d84f8d4032848c17463b9487ac6;hpb=32f4e3189ac2f04956d07af63d9cea44c3393fc5;p=squirrelmail.git diff --git a/src/options_order.php b/src/options_order.php index 1d55b975..7309da7b 100644 --- a/src/options_order.php +++ b/src/options_order.php @@ -3,36 +3,43 @@ /** * options_order.php * - * Copyright (c) 1999-2002 The SquirrelMail Project Team + * Copyright (c) 1999-2003 The SquirrelMail Project Team * Licensed under the GNU GPL. For full terms see the file COPYING. * - * Displays message highlighting options + * Displays messagelist column order options * * $Id$ */ -require_once('../src/validate.php'); -require_once('../functions/display_messages.php'); -require_once('../functions/imap.php'); -require_once('../functions/array.php'); -require_once('../functions/plugin.php'); +/* Path for SquirrelMail required files. */ +define('SM_PATH','../'); -if (! isset($action)) { $action = ''; } -if ($action == 'delete' && isset($theid)) { - removePref($data_dir, $username, "highlight$theid"); -} elseif ($action == 'save') { -} -displayPageHeader($color, 'None'); -?> -
- - @@ -135,4 +148,4 @@ displayPageHeader($color, 'None');
+/* SquirrelMail required files. */ +require_once(SM_PATH . 'include/validate.php'); +require_once(SM_PATH . 'functions/global.php'); +require_once(SM_PATH . 'functions/display_messages.php'); +require_once(SM_PATH . 'functions/imap.php'); +require_once(SM_PATH . 'functions/plugin.php'); +require_once(SM_PATH . 'functions/html.php'); - +/* get globals */ +sqgetGlobalVar('num', $num, SQ_GET); +sqgetGlobalVar('add', $add, SQ_POST); - -

-' . _("Options") . ' - ' . _("Index Order") . '' . + html_tag( 'table', '', '', '', 'width="100%" border="0" cellpadding="8" cellspacing="0"' ) . + html_tag( 'tr' ) . + html_tag( 'td', '', 'center', $color[4] ); $available[1] = _("Checkbox"); $available[2] = _("From"); @@ -81,30 +88,36 @@ displayPageHeader($color, 'None'); setPref($data_dir, $username, "order$i", $index_order[$i]); } } - echo '
' . "\n"; - echo _("The index order is the order that the columns are arranged in the message index. You can add, remove, and move columns around to customize them to fit your needs."); - echo '

'; + echo html_tag( 'table', + html_tag( 'tr', + html_tag( 'td', + _("The index order is the order that the columns are arranged in the message index. You can add, remove, and move columns around to customize them to fit your needs.") + ) + ) , + '', '', '', 'width="65%" border="0" cellpadding="0" cellspacing="0"' ) . "
\n"; if (count($index_order)) { - echo '' . "\n"; + echo html_tag( 'table', '', '', '', ' cellspacing="0" cellpadding="0" border="0"' ) . "\n"; for ($i=1; $i <= count($index_order); $i++) { $tmp = $index_order[$i]; - echo ''; - echo "\n"; - echo '' . "\n"; - echo "\n"; - echo '' . "\n"; - echo '\n"; - echo '' . "\n"; - echo '\n"; - echo "\n"; + echo '' . _("remove") . ''; + else + echo ' '; + echo ''; + echo html_tag( 'td', ' - ' ); + echo html_tag( 'td', $available[$tmp] ); + echo '' . "\n"; } - echo "
". _("up") ." | ". _("down") . " | '; + echo html_tag( 'tr' ); + echo html_tag( 'td', ''. _("up") .'' ); + echo html_tag( 'td', ' | ' ); + echo html_tag( 'td', ''. _("down") .'' ); + echo html_tag( 'td', ' | ' ); + echo html_tag( 'td' ); /* Always show the subject */ if ($tmp != 4) - echo "" . _("remove") . ''; - echo " - ' . $available[$tmp] . "
\n"; + echo '
' . "\n"; } if (count($index_order) != count($available)) { @@ -127,7 +140,7 @@ displayPageHeader($color, 'None'); echo ''; } - echo '

' . _("Return to options page") . '


'; + echo html_tag( 'p', '' . _("Return to options page") . '


' ); ?>
- \ No newline at end of file +