{include file="$admingentemplates/admin_top.tpl"}
<div class="back">
    <a href="{$site_url}{$site_root}/admin/admin_modules.php">{$lang.button.back}</a>
</div>
<div class="cr"></div>
<div class="show_help" style="display: none;">&nbsp;</div>
<div class="red_header">{$header.razdel_name}&nbsp;|&nbsp;{$header.languages_edit}</div>
<div class="cr">&nbsp;</div>
<div class="cr">&nbsp;</div>
{if $help.mobile_languages_edit != ''}
    <div class="help_text" style="display:block;">
        <div class="close_help">
            <img src="{$site_root}{$template_root}/images/close_help.png" alt="">
        </div>
        <div class="help_body">
            <span class="help_title">{$lang.help}:</span>{$help.mobile_languages_edit}
        </div>
    </div>
{/if}
<div>
	{$lang.mobile.select_language_to_edit}:
	<select id="lang_id">
	{foreach item=item from=$langs_files}
	<option {if $id_lang eq $item.id}selected{/if} value="{$item.id}">{$item.name}</option>
	{/foreach}
	</select>
	<a class="admin_button_major" onclick="document.location.href='admin_mobile.php?sel=edit_lang&id_lang='+document.getElementById('lang_id').value;">{$lang.button.edit}<span>&nbsp;</span></a>
</div>
{if $data}
<div>
<form action="admin_mobile.php" method="POST" name="lang_form" enctype="multipart/form-data">
<input type="hidden" name="sel" value="save_lang">
<input type="hidden" name="id_lang" value="{$id_lang}">
<table cellpadding="3" cellspacing="0">
{foreach item=item from=$data}
<tr>
	<td>{$item.key}:&nbsp;</td>
	<td><textarea style="width: 350px; height: 35px;" name="langdata[{$item.key}]">{$item.value}</textarea></td>
</tr>
{/foreach}
<tr>
	<td colspan="2">
		<a class="admin_button_major" onclick="javascript: document.lang_form.submit();">{$lang.button.save}<span>&nbsp;</span></a>
	</td>
</tr>
</table>
</form>
</div>
{/if}
{include file="$admingentemplates/admin_bottom.tpl"}