X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Foptions_order.php;h=bfc0a678d33c14ebe9755c39c392a1731dc0b2b7;hb=802e749066733b34ecb3c0552c080123e068ccfb;hp=cd3c2d40e76937d1d53e6bbac1a6f78d5b25b0d4;hpb=202bcbcc2b67c7c153db1b09b608b62beeba0496;p=squirrelmail.git
diff --git a/src/options_order.php b/src/options_order.php
index cd3c2d40..bfc0a678 100644
--- a/src/options_order.php
+++ b/src/options_order.php
@@ -1,17 +1,19 @@
assign('fields', $available);
+$oTemplate->assign('current_order', $index_order);
+$oTemplate->assign('not_used', $opts);
+$oTemplate->assign('always_show', array(SQM_COL_SUBJ, SQM_COL_FLAGS));
-viewOrderForm($available, $index_order,$opts,urldecode($mailbox));
-
-
-// FOOD for html designers
-function viewOrderForm($aColumns, $aOrder, $aOpts, $mailbox) {
- global $color;
-?>
-
-
-
-
- -
-
-
-
-
-
-
-
-
- $iCol) {
- $sQuery = "&num=$iCol";
- if (isset($mailbox) && $mailbox) {
- $sQuery .= '&mailbox='.urlencode($mailbox);
- }
-
-?>
-
-
- |
-
- |
-
- | |
-
- |
-
- |
-
- | |
-
- |
-
- |
-
- | |
- |
-
-
-
+// FIXME: (related to the above) $PHP_SELF might already have a query string... don't assume otherwise here by adding the ? sign!!
+$oTemplate->assign('move_up', $PHP_SELF .'?method=move&positions=-1'. $x .'&num=');
+$oTemplate->assign('move_down', $PHP_SELF .'?method=move&positions=1'. $x .'&num=');
+$oTemplate->assign('remove', $PHP_SELF .'?method=remove'. $x .'&num=');
+$oTemplate->assign('add', $PHP_SELF.'?method=add'.$x.'&num=');
+$oTemplate->assign('addField_action', $PHP_SELF);
-';
- }
-?>
-
- |
-
- |
-
+$oTemplate->display('options_order.tpl');
-display('footer.tpl');
-?>
\ No newline at end of file