Anchor the regexp. Thanks Thijs Kinkhorst.
[squirrelmail.git] / templates / default / message_list.tpl
CommitLineData
49db257d 1<?php
2
3/**
4 * message_list.tpl
5 *
49db257d 6 * Template for viewing a messages list
7 *
83d1e1af 8 * The following variables are available in this template:
9//FIXME: need to clean (and document) this list, it is just a dump of the array keys of $t
10 * $sTemplateID
11 * $icon_theme_path
12 * $javascript_on
13 * $delayed_errors
14 * $frames
15 * $lang
16 * $page_title
17 * $header_tags
18 * $plugin_output
19 * $header_sent
20 * $body_tag_js
21 * $shortBoxName
e6e2e7fd 22 * $provider_link
83d1e1af 23 * $frame_top
24 * $urlMailbox
25 * $startMessage
26 * $hide_sm_attributions
27 * $uri
28 * $text
29 * $onclick
30 * $class
31 * $id
32 * $target
33 * $color
34 * $form_name
35 * $form_id
36 * $page_selector
37 * $page_selector_max
38 * $messagesPerPage
39 * $showall
40 * $end_msg
41 * $align
42 * $iNumberOfMessages
43 * $aOrder
44 * $aFormElements
45 * $sort
46 * $pageOffset
47 * $baseurl
48 * $aMessages
49 * $trash_folder
50 * $sent_folder
51 * $draft_folder
cd693cf4 52 * $thread_link_uri
53 * $thread_name
83d1e1af 54 * $php_self
55 * $mailbox
56 * $enablesort
57 * $icon_theme
58 * $use_icons
59 * $alt_index_colors
60 * $fancy_index_highlite
4127171c 61 * $aSortSupported
62 * $show_label_columns
83d1e1af 63 * $compact_paginator
64 * $aErrors
e0a6645e 65 * $checkall
02def6a1 66 * $preselected
969c1e9f 67 * $show_personal_names boolean When turned on, all email
68 * address fields should display
69 * the personal name and use the
70 * email address as a tool tip;
71 * When turned off, this logic
72 * should be inverted
47485591 73 * $accesskey_mailbox_toggle_selected The access key to use for the toggle all checkbox
74 * $accesskey_mailbox_thread The access key to use for the Thread/Unthread links
83d1e1af 75 *
d4e46166 76 * @copyright &copy; 1999-2009 The SquirrelMail Project Team
4b4abf93 77 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
49db257d 78 * @version $Id$
79 * @package squirrelmail
57d06b39 80 * @subpackage templates
49db257d 81 */
82
4127171c 83
f2e2aa7f 84/** add required includes */
a1d29fb8 85include_once(SM_PATH . 'functions/template/message_list_util.php');
49db257d 86
4127171c 87
49db257d 88/* retrieve the template vars */
89extract($t);
90
4127171c 91
a1d29fb8 92if (!empty($plugin_output['mailbox_index_before'])) echo $plugin_output['mailbox_index_before'];
49db257d 93
4127171c 94
49db257d 95/**
96 * Calculate string "Viewing message x to y (z total)"
97 */
98$msg_cnt_str = '';
99if ($pageOffset < $end_msg) {
100 $msg_cnt_str = sprintf(_("Viewing Messages: %s to %s (%s total)"),
4127171c 101 '<em>' . $pageOffset . '</em>',
102 '<em>' . $end_msg . '</em>',
103 $iNumberOfMessages);
49db257d 104} else if ($pageOffset == $end_msg) {
4127171c 105 $msg_cnt_str = sprintf(_("Viewing Message: %s (%s total)"),
106 '<em>' . $pageOffset . '</em>',
107 $iNumberOfMessages);
49db257d 108}
109
49db257d 110
583db309 111/**
29997535 112 * All icon functionality is now handled through $icon_theme_path.
113 * $icon_theme_path will contain the path to the user-selected theme. If it is
114 * NULL, the user and/or admin have turned off icons.
4127171c 115 */
116
583db309 117
49db257d 118?>
e3812cb2 119<div id="message_list">
a73c1312 120<form id="<?php echo $form_name;?>" name="<?php echo $form_name;?>" method="post" action="<?php echo $php_self;?>">
e3812cb2 121<table class="table_empty" cellspacing="0">
49db257d 122 <tr>
e3812cb2 123 <td>
124 <table class="table_standard" cellspacing="0">
49db257d 125 <tr>
126 <td>
e3812cb2 127 <table class="table_empty" cellspacing="0">
49db257d 128 <tr>
e3812cb2 129 <td class="links_paginator">
49db257d 130<!-- paginator and thread link string -->
131 <?php
4127171c 132 /**
133 * The following line gets the output from a separate
134 * template altogether (called "paginator.tpl").
135 * $this is the Template class object.
49db257d 136 */
137 $paginator_str = $this->fetch('paginator.tpl');
cd693cf4 138 echo $paginator_str . '<small>[<a href="' . $thread_link_uri
47485591 139 . ($accesskey_mailbox_thread != 'NONE'
140 ? '" accesskey="' . $accesskey_mailbox_thread . '">'
141 : '">')
142 . $thread_name . '</a>]</small>&nbsp;&nbsp;';
00d0bdda 143 if (!empty($plugin_output['mailbox_paginator_after'])) echo $plugin_output['mailbox_paginator_after'];
144 ?>
49db257d 145<!-- end paginator and thread link string -->
49db257d 146 </td>
147<!-- message count string -->
e3812cb2 148 <td class="message_count"><?php echo $msg_cnt_str; ?></td>
49db257d 149<!-- end message count string -->
150 </tr>
151 </table>
152 </td>
153 </tr>
154<?php
155 if (count($aFormElements)) {
156?>
157<!-- start message list form control -->
d915a2ca 158 <tr class="message_list_controls">
49db257d 159 <td>
69a023cf 160 <?php
161 /**
162 * The following line gets the output from a separate
163 * template altogether (called "message_list_controls.tpl").
164 * $this is the Template class object.
165 */
166 $message_list_controls = $this->fetch('message_list_controls.tpl');
167 echo $message_list_controls ."\n"; ?>
49db257d 168 </td>
169 </tr>
170<!-- end message list form control -->
171<?php
172 } // if (count($aFormElements))
173?>
174 </table>
4127171c 175<?php if (!empty($plugin_output['mailbox_form_before'])) echo $plugin_output['mailbox_form_before']; ?>
49db257d 176 </td>
177 </tr>
e3812cb2 178 <tr><td class="spacer"></td></tr>
49db257d 179 <tr>
180 <td>
e3812cb2 181 <table class="table_messageListWrapper" cellspacing="0">
49db257d 182 <tr>
183 <td>
e3812cb2 184 <table class="table_messageList" cellspacing="0">
49db257d 185<!-- table header start -->
e3812cb2 186<?php
187/*
188 * As an FYI, Firefox on Windows seems to have an issue w/ putting wierd breaks while
ac858073 189 * rendering this table if we use THEAD and TH tags. No other browser or platform has
e3812cb2 190 * this issue. We will use TR/TD w/ another CSS class to work around this.
191 */
192?>
4127171c 193
e3812cb2 194 <tr class="headerRow">
4127171c 195
49db257d 196<?php
197 $aWidth = calcMessageListColumnWidth($aOrder);
198 foreach($aOrder as $iCol) {
49db257d 199?>
4127171c 200
e3812cb2 201 <td style="width:<?php echo $aWidth[$iCol]; ?>%">
4127171c 202
49db257d 203<?php
204 switch ($iCol) {
205 case SQM_COL_CHECK:
206 if ($javascript_on) {
e0a6645e 207 $checked = ($checkall ? ' checked="checked" ' : '');
47485591 208 $accesskey = ($accesskey_mailbox_toggle_selected == 'NONE' ? ''
209 : ' accesskey="' . $accesskey_mailbox_toggle_selected . '" ');
63d19712 210 echo '<input type="checkbox" name="toggleAll" id="toggleAll" title="'
211 . _("Toggle All") . '" onclick="toggle_all(\''
212 . $form_name . '\', \'msg\', ' . $fancy_index_highlite
47485591 213 . '); return false;" ' . $checked . $accesskey . '/>' . "\n";
49db257d 214 } else {
e0a6645e 215 $link = $baseurl
216 . "&amp;startMessage=$pageOffset&amp;checkall="
217 . ($checkall ? '0' : '1');
63d19712 218 echo "<a href=\"$link\">" . _("All") . '</a>';
49db257d 219 }
220 break;
ddf0ebe1 221 case SQM_COL_FROM:
222 echo '<label for="toggleAll">' . _("From") . "</label>\n";
223 break;
224 case SQM_COL_DATE: echo _("Date") . "\n"; break;
225 case SQM_COL_SUBJ: echo _("Subject") . "\n"; break;
583db309 226 case SQM_COL_FLAGS:
29997535 227 echo getIcon($icon_theme_path, 'msg_new.png', '&nbsp;', _("Message Flags")) . "\n";
228 break;
ddf0ebe1 229 case SQM_COL_SIZE: echo _("Size") . "\n"; break;
583db309 230 case SQM_COL_PRIO:
29997535 231 echo getIcon($icon_theme_path, 'prio_high.png', '!', _("Priority")) . "\n";
232 break;
583db309 233 case SQM_COL_ATTACHMENT:
29997535 234 echo getIcon($icon_theme_path, 'attach.png', '+', _("Attachment")) . "\n";
235 break;
ddf0ebe1 236 case SQM_COL_INT_DATE: echo _("Received") . "\n"; break;
e8b30fd3 237 case SQM_COL_TO:
238 echo '<label for="toggleAll">' . _("To") . "</label>\n";
239 break;
ddf0ebe1 240 case SQM_COL_CC: echo _("Cc") . "\n"; break;
241 case SQM_COL_BCC: echo _("Bcc") . "\n"; break;
49db257d 242 default: break;
243 }
244 // add the sort buttons
245 if (isset($aSortSupported[$iCol])) {
246 if ($sort == $aSortSupported[$iCol][0]) {
29997535 247 $newsort = $aSortSupported[$iCol][1];
248 $img = 'up_pointer.png';
8af5b50c 249 $text_icon = '&#8679;'; // U+21E7 UPWARDS WHITE ARROW
49db257d 250 } else if ($sort == $aSortSupported[$iCol][1]) {
29997535 251 $newsort = 0;
252 $img = 'down_pointer.png';
8af5b50c 253 $text_icon = '&#8681;'; // U+21E9 DOWNWARDS WHITE ARROW
49db257d 254 } else {
29997535 255 $newsort = $aSortSupported[$iCol][0];
256 $img = 'sort_none.png';
8af5b50c 257 $text_icon = '&#9723;'; // U+25FB WHITE MEDIUM SQUARE
49db257d 258 }
259 /* Now that we have everything figured out, show the actual button. */
8af5b50c 260 echo " <a href=\"$baseurl&amp;startMessage=1&amp;srt=$newsort\" style=\"text-decoration:none\">" .
6c68e276 261 getIcon($icon_theme_path, $img, $text_icon, _("Click here to change the sorting of the message list")) . "\n" .
29997535 262 '</a>';
49db257d 263 }
264?>
49db257d 265 </td>
266<?php
267 }
268?>
e3812cb2 269 </tr>
270<!-- end table header -->
49db257d 271
272<!-- Message headers start -->
273<?php
3d621333 274
49db257d 275 $i = 0;
276 $iColCnt = count($aOrder);
277 $sLine = '';
278
3d621333 279
49db257d 280 // this stuff does the auto row highlighting on mouseover
281 //
109e876c 282 if (!empty($plugin_output['checkbox_javascript_onclick'])) $checkbox_javascript_onclick = $plugin_output['checkbox_javascript_onclick'];
283 else $checkbox_javascript_onclick = '';
284
49db257d 285 if ($javascript_on && $fancy_index_highlite) {
109e876c 286 $checkbox_javascript = ' onclick="this.checked = !this.checked; ' . $checkbox_javascript_onclick . '"';
287 } else if (!empty($checkbox_javascript_onclick)) {
288 $checkbox_javascript = ' onclick="' . $checkbox_javascript_onclick . '"';
799ee2d5 289 } else {
290 $checkbox_javascript = '';
49db257d 291 }
3d621333 292
293
294 /**
295 * main message iteration loop
296 */
49db257d 297 foreach ($aMessages as $iUid => $aMsg) {
3d621333 298
49db257d 299 echo $sLine;
300
3d621333 301
49db257d 302/**
303* Display message header row in messages list
304*
305*/
306
307 $aColumns = $aMsg['columns'];
308
49db257d 309
310 /**
311 * Check the flags and set a class var.
312 */
313 if (isset($aColumns[SQM_COL_FLAGS])) {
314 $aFlags = $aColumns[SQM_COL_FLAGS]['value'];
29997535 315 $sFlags = getFlagIcon($aFlags, $icon_theme_path);
49db257d 316
49db257d 317 /* add the flag string to the value index */
318 $aColumns[SQM_COL_FLAGS]['value'] = $sFlags;
319 }
320 /**
321 * Check the priority column
322 */
323 if (isset($aColumns[SQM_COL_PRIO])) {
29997535 324 $sValue = getPriorityIcon($aColumns[SQM_COL_PRIO]['value'], $icon_theme_path);
49db257d 325 $aColumns[SQM_COL_PRIO]['value'] = $sValue;
326 }
327
328 /**
329 * Check the attachment column
330 */
331 if (isset($aColumns[SQM_COL_ATTACHMENT])) {
29997535 332 $sValue = getAttachmentIcon($aColumns[SQM_COL_ATTACHMENT]['value'], $icon_theme_path);
49db257d 333 $aColumns[SQM_COL_ATTACHMENT]['value'] = $sValue;
334 }
335
02def6a1 336 $class = (($checkall || in_array($iUid, $preselected)) && $javascript_on && $fancy_index_highlite ? 'clicked_even' : 'even');
e0a6645e 337 $non_clicked_class = 'even';
338
49db257d 339 /**
e3812cb2 340 * If alternating row colors is set, adapt the CSS class
49db257d 341 */
342 if (isset($alt_index_colors) && $alt_index_colors) {
343 if (!($i % 2)) {
02def6a1 344 $class = (($checkall || in_array($iUid, $preselected)) && $javascript_on && $fancy_index_highlite ? 'clicked_odd' : 'odd');
e0a6645e 345 $non_clicked_class = 'odd';
49db257d 346 }
347
348 }
9c928f05 349
350 /**
351 * Message Highlighting Functionality
352 */
e3812cb2 353 if (isset($aMsg['row']['color']))
354 {
02def6a1 355 if (($checkall || in_array($iUid, $preselected)) && $javascript_on && $fancy_index_highlite) {
9c928f05 356//FIXME: would be best not to use $color directly here; want to move this to be a CSS style-defined value only, but the problem is that this CSS class is being defined on the fly right here
357 $bgcolor = $color[16];
358 $class = 'clicked_misc'.$i;
359 } else {
360 $bgcolor = $aMsg['row']['color'];
361 $class = 'misc'.$i;
362 }
363 $non_clicked_class = 'misc'.$i;
364 $non_clicked_bgcolor = $aMsg['row']['color'];
365 }
366 else
367 {
368 $bgcolor = '';
369 $non_clicked_bgcolor = '';
e3812cb2 370 }
49db257d 371
372 $row_extra = '';
373
374 // this stuff does the auto row highlighting on mouseover
375 //
376 if ($javascript_on && $fancy_index_highlite) {
e0a6645e 377 $row_extra = ' onmouseover="rowOver(\''.$form_id . '_msg' . $i.'\');" onmouseout="setPointer(this, ' . $i . ', \'out\', \'' . $non_clicked_class . '\', \'mouse_over\', \'clicked\');" onmousedown="setPointer(this, ' . $i . ', \'click\', \'' . $non_clicked_class . '\', \'mouse_over\', \'clicked\');"';
49db257d 378 }
379 // this does the auto-checking of the checkbox no matter
380 // where on the row you click
381 //
382 $javascript_auto_click = '';
109e876c 383 $row_click_extra = '';
384 if (!empty($plugin_output['row_click_extra'])) $row_click_extra = $plugin_output['row_click_extra'];
49db257d 385 if ($javascript_on && $fancy_index_highlite) {
386 // include the form_id in order to show multiple messages lists. Otherwise id isn't unique
109e876c 387 $javascript_auto_click = " onmousedown=\"row_click('$form_id"."_msg$i', event, '$form_name', 'msg[' + $i + ']', '$row_click_extra')\"";
49db257d 388 }
389
9c928f05 390
e3812cb2 391/*
392 * Message Highlighting requires a unique CSS class declaration for proper
393 * mouseover functionality. There is no harm in doing this when the mouseover
394 * functionality is disabled
395 */
e0a6645e 396if ($class != 'even' && $class != 'odd'
9c928f05 397 && $class != 'clicked_even' && $class != 'clicked_odd')
e3812cb2 398{
399?>
400<style type="text/css">
401<!--
402.table_messageList tr.<?php echo $class; ?> { background:<?php echo $bgcolor; ?> }
403-->
404</style>
d7f26e6e 405<?php
e3812cb2 406}
9c928f05 407if ($non_clicked_class != 'even' && $non_clicked_class != 'odd'
408 && $non_clicked_class != 'clicked_even' && $non_clicked_class != 'clicked_odd')
409{
410?>
411<style type="text/css">
412<!--
413.table_messageList tr.<?php echo $non_clicked_class; ?> { background:<?php echo $non_clicked_bgcolor; ?> }
414-->
415</style>
416<?php
417}
418
419
49db257d 420?>
e3812cb2 421<tr <?php echo (empty($class) ? '' : 'class="'.$class.'" '); echo $row_extra;?>>
49db257d 422<?php
423 // flag style mumbo jumbo
424 $sPre = $sEnd = '';
bf9e5efb 425 if (isset($aColumns[SQM_COL_FLAGS])) {
1be82af6 426 if (!in_array('seen',$aFlags) || !$aFlags['seen']) {
e3812cb2 427 $sPre = '<span class="unread">'; $sEnd = '</span>';
f2e2aa7f 428 }
429 if (in_array('deleted',$aFlags) && $aFlags['deleted']) {
e3812cb2 430 $sPre = '<span class="deleted">' . $sPre;
431 $sEnd .= '</span>';
f2e2aa7f 432 } else {
433 if (in_array('flagged',$aFlags) && $aFlags['flagged']) {
e3812cb2 434 $sPre = '<span class="flagged">' . $sPre;
435 $sEnd .= '</span>';
f2e2aa7f 436 }
49db257d 437 }
438 }
439 /**
440 * Because the order of the columns and which columns to show is a user preference
441 * we have to do some php coding to display the columns in the right order
442 */
443 foreach ($aOrder as $iCol) {
6547ab43 444 if (in_array($iCol, $show_label_columns)) {
6d34ad62 445 $sLabelStart = '<label for="'.$form_id."_msg$i\">";
49db257d 446 $sLabelEnd = '</label>';
447 } else {
448 $sLabelStart = '';
449 $sLabelEnd = '';
450 }
02e830bd 451 $aCol = (isset($aColumns[$iCol])) ? $aColumns[$iCol] : array();
452 $title = (isset($aCol['title'])) ? $aCol['title'] : '';
453 $link = (isset($aCol['link'])) ? $aCol['link'] : '';
454 $link_extra = (isset($aCol['link_extra'])) ? $aCol['link_extra'] : '';
455 $onclick = (isset($aCol['onclick'])) ? $aCol['onclick'] : '';
02e830bd 456 $value = (isset($aCol['value'])) ? $aCol['value'] : '';
457 $target = (isset($aCol['target'])) ? $aCol['target'] : '';
969c1e9f 458 if (!$show_personal_names
79af43f5 459 && !empty($title)
969c1e9f 460 && ($iCol == SQM_COL_FROM
461 || $iCol == SQM_COL_TO
462 || $iCol == SQM_COL_CC
463 || $iCol == SQM_COL_BCC)) {
464 // swap title and value
465 $tmp = $title;
466 $title = $value;
467 $value = $tmp;
468 }
49db257d 469 if ($iCol !== SQM_COL_CHECK) {
470 $value = $sLabelStart.$sPre.$value.$sEnd.$sLabelEnd;
471 }
472
473
474 switch ($iCol) {
475 case SQM_COL_CHECK:
02def6a1 476 $checked = (($checkall || in_array($iUid, $preselected)) ? ' checked="checked" ' : '');
ac858073 477 if ($javascript_on) {
478 echo '<td class="col_check"'. $javascript_auto_click. '>' ?>
e0a6645e 479 <input type="checkbox" name="<?php echo "msg[$i]";?>" id="<?php echo $form_id."_msg$i";?>" value="<?php echo $iUid;?>" <?php echo $checkbox_javascript . $checked;?> /></td>
49db257d 480 <?php
ac858073 481 } else {
482 echo '<td class="col_check">';
ac858073 483 echo "<input type=\"checkbox\" name=\"msg[".$i."]\" id=\"".$form_id."_msg$i\" value=\"$iUid\" $checked/></td>";
484 }
49db257d 485 break;
486 case SQM_COL_SUBJ:
487 $indent = $aCol['indent'];
e3812cb2 488 $sText = " <td class=\"col_subject\" $javascript_auto_click>";
49db257d 489 if ($align['left'] == 'left') {
490 $sText .= str_repeat('&nbsp;&nbsp;',$indent);
491 }
492 $sText .= "<a href=\"$link\"";
02e830bd 493 if ($target) { $sText .= " target=\"$target\""; }
494 if ($title) { $sText .= " title=\"$title\""; }
495 if ($onclick) { $sText .= " onclick=\"$onclick\""; }
496 if ($link_extra) { $sText .= " $link_extra"; }
49db257d 497 if ($javascript_on && $fancy_index_highlite) {
109e876c 498 $sText .= " onmousedown=\"row_click('$form_id"."_msg$i', event, '$form_name', 'msg[' + $i + ']', '$row_click_extra'); setPointer(this." . (empty($bold) ? '' : 'parentNode.') .
e0a6645e 499 'parentNode.parentNode, ' . $i . ', \'click\', \''. $non_clicked_class. '\', \'mouse_over\', \'clicked\');"';
49db257d 500 }
3d621333 501 $sText .= ">"
502 . $value . '</a>';
49db257d 503 if ($align['left'] == 'right') {
504 $sText .= str_repeat('&nbsp;&nbsp;',$indent);
505 }
506 echo $sText."</td>\n";
507 break;
508 case SQM_COL_SIZE:
509 case SQM_COL_FLAGS:
3d621333 510 $sText = " <td class=\"col_flags\" $javascript_auto_click>"
511 . "$value</td>\n";
49db257d 512 echo $sText;
513 break;
514 case SQM_COL_INT_DATE:
515 case SQM_COL_DATE:
3d621333 516 $sText = " <td class=\"col_date\" $javascript_auto_click>"
517 . $value. "</td>\n";
49db257d 518 echo $sText;
519 break;
520 default:
e3812cb2 521 $sText = " <td class=\"col_text\" $javascript_auto_click";
49db257d 522 if ($link) {
523 $sText .= "><a href=\"$link\"";
524 if ($target) { $sText .= " target=\"$target\"";}
525 if ($title) { $sText .= " title=\"$title\"" ;}
526 $sText .= ">";
527 } else {
528 if ($title) {$sText .= " title=\"$title\"";}
529 $sText .= ">";
530 }
531 $sText .= $value;
532 if ($link) { $sText .= '</a>';}
533 echo $sText."</td>\n";
534 break;
535 }
536 }
3d621333 537
538 echo '</tr>';
e3812cb2 539 $sLine = "<tr><td colspan=\"$iColCnt\" class=\"spacer\"></td></tr>\n";
49db257d 540 ++$i;
541
542/*
543 * End displaying row part
544 */
545 }
546
547?>
548<!-- Message headers end -->
549 </table>
550 </td>
551 </tr>
552 </table>
553 </td>
554 </tr>
e3812cb2 555 <tr><td class="spacer"></td></tr>
49db257d 556 <tr>
557 <td>
e3812cb2 558 <table class="table_standard" cellspacing="0">
49db257d 559 <tr>
560 <td>
e3812cb2 561 <table class="table_empty" cellspacing="0">
49db257d 562 <tr>
0399a40b 563 <td class="links_paginator"><?php
564 /**
565 * The following line gets the output from a separate
566 * template altogether (called "paginator.tpl").
567 * $this is the Template class object.
568 */
569 $paginator_str = $this->fetch('paginator.tpl');
570 echo $paginator_str;
00d0bdda 571 if (!empty($plugin_output['mailbox_paginator_after'])) echo $plugin_output['mailbox_paginator_after'];
0399a40b 572 ?></td>
e3812cb2 573 <td class="message_count"><?php echo $msg_cnt_str; ?></td>
49db257d 574 </tr>
575 </table>
576 </td>
577 </tr>
578 </table>
579 </td>
580 </tr>
581 <tr>
0ab04626 582 <td align="right">
3d621333 583<?php if (!empty($plugin_output['mailbox_index_after'])) echo $plugin_output['mailbox_index_after']; ?>
49db257d 584 </td>
585 </tr>
586 </table>
cd0a9317 587</form>
e3812cb2 588</div>
e6e2e7fd 589
590<?php if (!$hide_sm_attributions): ?>
aff09f80 591<p class="sqm_squirrelcopyright">&copy; <?php echo SM_COPYRIGHT ?> The SquirrelMail Project Team - <a href="about.php">About SquirrelMail</a></p>
e6e2e7fd 592<?php endif; ?>