
{include file="../head.tpl"}
{*
<form method="post" action="newsletter.php?area={$smarty.request.area}&donow=showabos">
<select name="newsletter">
	<option value="">Alle</option>
	{foreach from=$nl item=nlmen}
	<option value="{$nlmen->id}">{$nlmen->name}</option>
	{/foreach}
	</select>
<input type="submit" class="button" value="{$langadmin.show}">
</form>

*}
{if $smarty.request.donow=="detail"} 
<table width="100%"  border="0" cellpadding="4" cellspacing="1" class="tableborder">

  <tr>
    <td colspan="4" class="header">{$langadmin.details}</td>
  </tr>
  
  <tr>
    <td class="firstrow">{$langadmin.name}</td>
    <td class="firstrow">{$langadmin.date}</td>
    <td class="firstrow"><div align="center">{$langadmin.format}</div></td>
    <td class="firstrow"><div align="center">{$langadmin.actions}</div></td>
  </tr>
  {foreach from=$abos item="abo"}
  <tr class="{cycle name="dt" values="secondrow,firstrow"}">
    <td>
	{$abo->newsletter}
	</td>
    <td>{$abo->ctime}</td>
    <td><div align="center">{$abo->format}</div></td>
    <td><div align="center">
      <input onclick="location.href='newsletter.php?area={$smarty.request.area}&id={$smarty.request.id}&donow=detail&del=1&delid={$abo->id}'" type="submit" class="button" value="{$langadmin.delete}">
    </div></td>
  </tr>
  {/foreach}
</table>
{else}

<table width="100%" cellpadding="4" cellspacing="1" border="0" class="tableborder">
<tr>
<td colspan="3" class="header">{$langadmin.newsletter_abos}</td>
</tr>
<tr>
<td class="firstrow">{$langadmin.email}</td>
<td width="10%" nowrap class="firstrow"><div align="center">{$langadmin.newsletter_multi}</div></td>
<td width="10%" nowrap class="firstrow"><div align="center">{$langadmin.actions}</div></td>
</tr>
{foreach from=$items item=abo}
<tr  class="{cycle name="ct" values="secondrow,firstrow"}"> 
<td>{$abo->email}</td>
<td><div align="center">{$abo->overall}</div></td>
<td width="10%" nowrap>
  <select onchange="eval(this.options[this.selectedIndex].value);selectedIndex=0;" name="mf{$abo->id}" id="mf{$abo->id}">
<option value="location.href = 'newsletter.php?area={$smarty.request.area}&amp;id={$abo->email}&donow=detail'">{$langadmin.details}</option>
<option value="if(confirm('{$langadmin.confirm_delabo}')) location.href = 'newsletter.php?area={$smarty.request.area}&amp;id={$abo->email}&donow=delabo'">{$langadmin.delabo}</option>
</select>
<input onclick="eval(document.getElementById('mf{$abo->id}').value);" type="button" class="button" value="{$langadmin.go}" >
</td>
</tr>

{/foreach}
</table>
<br />
<table width="100%"  border="0" cellpadding="4" cellspacing="1" class="tableborder">
  <tr>
    <td class="c1">
	<form method="post" action="newsletter.php?area={$smarty.request.area}&donow=showabos">
  <input name="email" type="text" id="email">
  <input type="submit" class="button" value="{$langadmin.search}">
</form>
	</td>
  </tr>
</table>

<br />{if $navi}
<table width="100%"  border="0" cellpadding="4" cellspacing="1" class="tableborder">
  <tr>
    <td class="c1">{$navi}</td>
  </tr>
</table>
<br />
{/if}
{/if}
{include file="../foot.tpl"}