3 * This file provides output functions for summary.php
4 * No data manipulation is done in this file
6 * @author Jeremy Fowler <jfowler06@users.sourceforge.net>
10 * Copyright (C) 2005 - 2007 MailZu
11 * License: GPL, see LICENSE
16 * Print table listing messages in quarantine :
17 * - spam (content type = 'S')
18 * - attachment (content type = 'B')
19 * - viruses (content type = 'V')
20 * - bad headers (content type = H)
21 * - pending requests ( RS = 'P')
22 * @param array $res containing spam and attachments of logged in user
24 function showSummary($count_array) {
28 <table width
="100%" border
="0" cellspacing
="0" cellpadding
="1" align
="center">
30 <td
class="tableBorder">
32 <!-- Draw Summary table
-->
33 <table width
="100%" border
="0" cellspacing
="1" cellpadding
="0">
35 <td colspan
="5" class="tableTitle">
36 <?
echo translate($_SESSION['sessionNav']); ?
>
39 <td
class="tableTitle">
41 <?
$link->doLink('javascript: help(\'msg_summary\');', '?', '', 'color: #FFFFFF;',
42 translate('Help') . ' - ' . translate($_SESSION['sessionNav'])) ?
>
49 <!-- Print summary table
-->
50 <table
class="stdFont" width
="100%" height
="100%" border
="0" cellspacing
="1" cellpadding
="0">
52 <!-- Print table
's headers -->
53 <tr class="rowHeaders">
55 <? echo translate('Date
'); ?>
58 <? echo translate('Spam
'); ?>
61 <? echo translate('Banned
'); ?>
64 <? echo translate('Viruses
'); ?>
67 <? echo translate('Bad Headers
'); ?>
70 <? echo translate('Pending Requests
'); ?>
73 <? echo translate('Total
'); ?>
78 foreach ($count_array as $key => $val) {
79 echo '<tr
class="' . 'cellColor' . ($i++%2) . ' align="center
">';
80 echo ($key == 'Total' ? '<td class="rowTotals
">' : '<td class="rowNumValues
">') . "$key</td
> \n";
81 foreach ($val as $subkey => $subval) {
82 echo ( $key == 'Total' ? '<td class="rowTotals
">' : '<td class="rowNumValues
">') . "$subval</td
> \n";