<h1>Dodaj Logo</h1>	
<script language="javascript" type="text/javascript">
urlStatic = '{$urlStatic}';
</script>

<form method="post" action="{url HomeSite='EditLogo' id=$obj->GetId() type=$obj->GetType()}" enctype="multipart/form-data">
	{if isset($obj)}
		<input type="hidden" name="id" value="{$obj->GetId()}" />
	{/if}

	<div class="panelRightTop"></div>
	<div class="panelRightBody">
		<div class="paddedContent">
			{assign var="additionalTitle" value=""}

			{dropDownContainer title="Ogólne" additionalTitle=$additionalTitle}
				<table width="100%" cellspacing="0" cellpadding="5" border="0" class="commonTable">
					<tbody>
						<tr>
							<td>Nazwa:</td>
							<td>							
							{formField name='name' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='obj' func='getName'}
							{if isset($error.name)}<div style="color: red;" id="actionError" class="validate">{$error.name}</div>{/if}
							</td>
						</tr>
						<tr>
							<td>Adres url:</td>
							<td>							
							{formField name='url' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='obj' func='getUrl'}
							{if isset($error.url)}<div style="color: red;" id="actionError" class="validate">{$error.url}</div>{/if}
							</td>
						</tr>
						<tr>
							<td>Sort:</td>
							<td>							
							{formField name='sort' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='obj' func='getSort'}
							{if isset($error.sort)}<div style="color: red;" id="actionError" class="validate">{$error.sort}</div>{/if}
							</td>
						</tr>
						<tr>
							<td>Aktywny:</td>
							<td>{formField type='checkbox' name='active' obj='obj' func='GetPublication'}</td>
						</tr>				
					</tbody>
				</table>
			{/dropDownContainer}
			{dropDownContainer title="Plik"}
				<div>
				{if $obj->GetPhotoUrl()}
								<img src="{$obj->GetPhotoUrl()}" alt="" align="left"/>
							{/if}
				</div>
				<div class="clearBoth"></div>
				<br />
				<div class="articlePreviewRight">
					<input type="file" name="logo" >
					{if isset($error.logo)}<div style="color: red;" id="actionError" class="validate">{$error.logo}</div>{/if}
				</div>
				<div class="clearBoth"></div>
			{/dropDownContainer}
		
			
		
		</div>
		</div>
	<div class="cb"></div>
		<div class="panelButtons">
		{if isset($idStructure)}
			<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url label=editStructure id=$idStructure}'" />
			{else}
			<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url HomeSite=Logo}'"/>
			{/if}
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<input type="submit" value="Zapisz" name="doLogoEdit"/>
		</div>
	<input type="hidden" name="descriptionHidden" id="descriptionHidden" value="" />
<input type="hidden" name="shortnoteHidden" id="shortnoteHidden" value="" />
</form>
