'.$pageOffset.'', ''.$end_msg.'', $iNumberOfMessages); } else if ($pageOffset == $end_msg) { $msg_cnt_str = sprintf(_("Viewing Message: %s (%s total)"), ''.$pageOffset.'', $iNumberOfMessages); } 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]; ?>
fetch('paginator.tpl'); echo $paginator_str . $thread_link_str ."\n"; ?>
$value) { switch ($value[1]) { case 'submit': if ($key != 'moveButton') { // add move in a different table cell ?>     \n"; break; default: break; } } ?>  
$aMsg) { echo $sLine; /** * Display message header row in messages list * */ $aColumns = $aMsg['columns']; /** * Check usage of images for attachments, flags and priority */ $bIcons = ($use_icons && $icon_theme) ? true : false; /** * Location of icon images */ if ($bIcons) { $sImageLocation = SM_PATH . 'images/themes/' . $icon_theme . '/'; } /** * Check the flags and set a class var. */ if (isset($aColumns[SQM_COL_FLAGS])) { $aFlags = $aColumns[SQM_COL_FLAGS]['value']; if ($bIcons) { $sFlags = getFlagIcon($aFlags, $sImageLocation); } else { $sFlags = getFlagText($aFlags); } /* add the flag string to the value index */ $aColumns[SQM_COL_FLAGS]['value'] = $sFlags; } /** * Check the priority column */ if (isset($aColumns[SQM_COL_PRIO])) { /* FIX ME, we should use separate templates for icons */ if ($bIcons) { $sValue = ' ' ; break; case 5: $sValue .= 'prio_low.png" border="0" height="10" width="5" alt="" /> ' ; break; default: $sValue .= 'transparent.png" border="0" width="5" alt="" /> ' ; break; } } else { $sValue = ''; switch ($aColumns[SQM_COL_PRIO]['value']) { case 1: case 2: $sValue .= "!"; break; case 5: $sValue .= "?"; break; default: break; } } $aColumns[SQM_COL_PRIO]['value'] = $sValue; } /** * Check the attachment column */ if (isset($aColumns[SQM_COL_ATTACHMENT])) { /* FIX ME, we should use separate templates for icons */ if ($bIcons) { $sValue = '' : 'transparent.png" border="0" width="6" alt="" />'; } else { $sValue = ($aColumns[SQM_COL_ATTACHMENT]['value']) ? '+' : ''; } $aColumns[SQM_COL_ATTACHMENT]['value'] = $sValue; } $bgcolor = $color[4]; /** * If alternating row colors is set, adapt the bgcolor */ if (isset($alt_index_colors) && $alt_index_colors) { if (!($i % 2)) { if (!isset($color[12])) { $color[12] = '#EAEAEA'; } $bgcolor = $color[12]; } } $bgcolor = (isset($aMsg['row']['color'])) ? $aMsg['row']['color']: $bgcolor; $class = 'msg_row'; $row_extra = ''; // this stuff does the auto row highlighting on mouseover // if ($javascript_on && $fancy_index_highlite) { $row_extra .= ' onmouseover="rowOver(\''.$form_id . "_msg$i','". $mouseoverColor . '\', \'' . $clickedColor . '\');" onmouseout="setPointer(this, ' . $i . ', \'out\', \'' . $bgcolor . '\', \'' . $mouseoverColor . '\', \'' . $clickedColor . '\');" onmousedown="setPointer(this, ' . $i . ', \'click\', \'' . $bgcolor . '\', \'' . $mouseoverColor . '\', \'' . $clickedColor . '\');"'; } // this does the auto-checking of the checkbox no matter // where on the row you click // $javascript_auto_click = ''; if ($javascript_on && $fancy_index_highlite) { // include the form_id in order to show multiple messages lists. Otherwise id isn't unique $javascript_auto_click = " onMouseDown=\"row_click('$form_id"."_msg$i')\""; } ?> > '; $sEnd = ''; } if (in_array('deleted',$aFlags) && $aFlags['deleted']) { $sPre = "" . $sPre; $sEnd .= ''; } else { if (in_array('flagged',$aFlags) && $aFlags['flagged']) { $sPre = "" . $sPre; $sEnd .= ''; } } } /** * Because the order of the columns and which columns to show is a user preference * we have to do some php coding to display the columns in the right order */ foreach ($aOrder as $iCol) { if (in_array($iCol, $show_label_columns)) { $sLabelStart = ''; } else { $sLabelStart = ''; $sLabelEnd = ''; } $aCol = (isset($aColumns[$iCol])) ? $aColumns[$iCol] : array(); $title = (isset($aCol['title'])) ? $aCol['title'] : ''; $link = (isset($aCol['link'])) ? $aCol['link'] : ''; $value = (isset($aCol['value'])) ? $aCol['value'] : ''; $target = (isset($aCol['target'])) ? $aCol['target'] : ''; if ($iCol !== SQM_COL_CHECK) { $value = $sLabelStart.$sPre.$value.$sEnd.$sLabelEnd; } switch ($iCol) { case SQM_COL_CHECK: echo '"; if ($align['left'] == 'left') { $sText .= str_repeat('  ',$indent); } $sText .= "'; if ($align['left'] == 'right') { $sText .= str_repeat('  ',$indent); } echo $sText."\n"; break; case SQM_COL_SIZE: case SQM_COL_FLAGS: $sText = " \n"; echo $sText; break; case SQM_COL_INT_DATE: case SQM_COL_DATE: $sText = " \n"; echo $sText; break; default: $sText = " "; ++$i; /* * End displaying row part */ } ?>
'; } else { $link = $baseurl . "&startMessage=$pageOffset&&checkall="; if (sqgetGlobalVar('checkall',$checkall,SQ_GET)) { $link .= ($checkall) ? '0' : '1'; } else { $link .= '1'; } echo ""._("All").''; } break; case SQM_COL_FROM: echo _("From"); break; case SQM_COL_DATE: echo _("Date"); break; case SQM_COL_SUBJ: echo _("Subject"); break; case SQM_COL_FLAGS: echo ' '; break; case SQM_COL_SIZE: echo _("Size"); break; case SQM_COL_PRIO: echo '!'; break; case SQM_COL_ATTACHMENT: echo '+'; break; case SQM_COL_INT_DATE: echo _("Received"); break; case SQM_COL_TO: echo _("To"); break; case SQM_COL_CC: echo _("Cc"); break; case SQM_COL_BCC: echo _("Bcc"); break; default: break; } // add the sort buttons if (isset($aSortSupported[$iCol])) { if ($sort == $aSortSupported[$iCol][0]) { $newsort = $aSortSupported[$iCol][1]; $img = 'up_pointer.png'; } else if ($sort == $aSortSupported[$iCol][1]) { $newsort = 0; $img = 'down_pointer.png'; } else { $newsort = $aSortSupported[$iCol][0]; $img = 'sort_none.png'; } /* Now that we have everything figured out, show the actual button. */ echo " "; echo 'sort'; } ?>
' ?> " id="" value="" /> "; $sText .= "$value"; $sText .= $value. "\n"; break; } } ?>