示例#1
0
    public static function showStatistics($listStats, $mailing, $globalStats, $html_read, $html_unread, $text, $listId)
    {
        ?>
<form action="index.php" method="post" name="adminForm" id="adminForm">
<table class="<?php 
        echo jnews::myTheme();
        ?>
">
	<tr>
		<th colspan="2" class="title"><?php 
        echo _JNEWS_MAILING_LIST_DETAILS;
        ?>
:</th>
	</tr>
	<tr>
		<td width="200" align="left"><?php 
        echo @constant($GLOBALS[JNEWS . 'listname' . $listStats->list_type]);
        ?>
:</td>
		<td align="left"><?php 
        echo $listStats->list_name;
        ?>
</td>
	</tr>
	<tr>
		<td width="200" align="left"><?php 
        echo _JNEWS_DESCRIPTION;
        ?>
:</td>
		<td align="left"><?php 
        echo $listStats->list_desc;
        ?>
</td>
	</tr>
	<tr>
		<td width="200" align="left"><?php 
        echo _JNEWS_LIST_ISSUE;
        ?>
:</td>
		<td align="left"><?php 
        echo $mailing->issue_nb;
        ?>
</td>
	</tr>
	<tr>
		<td width="200" align="left"><?php 
        echo _JNEWS_SUBJECT;
        ?>
:</td>
		<td align="left"><?php 
        echo $mailing->subject;
        ?>
</td>
	</tr>
	<tr>
		<td colspan="2">&nbsp;</td>
	</tr>
</table>
<?php 
        $stat_tabs = new MosTabsjNews(0);
        $stat_tabs->startPane('acaStats');
        $stat_tabs->startTab(_JNEWS_GLOBALSTATS, 'acaStats');
        ?>
	<table width="100%" cellpadding="4" cellspacing="0" border="0" align="center" class="<?php 
        echo jnews::myTheme();
        ?>
">
<?php 
        if ($listStats->html == 1) {
            ?>
		<tr>
			<td width="200" align="left"><?php 
            echo _JNEWS_SEND_IN_HTML_FORMAT;
            ?>
:</td>
			<td align="left"><?php 
            echo $globalStats->html_sent;
            ?>
</td>
		</tr>
		<tr>
			<td width="200" align="left"><?php 
            echo _JNEWS_VIEWS_FROM_HTML;
            ?>
:</td>
			<td align="left"><?php 
            echo $globalStats->html_read;
            ?>
</td>
		</tr>
<?php 
        }
        ?>
		<tr>
			<td width="200" align="left"><?php 
        echo _JNEWS_SEND_IN_TEXT_FORMAT;
        ?>
:</td>
			<td align="left"><?php 
        echo $globalStats->text_sent;
        ?>
</td>
		</tr>
	</table>
<?php 
        $stat_tabs->endTab();
        $stat_tabs->startTab(_JNEWS_DETAILED_STATS, 'acaStats.detail');
        ?>

			<table width="100%" cellpadding="4" cellspacing="0" border="1" align="center" class="<?php 
        echo jnews::myTheme();
        ?>
">
				<thead>
					<tr>
						<th class="title"><?php 
        echo _JNEWS_HTML_READ;
        ?>
</th>
						<th class="title"><?php 
        echo _JNEWS_HTML_UNREAD;
        ?>
</th>
						<th class="title"><?php 
        echo _JNEWS_TEXT_ONLY_SENT;
        ?>
</th>
					</tr>
				</thead>
					<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>

<?php 
        $stat_tabs->endTab();
        $stat_tabs->endpane();
        ?>
   	<input type="hidden" name="boxchecked" value="0" />
	<input type="hidden" name="option" value="<?php 
        echo JNEWS_OPTION;
        ?>
" />
	<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 
    }