{include file="$admin_nl_gentemplates/admin_nl_site_head.tpl"}
<table><tr height="40">
	<td><input type="button" value="{$lang.newsletter.archives.gen_stat}" class="button" onClick='document.location.href="index.php"'></td>
	<td><input type="button" value="{$lang.newsletter.archives.sent_newsl}" class="button" onClick='document.location.href="sent_newsletters.php"'></td>
	<td><input type="button" value="{$lang.newsletter.archives.interested_subscr}" class="button" onClick='document.location.href="interest.php"'></td>
</tr></table>

<form action="interest.php" method="get" name="interest" style="margin:0px">
<table>
<tr>
	<td class="main_content_text">{$lang.newsletter.archives.subscriber}: </td>
	<td>
		<select name="uid" style="width:200;">
			<option value="0" {if $uid == "0"}selected{/if}>({$lang.newsletter.all})</option>
			{section name=c2 loop=$users}
			<option value="{$users[c2].id}" {if $uid == $users[c2].id}selected{/if}>{$users[c2].firstname} {$users[c2].secondname}</option>
			{/section}
		</select>
	</td>
</tr>
<tr>
	<td class="main_content_text">{$lang.newsletter.archives.release}: </td>
	<td>
		<select name="rid" style="width:200;">
			<option value="0" {if $rid == "0"}selected{/if}>({$lang.newsletter.all})</option>
			{section name=c1 loop=$releases}
			<option value="{$releases[c1].id}" {if $rid == $releases[c1].id}selected{/if}>{$releases[c1].subject}</option>
			{/section}
		</select>
	</td>
</tr>
	<td class="main_content_text">{$lang.newsletter.archives.url}: </td>
	<td>
		<select name="url" style="width:200;">
			<option value="0" {if $url == "0"}selected{/if}>({$lang.newsletter.all})</option>
			{section name=c3 loop=$urls}
			<option value="{$urls[c3].url}" {if $url == $urls[c3].url}selected{/if}>{$urls[c3].url}</option>
			{/section}
		</select>
	</td>
</tr>
<tr><td colspan=2><input type="button" value="View" class="button" onclick="javascript:document.interest.submit();"></td></tr>
</table>
</form>
{if $count > 0}
	<table border=0 class="table_main" cellspacing=1 cellpadding=5 width="100%">
	<tr class="table_header">
		<td width=5% class="main_header_text" align=center>{$lang.newsletter.archives.num}</td>
		<td width=27% class="main_header_text" align=center>{$lang.newsletter.archives.subscriber}</td>
		<td width=27% class="main_header_text" align=center>{$lang.newsletter.archives.subject}</td>
		<td width=27% class="main_header_text" align=center>{$lang.newsletter.archives.url}</td>
		<td width=14% class="main_header_text" align=center>{$lang.newsletter.archives.time}</td>
    </tr>
{section name=c loop=$rel}
   <tr bgcolor="#ffffff">
		<td width=5% class="main_content_text" align=center>{$rel[c].num}</td>
		<td width=27% class="main_content_text" align=center>{$rel[c].client} (<a href="mailto:{$rel[c].email1}">{$rel[c].email1}</a>)</td>
		<td width=27% class="main_content_text" align=center>{$rel[c].subject}</td>
		<td width=27% class="main_content_text" align=center><a href="{$rel[c].url}" target="_blank">{$rel[c].url}</a></td>
		<td width=14% class="main_content_text" align=center>{$rel[c].time}</td>
   </tr>
{/section}
</table>
{/if}

{include file="$admin_nl_gentemplates/admin_nl_site_foot.tpl"}