
{if $smarty.request.details!=1}
<br />
<table width="100%"  border="0" cellpadding="3" cellspacing="1" class="box_inner">
  <tr>
    <td colspan="3" class="box_innerhead">{if $smarty.get.search_news==1}
      {assign var=sinn value='&amp;search_news=1'}
      {/if}
      {if $smarty.get.search_articles==1}
      {assign var=sina value='&amp;search_articles=1'}
      {/if}
      {if $smarty.get.search_downloads==1}
      {assign var=sind value='&amp;search_downloads=1'}
      {/if}
      {if $smarty.get.search_links==1}
      {assign var=sind value='&amp;search_links=1'}
      {/if}
	   {if $smarty.get.search_faq==1}
      {assign var=sind value='&amp;search_faq=1'}
      {/if}
      <strong>
      {$lang.res_searchresults}
      </strong> &quot;
      {$smarty.get.q}
&quot; </td>
  </tr>
  <tr>
    <td colspan="3">{if $numall >= 1}
      {$countall}
      {else}
      {$lang.res_no_searchresults}
      {/if}
    </td>
  </tr>
  <tr>
    <td colspan="3"><img src="templates/{$theme}/img/page/pixel.gif" width="4" height="6" alt="" /></td>
  </tr>
  
  {if $count_news >= 1}
  <tr class="row_second">
    <td width="30%" class="row_second"><img src="templates/{$theme}/img/page/rel.gif" alt="" />
      {$lang.found_news}
      :</td>
    <td width="10%" class="row_second"><div align="center"> <strong>
        {$count_news}
        </strong>
        {$lang.res_searchmatches}
      </div></td>
    <td><a href="index.php?p=query&amp;area={$area}&amp;search_news=1&amp;q={$smarty.get.q}&amp;details=1">
      {$lang.res_buttonshow}
      </a> &nbsp;|&nbsp; <a target="_blank" href="index.php?p=query&amp;area={$area}&amp;search_news=1&amp;q={$smarty.get.q}&amp;details=1">
      {$lang.res_new_window}
      </a> </td>
  </tr>
  {/if}
  {if $count_articles >= 1}
  <tr class="row_second">
    <td width="30%" class="row_second"><img src="templates/{$theme}/img/page/rel.gif" alt="" />
      {$lang.found_articles}
      : </td>
    <td width="10%" class="row_second"><div align="center"> <strong>
        {$count_articles}
        </strong>
        {$lang.res_searchmatches}
      </div></td>
    <td><a href="index.php?p=query&amp;area={$area}&amp;search_articles=1&amp;q={$smarty.get.q}&amp;details=1">
      {$lang.res_buttonshow}
      </a> &nbsp;|&nbsp; <a target="_blank" href="index.php?p=query&amp;area={$area}&amp;search_articles=1&amp;q={$smarty.get.q}&amp;details=1">
      {$lang.res_new_window}
      </a> </td>
  </tr>
  {/if}
  {if $count_downloads >= 1}
  <tr class="row_second">
    <td width="30%" class="row_second"><img src="templates/{$theme}/img/page/rel.gif" alt="" />
      {$lang.found_downloads}
      : </td>
    <td width="10%" class="row_second"><div align="center"> <strong>
        {$count_downloads}
        </strong>
        {$lang.res_searchmatches}
      </div></td>
    <td><a href="index.php?p=query&amp;area={$area}&amp;search_downloads=1&amp;q={$smarty.get.q}&amp;details=1">
      {$lang.res_buttonshow}
      </a> &nbsp;|&nbsp; <a target="_blank" href="index.php?p=query&amp;area={$area}&amp;search_downloads=1&amp;q={$smarty.get.q}&amp;details=1">
      {$lang.res_new_window}
      </a> </td>
  </tr>
  {/if}
  {if $count_links >= 1}
  <tr class="row_second">
    <td width="30%" class="row_second"><img src="templates/{$theme}/img/page/rel.gif" alt="" />
      {$lang.found_links}
      : </td>
    <td width="10%" class="row_second"><div align="center"> <strong>
        {$count_links}
        </strong>
        {$lang.res_searchmatches}
      </div></td>
    <td><a href="index.php?p=query&amp;area={$area}&amp;search_links=1&amp;q={$smarty.get.q}&amp;details=1">
      {$lang.res_buttonshow}
      </a> &nbsp;|&nbsp; <a target="_blank" href="index.php?p=query&amp;area={$area}&amp;search_links=1&amp;q={$smarty.get.q}&amp;details=1">
      {$lang.res_new_window}
      </a> </td>
  </tr>
  {/if}
    {if $count_faq >= 1}
  <tr class="row_second">
    <td width="30%" class="row_second"><img src="templates/{$theme}/img/page/rel.gif" alt="" />
      {$lang.found_faq}
      : </td>
    <td width="10%" class="row_second"><div align="center"> <strong>
        {$count_faq}
        </strong>
        {$lang.res_searchmatches}
      </div></td>
    <td><a href="index.php?p=query&amp;area={$area}&amp;search_faq=1&amp;q={$smarty.get.q}&amp;details=1">
      {$lang.res_buttonshow}
      </a> &nbsp;|&nbsp; <a target="_blank" href="index.php?p=query&amp;area={$area}&amp;search_faq=1&amp;q={$smarty.get.q}&amp;details=1">
      {$lang.res_new_window}
      </a> </td>
  </tr>
  {/if}
  
  
  {if $count_static >=1}
    <tr class="row_second">
    <td width="30%" class="row_second"><img src="templates/{$theme}/img/page/rel.gif" alt="" />
      {$lang.found_static}: </td>
    <td width="10%" class="row_second"><div align="center"> <strong>
        {$count_static}
        </strong>
        {$lang.res_searchmatches}
      </div></td>
    <td><a href="index.php?p=query&amp;area={$area}&amp;search_static=1&amp;q={$smarty.get.q}&amp;details=1">
      {$lang.res_buttonshow}
      </a> &nbsp;|&nbsp; <a target="_blank" href="index.php?p=query&amp;area={$area}&amp;search_static=1&amp;q={$smarty.get.q}&amp;details=1">
      {$lang.res_new_window}
      </a> </td>
  </tr>
  {/if}

    
  {if $count_gallery >=1}
    <tr class="row_second">
    <td width="30%" class="row_second"><img src="templates/{$theme}/img/page/rel.gif" alt="" />
      {$lang.found_gallery}: </td>
    <td width="10%" class="row_second"><div align="center"> <strong>
        {$count_gallery}
        </strong>
        {$lang.res_searchmatches}
      </div></td>
    <td><a href="index.php?p=query&amp;area={$area}&amp;search_gallery=1&amp;q={$smarty.get.q}&amp;details=1">
      {$lang.res_buttonshow}
      </a> &nbsp;|&nbsp; <a target="_blank" href="index.php?p=query&amp;area={$area}&amp;search_gallery=1&amp;q={$smarty.get.q}&amp;details=1">
      {$lang.res_new_window}
      </a> </td>
  </tr>
  {/if}
  
