<h2>Site Designer</h2>

<div id="admin_site_designer">
	<div title="Seiten Konfiguration" id="site_config">
		<h3 class="edit_title">Module</h3>
		
		{if $site_list}
		<form method="GET" action="./index.php?admin_modul=admin_site_designer">
			<input type="hidden" name="admin_modul" value="admin_site_designer" />
			
			<select name="id">
				{foreach from=$site_list item=site}
					<option value="{$site->id}">{$site->name}</option>
				{/foreach}
			</select>
			
			<input type="submit" />
		</form>
		{/if}
		
		{if $site_info}
		<form class="data" method="POST" action="./index.php?admin_modul=admin_site_designer&mod=ajax&set=widgets">
			<input type="hidden" name="id" value="{$id}" />
			
			<p>Welche Module wollen sie anzeigen.</p>
			<ul id="sortable" class="widget_container" style="width:380px;">
				<li class="{$textbox_num}" title="textbox_num">
					<div class="content_box">
						<div class="header">
							<input type="checkbox" name="content_box_textbox" value="true" {if $textbox_activ == 1}checked="checked"{/if}/>
							<label for="content_box_textbox">Text Box</label><br />
						</div>
						
						<div class="body">
							<!-- <label for="content_box_textbox_title" >Titel</label><br />
							<input type="text" name="content_box_textbox_title" {if $textbox_activ == 0}disabled="disabled"{/if} class="content_box_textbox"/><br /> -->
							
							<input type="hidden" name="textbox_num" value="{$textbox_num}" />
							
							<label for="content_box_textbox_body">Inhalt</label><br />
							<textarea name="content_box_textbox_body" {if $textbox_activ == 0}disabled="disabled"{/if} class="content_box_textbox" style="width:350px;">{$textbox_content}</textarea>
						</div>
					</div>
				</li>
				<li class="{$slider_num}" title="slider_num">
					<div class="content_box">
						<div class="header">
							<input type="checkbox" name="content_box_slider" value="true" {if $slider_activ == 1}checked="checked"{/if}/>
							<label for="content_box_slider">Slider</label><br />
						</div>
						
						<div class="body">
							<input type="hidden" name="slider_num" value="{$slider_num}" />
							
							<select name="cat_id" {if $slider_activ == 0}disabled="disabled"{/if} class="content_box_slider">
							{foreach from=$item_cats item=cat}
								<option value="{$cat->id}" {if $cat->id == $slider_content}selected="selected"{/if}>{$cat->name}</option>
							{/foreach}
							</select>
						</div>
					</div>
				</li>
				<li class="{$article_list_num}" title="article_list_num">
					<div class="content_box">
						<div class="header">
							<input type="checkbox" name="content_box_article_list" value="true" {if $article_list_activ == 1}checked="checked"{/if} />
							<label for="content_box_article_list">Artikelliste</label><br />
						</div>
						
						<div calss="body">
							<input type="hidden" name="article_list_num" value="{$article_list_num}" />
							
							<input type="radio" name="article_list_style" value="list" {if $article_list_content == 'list' || $article_list == false}checked="checked"{/if} {if $article_list_activ == 0}disabled="disabled"{/if} class="content_box_article_list"/><label>Liste</label><br />
							<input type="radio" name="article_list_style" value="ladder" {if $article_list_content == 'ladder'}checked="checked"{/if} {if $article_list_activ == 0}disabled="disabled"{/if} class="content_box_article_list"/><label>Leiter</label><br />
							<input type="radio" name="article_list_style" value="checkered" {if $article_list_content == 'checkered'}checked="checked"{/if} {if $article_list_activ == 0}disabled="disabled"{/if} class="content_box_article_list"/><label>Schachbrett</label><br />
						</div>
					</div>
				</li>
				<li class="{$featured_num}" title="featured_num">
					<div class="content_box">
						<div class="header">
							<input type="checkbox" name="content_box_featured" value="true" {if $featured_activ == 1}checked="checked"{/if}/>
							<label for="content_box_featured">Artikel hervorheben</label>
						</div>
						
						<div class="body">
							<input type="hidden" name="featured_num" value="{$featured_num}" />
							
							<select name="item_id" {if $featured_activ == 0}disabled="disabled"{/if} class="content_box_featured">
								<option value="">TODO</option>
							</select>
						</div>
					</div>
				</li>
			</ul>
		
			<br class="clear" />	
			<input type="submit" />
		</form>
		{/if}
	</div>
</div>

<script type="text/javascript" src="{$info->base_url}/themes/admin/media/js/admin_site_designer.js"></script>

{if $info_message}<div class="info_message message">{$info_message}</div>{/if}
{if $warning_message}<div class="warning_message message">{$warning_message}</div>{/if}
{if $error_message}<div class="error_message message">{$error_message}</div>{/if}