<form method="post" action="{url File='Edit' idFile=$objFile->GetId()}" enctype="multipart/form-data">
	{if isset($objFile)}
		<input type="hidden" name="idFile" value="{$objFile->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="frameTableForm tableContetntWhite">
					<tbody>
						<tr>
							<td>nazwa:</td>
							<td>
							
							{formField name='title' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objFile' func='GetTitle'}
							{if isset($error.title)}<div style="color: red;" id="actionError">{$error.title}</div>{/if}
							</td>
						</tr>
						<tr>
							<td>Publikuj:</td>
							<td>{formField type='checkbox' name='publication' obj='objFile' func='GetPublication'}</td>
						</tr>
						<tr>
							<td>Opis:</td>
							<td>{formField type='textarea' name='description' obj='objFile' func='GetDescription'}</td>
						</tr>
						{*
						<tr>
					    <td class="noborder">Data publikacji:</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='objFile' func='GetDatePublicationWithoutTime' id='datepub'}
						{if isset($error.datepublication)}<div style="color: red;" id="actionError">{$error.datepublication}</div>{/if}
						 </td>
					</tr>
					<tr>
					    <td>Godzina:</td>
					    <td>
						    {formField type='input' maxlength='2' class='inputWidth141'  errorClass='validate' name='timepublication' obj='objFile' func='GetDatePublicationTime'}
						    <span class="grayText smallText">format (HH)</span>
						    
					    </td>
					</tr>
					*}
					<input type="hidden" name="file_type" value="1" />
					{*
					<tr>
									<td>Kategoria:</td>
									<td class="left">
											{html_options name=file_type options=$arrayFileType selected=$objFile->GetType()}
									</td>
								</tr>
								*}
					</tbody>
				</table>
			{/dropDownContainer}

			

			{dropDownContainer title="Plik"}
				<div>
				<img src="{$objFile->GetFileIcon()}" alt="" title="" style="float: left;" >
				<p>{$objFile->GetName()}</p>
				</div>
				<div class="clearBoth"></div>
				<br />
				<div class="articlePreviewRight">
					<input type="file" name="filename" >
				</div>
				<div class="clearBoth"></div>
			{/dropDownContainer}

			{*dropDownContainer title="Opis  isHidden=true}
				{if isset($error.description)}<div style="color: red;" id="actionError">{$error.description}</div>{/if}
				<div class="center">
					{if isset($objFile)}
						{assign var='description' value=$objFile->GetDescription()}
					{else}
						{assign var='description' value=''}
					{/if}
					{insertFckEditor width='620' height='180' name='description' toolbar='Basic' value=$description}
				</div>

			{/dropDownContainer*}

		
		</div>
	</div>
	<div class="panelRightBottom">
		<div class="panelButtons">
			{if isset($idStructure)}
			<input type="button" class="cancel" value="Anuluj" name="" onclick="document.location.href='{url label=editStructure id=$idStructure}'" />
			{else}
			<input type="button" class="cancel" value="Anuluj" name="" onclick="document.location.href='{url File=index}'"/>
			{/if}
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<input type="submit" value="Zapisz" name="doFileEdit"/>
		</div>
	</div>
</form>
