
{include file="../head.tpl"}
<form method="post" name="kform">
  <table width="100%"  border="0" cellpadding="4" cellspacing="1" class="tableborder">
    <tr>
      <td colspan="4" class="header">{$lang.galpictures}</td>
    </tr>
    <tr>
      <td width="1%" class="firstrow"><div align="center">
          <input name="allbox" type="checkbox" id="d" onclick="selall();" value="" />
        </div></td>
      <td class="firstrow">{$lang.picture}</td>
      <td class="firstrow">{$lang.filename}</td>
      <td class="firstrow"><div align="right"></div></td>
    </tr>
	<tr>
	<td colspan="4" class="c2">{$navi}</td>
	</tr>
    {foreach from=$gallery item=gallery}
    <tr class="{cycle name="c1" values="c1,c2"}">
      <td width="5%" valign="top"><div align="center">
          <input name="del[{$gallery.id}]" type="checkbox" id="d" value="1">
        <small>{$lang.delete}</small></div></td>
      <td width="5%" valign="top">{$gallery.image}</td>
      <td width="5%" valign="top"><input style="width:400px" name="name[{$gallery.id}]" type="text" id="name[{$gallery.id}]" value="{$gallery.name}">
        <br>
        <textarea style="width:400px" name="descr[{$gallery.id}]" cols="50" rows="5" id="descr[{$gallery.id}]">{$gallery.descr}</textarea></td>
      <td valign="top">
	 
	  <input type="button" class="button" onclick="window.open('gallery.php?area={$smarty.request.area}&amp;action=showpiccomments&amp;galid={$smarty.request.galid}&amp;img_id={$gallery.id}','comments','width=550,height=550,scrollbars=yes,menubars=no');" value="{$gallery.comments}" {if $gallery.cnum=='0'}disabled="disabled"{/if}/>
	  <br />
	  Hits: {$gallery.hits} 
	  </td>
    </tr>
    {/foreach}
    <tr>
      <td colspan="4" class="c2">{$navi}</td>
    </tr>
    <tr>
      <td colspan="4" class="secondrow"><input name="area" type="hidden" id="area" value="{$area}">
        <input name="action" type="hidden" id="action" value="showpics">
        <input name="save" type="hidden" id="save" value="1">
        <input name="galid" type="hidden" id="galid" value="{$galid}">
      <input type="submit" class="button" value="{$lang.edit}"></td></tr>
  </table>
  <br>
</form>
<form action="gallery.php?action=showpics&area={$area}&galid={$galid}" method="post" name="pform" id="pform">
  <table width="100%"  border="0" cellpadding="4" cellspacing="1" class="tableborder">
    <tr>
      <td class="firstrow">
	  <select name="pp" id="pp">
	
	  {section name=galupper loop=95 step=5}
        <option value="{$smarty.section.galupper.index+10}" {if $pp == $smarty.section.galupper.index+10}selected{/if}>{$smarty.section.galupper.index+10} / {$lang.eachsite}</option>
		 {/section}
	
      </select>
	  <input name="Submit" type="submit" class="button" value="Senden"></td>
    </tr>
  </table>
</form>
