<div class="header">{#Polls#}</div>
<form method="post" action="">
<table width="100%" border="0" cellspacing="0" cellpadding="3">
  <tr class="headers">
    <td width="220" class="headers">{#Global_Name#}</td>
    <td width="120" align="center" class="headers">
    {#Global_Published#}</td>
    <td width="120" align="center" class="headers">{#Global_PubEnd#}</td>
    <td width="120" align="center" class="headers">{#Global_Participant#}</td>
    <td width="120" align="center" class="headers">{#Global_Active#}</td>
    <td class="headers">{#Global_Actions#}</td>
  </tr>
  
  {foreach from=$polls item=c}
  <tr class="{cycle name=$cna values='second,first'}">
    <td><strong>{$c->Titel_1|koobispecialchars}</strong>
    <input type="hidden" name="poll[{$c->Id}]" value="{$c->Id}"/>    </td>
    <td align="center" nowrap="nowrap"><input class="input" style="width:65px" type="text" name="Start[{$c->Id}]" id="Start_{$c->Id}" value="{$c->Start|date_format:"%d.%m.%Y"}" readonly="readonly"></td>
    <td align="center" nowrap="nowrap"><input class="input" style="width:65px" type="text" name="Ende[{$c->Id}]" id="Ende_{$c->Id}" value="{$c->Ende|date_format:"%d.%m.%Y"}" readonly="readonly"></td>
    <td align="center">{$c->Users}</td>
    <td align="center">
   
    {if $c->Aktiv == 1} 
    <a {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Polls_setInActive} href="index.php?do=poll&amp;sub=openclose&amp;op=close&amp;id={$c->Id}"><img class="absmiddle" src="{$imgpath}/opened.png" alt="" border="0" /></a>
    {else}
    <a {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Polls_setActive} onclick="return confirm('{#Polls_setActiveInf#}')" href="index.php?do=poll&amp;sub=openclose&amp;op=open&amp;id={$c->Id}"><img class="absmiddle" src="{$imgpath}/closed.png" alt="" border="0" /></a>
    {/if}
    </td>
    <td>
    <a {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Polls_edit} href="javascript:void(0);" onclick="popup('index.php?do=poll&amp;sub=edit&amp;id={$c->Id}&amp;noframes=1','ed',980,750,1)"><img class="absmiddle" src="{$imgpath}/edit.png" alt="" border="0" /></a>
    {if $c->Users>=1}<a {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Polls_delStats} href="index.php?do=poll&amp;sub=delstats&amp;id={$c->Id}&amp;noframes=1"><img class="absmiddle" src="{$imgpath}/chart_del.png" alt="" border="0" /></a>  {else}<img {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Polls_delStats}  class="absmiddle" src="{$imgpath}/chart_del_no.png" alt="" border="0" />{/if}
    {if perm('comments')}{if $c->Comments>=1}<a {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Global_Comments} href="javascript:void(0);" onclick="popup('index.php?do=comments&amp;where=poll&amp;object={$c->Id}&amp;noframes=1','ed',980,750,1)"><img class="absmiddle" src="{$imgpath}/message.png" alt="" border="0" /></a>{else}<img {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Global_Comments} class="absmiddle" src="{$imgpath}/message_no.png" alt="" border="0" />{/if}{/if}
    <a {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Polls_delete} onclick="return confirm('{#Polls_deleteC#}')" href="index.php?do=poll&amp;sub=delete&amp;id={$c->Id}&amp;noframes=1"><img class="absmiddle" src="{$imgpath}/delete.png" alt="" border="0" /></a>    
    </td>
  </tr>
  {/foreach}
</table>
 <input type="hidden" name="save" value="1"/>
<input type="submit" class="button big" value="{#Save#}" />
</form>
<br />
<br />
<a href="javascript:void(0);" onclick="popup('index.php?do=poll&amp;sub=new&amp;noframes=1','ed',980,750,1)"><img class="absmiddle" src="{$imgpath}/chart.png" alt="" border="0" /></a>
<a href="javascript:void(0);" onclick="popup('index.php?do=poll&amp;sub=new&amp;noframes=1','ed',980,750,1)">{#Polls_new#}</a>


<script language="javascript" src="{$jspath}/calendar.js" type="text/javascript"></script>
<style type="text/css" media="screen,projection">
@import url({$csspath}/calendar.css);
</style>
<script type="text/javascript">
	jQuery(function($){ldelim}
	$.datepicker.setDefaults({ldelim}
	{include file="$incpath/other/calendar.conf.tpl"},
	clearText: ''
	{rdelim}); 
	{foreach from=$polls item=c}
	$("#Start_{$c->Id}").attachDatepicker();
	$("#Ende_{$c->Id}").attachDatepicker();
	{/foreach}
	{rdelim});
</script>
