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

$().ready(function() {
	$("#ppform").validate(
	{ 
	rules: {
				pp: {required: true,range:[2,250]}
			},
			messages: {}
	}
	);
}
);
{/literal}
function blockMsg()
{ldelim}
	jQuery.blockUI({ldelim}message: '<h2>{#Global_blockSave#}</h2>'{rdelim}); 
	setTimeout(jQuery.unblockUI, 2000); 
{rdelim}
-->
</script>
<div class="popbox">
<div class="header">{#Gallery_ImagesView#} - {$res->Name_1|koobispecialchars}</div>
{if $images}
<form  method="post" action="" name="kform" id="kform">
  <table width="100%" border="0" cellspacing="0" cellpadding="3">
  
    <tr>
      <td width="50" class="headers">&nbsp;</td>
      <td align="center" class="headers">&nbsp;</td>
      <td align="center" class="headers"><a href="index.php?do=gallery&sub=editimages&id={$smarty.request.id}&noframes=1&sort={$name1sort|default:'name1_desc'}&pp={$limit}&page={$smarty.request.page|default:1}">{#Gallery_NameText#} ({$language_long_1})</a></td>
      <td align="center" class="headers"><a href="index.php?do=gallery&sub=editimages&id={$smarty.request.id}&noframes=1&sort={$name2sort|default:'name2_desc'}&pp={$limit}&page={$smarty.request.page|default:1}">{#Gallery_NameText#} ({$language_long_2})</a></td>
      <td align="center" class="headers"><a href="index.php?do=gallery&sub=editimages&id={$smarty.request.id}&noframes=1&sort={$name3sort|default:'name3_desc'}&pp={$limit}&page={$smarty.request.page|default:1}">{#Gallery_NameText#} ({$language_long_3})</a></td>
      <td align="center" class="headers"><a href="index.php?do=gallery&sub=editimages&id={$smarty.request.id}&noframes=1&sort={$autorsort|default:'autor_desc'}&pp={$limit}&page={$smarty.request.page|default:1}">{#Global_Author#}</a></td>
      <td align="center" class="headers"><a href="index.php?do=gallery&sub=editimages&id={$smarty.request.id}&noframes=1&sort={$datesort|default:'date_asc'}&pp={$limit}&page={$smarty.request.page|default:1}">{#Global_Date#}</a></td>
      <td align="center" class="headers"><a href="index.php?do=gallery&sub=editimages&id={$smarty.request.id}&noframes=1&sort={$hitssort|default:'hits_desc'}&pp={$limit}&page={$smarty.request.page|default:1}">{#Global_Hits#}</a></td>
      <td align="center" class="headers"><img class="absmiddle" src="{$imgpath}/message.png" alt=""></td>
      <td align="center" class="headers"><input {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Global_SelAll} name="allbox" type="checkbox" id="d" onclick="selall();" value="" /></td>
    </tr>
    {foreach from=$images item=im}
    <tr class="{cycle name=$cna values='second,first'}">
      <td class="row_spacer">
      <a target="_blank" href="../index.php?p=gallery&action=showimage&id={$im->Id}&galid={$res->Id}&ascdesc=desc&categ={$res->Kategorie}">{$im->Thumb}</a>      </td>
      <td align="center" class="row_spacer">
      <a {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Gallery_ei_edit} href="javascript:void(0);" onclick="popup('index.php?do=gallery&sub=editimage&id={$im->Id}&noframes=1','galImg',1000,780,1)"><img src="{$imgpath}/image_edit.png" alt="" border="0" class="absmiddle"></a>
      </td>
      <td align="center" class="row_spacer">
      <input type="hidden" name="Id[{$im->Id}]" value="{$im->Id}" />
      <input class="input" style="width:150px" type="text" name="Name_1[{$im->Id}]" value="{$im->Name_1|koobispecialchars}"><br />
      <textarea class="input" style="width:150px" name="Beschreibung_1[{$im->Id}]">{$im->Beschreibung_1|koobispecialchars}</textarea>      </td>
      <td align="center" class="row_spacer">
      <input class="input" style="width:150px" type="text" name="Name_2[{$im->Id}]" value="{$im->Name_2|koobispecialchars}"><br />
      <textarea class="input" style="width:150px" name="Beschreibung_2[{$im->Id}]">{$im->Beschreibung_2|koobispecialchars}</textarea>      </td>
      <td align="center" class="row_spacer">
      <input class="input" style="width:150px" type="text" name="Name_3[{$im->Id}]" value="{$im->Name_3|koobispecialchars}"><br />
      <textarea class="input" style="width:150px" name="Beschreibung_3[{$im->Id}]">{$im->Beschreibung_3|koobispecialchars}</textarea></td>
      <td class="row_spacer" align="center"><a href="javascript:void(0);" onclick="popup('index.php?do=user&sub=edituser&user={$im->Autor}&noframes=1','userEdit',980,680,1)">{$im->User}</a></td>
      <td class="row_spacer" align="center">{$im->Datum|date_format:'%d.%m.%y'}</td>
      <td class="row_spacer" align="center">{$im->Klicks}</td>
      <td align="center" class="row_spacer">{if $im->Comments}<a  href="javascript:void(0);" onclick="popup('index.php?do=comments&amp;where=galerie&amp;object={$im->Id}&amp;noframes=1','galImg',1000,780,1)"><img class="absmiddle" src="{$imgpath}/message.png" alt="" border="0" /></a>{else}<img class="absmiddle" src="{$imgpath}/message_no.png" alt="" border="0" />{/if}</td>
      <td class="row_spacer" align="center">
        <input {popup sticky=$config_vars.POPSTICKY  width=100 text=$config_vars.DelInfChekbox} name="del[{$im->Id}]" type="checkbox" value="1">      </td>
    </tr>
   {/foreach}
  </table>
  <br />
<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>
<br />
{if $Navi}
<div class="navi_div">
{$Navi}
</div>
{/if}
<br />
<form name="ppform" id="ppform" method="post" action="{$ppformaction}">
{#Gallery_pp#}: <input class="input" style="width:50px" type="text" name="pp" value="{$limit}">
<input type="submit" class="button" value="{#Global_Show#}" />
</form>
{else}

<p align="center">
<h2>{#Gallery_noImages#}</h2>
<br />
<input type="button" onclick="window.close();" class="button big" value="{#Close#}" />
</p>
{/if}
</div>