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

<form method="post" action="{url Structure='home'}" id="sendForm"  enctype="multipart/form-data">
	{if isset($objArticle)}
		<input type="hidden" name="idArticle" value="{$objArticle->GetId()}" />
	{/if}

	
	<input type="hidden" name="serwis" value="{$serwis}" />
	<div class="panelRightTop"></div>
	<div class="panelRightBody">
		<div class="paddedContent">
			{assign var="additionalTitle" value=""}
			<div  style="display: none;">
			{dropDownContainer title="Ogólne" additionalTitle=$additionalTitle}
				<table width="100%" cellspacing="0" cellpadding="5" border="0" class="frameTableForm tableContetntWhite">
					<tbody>
						<tr>
							<td>Tytuł:</td>
							<td>							
							{formField name='tytul' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objArticle' func='GetTitle'}
							{if isset($error.tytul)}<div style="color: red;" id="actionError">{$error.tytul}</div>{/if}
							<input type="hidden" name="tytul" value="Home" />
							</td>
						</tr>
						<tr>
							<td>Publikuj:</td>
							<td>{formField type='checkbox' name='publication' obj='objArticle' func='GetPublication'}</td>
						</tr>
						{*
						<tr>
					    <td class="verticalAlignTop"><b>Data wyświetlana:</b></td>
					    <td><img src='{$urlStatic}/image/iconKalendarz.gif' alt='kalendarz' onclick="showKal(document.getElementById('dateshown'));" />&nbsp;{formField type='input' name='dateshown'  errorClass='validate' obj='objArticle' func='GetDateShown' id='dateshown'}</td>
					</tr>*}
						<tr>
					    <td class="noborder"><b>Data publikacji:</b></td>
					    <td class="noborder">
						<img src='{$urlStatic}/image/iconKalendarz.gif' alt='kalendarz' onclick="showKal(document.getElementById('datepub'));" />&nbsp;{formField type='input' name='datepublication'  errorClass='validate' obj='objArticle' func='GetDatePublicationWithoutTime' id='datepub'}
							{if isset($error.datepublication)}<div style="color: red;" id="actionError">{$error.datepublication}</div>{/if}

						</td>
					</tr>
					<tr>
					    <td><b>Godzina:</b></td>
					    <td>
						    {formField type='input' maxlength='2' class='inputWidth141'  errorClass='validate' name='timepublication' obj='objArticle' func='GetDatePublicationTime'}
						    <span class="grayText smallText">format (HH)</span>
					    </td>
					</tr>
					{*<tr>
					    <td class="verticalAlignTop noborder">
						<b>Data aktualizacji:</b>
					    </td>
					    <td class="noborder">
						<img src='{$urlStatic}/image/iconKalendarz.gif' alt='kalendarz' onclick="showKal(document.getElementById('dateupdate'));" />&nbsp;{formField type='input' name='dateupdate' obj='objArticle' func='GetDateUpdateWithoutTime' id='dateupdate'}
					    </td>
					</tr>
					<tr>
					    <td><b>Godzina: {$objArticle->GetDatePublicationTime()}</b></td>
					    <td>
						{formField type='input' class='inputWidth141' maxlength='5' name='timeupdate' obj='objArticle' func='GetDatePublicationTime'}
						 <span class="grayText smallText">format (HH:mm)</span>
					    </td>
					</tr>*}
					</tbody>
				</table>
			{/dropDownContainer}
			</div>
			{*dropDownContainer title="Właściwości (SEO)" isClose=true}
				<table width="100%" cellspacing="0" cellpadding="5" border="0" class="frameTableForm tableContetntWhite">
					<tbody>
						<tr>
							<td>Tytuł w menu:</td>
							<td>{formField type='text' name='tytulWMenu' obj='objArticle' func='GetMenuTitle'}</td>
						</tr>
						<tr>
							<td>Folder URL:</td>
							<td>{formField type='text' name='folderUrl' obj='objArticle' func='GetFolderUrl'}</td>
						</tr>
						<tr>
							<td>META Description:</td>
							<td>{formField type='text' name='metaDescription' obj='objArticle' func='GetMetaDescription'}</td>
						</tr>
						<tr>
							<td>META Keywords:</td>
							<td>{formField type='text' name='metaKeywords' obj='objArticle' func='GetMetaKeywords'}</td>
						</tr>
						<tr>
							<td>Skrypt statystyk:</td>
							<td>{formField type='text' name='statScript' obj='objArticle' func='GetStatScript'}</td>
						</tr>
					</tbody>
				</table>
			{/dropDownContainer*}
			<div  style="display: none;">
			{dropDownContainer title="Zdjecia"}
				<div class="floatLeft">
					{if $objArticle->GetPicture()}<img src="{$objArticle->GetPictureUrl()}" />{/if}
				</div>
				<div class="floatLeft" style="margin-left: 10px;">
					{if $objArticle->GetPictureMini()}<img src="{$objArticle->GetPictureMiniUrl()}" />{/if}
				</div>
				<div class="cb"></div>
				<div class="articlePreviewRight">
					<input type="file" name="filename" >
				</div>
				<div class="cb"></div>
			{/dropDownContainer}
			</div>
			<div>
			
			</div>
			{dropDownContainer title="Treść}

				<div class="center">
					{if isset($objArticle)}
						{assign var='tresc' value=$objArticle->GetDescription()}
					{else}
						{assign var='tresc' value=''}
					{/if}
					{insertFckEditor width='620' height='380' name='tresc' toolbar='Basic' value=$tresc}
				</div>

			{/dropDownContainer}
			{dropDownContainer title="Adres" isHidden="true"}
			{*<div class="articlePreviewLeft">
					<div class="articlePreviewLeftContent">
						<div class="_zajawkaPhoto articlePreviewPhotoView">
							{if isset($objArticle) && $objArticle->GetPicture()}
								<img src="{$objArticle->GetPictureUrl()}" alt="" />
							{else}
								podczas dodawania będziesz mógł przyciąć swoje zdjęcie do rozmiarów 120x70.
							{/if}
						</div>
						<div class="articlePreviewLeftContentBottom">
							<a class="_lbOn ustawZdjecie" rel="globCropLBox" onclick="{literal}try{ createUploadLightbox(this);} catch(err){ alert(err.message);}{/literal} return false;" href="{if isset($objArticle)}{url SimpleArticle_Index='AjaxPhotoCropper' id=$objArticle->GetId()}{else}{url SimpleArticle_Index='AjaxPhotoCropper'}{/if}" name="ustawZdjecie">&nbsp;</a>
						</div>
					</div>
				</div>*}
				<div class="articlePreviewRight">
					{if isset($objArticle)}
						{assign var='zajawka' value=$objArticle->GetShortnote()}
					{else}
						{assign var='zajawka' value=''}
					{/if}
					{insertFckEditor width='620' height='159' name='zajawka' toolbar='Basic' value=$zajawka}
					<div class="validate" id="shortnoteHiddenError"></div>
					{if isset($error.zajawka)}<div style="color: red;" id="actionError">{$error.zajawka}</div>{/if}
				</div>
				<div class="cb"></div>
			{/dropDownContainer}
			{*dropDownContainer title="Ustawienia"}
				<table width="100%" cellspacing="0" cellpadding="5" border="0" class="frameTableForm tableContetntWhite">
					<tbody>
						<tr>
							<td>Publikuj:</td>
							<td>{formField type='checkbox' name='publikuj' obj='objArticle' func='GetPublication'}</td>
						</tr>
						<tr>
							<td>Publikuj w języku</td>
							<td>{formField type='checkbox' name='publikujWJezyku' obj='objArticle' func='GetLangPublication'}</td>
						</tr>
						<tr>
							<td>Tagi:<br /><small>po przecinkach</small></td>
							<td><input type="text" name="tagi" value="" /></td>
						</tr>
					</tbody>
				</table>
			{/dropDownContainer*}

			{*dropDownContainer title="Powiązania"}

			{/dropDownContainer*}
		</div>
	</div>
<div class="cb"></div>
		<div class="panelButtons">
			{if isset($idStructure)}
			<input type="button" class="cancel" value="Anulij" name="" onclick="document.location.href='{url label=editStructure id=$idStructure}'" />
			{else}
			<input type="button" class="cancel" value="Anulij" name="" onclick="document.location.href='{url _value=$controller,index}'"/>
			{/if}
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<input type="submit" class="button buttonZapisz" value="Zapisz" name="doSimpleArticleEdit"/>
		</div>

	<input type="hidden" name="descriptionHidden" id="descriptionHidden" value="" />
<input type="hidden" name="shortnoteHidden" id="shortnoteHidden" value="" />
</form>
