
{include file="../head.tpl"}
{if $smarty.request.show==1}
<table width="100%"  border="0" cellpadding="4" cellspacing="1" class="tableborder">
  <tr>
    <td class="header">{$langadmin.details}</td>
  </tr>
{if $smarty.request.type=="abos"}
  <tr>
    <td class="theader">{$langadmin.newsletter_htmlversion}</td>
  </tr>
  <tr>
    <td class="secondrow"><textarea style="width:98%" rows="20">{$row->htmlv}</textarea></td>
  </tr>
{/if}
  <tr>
    <td class="theader">{$langadmin.newsletter_textversion}</td>
  </tr>
  <tr>
    <td class="secondrow"><textarea style="width:98%" rows="20">{$row->textv}</textarea></td>
  </tr>
  <tr>
    <td class="secondrow"><input type="button" onclick="location.href='newsletter.php?area={$smarty.request.area}&amp;donow=archive'" class="button" value="{$langadmin.back}" /></td>
  </tr>
</table>
{else}
<table width="100%"  border="0" cellpadding="4" cellspacing="1" class="tableborder">
  <tr>
    <td class="c1"><form action="" method="post" name="form1" id="form1">
      <select name="gselect">
	  <option value="all" {if $smarty.request.gselect=="all"}selected="selected"{/if}>{$langadmin.reviever}: {$langadmin.all}</option>
	   <option value="groups" {if $smarty.request.gselect=="groups"}selected="selected"{/if}>{$langadmin.reviever}: {$langadmin.systemuser}</option>
        <option value="abos" {if $smarty.request.gselect=="abos"}selected="selected"{/if}>{$langadmin.reviever}: {$langadmin.newsletter_abos}</option>
      </select>
      <select name="ascdesc" id="ascdesc">
	  <option value="desc" {if $smarty.request.ascdesc=="desc"}selected="selected"{/if}>{$langadmin.sortbydesc}</option>
        <option value="asc" {if $smarty.request.ascdesc=="asc"}selected="selected"{/if}>{$langadmin.sortbyasc}</option>
		
      </select>
	  
  <select name="pp" id="pp">
{section name=pp loop=95 step=5}
<option value="{$smarty.section.pp.index+10}" {if $smarty.request.pp == $smarty.section.pp.index+10}selected{/if}>{$smarty.section.pp.index+10} / {$langadmin.eachsite}</option>
{/section}
</select>
      <input type="submit" class="button" value="{$langadmin.go}" />
    </form></td>
  </tr>
</table>
<br />
<form action="newsletter.php?donow=archive&amp;area={$smarty.request.area}" method="post" name="kform" id="kform">
<table width="100%" cellpadding="4" cellspacing="1" border="0" class="tableborder">
  <tr>
    <td colspan="4" class="header">{$langadmin.navi_newsletter_archive}</td>
  </tr>
  <tr>
    <td width="10%" nowrap="nowrap" class="firstrow"><div align="center">{$langadmin.delete}</div></td>
    <td class="firstrow">{$langadmin.name}/{$langadmin.date}</td>
    <td class="firstrow">{$langadmin.revieverlist}</td>
    <td class="firstrow">{$langadmin.reviever}</td>
  </tr>
  {foreach from=$items item=arc}
  <tr  class="{cycle name="ct" values="secondrow,firstrow"}">
    <td width="10%" nowrap="nowrap"><div align="center">
        <input name="sel[{$arc->id}]" type="checkbox" id="sel[{$arc->id}]" value="1" />
      </div></td>
    <td width="20%" style="line-height: 18px;"><strong><a href="newsletter.php?area={$smarty.request.area}&amp;donow=archive&amp;show=1&amp;id={$arc->id}&amp;type={$arc->type}">{$arc->title}</a></strong><br />
<small><a class="top" href="user.php?action=edit&amp;id={$arc->author_id}">{$arc->author}</a> | {$arc->ctime}</small>
</td>
    <td>{$arc->groups}</td>
    <td>{$arc->reciever}</td>
  </tr>
  {/foreach}
  <tr  class="{cycle name="ct" values="secondrow,firstrow"}">
    <td nowrap="nowrap"><div align="center">
        <input name="allbox" type="checkbox" id="d" onclick="selall();" value="" />
      </div></td>
    <td colspan="3"><input type="submit" class="button" value="{$langadmin.refresh}" /></td>
  </tr>
</table>
{if $navi}
<br />
<table width="100%"  border="0" cellpadding="4" cellspacing="1" class="tableborder">
  <tr>
    <td class="c1">{$navi}</td>
  </tr>
</table>
</form>
<br />
{/if}
{/if}{include file="../foot.tpl"}