	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<form method="POST" action="{N_FILTER}">
	<tr>
	<td class="title" width="100%"><b>{TITLE}</b></td>
	<td align="right">
		<select name="n_id" onchange="if (n_id.value>=0) submit()">
		<option value="-1">{rs:SELECT_NEWSLETTER}</option>
		{row:NEWSLETTER_SELECT}
		<option value="{id}"{selected}>{title}</option>
		{/row}
		<option value="-1">----------------------</option>
		<option value="0">{rs:MAIN_STATISTIC}</option>
		</select>
	</td>
	</tr>
	</form>
	</table>
	<table width="100%" border="0" cellspacing="1" cellpadding="5" class="table">
	<tr>
	<td class="td_head"><img src="{global:PATH}img/empty.gif" width="100" height="1" border="0"></td>
	<td class="td_head" width="20%">{rs:STAT_DAY_0}</td>
	<td class="td_head" width="20%">{rs:STAT_DAY_1}</td>
	<td class="td_head" width="20%">{rs:STAT_DAY_7}</td>
	<td class="td_head" width="20%">{rs:STAT_DAY_30}</td>
	<td class="td_head" width="20%">{rs:STAT_DAY_ALL}</td>
	</tr>

	{if:!is_newsletter}
	<tr class="td">
	<td class="td_head_left" align="left">{rs:SUBSCRIBE}</td>
	<td align="right">{subscribe_0}</td>
	<td align="right">{subscribe_1}</td>
	<td align="right">{subscribe_7}</td>
	<td align="right">{subscribe_30}</td>
	<td align="right">{subscribe_all}</td>
	</tr>

	<tr class="td">
	<td class="td_head_left" align="left">{rs:UNSUBSCRIBE}</td>
	<td align="right">{unsubscribe_0}</td>
	<td align="right">{unsubscribe_1}</td>
	<td align="right">{unsubscribe_7}</td>
	<td align="right">{unsubscribe_30}</td>
	<td align="right">{unsubscribe_all}</td>
	</tr>
	{/if}

	<tr class="td">
	<td class="td_head_left" align="left">{rs:NEWSLETTER_SENT}</td>
	<td align="right">{newsletter_0}</td>
	<td align="right">{newsletter_1}</td>
	<td align="right">{newsletter_7}</td>
	<td align="right">{newsletter_30}</td>
	<td align="right">{newsletter_all}</td>
	</tr>

	<tr class="td">
	<td class="td_head_left" align="left">{rs:AUTORESPONDER_SENT}</td>
	<td align="right">{autoresponder_0}</td>
	<td align="right">{autoresponder_1}</td>
	<td align="right">{autoresponder_7}</td>
	<td align="right">{autoresponder_30}</td>
	<td align="right">{autoresponder_all}</td>
	</tr>

	<tr class="td">
	<td class="td_head_left" align="left">{rs:CAMPAIGN_SENT}</td>
	<td align="right">{campaign_0}</td>
	<td align="right">{campaign_1}</td>
	<td align="right">{campaign_7}</td>
	<td align="right">{campaign_30}</td>
	<td align="right">{campaign_all}</td>
	</tr>
	</table>

	<div><img src="{global:PATH}img/empty.gif" width="1" height="30" border="0"></div>
	<table width="100%" border="0" cellspacing="0" cellpadding="5">
	<tr>
	<td><img src="{global:PATH}img/empty.gif" width="230" height="1" border="0"></td>
	{unless:!is_detail}

	<td><img src="{global:PATH}img/empty.gif" width="70" height="1" border="0"></td>
	<td><img src="{global:PATH}img/empty.gif" width="90" height="1" border="0"></td>
	<td><img src="{global:PATH}img/empty.gif" width="70" height="1" border="0"></td>
	<td><img src="{global:PATH}img/empty.gif" width="90" height="1" border="0"></td>
	<td><img src="{global:PATH}img/empty.gif" width="30" height="1" border="0"></td>
	{/unless}
	</tr>

	<form method="post" action="{FILTER}">
	<tr>
	<td width="100%">	<select name="type" onchange="submit()">
		{row:TYPE_LIST}
		<option value="{id}"{selected}>{title}</option>
		{/row}
		</select>
	</td>
	{unless:!is_detail}
	<td align="right">{rs:START_DATE}:</td>
	<td>
		<table cellspacing="0" cellpadding="0" border="0">
		<tr>
		<td><input type="text" name="start" id="start" value="{start}" class="date" maxlength="10"></td>
		<td><img src="{global:PATH}img/empty.gif" width="5" height="1" border="0" id='c1'></td>
		<td><a href="#" onclick="return Calendar.Create('start', -170, 15, event);"><img src="{global:PATH}img/calendar.gif" width="14" height="14" border="0" alt="{rs:CALENDAR_TITLE}" title="{rs:CALENDAR_TITLE}"></a></td>
		</tr>
		</table>
	</td>
	<td align="right">{rs:END_DATE}:</td>
	<td>
		<table cellspacing="0" cellpadding="0" border="0">
		<tr>
		<td><input type="text" name="end" id="end" value="{end}" class="date" maxlength="10"></td>
		<td><img src="{global:PATH}img/empty.gif" width="5" height="1" border="0"></td>
		<td><a href="#" onclick="return Calendar.Create('end', -150, 15, event);"><img src="{global:PATH}img/calendar.gif" width="14" height="14" border="0" alt="{rs:CALENDAR_TITLE}" title="{rs:CALENDAR_TITLE}"></a></td>
		</tr>
		</table>
	</td>
	<td><input type="submit" value=" OK " class="submit"></td>
	{/unless}
	</tr>
	</form>

	{unless:!is_detail}
	<tr><td align="center" colspan="6"><img src="{global:PATH}statistics/graf.php?{param}" width="500" height="300" border="0"></td></tr>

	<tr>
	<td align="center" colspan="6">
		<table border="0" cellspacing="0" cellpadding="3">
		<tr>
		{if:is_type_0}
		<td><img src="{global:PATH}img/empty.gif" width="10" height="3" border="0" class="g1"></td>
		<td class="small">{rs:LEGEND_SUBSCRIBE}</td>
		<td><img src="{global:PATH}img/empty.gif" width="20" height="1" border="0"></td>

		<td><img src="{global:PATH}img/empty.gif" width="10" height="3" border="0" class="g2"></td>
		<td class="small">{rs:LEGEND_ACTIVE_SUBSCRIBE}</td>
		<td><img src="{global:PATH}img/empty.gif" width="20" height="1" border="0"></td>

		<td><img src="{global:PATH}img/empty.gif" width="10" height="3" border="0" class="g3"></td>
		<td class="small">{rs:LEGEND_UNSUBSCRIBE}</td>
		<td><img src="{global:PATH}img/empty.gif" width="20" height="1" border="0"></td>

		<td><img src="{global:PATH}img/empty.gif" width="10" height="3" border="0" class="g4"></td>
		<td class="small">{rs:LEGEND_ACTIVE_UNSUBSCRIBE}</td>
		{/if}
		{if:is_type_1}
		<td><img src="{global:PATH}img/empty.gif" width="10" height="3" border="0" class="g1"></td>
		<td class="small">{rs:LEGEND_AUTOREDPONDER}</td>
		<td><img src="{global:PATH}img/empty.gif" width="20" height="1" border="0"></td>

		<td><img src="{global:PATH}img/empty.gif" width="10" height="3" border="0" class="g2"></td>
		<td class="small">{rs:LEGEND_AUTOREDPONDER_UNDELIVERED}</td>
		{/if}
		{if:is_type_2}
		<td><img src="{global:PATH}img/empty.gif" width="10" height="3" border="0" class="g1"></td>
		<td class="small">{rs:LEGEND_CAMPAIGN}</td>
		<td><img src="{global:PATH}img/empty.gif" width="20" height="1" border="0"></td>

		<td><img src="{global:PATH}img/empty.gif" width="10" height="3" border="0" class="g2"></td>
		<td class="small">{rs:LEGEND_CAMPAIGN_UNDELIVERED}</td>
		{/if}
		{if:is_type_4}
		<td><img src="{global:PATH}img/empty.gif" width="10" height="3" border="0" class="g1"></td>
		<td class="small">{rs:LEGEND_NEWSLETTER}</td>
		<td><img src="{global:PATH}img/empty.gif" width="20" height="1" border="0"></td>

		<td><img src="{global:PATH}img/empty.gif" width="10" height="3" border="0" class="g2"></td>
		<td class="small">{rs:LEGEND_NEWSLETTER_UNDELIVERED}</td>
		{/if}
		</tr>
		</table>
	</td>
	</tr>
	{/unless}
	</table>

	{unless:!is_type_3}
	<div><img src="{global:PATH}img/empty.gif" width="1" height="10" border="0"></div>
	<table width="100%" border="0" cellspacing="1" cellpadding="5" class="table">
	<tr>
	<td class="td_head" width="60%">{rs:LINKS}</td>
	<td class="td_head" width="20%">{rs:STAT_UNIQUE}</td>
	<td class="td_head" width="20%">{rs:STAT_DAY_ALL}</td>
	</tr>

	{row:LINE}
	<tr class="td">
	<td align="left"><a href="{global:PATH}statistics/type.5/{if:n_id}n_id.{n_id}/{/if}url.{url}/">{title}</a></td>
	<td align="right">{unique}</td>
	<td align="right">{all}</td>
	</tr>
	{/row}

	{if:!count}<tr class="td"><td colspan="3" align="center">{rs:EMPTY}</td></tr>{/if}
	</table>
	{if:offset}
	<div><img src="{global:PATH}img/empty.gif" width="1" height="5" border="0"></div>
	<div align="center">{offset}</div>
	{/if}
	{/unless}

	{unless:!is_type_5}
	<div><img src="{global:PATH}img/empty.gif" width="1" height="10" border="0"></div>
	<table width="100%" border="0" cellspacing="1" cellpadding="5" class="table">
	<tr>
	<td class="td_head">#<div><img src="{global:PATH}img/empty.gif" width="30" height="1" border="0"></div></td>
	<td class="td_head">{rs:DATE}<div><img src="{global:PATH}img/empty.gif" width="60" height="1" border="0"></div></td>
	<td class="td_head" width="50%">IP<div><img src="{global:PATH}img/empty.gif" width="50" height="1" border="0"></div></td>
	<td class="td_head" width="50%">{rs:SUBSCRIBER}<div><img src="{global:PATH}img/empty.gif" width="50" height="1" border="0"></div></td>
	</tr>

	{row:STAT_LINKS_LINE}
	<tr class="td">
	<td align="right" valign="top">{id}</td>
	<td align="center" valign="top">{date}<br>{time}</td>
	<td align="left" valign="top">{ip}</td>
	<td align="left" valign="top">{subscriber}{if:!subscriber}&nbsp;{/if}</td>
	</tr>
	{/row}

	{if:!count}<tr class="td"><td colspan="4" align="center">{rs:EMPTY}</td></tr>{/if}
	</table>
	{if:offset}
	<div><img src="{global:PATH}img/empty.gif" width="1" height="5" border="0"></div>
	<div align="center">{offset}</div>
	{/if}
	{/unless}
