X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=templates%2Fdefault%2Fmessage_list.tpl;h=9badaa59b7c4d9470a94d46616166e59d7f9cef2;hp=d214d739d7f4f82e9bd75d972d7cae1f48268cb7;hb=e3812cb291b353059283c0f321a8f6151e50c976;hpb=57d06b396a90df20a58bd511a486d4c83cbe546b diff --git a/templates/default/message_list.tpl b/templates/default/message_list.tpl index d214d739..9badaa59 100644 --- a/templates/default/message_list.tpl +++ b/templates/default/message_list.tpl @@ -3,11 +3,10 @@ /** * message_list.tpl * - * Copyright (c) 1999-2005 The SquirrelMail Project Team - * Licensed under the GNU GPL. For full terms see the file COPYING. - * * Template for viewing a messages list * + * @copyright © 1999-2006 The SquirrelMail Project Team + * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail * @subpackage templates @@ -27,21 +26,21 @@ do_hook('mailbox_index_before'); $msg_cnt_str = ''; if ($pageOffset < $end_msg) { $msg_cnt_str = sprintf(_("Viewing Messages: %s to %s (%s total)"), - ''.$pageOffset.'', ''.$end_msg.'', $iNumberOfMessages); + ''.$pageOffset.'', ''.$end_msg.'', $iNumberOfMessages); } else if ($pageOffset == $end_msg) { - $msg_cnt_str = sprintf(_("Viewing Message: %s (%s total)"), ''.$pageOffset.'', $iNumberOfMessages); + $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)); + $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(); } @@ -94,19 +93,19 @@ if ($bIcons) { // //$clickedColor = ''; $clickedColor = (empty($color[16])) ? $color[2] : $color[16]; - + ?> +
- +
-
- +
+ + @@ -190,29 +205,32 @@ $clickedColor = (empty($color[16])) ? $color[2] : $color[16]; ?> - +
- +
- - +
- +
@@ -128,27 +126,28 @@ $clickedColor = (empty($color[16])) ? $color[2] : $color[16]; if (count($aFormElements)) { ?> -
- +
- - +  - +?> + + -
- + $value) { switch ($value[1]) { case 'submit': - if ($key != 'moveButton') { // add move in a different table cell + if ($key != 'moveButton' && $key != 'delete' && $key != 'undeleteButton') { // add move in a different table cell ?> -   +     \n"; @@ -157,25 +156,41 @@ $clickedColor = (empty($color[16])) ? $color[2] : $color[16]; } } ?> - + +   + +   + +   + + - - - + +
- +
- - - - +
+ - + + - - + +!"; break; - // use downwards arrow for low priority emails - case 5: $sValue .= ""; break; + case 2: $sValue .= '!'; break; + // use downwards arrow for low priority emails + case 5: $sValue .= ''; break; default: break; } } @@ -369,30 +387,29 @@ $clickedColor = (empty($color[16])) ? $color[2] : $color[16]; $aColumns[SQM_COL_ATTACHMENT]['value'] = $sValue; } - - $bgcolor = $color[4]; - + $class = 'even'; /** - * If alternating row colors is set, adapt the bgcolor + * If alternating row colors is set, adapt the CSS class */ if (isset($alt_index_colors) && $alt_index_colors) { if (!($i % 2)) { - if (!isset($color[12])) { - $color[12] = '#EAEAEA'; - } - $bgcolor = $color[12]; + $class = 'odd'; } } - $bgcolor = (isset($aMsg['row']['color'])) ? $aMsg['row']['color']: $bgcolor; - $class = 'msg_row'; + if (isset($aMsg['row']['color'])) + { + $bgcolor = $aMsg['row']['color']; + $class = 'misc'.$i; + } + else $bgcolor = ''; $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 . '\');"'; + $row_extra .= ' onmouseover="rowOver(\''.$form_id . '_msg' . $i.'\');" onmouseout="setPointer(this, ' . $i . ', \'out\', \'' . $class . '\', \'mouse_over\', \'clicked\');" onmousedown="setPointer(this, ' . $i . ', \'click\', \'' . $class . '\', \'mouse_over\', \'clicked\');"'; } // this does the auto-checking of the checkbox no matter // where on the row you click @@ -403,22 +420,37 @@ $clickedColor = (empty($color[16])) ? $color[2] : $color[16]; $javascript_auto_click = " onMouseDown=\"row_click('$form_id"."_msg$i')\""; } +/* + * Message Highlighting requires a unique CSS class declaration for proper + * mouseover functionality. There is no harm in doing this when the mouseover + * functionality is disabled + */ +if ($class != 'even' && $class != 'odd') +{ +?> + + -> +> '; $sEnd = ''; + $sPre = ''; $sEnd = ''; } if (in_array('deleted',$aFlags) && $aFlags['deleted']) { - $sPre = "" . $sPre; - $sEnd .= ''; + $sPre = '' . $sPre; + $sEnd .= ''; } else { if (in_array('flagged',$aFlags) && $aFlags['flagged']) { - $sPre = "" . $sPre; - $sEnd .= ''; + $sPre = '' . $sPre; + $sEnd .= ''; } } } @@ -428,17 +460,20 @@ $clickedColor = (empty($color[16])) ? $color[2] : $color[16]; */ foreach ($aOrder as $iCol) { if (in_array($iCol, $show_label_columns)) { - $sLabelStart = '"; + $sText = " \n"; + $sText = " \n"; echo $sText; break; case SQM_COL_INT_DATE: case SQM_COL_DATE: - $sText = " \n"; echo $sText; break; default: - $sText = " "; + $sLine = "\n"; ++$i; /* @@ -519,16 +556,16 @@ $clickedColor = (empty($color[16])) ? $color[2] : $color[16];
- + '; + echo ''."\n"; } else { $link = $baseurl . "&startMessage=$pageOffset&&checkall="; if (sqgetGlobalVar('checkall',$checkall,SQ_GET)) { @@ -223,35 +241,35 @@ $clickedColor = (empty($color[16])) ? $color[2] : $color[16]; 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_FROM: echo _("From")."\n"; break; + case SQM_COL_DATE: echo _("Date")."\n"; break; + case SQM_COL_SUBJ: echo _("Subject")."\n"; break; case SQM_COL_FLAGS: if ($bIcons) { - echo '!'; + echo '!'."\n"; } else { - echo ' '; + echo ' '."\n"; } break; - case SQM_COL_SIZE: echo _("Size"); break; + case SQM_COL_SIZE: echo _("Size")."\n"; break; case SQM_COL_PRIO: if ($bIcons) { - echo '!'; + echo '!'."\n"; } else { - echo '!'; + echo '!'."\n"; } break; case SQM_COL_ATTACHMENT: if ($bIcons) { - echo '+'; + echo '+'."\n"; } else { - echo '+'; + echo '+'."\n"; } 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; + case SQM_COL_INT_DATE: echo _("Received")."\n"; break; + case SQM_COL_TO: echo _("To")."\n"; break; + case SQM_COL_CC: echo _("Cc")."\n"; break; + case SQM_COL_BCC: echo _("Bcc")."\n"; break; default: break; } // add the sort buttons @@ -270,15 +288,15 @@ $clickedColor = (empty($color[16])) ? $color[2] : $color[16]; echo " "; echo 'sort'; + . _("Click here to change the sorting of the message list") .'" />'."\n"; } ?> -
' ?> + echo '' ?> " id="" value="" /> "; if ($align['left'] == 'left') { $sText .= str_repeat('  ',$indent); } $sText .= ""; - $sText .= "$value"; + $sText .= "$value"; + $sText = " "; $sText .= $value. "
- +
@@ -543,3 +580,4 @@ $clickedColor = (empty($color[16])) ? $color[2] : $color[16];
- +
- - + +
+