X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Foptions_order.php;h=7ba27f13f9a34ac3a48eddc56dac712aac889ca8;hp=c5c5339a4511384de3945e20dca920e8919eb2d6;hb=2d24b622c4c2e78a2e43ba1bed9877556de18de9;hpb=0883f15d7749b9f0b85dae93bb7155d75bb1f1a8 diff --git a/src/options_order.php b/src/options_order.php index c5c5339a..7ba27f13 100644 --- a/src/options_order.php +++ b/src/options_order.php @@ -1,33 +1,26 @@ 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'); - \ No newline at end of file +$oTemplate->display('footer.tpl');