{*
  ===============================================================

  inGenio X
  http://ingenio.area421.com

  Created by 
  Julian Moreno Hidalgo (Software developer)
  Jesus Moreno Hidalgo (Communication's tree)

  inGenio X is a free software licensed under CC-GNU GPL

  ===============================================================
*}

<div class="rutas"><a href="{$smarty.const.RUTA_INICIO}len{$smarty.const.IGUAL}{$smarty.const.IDIOMA_ACTUAL}">{$smarty.const.LEN_24}</a> : <a href="{$smarty.const.RUTA_INICIO}len{$smarty.const.IGUAL}{$smarty.const.IDIOMA_ACTUAL}{$smarty.const.AMPER}adt{$smarty.const.IGUAL}1">{$smarty.const.LEN_114}</a></div>
<div class="div_contenido_add">
{* mensajes *}
{if $form_add_traduccion_msj == 1}<div class="cat_vacia">{$smarty.const.LEN_131}</div>{/if}
{if $form_add_traduccion_msj == 2}<div class="cat_vacia">{$smarty.const.LEN_132}</div>{/if}
{if $form_add_traduccion_msj == 3}<div class="cat_vacia">{$smarty.const.LEN_133}</div>{/if}
{if $form_add_traduccion_msj == 4}<div class="cat_vacia">{$smarty.const.LEN_134}</div>{/if}
{if $form_add_traduccion_msj == 5}<div class="cat_vacia">{$smarty.const.LEN_76}</div>{/if}

{* ayuda *}
<div class="ayuda_add">
{$smarty.const.LEN_116}
</div>

{* FORMULARIO *}
<form enctype="multipart/form-data" action="{$smarty.const.RUTA_INICIO}len{$smarty.const.IGUAL}{$smarty.const.IDIOMA_ACTUAL}" method="post" name="formADD" onsubmit="return validar_add(this);">

{* items *}
<div class="grupos_add">
* {$smarty.const.LEN_129}
&nbsp;<select name="itemID" class="input_add_selec">
	<option value="">...</option>
{section name=c loop=$form_add_traduccion_items}
	<option value="{$form_add_traduccion_items[c].itemID}">{$form_add_traduccion_items[c].itemID} - {$form_add_traduccion_items[c].titulo|truncate:45:"...":true}</option>
{/section}
</select>
</div>

{* idioma *}
<div class="grupos_add">
* {$smarty.const.LEN_128}
&nbsp;<input name="idioma" maxlength="255" value="" type="text" class="input_add">
</div>

{* traduccion *}
<div class="grupos_add">
{$smarty.const.LEN_130}
<br />
<textarea name="traduccion" id="traduccion" class="input_add_texto input_editor" rows="25"></textarea>
</div>

{* securimage *}
<div class="grupos_add">
{$form_add_traduccion_securimage}
&nbsp;&nbsp;<a onclick="document.getElementById('image').src = '{$smarty.const.RUTA_INICIO_IMG}paqs/scimg/securimage_show.php?sid=' + Math.random(); return false" title="{$smarty.const.LEN_135}" style="text-decoration:none;"><span class="conex_input_img_reload">&nbsp;</span></a>
<br />
<input type="text" name="img_add_gen" class="input_add_img" maxlength="10" />
</div>

{* envio *}
<div class="grupos_add">
* {$smarty.const.LEN_44}
&nbsp;&nbsp;<input type="submit" value="{$smarty.const.LEN_127}" class="input_boton_comen" />
<input type="hidden" name="add_trad" value="1" />
</div>

{* js *}
<script language="javascript" type="text/javascript">
function validar_add (form)
{literal}{{/literal}
	var alerta = "{$smarty.const.LEN_72}";
		if (relleno(form.idioma.value))
		{literal}{{/literal} 
			alert(alerta); form.idioma.focus(); return false; 
		}
		if (relleno(form.itemID.value))
		{literal}{{/literal} 
			alert(alerta); form.itemID.focus(); return false; 
		}
		if (relleno(form.img_add_gen.value))
		{literal}{{/literal} 
			alert(alerta); form.img_add_gen.focus(); return false; 
		}

}
</script>

</form>
{* FIN FORMULARIO *}

</div>