</table>
{/if}
{if $newsitems && $smarty.request.details==1 && $smarty.request.search_news=='1'}
<br />
<table width="100%"  border="0" cellpadding="2" cellspacing="0" class="box_inner">
  <tr>
    <td class="box_innerhead">{$lang.found_news}
    </td>
  </tr>
  {foreach from=$newsitems item=news}
  <tr class="{cycle name='ne' values='row_second,row_second'}">
    <td>
    {assign var='count' value=$count+1}
    {$count}. &nbsp;
     <a href="index.php?area={$news->area_id}&amp;p=news&amp;newsid={$news->newsid}&amp;high={$q}">
      {$news->title}
      </a>
      <div style="padding-left:12px;padding-top:2px;padding-bottom:8px">
        {$news->erg|truncate:'120'}
        <br />
        <small><a class="light"  target="_blank" href="index.php?area={$news->area_id}&amp;p=news&amp;newsid={$news->newsid}&amp;high={$q}">
        {$lang.res_new_window}
        </a> | <a class="light" href="index.php?area={$news->area_id}&amp;p=news&amp;newsid={$news->newsid}">
        {$news->erg_str|count_words}
        {$lang.wordsmore}
        </a></small> </div></td>
  </tr>
  {/foreach}
</table>
{if $pages}
<br />
{$pages}
<br />
{/if}
{/if}
{if $articleitems && $smarty.request.details==1 && $smarty.request.search_articles=='1'}
<br />
<table width="100%"  border="0" cellpadding="2" cellspacing="0" class="box_inner">
  <tr>
    <td class="box_innerhead">{$lang.found_articles}
    </td>
  </tr>
  {foreach from=$articleitems item=articles}
  <tr class="{cycle name='ar' values='row_second,row_second'}">
    <td>
    {assign var='count' value=$count+1}
    {$count}. &nbsp;
    <a href="index.php?type={$articles->type}&amp;area={$articles->area}&amp;p=articles&amp;id={$articles->id}&amp;high={$q}">
      {$articles->title}
      </a>
      <div style="padding-left:12px;padding-top:2px;padding-bottom:5px">
        {$articles->erg|truncate:'120'}
        <br />
        <small><a class="light" target="_blank" href="index.php?type={$articles->type}&amp;area={$articles->area}&amp;p=articles&amp;id={$articles->id}&amp;high={$q}">
        {$lang.res_new_window}
        </a> | <a class="light" href="index.php?type={$articles->type}&amp;area={$articles->area}&amp;p=articles&amp;id={$articles->id}&amp;high={$q}">
        {$articles->erg_str|count_words}
        {$lang.wordsmore}
        </a></small> </div></td>
  </tr>
  {/foreach}
