{include file="$admin_nl_gentemplates/admin_nl_site_head.tpl"}
<div class="user_operation_line">
        <div class="uol_item" onclick="javascript: location.href='index.php'">
            <div class="uol_in_item">{$lang.newsletter.archives.gen_stats}</div>
        </div>        
        <div class="uol_item" onclick="javascript: location.href='sent_newsletters.php'">
            <div class="uol_in_item">{$lang.newsletter.archives.sent_newsletters}</div>
        </div>        	
</div>
<div class="cr"></div>
<br/><br/><br/><br/>

<table border=0 class="table_main" cellspacing=1 cellpadding=5 width="100%">
<tr class="table_row even">
	<td align="left" class="main_header_text">{$lang.newsletter.archives.total_users}:</td>
	<td class="main_header_text">{$total.users}</td>
</tr>
<tr class="table_row odd">
	<td align="left">&nbsp;&nbsp;{$lang.newsletter.archives.subscribed_users}:</td>
	<td>{$total.subscribed}</td>
</tr>
<tr class="table_row even">
	<td align="left">&nbsp;&nbsp;{$lang.newsletter.archives.unsubscribed_users}:</td>
	<td>{$total.unsubscribed}</td>
</tr>
<tr class="table_row odd">
	<td align="left">&nbsp;&nbsp;{$lang.newsletter.archives.unconfirm_subscribe}:</td>
	<td>{$total.unconfirm_subscribe}</td>
</tr>
<tr class="table_row even">
	<td align="left">&nbsp;&nbsp;{$lang.newsletter.archives.unconfirm_unsubscribe}:</td>
	<td>{$total.unconfirm_unsubscribe}</td>
</tr>
<!--
<tr bgcolor="#ffffff">
	<td align="left">&nbsp;&nbsp;Subscribed to no mailing lists:</td>
	<td>{$total.not_subscribe}</td>
</tr>
-->
<tr class="table_row odd">
	<td align="left" class="main_header_text">{$lang.newsletter.archives.total_mailing_lists}:</td>
	<td class="main_header_text">{$total.lists}</td>
</tr>
<tr class="table_row even">
	<td align="left">&nbsp;&nbsp;{$lang.newsletter.archives.number_subscribers_lists}:</td>
	<td>{$total.sub_lists}</td>
</tr>
<tr class="table_row odd">
	<td align="left">&nbsp;&nbsp;{$lang.newsletter.archives.number_lists_without_subscribers}:</td>
	<td>{$total.unsub_lists}</td>
</tr>
<tr class="table_row even">
	<td align="left" class="main_header_text">{$lang.newsletter.archives.total_newsletters}:</td>
	<td class="main_header_text">{$total.newsletters}</td>
</tr>
<tr class="table_row odd">
	<td align="left">&nbsp;&nbsp;{$lang.newsletter.archives.total_sent}:</td>
	<td>{$total.sent_newsletters}</td>
</tr>
<tr class="table_row even">
	<td align="left">&nbsp;&nbsp;{$lang.newsletter.archives.total_not_sent}:</td>
	<td>{$total.not_sent_newsletters}</td>
</tr>
<tr class="table_row odd">
	<td align="left">&nbsp;&nbsp;{$lang.newsletter.archives.total_in_process}:</td>
	<td>{$total.in_process}</td>
</tr>
</table>

<br>
<table width=100% border=0 cellspacing=2 cellpadding=2 height="40">
<tr><td  class="sg_subheader" style="font-size: 12px">{$lang.newsletter.archives.mail_list_statistics}</td></tr>
</table>

<table border=0 class="table_main" cellspacing=0 cellpadding=0 width="100%">
<tr class="table_header">
	 <td>{$lang.newsletter.archives.mail_list_statistics}</td>
	 <td>{$lang.newsletter.archives.subscribed}</td>
	 <td>{$lang.newsletter.archives.unsubscribed}</td> 
	 <td>{$lang.newsletter.archives.unconfirm_subscribe1}</td> 
	 <td>{$lang.newsletter.archives.unconfirm_unsubscribe1}</td>
	 <td>{$lang.newsletter.archives.last_subscribe}</td>
	 <td>{$lang.newsletter.archives.last_subscribe}</td>
	 <td>{$lang.newsletter.archives.sent_newsletters1}</td>
	 <td>{$lang.newsletter.archives.not_sent_newsletters}</td>     
	 <td>{$lang.newsletter.archives.not_sent_newsletters}</td>      
</tr>

{section name=c loop=$rel}
<tr {if $smarty.section.c.index mod 2 eq 1}class="table_row even"{else}class="table_row odd"{/if}>
	 <td align="center">{$rel[c].list_name}</td>
	 <td align="center">{$rel[c].subscribe}</td>
	 <td align="center">{$rel[c].unsubscribe}</td> 
	 <td align="center">{$rel[c].unconfirm_subscribe}</td> 
	 <td align="center">{$rel[c].unconfirm_unsubscribe}</td> 
	 <td align="center">{$rel[c].last_subscribe}</td>
	 <td align="center">{$rel[c].last_unsubscribe}</td>
	 <td align="center">{$rel[c].sent_newsletters}</td>
	 <td align="center">{$rel[c].not_sent_newsletters}</td>
	 <td align="center">{$rel[c].in_process}</td>      
</tr>
{sectionelse}
<tr height="40">
	<td class="main_error_text" bgcolor="#FFFFFF" align="left" colspan="10">{$lang.interests_spr.empty}</td>
</tr>
{/section}
<tr class="table_header"><td colspan="10">&nbsp;</td></tr>
</table>  
      <div class="cr">&nbsp;</div>	 
       
{include file="$admin_nl_gentemplates/admin_nl_site_foot.tpl"}
{literal}
<script language="JavaScript" type="text/JavaScript">
function DelItems(the_form) {
    var elts       = document.forms[the_form].elements['del[]'];
	var is_ok = false;
    var elts_cnt = 0;

	if (typeof(elts.length) != 'undefined') {
		elts_cnt = elts.length
		for (var i = 0; i < elts_cnt; i++) {
            if (elts[i].checked) {		
				is_ok = true;
				break;
			}
        }
	}	
	else if (typeof(elts.value) != 'undefined') {
		if (elts.checked) {		
			is_ok = true;			
		}	
	}
	if (is_ok) {
		if (confirm('Are you shure delete selected lists?')) document.forms[the_form].submit();
	}
	else alert('No list was chosen!');
	return false;
}
</script>
{/literal}