Exemplo n.º 1
0
    function showStatistics($listStats, $mailing, $globalStats, $html_read, $html_unread, $text, $listId)
    {
        ?>
<form action="index2.php" method="post" name="adminForm">
<table width="100%" cellpadding="4" cellspacing="0" border="0" align="center" class="adminlist">
	<tr>
		<th colspan="2" class="title"><?php 
        echo _ACA_MAILING_LIST_DETAILS;
        ?>
:</th>
	</tr>
	<tr>
		<td width="200" align="left"><?php 
        echo @constant($GLOBALS[ACA . 'listname' . $listStats->list_type]);
        ?>
:</td>
		<td align="left"><?php 
        echo $listStats->list_name;
        ?>
</td>
	</tr>
	<tr>
		<td width="200" align="left"><?php 
        echo _ACA_DESCRIPTION;
        ?>
:</td>
		<td align="left"><?php 
        echo $listStats->list_desc;
        ?>
</td>
	</tr>
	<tr>
		<td width="200" align="left"><?php 
        echo _ACA_LIST_ISSUE;
        ?>
:</td>
		<td align="left"><?php 
        echo $mailing->issue_nb;
        ?>
</td>
	</tr>
	<tr>
		<td width="200" align="left"><?php 
        echo _ACA_SUBJECT;
        ?>
:</td>
		<td align="left"><?php 
        echo $mailing->subject;
        ?>
</td>
	</tr>
	<tr>
		<td colspan="2">&nbsp;</td>
	</tr>
</table>
<?php 
        $stat_tabs = new mosTabs(0);
        $stat_tabs->startPane('acaStats');
        $stat_tabs->startTab(_ACA_GLOBALSTATS, 'acaStats');
        ?>
	<table width="100%" cellpadding="4" cellspacing="0" border="0" align="center" class="adminlist">
<?php 
        if ($listStats->html == 1) {
            ?>
		<tr>
			<td width="200" align="left"><?php 
            echo _ACA_SEND_IN_HTML_FORMAT;
            ?>
:</td>
			<td align="left"><?php 
            echo $globalStats->html_sent;
            ?>
</td>
		</tr>
		<tr>
			<td width="200" align="left"><?php 
            echo _ACA_VIEWS_FROM_HTML;
            ?>
:</td>
			<td align="left"><?php 
            echo $globalStats->html_read;
            ?>
</td>
		</tr>
<?php 
        }
        ?>
		<tr>
			<td width="200" align="left"><?php 
        echo _ACA_SEND_IN_TEXT_FORMAT;
        ?>
:</td>
			<td align="left"><?php 
        echo $globalStats->text_sent;
        ?>
</td>
		</tr>
	</table>
<?php 
        $stat_tabs->endTab();
        $stat_tabs->startTab(_ACA_DETAILED_STATS, 'acaStats.detail');
        ?>
	<table width="100%" cellpadding="4" cellspacing="0" border="0" align="center" class="adminlist">
		<tr>
			<td valign="top">
				<table width="100%" cellpadding="4" cellspacing="0" border="1" align="center" class="adminlist">
					<tr>
						<td><?php 
        echo _ACA_HTML_READ;
        ?>
</td>
						<td><?php 
        echo _ACA_HTML_UNREAD;
        ?>
</td>
						<td><?php 
        echo _ACA_TEXT_ONLY_SENT;
        ?>
</td>
					</tr>
					<tr>
						<td valign="top" align="left" width="33%">
<?php 
        if (sizeof($html_read) > 0) {
            foreach ($html_read as $htmlread) {
                echo $htmlread->name . ' (' . $htmlread->email . ')<br />';
            }
        }
        ?>
						</td>
						<td valign="top" align="left" width="33%">
<?php 
        if (sizeof($html_unread) > 0) {
            foreach ($html_unread as $htmlunread) {
                echo $htmlunread->name . ' (' . $htmlunread->email . ')<br />';
            }
        }
        ?>
						</td>
						<td valign="top" align="left" width="33%">
<?php 
        if (sizeof($text) > 0) {
            foreach ($text as $atext) {
                echo $atext->name . ' (' . $atext->email . ')<br />';
            }
        }
        ?>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
<?php 
        $stat_tabs->endTab();
        $stat_tabs->endpane();
        ?>
   	<input type="hidden" name="boxchecked" value="0" />
	<input type="hidden" name="option" value="com_acajoom" />
	<input type="hidden" name="task" value="" />
	<input type="hidden" name="act" value="statistics" />
	<input type="hidden" name="listid" value="<?php 
        echo $listId;
        ?>
" />
	<input type="hidden" name="mailingid" value="<?php 
        echo $mailing->mailing_id;
        ?>
" />
	<input type="hidden" name="tab" value="<?php 
        echo $tab;
        ?>
" />
</form>
<?php 
    }