
{if $tab_id == 'year'}
	
		<form id="admin_statistic_edit" method="post" action="./index.php?admin_modul=admin_statistic_editor&tab_id=year&id={$form_data->id}&action=view_stat">
			<div class="edit_title">Zeitraum:</div>
						
			<div class="edit_element_3_5">
				<label>Jahr</label><br />
				<select name="year">
					{foreach item=year from=$years}
					<option value="{$year}">{$year}</option>
					{/foreach}
				</select>
			</div>
			<div class="edit_endline"></div>
			<input type="submit" value="Aktualisieren" />
		</form>
		
{elseif $tab_id == 'month'}
	
		<form id="admin_statistic_edit" method="post" action="./index.php?admin_modul=admin_statistic_editor&tab_id=month&id={$form_data->id}&action=view_stat">
			<div class="edit_title">Zeitraum:</div>
						
			<div class="edit_element_1_5">
				<label>Monat</label><br />
				<select name="month">
					<option value="01" {if $today.mon == '1'}selected{/if}>Januar</option>
					<option value="02" {if $today.mon == '2'}selected{/if}>Februar</option>
					<option value="03" {if $today.mon == '3'}selected{/if}>M&auml;rz</option>
					<option value="04" {if $today.mon == '4'}selected{/if}>April</option>
					<option value="05" {if $today.mon == '5'}selected{/if}>Mai</option>
					<option value="06" {if $today.mon == '6'}selected{/if}>Juni</option>
					<option value="07" {if $today.mon == '7'}selected{/if}>Juli</option>
					<option value="08" {if $today.mon == '8'}selected{/if}>August</option>
					<option value="09" {if $today.mon == '9'}selected{/if}>September</option>
					<option value="10" {if $today.mon == '10'}selected{/if}>Oktober</option>
					<option value="11" {if $today.mon == '11'}selected{/if}>November</option>
					<option value="12" {if $today.mon == '12'}selected{/if}>Dezember</option>
				</select>
			</div>
			<div class="edit_element_1_5">
				<label>Jahr</label><br />
				<select name="year">
					{foreach item=year from=$years}
					<option value="{$year}">{$year}</option>
					{/foreach}
				</select>
			</div>
			<div class="edit_endline"></div>
			<input type="submit" value="Aktualisieren" />
		</form>
		
{elseif $tab_id == 'week'}
	
		<form id="admin_statistic_edit" method="post" action="./index.php?admin_modul=admin_statistic_editor&tab_id=week&id={$form_data->id}&action=view_stat">
			<div class="edit_title">Zeitraum:</div>
						
			<div class="edit_element_1_5">
				<label>Woche</label><br />
				<select name="week">
					{for $foo=1 to 53}
					    <option value="{$foo}">KW {$foo}</option>
					{/for}
				</select>
			</div>
			<div class="edit_element_1_5">
				<label>Jahr</label><br />
				<select name="year">
					<option value="">2012</option>
				</select>
			</div>
			<div class="edit_endline"></div>
			<input type="submit" value="Aktualisieren" />
		</form>

{elseif $tab_id == 'day'}
	
		<form id="admin_statistic_edit" method="post" action="./index.php?admin_modul=admin_statistic_editor&tab_id=day&id={$form_data->id}&action=view_stat">
			<div class="edit_title">Zeitraum:</div>
						
			<div class="edit_element_1_5">
				<label>Tag</label><br />
				<input type="text" id="day_view_datefield" name="date" value="{if $today.mday < 10}0{/if}{$today.mday}.{if $today.mon < 10}0{/if}{$today.mon}.{$today.year}" />
			</div>
			<div class="edit_endline"></div>
			<input type="submit" value="Aktualisieren" />
		</form>

{/if}
	
	<hr>
	<div id="stat_result"></div>
	