<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: {
				Bilder_Klein :{required:true, range:[40,60]},  	
				Bilder_Mittel :{required:true, range:[90,140]}, 
				Bilder_Gross :{required:true, range:[320,640]}, 
				Transparenz :{required:true, range:[15,100]}, 
				Bilder_Seite :{required:true, range:[20,100]}, 
				Bilder_Zeile :{required:true, range:[2,5]}, 		
				Limit_Start :{required:true, range:[10,25]},
				Quali_Gross :{required:true, range:[60,100]}
			}, 
			messages: 
			{
			}
	}
	);
}
)
// -->
</script>
{/literal}


<div class="header">{#Gallery_settings#}</div>
<form name="editForm" id="editForm" method="post" action="">
<div class="headers">{#Gallery_imgS#}<br /><small>{#Gallery_imgInf#}</small>
</div>
  <table width="100%" border="0" cellspacing="0" cellpadding="1">
    <tr>
      <td class="row_left" width="250">{#Gallery_set_tsmall#}</td>
      <td class="row_right"><input name="Bilder_Klein" type="text" class="input" value="{$res->Bilder_Klein}" size="4" maxlength="3">
        {#Pixels#}</td>
    </tr>
    <tr>
      <td class="row_left">{#Gallery_set_tnormal#}</td>
      <td class="row_right"><input name="Bilder_Mittel" type="text" class="input" value="{$res->Bilder_Mittel}" size="4" maxlength="3">
      {#Pixels#}</td>
    </tr>
    <tr>
      <td class="row_left">
      <span {popup sticky=$config_vars.POPSTICKY   width=400 text=$config_vars.Gallery_set_tbigInf}><img class="absmiddle" src="{$imgpath}/help.png" alt="" /></span>
      {#Gallery_set_tbig#}</td>
      <td class="row_right"><input name="Bilder_Gross" type="text" class="input" value="{$res->Bilder_Gross}" size="4" maxlength="3">
      {#Pixels#}</td>
    </tr>
    <tr>
      <td class="row_left">
      <span {popup sticky=$config_vars.POPSTICKY   width=400 text=$config_vars.Gallery_set_qualiInf}><img class="absmiddle" src="{$imgpath}/help.png" alt="" /></span>
     {#Gallery_set_quali#}</td>
      <td class="row_right"><input name="Quali_Gross" type="text" class="input" value="{$res->Quali_Gross}" size="4" maxlength="3"></td>
    </tr>
    <tr>
      <td class="row_left">
      <span {popup sticky=$config_vars.POPSTICKY   width=400 text=$config_vars.Gallery_set_wmInf}><img class="absmiddle" src="{$imgpath}/help.png" alt="" /></span>
      {#Gallery_set_wm#}</td>
      <td class="row_right">
      
      <label><input type="radio" name="Wasserzeichen_Vorschau" value="1" {if $res->Wasserzeichen_Vorschau == 1} checked="checked"{/if}/>{#Yes#}</label>
      <label><input type="radio" name="Wasserzeichen_Vorschau" value="0" {if $res->Wasserzeichen_Vorschau == 0} checked="checked"{/if}/>{#No#}</label>      </td>
    </tr>
    <tr>
      <td class="row_left">
      <span {popup sticky=$config_vars.POPSTICKY   width=400 text=$config_vars.Gallery_set_wmdlInf}><img class="absmiddle" src="{$imgpath}/help.png" alt="" /></span>
      {#Gallery_set_wmdl#}</td>
      <td class="row_right">
      <label><input type="radio" name="Wasserzeichen" value="1" {if $res->Wasserzeichen == 1} checked="checked"{/if}/>{#Yes#}</label>
      <label><input type="radio" name="Wasserzeichen" value="0" {if $res->Wasserzeichen == 0} checked="checked"{/if}/>{#No#}</label>      </td>
    </tr>
    <tr>
      <td class="row_left">{#Gallery_set_wm_trans#}</td>
      <td class="row_right">
      <input name="Transparenz" type="text" class="input" value="{$res->Transparenz}" size="4" maxlength="3">
      %
      </td>
    </tr>
    <tr>
      <td class="row_left">{#Gallery_renew#}</td>
      <td class="row_right">
      <label><input type="radio" name="renew" value="1" />{#Yes#}</label>
      <label><input type="radio" name="renew" value="0" checked="checked"/>{#No#}</label>      </td>
    </tr>
    </table>
    
    <div class="headers">{#Gallery_sLimit#}</div>
    <table width="100%" border="0" cellspacing="0" cellpadding="1">
    <tr>
      <td width="250" class="row_left">{#Gallery_set_ppsite#}</td>
      <td class="row_right"><input name="Bilder_Seite" type="text" class="input" value="{$res->Bilder_Seite}" size="4" maxlength="3"></td>
    </tr>
    <tr>
      <td class="row_left">{#Gallery_set_pprow#}</td>
      <td class="row_right"><input name="Bilder_Zeile" type="text" class="input" value="{$res->Bilder_Zeile}" size="4" maxlength="3"></td>
    </tr>
    <tr>
      <td class="row_left">{#Gallery_set_categspp#}</td>
      <td class="row_right"><input name="Limit_Start" type="text" class="input" value="{$res->Limit_Start}" size="4" maxlength="3"></td>
    </tr>
  </table>
    
    <div class="headers">{#Gallery_sOther#}</div>
  <table width="100%" border="0" cellspacing="0" cellpadding="1">
    

    
    <tr>
      <td width="250" class="row_left">{#Gallery_set_diareload#}</td>
      <td class="row_right">
      <label><input type="radio" name="Diashow_Zeit" value="3" {if $res->Diashow_Zeit == 3} checked="checked"{/if}/>3 s</label> 
      <label><input type="radio" name="Diashow_Zeit" value="5" {if $res->Diashow_Zeit == 5} checked="checked"{/if}/>5 s</label> 
      <label><input type="radio" name="Diashow_Zeit" value="10" {if $res->Diashow_Zeit == 10} checked="checked"{/if}/>10 s</label
      ></td>
    </tr>
    
    <tr>
      <td class="row_left">{#Gallery_set_showmosts#}</td>
      <td class="row_right">
      <label><input type="radio" name="Meist_Gesehen" value="1" {if $res->Meist_Gesehen == 1} checked="checked"{/if}/>{#Yes#}</label>
      <label><input type="radio" name="Meist_Gesehen" value="0" {if $res->Meist_Gesehen == 0} checked="checked"{/if}/>{#No#}</label>      </td>
    </tr>
    <tr>
      <td class="row_left">{#Gallery_set_dl#}</td>
      <td class="row_right">
      <label><input type="radio" name="Download" value="1" {if $res->Download == 1} checked="checked"{/if}/>{#Yes#}</label>
      <label><input type="radio" name="Download" value="0" {if $res->Download == 0} checked="checked"{/if}/>{#No#}</label>      </td>
    </tr>
    <tr>
      <td class="row_left">{#Gallery_set_comments#}</td>
      <td class="row_right">
      <label><input type="radio" name="Kommentare" value="1" {if $res->Kommentare == 1} checked="checked"{/if}/>{#Yes#}</label>
      <label><input type="radio" name="Kommentare" value="0" {if $res->Kommentare == 0} checked="checked"{/if}/>{#No#}</label>      </td>
    </tr>
    <tr>
      <td class="row_left">{#Gallery_set_favs#}</td>
      <td class="row_right">
      <label><input type="radio" name="Favoriten" value="1" {if $res->Favoriten == 1} checked="checked"{/if}/>{#Yes#}</label>
      <label><input type="radio" name="Favoriten" value="0" {if $res->Favoriten == 0} checked="checked"{/if}/>{#No#}</label>      </td>
    </tr>
    <tr>
      <td class="row_left">
      <span {popup sticky=$config_vars.POPSTICKY   width=400 text=$config_vars.Gallery_set_bannercInf}><img class="absmiddle" src="{$imgpath}/help.png" alt="" /></span>
      {#Gallery_set_bannerc#}</td>
      <td class="row_right"><textarea name="Banner_Code" cols="40" rows="5" class="input" id="Banner_Code">{$res->Banner_Code|koobispecialchars}</textarea></td>
    </tr>
  </table>
<input type="submit" class="button big" value="{#Save#}" />
<input name="save" type="hidden" id="save" value="1">
</form>
