<div class="actionPanelLeft">
	<div class="actionPanelRight p16">
		<div id="actionTop" class="right">
			<div class="button actionNext">
				<div class="buttonRight">
					<div class="buttonMiddle">{rs:NEXT}</div>
				</div>
			</div>
			<div class="br"><img src="{global:PATH}img/spacer.gif" width="1" height="1" border="0" /></div>
		</div>
	</div>
</div>
<div class="middleLeft">
	<div class="middleRight p16">
		{ERROR}
		<form method="post" enctype="multipart/form-data" id="editForm">
		<table width="100%" cellspacing="0" cellpadding="5" border="0">
		<tr class="line">
		<td><div class="labelBox">{rs:NAME}:</div></td>
		<td>
			<select name="r[name]">
			<option value="none">---</option>
			{row:NAME_SELECT}
			<option value="{id}" {selected}>{title}</option>
			{/row}
			</select>
		</td>
		</tr>

		<tr class="line">
		<td><div class="labelBox">{rs:MAIL}:</div></td>
		<td>
		<select name="r[mail]">
		<option value="none">---</option>
		{row:MAIL_SELECT}
		<option value="{id}" {selected}>{title}</option>
		{/row}
		</select>
		</td>
		</tr>

		<tr class="line">
		<td><div class="labelBox">{rs:FORMAT}:</div></td>
		<td>
			<select name="r[format]">
			<option value="none">---</option>
			{row:FORMAT_SELECT}
			<option value="{id}" {selected}>{title}</option>
			{/row}
			</select>
		</td>
		</tr>

		<tr class="line">
		<td><div class="labelBox">{rs:ENCODING}:</div></td>
		<td>
			<select name="r[encoding]">
			<option value="none">---</option>
			{row:ENCODING_SELECT}
			<option value="{id}" {selected}>{title}</option>
			{/row}
			</select>
		</td>
		</tr>

		<tr class="line">
		<td><div class="labelBox">{rs:SYSTEM_STATUS}:</div></td>
		<td>
			<select name="r[status]">
			<option value="none">---</option>
			{row:STATUS_SELECT}
			<option value="{id}" {selected}>{title}</option>
			{/row}
			</select>
		</td>
		</tr>

		<tr class="line">
		<td><div class="labelBox">{rs:MAILING_GROUPS}:</div></td>
		<td>
			<select name="r[group]">
			<option value="none">---</option>
			{row:GROUP_SELECT}
			<option value="{id}" {selected}>{title}</option>
			{/row}
			</select>
		</td>
		</tr>

		{row:CUSTOM_FIELDS}
		{line}
		{/row}

		<tr class="line">
		<td><div class="labelBox">{rs:DUPLICATED}:</div></td>
		<td>
			<div class="checkBox"><input type="radio" name="r[duplicated]" id="skip" value="0"{if:!duplicated} checked{/if}></div>
			<div class="label"><label for="skip">{rs:SKIP}</label></div>
			<div class="checkBox"><input type="radio" name="r[duplicated]" id="replace" value="1"{if:duplicated} checked{/if}></div>
			<div class="label"><label for="replace">{rs:REPLACE}</label></div>
			<div class="br"><img src="{global:PATH}img/spacer.gif" width="1" height="1" border="0" /></div>
		</td>
		</tr>

		<tr>
		<td><img src="{global:PATH}img/spacer.gif" width="200" height="1" border="0" alt=""></td>
		<td width="100%"><img src="{global:PATH}img/spacer.gif" width="1" height="1" border="0" alt=""></td>
		</tr>
		</table>
		<input type="hidden" name="save" value="1" class="hidden">
		</form>
		<div class="info">{rs:INFO_IMPORT}</div>
	</div>
</div>
<div class="actionPanelLeft">
	<div class="actionPanelRight">
		<div class="actionPanelBottom">
			<div class="actionPanelBottomLeft">
				<div class="actionPanelBottomRight p16">
					<div id="actionBottom" class="right">
						<div class="button actionNext">
							<div class="buttonRight">
								<div class="buttonMiddle">{rs:NEXT}</div>
							</div>
						</div>

						<div class="br"><img src="{global:PATH}img/spacer.gif" width="1" height="1" border="0" /></div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>

<script>
	$(".actionNext").click(function() {
		$("#editForm").submit();
	});
	$("#editForm").keydown(function(event) {
  		if (event.keyCode == '13' && event.target.nodeName!='TEXTAREA') $(".actionNext").triggerHandler('click');
	});
</script>
