*/
function _get_sorted_msgs_list($imapConnection,&$aMailbox) {
$iSetIndx = (isset($aMailbox['SETINDEX'])) ? $aMailbox['SETINDEX'] : 0;
- $bDirection = ($aMailbox['SORT'] % 2);
+ $bDirection = !($aMailbox['SORT'] % 2);
$error = 0;
if (!$aMailbox['SEARCH'][$iSetIndx]) {
$aMailbox['SEARCH'][$iSetIndx] = 'ALL';
// FIX ME, before we support multiple templates we must review the names of the vars
-
$aTemplate['color'] = $color;
$aTemplate['form_name'] = "FormMsgs" . $safe_name;
$aTemplate['form_id'] = 'mbx_'.$iFormId;
$aTemplate['alt_index_colors'] = (isset($aProps['config']['alt_index_colors'])) ? $aProps['config']['alt_index_colors'] : false;
$aTemplate['fancy_index_highlite'] = $fancy_index_highlite;
+
return $aTemplate;
}
$oTemplate->assign('alt_index_colors', isset($alt_index_colors) ? $alt_index_colors: false);
$oTemplate->assign('color', $color);
$oTemplate->assign('align', $align);
- $oTemplate->assign('showall', $showall);
$oTemplate->display('message_list.tpl');
$oTemplate->assign('alt_index_colors', isset($alt_index_colors) ? $alt_index_colors: false);
$oTemplate->assign('color', $color);
$oTemplate->assign('align', $align);
- $oTemplate->assign('showall', $showall);
$mailbox_display = asearch_get_mailbox_display($aMailbox['NAME']);
if (strtoupper($mbx) == 'INBOX') {
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));
+ $aSortSupported = array(SQM_COL_SUBJ => array(SQSORT_SUBJ_ASC , SQSORT_SUBJ_DESC),
+ SQM_COL_DATE => array(SQSORT_DATE_DESC , SQSORT_DATE_ASC),
+ SQM_COL_INT_DATE => array(SQSORT_INT_DATE_DESC, SQSORT_INT_DATE_ASC),
+ 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();
}
*/
foreach ($aOrder as $iCol) {
if (in_array($iCol, $show_label_columns)) {
- $sLabelStart = '<label for="msg[' . $i . ']">';
+ $sLabelStart = '<label for="'.$form_id."_msg$i>";
$sLabelEnd = '</label>';
} else {
$sLabelStart = '';