
<br />
<table width="100%"  border="0" cellpadding="3" cellspacing="1" class="box_inner">
  <tr>
    <td width="20%" class="row_first">{$lang.thegalname}</td>
    <td class="row_second">{$row_gal->title}</td>
  </tr>
  {if $productname}
  <tr>
    <td width="20%" class="row_first">{$lang.product_once}</td>
    <td class="row_second"><a href="index.php?area={$area}&amp;p=product&amp;action=showdetails&amp;id={$row_gal->product}">{$productname}</a></td>
  </tr>
  {/if} {if $row_gal->descr}
  <tr>
    <td width="20%" class="row_first">{$lang.gallerydescr}</td>
    <td class="row_second">{$row_gal->descr}</td>
  </tr>
  {/if}
  <tr>
    <td width="20%" class="row_first">{$lang.gallerypicsall}</td>
    <td class="row_second">{$numall}</td>
  </tr>
  <tr>
    <td class="row_first">{$lang.created}</td>
    <td class="row_second">{$ctime}</td>
  </tr>
  <tr>
    <td class="row_first">{$lang.author}</td>
    <td class="row_second"><a href="index.php?area={$area}&amp;p=user&amp;id={$uid}">{$author}</a></td>
  </tr>
  {if count($subgal)}
  <tr>
  	<td class="row_first">{$lang.included_galleries}</td>
    <td class="row_second">
		{foreach from=$subgal item=subgallery name=subgalleries}
		<a class="light" href="index.php?area={$area}&amp;p=gallery&amp;action=showimages&amp;galid={$subgallery->id}"><small>{$subgallery->title}</small></a>&nbsp;({$subgallery->pics}){if !$smarty.foreach.subgalleries.last},&nbsp;{/if}
		{/foreach}
	</td>
  </tr>
  {/if}
  {if $row_gal->field_1}
  <tr>
    <td class="row_first">{$row_gal->field_1}</td>
    <td class="row_second">{$row_gal->field_1_text}</td>
  </tr>
  {/if}
  {if $row_gal->field_2}
  <tr>
    <td class="row_first">{$row_gal->field_2}</td>
    <td class="row_second">{$row_gal->field_2_text}</td>
  </tr>
  {/if}
  {if $row_gal->field_3}
  <tr>
    <td class="row_first">{$row_gal->field_3}</td>
    <td class="row_second">{$row_gal->field_3_text}</td>
  </tr>
  {/if}
</table>
<br />
<table width="100%" border="0" cellpadding="0" cellspacing="1" class="gallery_border">
  <tr> {foreach from=$gallery item=gal}
    <td align="center" valign="bottom" class="gallery_body"><table width="100%"  border="0" cellpadding="0" cellspacing="0" >
        <tr>
          <td class="gallery_body" align="center">
		  
		 {*
		  <a href="javascript:gbild('{$gal->img_id}','{$smarty.request.galid}','{$area}','{$ascdesc}');"><img border="0" vspace="0" src="system/thumb.php?img_id={$gal->img_id}" alt="" /></a>
		  *}
		  <a href="index.php?p=gallerypic&amp;img_id={$gal->img_id}&amp;galid={$smarty.request.galid}&amp;area={$area}&amp;ascdesc={$ascdesc}"><img border="0" vspace="0" src="system/thumb.php?img_id={$gal->img_id}" alt="" /></a>
		  
		  </td>
        </tr>
        <tr>
          <td class="gallery_footer">{if $gal->name} {$gal->name} {else} &nbsp; {/if} 
		  <br />
		  <span class="galimage_smalltext">{$lang.hits}: {$gal->hits} {if $comments=='1'}| Kommentare: {$gal->comments}{/if}</span>
		  
		  </td>
        </tr>
      </table></td>
    {if $gal->tr == 1} </tr>
  <tr> {/if} {/foreach} </tr>
</table>
<br />
<table width="100%"  border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td><table width="100%" border="0" cellpadding="2" cellspacing="0">
        <tr>
          <td>{if $navi}{$navi}{else}&nbsp;{/if}</td>
          <td align="right"><form method="post" action="index.php?galsort=1&amp;p=gallery&amp;action=showimages&amp;galid={$smarty.request.galid}&amp;area={$area}&amp;pp={$smarty.request.pp}">
              <select name="pp" id="pp">
                <option value="{$preflimit}" {if $pp == $preflimit}selected="selected"{/if}>{$preflimit} {$lang.eachsite}</option>
                
    {section name=pp loop=95 step=5}
     
                <option value="{$smarty.section.pp.index+10}" {if $pp == $smarty.section.pp.index+10}selected{/if}>{$smarty.section.pp.index+10} {$lang.eachsite}</option>
                
     {/section}
	
              </select>
              <select name="ascdesc" id="ascdesc">
                <option value="desc" {if $smarty.request.ascdesc == "desc"}selected="selected"{/if}>{$lang.desc_t}</option>
                <option value="asc" {if $smarty.request.ascdesc == "asc"}selected="selected"{/if}>{$lang.asc_t}</option>
              </select>
              <input type="submit" class="button" value="{$lang.showbutt}" />
            </form></td>
        </tr>
      </table></td>
  </tr>
</table>