</table>
{if $pages}
<br />
{$pages}
<br />
{/if}
{/if}
{if $downloads && $smarty.request.details==1 && $smarty.request.search_downloads=='1'}
<br />
<table width="100%"  border="0" cellpadding="2" cellspacing="0" class="box_inner">
  <tr>
    <td class="box_innerhead">{$lang.found_downloads}
    </td>
  </tr>
  {foreach from=$downloads item=download}
  <tr class="{cycle name='dl' values='row_second,row_second'}">
    <td>
    {assign var='count' value=$count+1}
    {$count}. &nbsp;
     <a href="index.php?showfile=1&amp;fid={$download->id}&amp;p=downloads&amp;area={$download->area}&amp;categ={$download->catid}&amp;high={$q}">
      {$download->title}
      </a>
      <div style="padding-left:12px;padding-top:2px;padding-bottom:5px">
        {$download->erg|truncate:'120'}
        <br />
        <small><a class="light" target="_blank" href="index.php?showfile=1&amp;fid={$download->id}&amp;p=downloads&amp;area={$download->area}&amp;categ={$download->catid}&amp;high={$q}">
        {$lang.res_new_window}
        </a> | <a class="light" href="index.php?showfile=1&amp;fid={$download->id}&amp;p=downloads&amp;area={$download->area}&amp;categ={$download->catid}&amp;high={$q}">
        {$download->erg_str|count_words}
        {$lang.wordsmore}
        </a></small> </div></td>
  </tr>
  {/foreach}
</table>
{if $pages}
<br />
{$pages}
<br />
{/if}
{/if}
{if $links && $smarty.request.details==1 && $smarty.request.search_links=='1'}
<br />
<table width="100%"  border="0" cellpadding="2" cellspacing="0" class="box_inner">
  <tr>
    <td class="box_innerhead">{$lang.found_links}
    </td>
  </tr>
  {foreach from=$links item=link}
  <tr class="{cycle name='li' values='row_second,row_second'}">
    <td>
    {assign var='count' value=$count+1}
    {$count}. &nbsp;
     <a href="index.php?showlink=1&amp;fid={$link->id}&amp;p=links&amp;area={$link->area}&amp;categ={$link->catid}&amp;high={$q}">
      {$link->title}
      </a>
      <div style="padding-left:12px;padding-top:2px;padding-bottom:5px">
        {$link->erg|truncate:'120'}
        <br />
        <small><a class="light" target="_blank" href="index.php?showlink=1&amp;fid={$link->id}&amp;p=links&amp;area={$link->area}&amp;categ={$link->catid}&amp;high={$q}">
        {$lang.res_new_window}
        </a> | <a class="light" href="index.php?showlink=1&amp;fid={$link->id}&amp;p=links&amp;area={$link->area}&amp;categ={$link->catid}&amp;high={$q}">
        {$link->erg_str|count_words}
        {$lang.wordsmore}
        </a></small> </div></td>
  </tr>
  {/foreach}
</table>
{if $pages}
<br />
{$pages}
<br />
{/if}
{/if}


