
<script language="javascript" type="text/javascript">
<!--
{include file="$incpath/other/validate_js.tpl"}

$(function() {ldelim}
	 $('#container-options ul').tabs({ldelim} {rdelim});
	 $('div.show').toggleElements( {ldelim} fxAnimation:'false', fxSpeed:'normal', className:'toggler'{rdelim} );
	 $('div.code').toggleElements( {ldelim} fxAnimation:'true', fxSpeed:'normal', className:'toggler'{rdelim} );
{rdelim});

</script>

<div class="popbox">
<div class="header">{#Newsletter_NlView#}</div>

<br />

<div id="container-options">
<ul>
<li><a href="#opt-1"><span>{#Newsletter_NlView#}</span></a></li>
<li><a href="#opt-2"><span>{#Newsletter_SourceNL#}</span></a></li>
<li><a href="#opt-3"><span>{#Newsletter_Source#}</span></a></li>
<li><a href="#opt-4"><span>{#Newsletter_TabInf#}</span></a></li>
</ul>
</div>

<div id="opt-1">
<iframe frameborder="0" width="100%" height="600" style="width:99%; height:600px" src="index.php?do=newsletter&sub=view&id={$smarty.request.id}&noframes=1&noout=1"></iframe>
</div>

<div id="opt-2">
<div class="subheaders">{#Newsletter_SourceNLInf#}</div>
{$HtmlV}
</div>

<div id="opt-3">
<div class="subheaders">{#Newsletter_SourceInf#}</div>
<textarea name="x" style="width:99%; height:600px">{$res->Newsletter|koobispecialchars}</textarea>
</div>

<div id="opt-4">
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="150"><strong>{if $smarty.request.type=='groups'}{#Newsletter_Inf_groups#}{else}{#Newsletter_Inf_abos#}{/if}</strong></td>
      <td>{foreach from=$names item=n name=x}{$n}{if !$smarty.foreach.x.last}, {/if}{/foreach}</td>
      </tr>
    <tr>
      <td><strong>{#Global_Date#}</strong></td>
      <td>{$res->Datum|date_format:$config_vars.DateFomat}</td>
    </tr>
    <tr>
      <td><strong>{#Newsletter_TabAttach#}</strong></td>
      <td>
      {if $att}
      {foreach from=$att item=a name=x}
      <a href="index.php?do=newsletter&sub=getattachment&att={$a}">{$a}</a>{if !$smarty.foreach.x.last}, {/if}
      {/foreach}
      {/if}
      </td>
    </tr>
  </table>
</div>

<input type="button" class="button big" value="{#Close#}" onclick="window.close()" />
</div>