* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* Template for viewing a messages list
*
* @version $Id$
* @package squirrelmail
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* Template for viewing a messages list
*
* @version $Id$
* @package squirrelmail
- $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));
+/**
+ * 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 . '/';
+}
+
?>
<form id="<?php echo $form_id;?>" name="<?php echo $form_name;?>" method="post" action="<?php echo $php_self;?>">
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>
?>
<form id="<?php echo $form_id;?>" name="<?php echo $form_name;?>" method="post" action="<?php echo $php_self;?>">
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>
+ if (isset($aFormElements['delete'])) {
+?>
+ <td align="<?php echo $align['right']; ?>">
+ <small>
+ <input type="submit" name="delete" value="<?php echo $aFormElements['delete'][0]; ?>" style="padding: 0px; margin: 0px;" />
+ <?php
+ if (isset($aFormElements['bypass_trash'])) {
+?>
+ <input type="checkbox" name="bypass_trash" /><?php echo $aFormElements['bypass_trash'][0]; ?>
+<?php
+ }
+ if (isset($aFormElements['undeleteButton'])) {
+?>
+ <input type="submit" name="undeleteButton" value="<?php echo $aFormElements['undeleteButton'][0]; ?>" style="padding: 0px; margin: 0px;" />
+<?php
+ }
+?>
+ </small>
+ </td>
+<?php
+ } // if (isset($aFormElements['delete']))
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"); break;
case SQM_COL_DATE: echo _("Date"); break;
case SQM_COL_SUBJ: echo _("Subject"); break;
- case SQM_COL_PRIO: echo '!'; break;
- case SQM_COL_ATTACHMENT: echo '+'; break;
+ case SQM_COL_PRIO:
+ if ($bIcons) {
+ echo '<img src="' . $sImageLocation. 'prio_high.png" border="0" height="10" width="5" alt="!" title="'. _("Priority") . '" />';
+ } else {
+ echo '!';
+ }
+ break;
+ case SQM_COL_ATTACHMENT:
+ if ($bIcons) {
+ echo '<img src="' . $sImageLocation. 'attach.png" border="0" height="10" width="6" alt="+" title="' . _("Attachment") . '"/>';
+ } else {
+ 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_INT_DATE: echo _("Received"); break;
case SQM_COL_TO: echo _("To"); break;
case SQM_COL_CC: echo _("Cc"); break;
- /**
- * 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 . '/';
- }
switch ($aColumns[SQM_COL_PRIO]['value']) {
case 1:
case 2: $sValue .= "<font color=\"$color[1]\">!</font>"; break;
switch ($aColumns[SQM_COL_PRIO]['value']) {
case 1:
case 2: $sValue .= "<font color=\"$color[1]\">!</font>"; break;
- if (!in_array('seen',$aFlags)) {
- $sPre = '<b>'; $sEnd = '</b>';
- }
- if (in_array('deleted',$aFlags) && $aFlags['deleted']) {
- $sPre = "<font color=\"$color[9]\">" . $sPre;
- $sEnd .= '</font>';
- } else {
- if (in_array('flagged',$aFlags) && $aFlags['flagged']) {
- $sPre = "<font color=\"$color[2]\">" . $sPre;
+ if (isset($aColumns[SQM_COL_FLAGS])) {
+ if (!in_array('seen',$aFlags)) {
+ $sPre = '<b>'; $sEnd = '</b>';
+ }
+ if (in_array('deleted',$aFlags) && $aFlags['deleted']) {
+ $sPre = "<font color=\"$color[9]\">" . $sPre;
* we have to do some php coding to display the columns in the right order
*/
foreach ($aOrder as $iCol) {
* 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 = '<label for="msg[' . $i . ']">';
+ if (in_array($iCol, $show_label_columns)) {
+ $sLabelStart = '<label for="'.$form_id."_msg$i\">";
$title = (isset($aCol['title'])) ? $aCol['title'] : '';
$link = (isset($aCol['link'])) ? $aCol['link'] : '';
$value = (isset($aCol['value'])) ? $aCol['value'] : '';
$title = (isset($aCol['title'])) ? $aCol['title'] : '';
$link = (isset($aCol['link'])) ? $aCol['link'] : '';
$value = (isset($aCol['value'])) ? $aCol['value'] : '';