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

<form method="post" action="{url HomeSite=EditArticle id=$obj->GetId()}" id="sendForm"  enctype="multipart/form-data">
	{if isset($obj)}
		<input type="hidden" name="idArticle" 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 width="20%">Nazwa:</td>
							<td>							
{*							{$obj->GetName()}*}
							<input name="name" value="{$obj->GetName()}" type="text" />
							</td>
						</tr>
						<tr style="display: none;">
							<td >Publikuj i zastąp informacje z aktualości</td>
							<td>{formField type='checkbox' name='publication' obj='obj' func='GetPublication'}</td>
						</tr>
						<tr style="display: none;">
					    <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='datePpublication'  errorClass='validate' obj='obj' func='GetDatePublicationWithoutTime' id='datepub'}
							{if isset($error.datepublication)}<div style="color: red;" id="actionError"  class="validate">{$error.datepublication}</div>{/if}

						</td>
					</tr>
					<tr  style="display: none;">
					    <td><b>Godzina:</b></td>
					    <td>
						    {formField type='input' maxlength='2' errorClass='validate' name='timepublication' obj='obj' func='GetDatePublicationTime'}
						    <span class="grayText smallText">format (HH)</span>
					    </td>
					</tr>
					</tbody>
				</table>
			{/dropDownContainer}		
			
			
			{dropDownContainer title="Treść nad"}
				<div class="center">
					{if isset($obj)}
						{assign var='description' value=$obj->GetDescription()}
					{else}
						{assign var='description' value=''}
					{/if}
					{insertCkEditor width='680' height='220' name='description' toolbar='Formix' value=$description}
				</div>
			{/dropDownContainer}
                        
                        {dropDownContainer title="Treść pod"}
				<div class="articlePreviewRight" >
					{if isset($obj)}
						{assign var='shortnote' value=$obj->GetShortnote()}
					{else}
						{assign var='shortnote' value=''}
					{/if}
					{insertCkEditor width='680' height='220' name='shortnote' toolbar='Basic' value=$shortnote}
					<div class="validate" id="shortnoteHiddenError"></div>
					{if isset($error.shortnote)}<div style="color: red;" id="actionError"  class="validate">{$error.shortnote}</div>{/if}
				</div>
				<div class="clearBoth"></div>
			{/dropDownContainer}
		</div>
	</div>
	<div class="cb"></div>
		<div class="panelButtons">			
			<input type="button" class="cancel" value="Anuluj"  name="" onclick="document.location.href='{url HomeSite=EditArticle}'"/>
			<input type="submit" value="Zapisz" name="doSimpleArticleEdit"/>
		</div>
	</div>
</form>
