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

					{assign var=id value=$obj->GetId()}
<form method="post" action="{url Calc='Add'}" 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>Opis:</td>
							<td class="left">
								<textarea name="opis" cols="54" rows="5">{$obj->GetOpis()}</textarea>
							{if isset($error.opis)}<div style="color: red;" id="actionError">{$error.opis}</div>{/if}
							</td>									
						</tr>
						<tr>
							<td>Cena:</td>
							<td class="left">
								{formField name='price' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='obj' func='getPrice'}
							{if isset($error.price)}<div style="color: red;" id="actionError" class="validate">{$error.price}</div>{/if}
							</td>									
						</tr>
						<tr>
							<td>Powiązane z:</td>
							<td class="left">
								{formField name='link_id' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='obj' func='getLinkId'}
							{if isset($error.link_id)}<div style="color: red;" id="actionError" class="validate">{$error.link_id}</div>{/if}
							</td>									
						</tr>
						<tr>
							<td>Czy lista (radio):</td>
							<td>{formField type='checkbox' name='list' obj='obj' func='GetList'}</td>
						</tr>
						<tr>
							<td>Czy cena progresywna:</td>
							<td>{formField type='checkbox' name='price_progres' obj='obj' func='GetPriceProgres'}</td>
						</tr>
						
						<tr>
							<td>Ilość zmiany ceny (wieksze od):</td>
							<td class="left">
								{formField name='count_progres' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='obj' func='getCountProgres'}
							{if isset($error.count_progres)}<div style="color: red;" id="actionError" class="validate">{$error.count_progres}</div>{/if}
							</td>									
						</tr>						
						<tr>
							<td>Jednostka miary:</td>
							<td class="left">
								{formField name='unit' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='obj' func='getUnit'}
							{if isset($error.unit)}<div style="color: red;" id="actionError" class="validate">{$error.unit}</div>{/if}
							</td>									
						</tr>
						<tr>
							<td>Publikuj:</td>
							<td>{formField type='checkbox' name='publication' obj='obj' func='GetPublication'}</td>
						</tr>
						{*<tr>
							<td>Kolejność:</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>*}
					</tbody>
				</table>
			{/dropDownContainer}


		
		</div>
		</div>
	<div class="cb"></div>
		<div class="panelButtons">
		
			<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url Calc=Index}'"/>
			
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<input type="submit" value="Zapisz" name="doCategoryEdit"/>
		</div>
	<input type="hidden" name="descriptionHidden" id="descriptionHidden" value="" />
<input type="hidden" name="shortnoteHidden" id="shortnoteHidden" value="" />
</form>
