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

{if isset($obj)}
		
		<input type="hidden" name="lang" value="{$lang}" />
	{/if}
		<input type="hidden" name="SaveArt" value="true" />


		
			{assign var="additionalTitle" value=""}
			
			{*dropDownContainer title="Ogólne" additionalTitle=$additionalTitle}
				<table width="100%" cellspacing="0" cellpadding="5" border="0" class="frameTableForm tableContetntWhite">
					<tbody>
						<tr>
							<td>Tytuł strony:</td>
							<td>{formField name='title' type='text' obj='obj' func='GetTitle'}</td>
						</tr>
						<tr>
							<td>Tytuł w przeglądarce:</td>
							<td>{formField type='text' name='browser_title' obj='obj' func='GetBrowserTitle'}</td>
						</tr>

						<tr>
							<td>Data publikacji:</td>
							<td><input type="text" name="dataPublikacji" value="{gv o='obj' f='GetPublicationDate'}" /><!-- TODO: CAL --> - <input type="text" name="dataEkspiracji" value="{gv o='obj' f='GetExpirationDate'}" /><!-- TODO: CAL --><br />
							<div id="dataPublikacjiError"><span id="dataExpiracjiError"></span></div></td>
						</tr>

					</tbody>
				</table>
			{/dropDownContainer *}
			
			{*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='obj' func='GetMenuTitle'}</td>
						</tr>
						<tr>
							<td>Folder URL:</td>
							<td>{formField type='text' name='folderUrl' obj='obj' func='GetFolderUrl'}</td>
						</tr>
						<tr>
							<td>META Description:</td>
							<td>{formField type='text' name='metaDescription' obj='obj' func='GetMetaDescription'}</td>
						</tr>
						<tr>
							<td>META Keywords:</td>
							<td>{formField type='text' name='metaKeywords' obj='obj' func='GetMetaKeywords'}</td>
						</tr>
						<tr>
							<td>Skrypt statystyk:</td>
							<td>{formField type='text' name='statScript' obj='obj' func='GetStatScript'}</td>
						</tr>
					</tbody>
				</table>
			{/dropDownContainer*}
			<div style="display: block;">
				{assign var=EditShortNote value=true}
				{assign var=TitleShortNote value='Zajawka'}
				{if $objModule->Getid() == 3 || $objModule->Getid() == 4}
				{assign var=EditShortNote value=false}
				{assign var=TitleShortNote value='Zajawka'}
				{/if}
				
			{dropDownContainer title=$TitleShortNote isClose=false isHidden=$EditShortNote}
				<div class="articlePreviewRight">
					{if isset($obj)}
						{assign var='shortnote' value=$obj->GetShortnote()}
					{else}
						{assign var='shortnote' value=''}
					{/if}
					{insertCkEditor width='620' height='159' name='shortnote' toolbar='Basic' value=$shortnote}
					{if isset($error.shortnote)}<div style="color: red;" id="actionError">{$error.shortnote}</div>{/if}
					<div>
					
					</div>
				</div>
				<div class="clearBoth"></div>				
			{/dropDownContainer}
			
			</div>
			{dropDownContainer title="Treść"}

				<div class="center">
					{if isset($obj)}
						{assign var='description' value=$obj->GetDescription()}
					{else}
						{assign var='description' value=''}
					{/if}
					{insertCkEditor width='1020' height='480' name='description' toolbar='Formix' value=$description}
					{if isset($error.description)}<div style="color: red;" id="actionError">{$error.description}</div>{/if}
				</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='publication' obj='obj' func='GetPublication'}</td>
						</tr>
						<tr>
							<td>Publikuj w języku</td>
							<td>{formField type='checkbox' name='publikujWJezyku' obj='obj' 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*}
			{if $objModule->GetId() == 16 || 1==1}

			{dropDownContainer title="Dodaj zdjecia" isHidden=false}
			<iframe name="PhotoUpload" id="PhotoUpload" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" height="70" width="625"	src="{url Image='Form'}">
			<noscript>
			Do wyświetlenia konieczne jest działanie ramek (iframe).
			</noscript>
			</iframe>
			{/dropDownContainer}
			{dropDownContainer title="Zdjecia" isHidden=false}
			{if isset($arrayImage)}
			<div >
			{foreach from=$arrayImage item=image name=photo key=key}
			<div id="image_{$image->GetId()}" style="float:left; height:185px; text-align: center; border:1px solid #000000; margin-right:5px; margin-bottom: 5px"><img src="{$image->GetFullUrlMiniId($obj->GetId())}" alt="test" />
			<div>
				<a href="#" onclick="DeletePhoto('{url Image=DeleteImage}', '{$image->GetId()}'); return false;"><img src="{$urlStatic}/image/Admin/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></a>
			</div>
			</div> {/foreach}
			</div>
			{/if}
			<div name="PhotoDisplay" id="PhotoDisplay" class="PhotoDisplay">
			{foreach from=$arrayPhoto item=file name=photo key=key}<div style="float:left; text-align: center; height:185px; border:1px solid #000000; margin-right:5px; margin-bottom: 5px"><img src="{$urlStatic}/temp/{$file.th}" alt="test" style="margin-bottom: 5px" /><br /><textarea name="image_description[{$key}]" rows="1" cols="11"></textarea></div> {/foreach}
			</div>
			<div class="clearBoth"></div>
			{/dropDownContainer}

			{/if}
