<div class="panel_section" style="width: 100%">
	<div class="panel_content" style="width: 100%">
		<form method="post" action="{$form.action}"  enctype="multipart/form-data" name="types_form" id="types_form">
			{$form.hiddens}
			<table border="0" cellspacing="1" cellpadding="5" width="100%">                
				<tr>
					<td align="left" width="15%">{$lang.kisses_spr.name}:&nbsp;</td>
					<td align="left" ><input type="text" name="name" value="{$data.name}" size="30"></td>
					<td align="left" width="70%">&nbsp;</td>
				</tr>
				<tr>
				<td align="left" width="15%">{$lang.kisses_spr.icon}:&nbsp;</td>
				<td align="left"><input type="file" name="image_path" size="18"></td>
					<td align="left" width="70%">{if $data.image_path}<img src="{$data.image_path}">{/if}&nbsp;</td>
				</tr>
				<tr>
					<td align="left" width="15%">{$lang.kisses_spr.sorter}:&nbsp;</td>
					<td align="left">
					<select name="sorter">
					{section name=s loop=$sorter}
						<option value="{$smarty.section.s.index_next}" {if $sorter[s].sel}selected{/if}>{$smarty.section.s.index_next}</option>
					{/section}
					</select>
					</td>
					 <td align="left" width="70%">&nbsp;</td>
			   </tr>
			</table>
		</form>
	</div>
</div>
<div style="float:left;width:100%;">
	<table width="100%">
		<tr height="40">
		{if $form.par eq "edit"}
			<td>
				<a class="admin_button_major" onclick="SaveBlock('show_block','types_form'); return false;">{$lang.button.save}<span>&nbsp;</span></a>
				<a class="admin_button_cancel" onclick="ShowBlock('show_block','{$form.back}')">{$lang.button.vip_cancel}<span>&nbsp;</span></a>
				<a class="admin_button" style="float:right;" onclick="ShowBlock('show_block','{$form.delete}')">{$lang.button.delete}<span>&nbsp;</span></a>
			</td>
		{else}
			<td>
				<a class="admin_button_major" onclick="SaveBlock('show_block','types_form'); return false;">{$lang.button.add}<span>&nbsp;</span></a>
				<a class="admin_button_cancel" onclick="ShowBlock('show_block','{$form.back}')">{$lang.button.vip_cancel}<span>&nbsp;</span></a>
			</td>
		{/if}
		</tr>
	</table>
</div>