-
-if (!($sort & SQSORT_THREAD) && $enablesort) {
- $aSortSupported = array(SQM_COL_SUBJ => array(SQSORT_SUBJ_ASC , SQSORT_SUBJ_DESC),
- SQM_COL_DATE => array(SQSORT_DATE_ASC , SQSORT_DATE_DESC),
- SQM_COL_INT_DATE => array(SQSORT_INT_DATE_ASC, SQSORT_INT_DATE_DESC),
- SQM_COL_FROM => array(SQSORT_FROM_ASC , SQSORT_FROM_DESC),
- SQM_COL_TO => array(SQSORT_TO_ASC , SQSORT_TO_DESC),
- SQM_COL_CC => array(SQSORT_CC_ASC , SQSORT_CC_DESC),
- SQM_COL_SIZE => array(SQSORT_SIZE_ASC , SQSORT_SIZE_DESC));
-} else {
- $aSortSupported = array();
-}
-
-// figure out which columns should serve as labels for checkbox:
-// we try to grab the two columns before and after the checkbox,
-// except the subject column, since it is the link that opens
-// the message view
-//
-// if $javascript_on is set, then the highlighting code takes
-// care of this; just skip it
-//
-$show_label_columns = array();
-$index_order_part = array();
-if (!($javascript_on && $fancy_index_highlite)) {
- $get_next_two = 0;
- $last_order_part = 0;
- $last_last_order_part = 0;
- foreach ($aOrder as $index_order_part) {
- if ($index_order_part == SQM_COL_CHECK) {
- $get_next_two = 1;
- if ($last_last_order_part != SQM_COL_SUBJ)
- $show_label_columns[] = $last_last_order_part;
- if ($last_order_part != SQM_COL_SUBJ)
- $show_label_columns[] = $last_order_part;
-
- } else if ($get_next_two > 0 && $get_next_two < 3 && $index_order_part != SQM_COL_SUBJ) {
- $show_label_columns[] = $index_order_part;
- $get_next_two++;
- }
- $last_last_order_part = $last_order_part;
- $last_order_part = $index_order_part;
- }
-}
-
-// set this to an empty string to turn off extra
-// highlighting of checked rows
-//
-//$clickedColor = '';
-if (!empty($color[16]))
- $clickedColor = $color[16];
-else
- $clickedColor = $color[2];