


<script type="text/javascript">
{include file="$incpath/other/validate_js.tpl"}
{literal}
$.validator.setDefaults({
	submitHandler: function() 
	{ 
		document.forms['editForm'].submit();
	}
});

$().ready(function() 
{
	$("#editForm").validate(
	{ 
	rules: {
				Name_1: {required: true},
				Tags: {maxLength: 255}
			}, 
			messages: 
			{
			}
	}
	);
}
)
{/literal}
</script>

<div class="popbox">
<div class="header">{#Gallery_Edit#}</div>
<form id="editForm" name="editForm" method="post" action="">
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="180" class="row_left">{#Global_Name#} ({$language_long_1})</td>
      <td class="row_right"><input name="Name_1" type="text" class="input" value="{$res->Name_1|koobispecialchars}" size="50"></td>
    </tr>
    <tr>
      <td class="row_left">{#Global_Name#} ({$language_long_2})</td>
      <td class="row_right"><input name="Name_2" type="text" class="input" value="{$res->Name_2|koobispecialchars}" size="50"></td>
    </tr>
    <tr>
      <td class="row_left">{#Global_Name#} ({$language_long_3})</td>
      <td class="row_right"><input name="Name_3" type="text" class="input" value="{$res->Name_3|koobispecialchars}" size="50"></td>
    </tr>
    <tr>
      <td class="row_left">{#Global_descr#} ({$language_long_1})</td>
      <td class="row_right">{$Beschreibung_1}</td>
    </tr>
    <tr>
      <td class="row_left">{#Global_descr#} ({$language_long_2})</td>
      <td class="row_right">{$Beschreibung_2}</td>
    </tr>
    <tr>
      <td class="row_left">{#Global_descr#} ({$language_long_3})</td>
      <td class="row_right">{$Beschreibung_3}</td>
    </tr>
    <tr>
      <td class="row_left">{#Global_Active#}</td>
      <td class="row_right">
       <label><input type="radio" name="Aktiv" value="1" {if $res->Aktiv == 1} checked="checked"{/if}/>{#Yes#}</label>
      <label><input type="radio" name="Aktiv" value="0" {if $res->Aktiv == 0} checked="checked"{/if}/>{#No#}</label>
      </td>
    </tr>
    <tr>
      <td class="row_left">
      <span {popup sticky=$config_vars.POPSTICKY   width=400 text=$config_vars.GalleryTagHelp}><img class="absmiddle" src="{$imgpath}/help.png" alt="" /></span>
      {#Tags#}
      </td>
      <td class="row_right"><input name="Tags" type="text" class="input" value="{$res->Tags|koobispecialchars}" size="50" maxlength="255"></td>
    </tr>
  </table>
<input type="submit" class="button big" value="{#Save#}" />
<input type="button" onclick="window.close();" class="button big" value="{#Close#}" />
<input name="save" type="hidden" id="save" value="1">
</form>

</div>