
<div class="header">{#Sections#}</div>
<div class="subheaders">{#Sections_Inf#}</div>

<table width="100%"  border="0" cellpadding="3" cellspacing="0" class="tableborder">
<tr>
    <td width="20" class="headers">{#Global_Id#}</td>
    <td width="200" class="headers">{#Global_Name#}</td>
    <td width="50" align="center" class="headers">{#Global_Status#}</td>
    <td class="headers">{#Global_Actions#}</td>
    <td class="headers">&nbsp;</td>
  </tr>
  {foreach from=$sections item=s}
  <tr class="{cycle name=pm values='second,first'}">
    <td>{$s->Id}</td>
    <td><a href="../index.php?area={$s->Id}{if $s->Passwort!='' && $s->Aktiv!=1}&pass={$s->Passwort}{/if}" target="_blank"><strong>{$s->Name|koobispecialchars}</strong></a></td>
    <td align="center">
    {if $s->Aktiv==1}    
    <img {popup sticky=$config_vars.POPSTICKY  width=100 text=$config_vars.Sections_Close} class="absmiddle" src="{$imgpath}/opened.png" alt="" border="" />
    {else}    
    <img {popup sticky=$config_vars.POPSTICKY  width=100 text=$config_vars.Sections_Open} class="absmiddle" src="{$imgpath}/closed.png" alt="" border="" />
    {/if}    </td>
    <td>
    <a style="border:0px" {popup sticky=$config_vars.POPSTICKY  width=200 text=$config_vars.Sections_Edit} href="javascript:void(0);" onclick="javascript:popup('index.php?do=settings&sub=sectionsdisplay&secaction=edit&section={$s->Id}&noframes=1','edit',980,750,1);"><img class="absmiddle" src="{$imgpath}/edit.png" alt="" border="" /></a>
    <a {popup sticky=$config_vars.POPSTICKY  width=200 text=$config_vars.Sections_OpenPass} href="../index.php?area={$s->Id}{if $s->Passwort!='' && $s->Aktiv!=1}&pass={$s->Passwort}{/if}" target="_blank"><img class="absmiddle" src="{$imgpath}/view.png" alt="" border="0" /></a>    
    {if $s->Id != 1}<a onclick="return confirm('{#Sections_DeleteC#}')" {popup sticky=$config_vars.POPSTICKY  width=200 text=$config_vars.Sections_Delete} href="index.php?do=settings&sub=delsection&id={$s->Id}"><img class="absmiddle" src="{$imgpath}/delete.png" alt="" border="0" /></a>{/if}
    </td>
    <td>&nbsp;</td>
  </tr>
  {/foreach}
</table>

<br />
<br />


<form method="post" action="index.php?do=settings&sub=sectionnew">
<fieldset>
<legend>{#Sections_New#}</legend>

<table width="100%"  border="0" cellpadding="3" cellspacing="0" class="tableborder">
<tr>
<td width="60"><label for="Name">{#Global_Name#}</label></td>
<td>
<input type="text" name="Name" id="Name" class="input">
<input class="button" type="submit" value="{#Save#}"></td>
</tr>
</table>
</fieldset>
</form>