|
';
} 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 '';
}
?>
|
$aMsg) {
echo $sLine;
/**
* Display message header row in messages list
*
*/
$aColumns = $aMsg['columns'];
/**
* Check usage of images for attachments, flags and priority
* Aaaaaaaaaah fix me. DO NOT USE the string "None" if you mean FALSE, no icon theme
*/
$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($index_order_part, $show_label_columns)) {
$sLabelStart = '';
} else {
$sLabelStart = '';
$sLabelEnd = '';
}
$aCol = (isset($aColumns[$iCol])) ? $aColumns[$iCol] : '';
$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 '' ?>
" id="" value="" /> |
";
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 = " ";
$sText .= "$value | \n";
echo $sText;
break;
case SQM_COL_INT_DATE:
case SQM_COL_DATE:
$sText = " ";
$sText .= $value. " | \n";
echo $sText;
break;
default:
$sText = " \n";
break;
}
}
?>
|
| ";
++$i;
/*
* End displaying row part
*/
}
?>
|
|