<? $this->load->view( $this->aSystemVar['template_viewer_root'] . '/admin/_header') ?>

	<div id="statistic">
		<div class="clearBoth"></div>
		<div class="zz">
			<table cellpadding="0" cellspacing="1" class="contentList" border="0" width="100%">
				<tr class="head">
					<td colspan="2">
						Posts
					</td>
				</tr>
				<tr class="head">
					<td>
						statistic
					</td>
					<td>
						value
					</td>
				</tr>
				<? $i = 0; $iTotal = 0; ?>
				<? foreach($Admin['FullStat']['Post']['Group'] as $aValue ): ?>
				<?
					if( ($i%2) == 0 )
					{
						$sClassName = 'odd';
					}
					else
					{
						$sClassName = 'even';
					}
				?>
				<tr class="<?= $sClassName ?>">
					<td>
						<?= $aValue['Status']  ?>
					</td>
					<td class="edit">
						<?= anchor('admin/post_list/' . $aValue['Status'], $aValue['PostNum']) ?>
					</td>
				</tr>
				<? $i++; $iTotal += $aValue['PostNum'] ?>
				<? endforeach; ?>
				<tr class="head">
					<td>
						TOTAL
					</td>
					<td class="edit">
						<?= anchor('admin/post_list/', $iTotal ) ?>
					</td>
				</tr>
			</table>
		</div>
		<div class="zz">
			<table cellpadding="0" cellspacing="1" class="contentList" border="0" width="100%">
				<tr class="head">
					<td colspan="2">
						Users
					</td>
				</tr>
				<tr class="head">
					<td>
						statistic
					</td>
					<td>
						value
					</td>
				</tr>
				<? $i = 0; $iTotal = 0; ?>
				<? foreach($Admin['FullStat']['User']['Group'] as $aValue ): ?>
					<?
						if( ($i%2) == 0 )
						{
							$sClassName = 'odd';
						}
						else
						{
							$sClassName = 'even';
						}
					?>
				<tr class="<?= $sClassName ?>">
					<td>
						<?= $aValue['Status']  ?>
					</td>
					<td class="edit">
						<?= anchor('admin/user_list/' . $aValue['Status'], $aValue['UserNum']) ?>
					</td>
				</tr>
					<? $i++; $iTotal += $aValue['UserNum'] ?>
				<? endforeach; ?>
				<tr class="head">
					<td>
						TOTAL
					</td>
						<td class="edit">
						<?= anchor('admin/user_list/', $iTotal ) ?>
					</td>
				</tr>
			</table>
		</div>
		<div class="clearBoth"></div>
	</div>
<? $this->load->view( $this->aSystemVar['template_viewer_root'] . '/admin/_footer') ?>