' . $pageOffset . '', '' . $end_msg . '', $iNumberOfMessages); } else if ($pageOffset == $end_msg) { $msg_cnt_str = sprintf(_("Viewing Message: %s (%s total)"), '' . $pageOffset . '', $iNumberOfMessages); } /** * All icon functionality is now handled through $icon_theme_path. * $icon_theme_path will contain the path to the user-selected theme. If it is * NULL, the user and/or admin have turned off icons. */ // set this to an empty string to turn off extra // highlighting of checked rows // //$clickedColor = ''; $clickedColor = (empty($color[16])) ? $color[2] : $color[16]; ?>
fetch('message_list_controls.tpl'); echo $message_list_controls ."\n"; ?>
$aMsg) { echo $sLine; /** * Display message header row in messages list * */ $aColumns = $aMsg['columns']; /** * Check the flags and set a class var. */ if (isset($aColumns[SQM_COL_FLAGS])) { $aFlags = $aColumns[SQM_COL_FLAGS]['value']; $sFlags = getFlagIcon($aFlags, $icon_theme_path); /* add the flag string to the value index */ $aColumns[SQM_COL_FLAGS]['value'] = $sFlags; } /** * Check the priority column */ if (isset($aColumns[SQM_COL_PRIO])) { $sValue = getPriorityIcon($aColumns[SQM_COL_PRIO]['value'], $icon_theme_path); $aColumns[SQM_COL_PRIO]['value'] = $sValue; } /** * Check the attachment column */ if (isset($aColumns[SQM_COL_ATTACHMENT])) { $sValue = getAttachmentIcon($aColumns[SQM_COL_ATTACHMENT]['value'], $icon_theme_path); $aColumns[SQM_COL_ATTACHMENT]['value'] = $sValue; } $class = 'even'; /** * If alternating row colors is set, adapt the CSS class */ if (isset($alt_index_colors) && $alt_index_colors) { if (!($i % 2)) { $class = 'odd'; } } 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.'\');" 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 // $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')\""; } /* * 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 = ''; } 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'] : ''; $link_extra = (isset($aCol['link_extra'])) ? $aCol['link_extra'] : ''; $onclick = (isset($aCol['onclick'])) ? $aCol['onclick'] : ''; $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: if ($javascript_on) { echo ''; $checked = ($checkall) ? ' checked=checked ' : ''; echo ""; } break; case SQM_COL_SUBJ: $indent = $aCol['indent']; $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 = " '; $sLine = "\n"; ++$i; /* * End displaying row part */ } ?>
'."\n"; } 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")."\n"; break; case SQM_COL_DATE: echo _("Date")."\n"; break; case SQM_COL_SUBJ: echo _("Subject")."\n"; break; case SQM_COL_FLAGS: echo getIcon($icon_theme_path, 'msg_new.png', ' ', _("Message Flags")) . "\n"; break; case SQM_COL_SIZE: echo _("Size")."\n"; break; case SQM_COL_PRIO: echo getIcon($icon_theme_path, 'prio_high.png', '!', _("Priority")) . "\n"; break; case SQM_COL_ATTACHMENT: echo getIcon($icon_theme_path, 'attach.png', '+', _("Attachment")) . "\n"; 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 if (isset($aSortSupported[$iCol])) { if ($sort == $aSortSupported[$iCol][0]) { $newsort = $aSortSupported[$iCol][1]; $img = 'up_pointer.png'; $text_icon = '⇧'; // U+21E7 UPWARDS WHITE ARROW } else if ($sort == $aSortSupported[$iCol][1]) { $newsort = 0; $img = 'down_pointer.png'; $text_icon = '⇩'; // U+21E9 DOWNWARDS WHITE ARROW } else { $newsort = $aSortSupported[$iCol][0]; $img = 'sort_none.png'; $text_icon = '◻'; // U+25FB WHITE MEDIUM SQUARE } /* Now that we have everything figured out, show the actual button. */ echo " " . getIcon($icon_theme_path, $img, $text_icon, _("Click here to change the sorting of the message list")) . "\n" . ''; } ?>
' ?> " id="" value="" /> "; if ($align['left'] == 'left') { $sText .= str_repeat('  ',$indent); } $sText .= "'; if ($align['left'] == 'right') { $sText .= str_repeat('  ',$indent); } echo $sText."" . "$value" . $value. "\n"; break; } } echo '