{if $faqitems && $smarty.request.details==1 && $smarty.request.search_faq=='1'}
<br />
<table width="100%"  border="0" cellpadding="2" cellspacing="0" class="box_inner">
  <tr>
    <td class="box_innerhead">{$lang.found_faq}
    </td>
  </tr>
  {foreach from=$faqitems item=faq}
  <tr class="{cycle name='li' values='row_second,row_second'}">
    <td>
   {assign var='count' value=$count+1}
    {$count}. &nbsp;
    <a href="index.php?p=faq&amp;faq_id={$faq->parent_id}&amp;area={$area}&amp;high={$q}#{$faq->id}">
      {$faq->faq}
      </a>
      <div style="padding-left:12px;padding-top:2px;padding-bottom:5px">
        {$faq->erg|truncate:'120'}
        <br />
        <small><a class="light" target="_blank" href="index.php?p=faq&amp;faq_id={$faq->parent_id}&amp;area={$area}&amp;high={$q}#{$faq->id}">
        {$lang.res_new_window}
        </a> | <a class="light" href="index.php?p=faq&amp;faq_id={$faq->parent_id}&amp;area={$area}&amp;high={$q}#{$faq->id}">
        {$faq->erg_str|count_words}
        {$lang.wordsmore}
        </a></small> </div></td>
  </tr>
  {/foreach}
</table>
{if $pages}
<br />
{$pages}
<br />
{/if}
{/if}




{if $static_items && $smarty.request.details==1 && $smarty.request.search_static=='1'}
<br />
<table width="100%"  border="0" cellpadding="2" cellspacing="0" class="box_inner">
  <tr>
    <td class="box_innerhead">{$lang.found_static}
    </td>
  </tr>
  {foreach from=$static_items item=static}
  <tr class="{cycle name='li' values='row_second,row_second'}">
    <td>

    {assign var='count' value=$count+1}
    {$count}. &nbsp;
    <a href="index.php?p=static&amp;page={$static->pagename}&amp;area={$area}&amp;high={$q}#{$static->id}">
      {$static->title}
      </a>
      <div style="padding-left:12px;padding-top:2px;padding-bottom:5px">
        {$static->erg|truncate:'120'}
        <br />
        <small><a class="light" target="_blank" href="index.php?p=static&amp;page={$static->pagename}&amp;area={$area}&amp;high={$q}#{$static->id}">
        {$lang.res_new_window}
        </a> | <a class="light" href="index.php?p=static&amp;page={$static->pagename}&amp;area={$area}&amp;high={$q}#{$static->id}}">
        {$static->erg_str|count_words}
        {$lang.wordsmore}
        </a></small> </div></td>
  </tr>
  {/foreach}
</table>
{if $pages}
<br />
{$pages}
<br />
{/if}
{/if}


{if $galleryitems && $smarty.request.details==1 && $smarty.request.search_gallery=='1'}

<br />
<table width="100%"  border="0" cellpadding="2" cellspacing="0" class="box_inner">
  <tr>
    <td class="box_innerhead">{$lang.found_gallery}
    </td>
  </tr>
  {foreach from=$galleryitems item=gallery}
  {assign var='count' value=$count+1}
  <tr class="{cycle name='li' values='row_second,row_second'}">
    <td>
   {assign var='count' value=$count+1}
    {$count}. &nbsp;
    
    <a href="index.php?area={$area}&amp;p=gallery&amp;action=showimages&amp;galid={$gallery->id}&amp;high={$q}#{$gallery->id}">{$gallery->title}</a>
  
      <div style="padding-left:12px;padding-top:2px;padding-bottom:5px">
        {$gallery->erg|truncate:'120'}
        <br />
        <small><a class="light" target="_blank" href="index.php?area={$area}&amp;p=gallery&amp;action=showimages&amp;galid={$gallery->id}&amp;high={$q}#{$gallery->id}">
        {$lang.res_new_window}
        </a> | <a class="light" href="index.php?area={$area}&amp;p=gallery&amp;action=showimages&amp;galid={$gallery->id}&amp;high={$q}#{$gallery->id}">
        {$gallery->erg_str|count_words}
        {$lang.wordsmore}
        </a></small> </div></td>
  </tr>
  {/foreach}
</table>
{if $pages}
<br />
{$pages}
<br />
{/if}
{/if}


<br />

<table width="100%"  border="0" cellpadding="3" cellspacing="1" class="box_inner">
  <tr>
    <td colspan="3" class="box_innerhead">{$lang.search_new}</td>
  </tr>
  <tr>
    <td>{include file='search/mask.tpl'}</td>
  </tr>
</table>
