<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	
    <title>{$pageTitle}</title>
    <link rel="stylesheet" type="text/css" href="{$urlStatic}/css/Admin/style.css" />
    <link rel="stylesheet" type="text/css" href="{$urlStatic}/css/Admin/style2.css" />
    <link rel="stylesheet" type="text/css" href="{$urlStatic}/css/Admin/styleUP.css" />
		<link rel="stylesheet" type="text/css" href="{$urlStatic}/css/jquery-ui.css"/ >
		<link rel="stylesheet" type="text/css" href="{$urlStatic}/css/jquery.datetimepicker.css"/ >
	<link rel="stylesheet" href="{$urlStatic}/css/drag-drop-folder-tree.css" type="text/css"></link>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Language" content="pl" /> 
    {section name=s loop=$javaScript}
    {if $javaScript[s].file!=''}
    	<script src="{$javaScript[s].file}" type="text/javascript" charset="utf-8"></script>
    {/if}
    {if $javaScript[s].code!=''}
    <script type="text/javascript">
    <!-- <![CDATA[
    {$javaScript[s].code}
    // ]]> -->
    </script>
    {/if}
    {/section}
    <script type="text/javascript">
    var LinkUrl = '{url Structure=link}';
		</script>
</head>
<body>
<div class="titleHeader">
	<a href="index.html"><img src="{$urlStatic}/image/Admin/logoCms.gif" alt="" title="" border="0"/> PANEL ADMINISTRACYJNY</a>
	<div style="float: right; display: none;">
			<form action="{url Structure=ChangeLang}" method="post">
				<select id="lang" name="lang" onchange="submit();">
					<option value="pl" {if $lang == 'pl'}selected{/if}>Polski</option>
					<option value="en" {if $lang == 'en'}selected{/if}>English</option>					
				</select>
			</form>
	</div>			
</div>
		
		<!-- TOP NAV -->
		<ul class="tabs">
{*				<li><a href="{url structure=index}" class="{if $titleAdmin == 'Struktura strony' || $titleAdmin == 'Pliki' || $titleAdmin == 'Aktualności'}selected{/if}">Struktura</a></li>*}
{*				<li><a href="{url HomeSite=Baner}" class="{if $titleAdmin == 'Strona główna'}selected{/if}">Strona główna</a></li>*}
				<li><a href="{url Calc=Reg}" class="{if $titleAdmin == 'Formularz'}selected{/if}">Formularz</a></li>
				<li><a href="{url Setup=Index}" class="{if $titleAdmin == 'Administracja'}selected{/if}">Administracja</a></li>
				<li><a href="{url Login=logout}" class="{if $titleAdmin == 'Logowanie'}selected{/if}">Wyloguj</a></li>
		</ul>
		<!-- END TOP NAV -->	
		
		<div class="cb"></div>
<!-- MAIN FRAME -->
<div class="mainContentFrame">
					<!-- SIDE MENU -->
	
	<div class="sideMenuContainer">
		<!-- SIDE MENU OPTION -->
		{*<div class="sideMenu">
			<h2><a href="#"><img align="absmiddle" src="{$urlStatic}/image/Admin/expand.gif" alt="konto" />Opcje zwinięte</a></h2>
			<div class="section">
			</div>
		</div>
		*}
		
		
		<!-- SIDE MENU OPTION -->
		<div class="sideMenu">
			<h2><a href="#"><img align="absmiddle" src="{$urlStatic}/image/Admin/expand.gif" alt="konto" />{$titleAdmin}</a></h2>
				<div class="section">
					<div class="sideMenuIcons">
					{if isset($showIcon) && $showIcon == true}
						<div class="overflow">
							<a href="{url Structure='New'}" ><img src="{$urlStatic}/image/Admin/icon1.gif" border="0" title="Dodaj element" alt="Dodaj element"/></a>
	
							<a href="{url structure=delete}"  onclick="{literal}if (confirm('Czy napewno usunąć ten element?')) {} else {return false;}{/literal}"><img src="{$urlStatic}/image/Admin/icon0.gif" border="0" title="Usuń element" alt="Usuń element"/></a>
							
							{if !$idStucture}{assign var=idStucture value=-1}{/if}
							{*<a href="{url label=copyStructure id=$idStucture}" {if $idStucture < 0} onclick="alert('Nie wybrano elementu do skopiowania!'); return false;" {/if}}><img src="{$urlStatic}/image/Admin/iconCopy.gif" border="0" title="Kopiuj" alt="Kopiuj"/></a>*}
							{*<a href="#"><img src="{$urlStatic}/image/Admin/iconPreview.gif" border="0" title="" alt=""/></a>*}
							<div class="cb"></div>
							<div class="paddedContent"></div>
						</div>
						
						
						<div class="framePopver" id="stucturePopover" style="display: none; background: #ffffff;">
							<form action="{url Structure='Add'}" method="post" id="sendModule" enctype="multipart/form-data" >
							<div class="panelPopoverTop"><b>Utwórz stronę</b></div>
							<div class="panelPopoverContent">
								<div class="floatLeft frameLeftPopover">
								Podaj nazwę:
								</div>			
								<input type="text" name="title" />	
							</div>
							
							<div class="panelPopoverContent">
							
								<div class="floatLeft frameLeftPopover">
								Wybierz rodzaj strony:
								</div>
								{*
								<select name="idModule" id="idModule" onchange="GetModuleCategory(document.getElementById('idModule').value, '{url structure='AjaxGetModuleCategory'}');">
									<option value="0">Wybierz</option>
									{html_options options=$arrayModuleName}
								</select>	
								*}					
							</div>						
							
				
						
							{*<div class="panelPopoverContent" id="categoryOptions" style="display: hidden;">						
							</div>*}
							
								
							<div class="panelPopoverBottom">
							
								{*
									<input class="cancel" type="button" name="back" value="Anuluj" onclick="javascript: document.getElementById('stucturePopover').style.display = 'none';"/>
							
								
								
								
									<input id="dalejPopover" type="submit" name="name" value="Dalej" style="display: none;" />
								*}
								<div class="cb"></div>
									
							</div>
							</form>
						</div>
	
						{else}
						<div class="title" style="margin-bottom:5px; "><font class="blue">{$titleAdmin}</font></div>
						
						{/if}	
					</div>				
				{$structure}
			</div>
			
		</div>


	  <div class="cb"></div>
	</div>
			
			<!-- END SIDE MENU -->
	<div class="mainContent">
				{if isset($info) && $info != 'wybrana strona nie istnieje'}
					<div class="{if $type && $type=='error'}messageError{elseif $type == 'info'}messageInfo{else}messageOk{/if}">{$info}</div>
				{/if}
					<div id="infoMessage"></div>
				{$content}
			<!-- /panelRight -->
			</div>
			
<div class="cb"></div>
</div>
		
		
	</body>
</html>