
{include file="../head.tpl"}

<form>
<table width="100%"  border="0" cellspacing="1" cellpadding="5" class="tableborder">
	<tr>
		
		<td colspan="5" class="header">{$langadmin.polloverview}		</td>
	</tr>

	<tr>
	<td class="firstrow">{$langadmin.pollid}</td>
		<td class="firstrow">{$langadmin.title}</td>
		<td class="firstrow">{$langadmin.timefromto}</td>
		<td class="firstrow">{$langadmin.status}</td>
		<td class="firstrow">{$langadmin.actions}</td>
	</tr>

	{foreach from=$polls item=poll}
	<tr>
		<td class="secondrow">
		<input type="text" value="{$poll->place_id}" size="15" readonly="readonly" /></td>
		<td class="firstrow">
			<strong>{$poll->title|escape:"htmlall"}</strong>
		</td>
		<td class="secondrow">{$poll->start|date_format:"%Y-%m-%d"} / {$poll->end|date_format:"%Y-%m-%d"}</td>
		<td class="firstrow">
			{if $poll->active}
				{$langadmin.active}
			{else}
				{$langadmin.inactive}
			{/if}
		</td>
		<td class="secondrow">
		<select onchange="eval(this.options[this.selectedIndex].value);selectedIndex=0;" name="mf{$poll->id}" id="mf{$poll->id}">
		<option value="location.href = 'poll.php?action=show_items&amp;id={$poll->id}&amp;area={$area}'">{$langadmin.menue_navigation_edit}</option>
		<option value="location.href = 'poll.php?action=edit&amp;dowhat=edit&amp;id={$poll->id}&amp;area={$area}'">{$langadmin.theoptions}</option>
		<option value="if(confirm('{$langadmin.confirmdelpoll}'))  location.href = 'poll.php?action=edit&amp;dowhat=del&amp;id={$poll->id}&amp;area={$area}'">{$langadmin.menue_navigation_delete}</option>
		<option value="location.href = 'poll.php?action=comment&amp;id={$poll->id}&amp;area={$area}'">{$langadmin.comments_edit} ({$poll->comms})</option>
		</select>
		<input onclick="eval(document.getElementById('mf{$poll->id}').value);" type="button" class="button" value="{$langadmin.go}">
		</td>
	</tr>
	{/foreach}
	<tr>
	<td class="firstrow" colspan="5"><input class="button" type="button" onclick="location.href='poll.php?action=new&area={$area}';"  value="{$langadmin.poll_add}"></td></tr>
</table>
</form>
{include file="../foot.tpl"}