{if $smarty.request.print!=1} {strip}
{if $smarty.request.p=='index' || $smarty.request.p==''}
{else}
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="box_archive_selector">
  <tr>
    <td class="box_innerhead">{$lang.archive}</td>
  </tr>
  <tr>
    <td class="box_innerbody"><form action="index.php?p=newsarchive" method="post" name="fp" id="fp">
        <table  border="0" cellspacing="1" cellpadding="3">
          <tr>
            <td>{$lang.word_to_search}</td>
            <td><input name="q" type="text" id="q" value="{$q|escape:"html"}" size="40" maxlength="100" />
              <input name="search" type="submit" class="button" id="search" value="{$lang.search}" />
              <input type="hidden" name="area" value="{$area}" /></td>
          </tr>
          <tr>
            <td>{$lang.selector_shownews}</td>
            <td>
<select name="categ" id="categ">
<option value="all"> {$lang.allcategs} </option>             
{foreach from=$dropdown item=item}
{if $item->parent_id == 0}
<option style="font-weight:bold;font-style:italic" value="{$item->catid}" {if $smarty.request.categ==$item->catid} selected="selected" {/if}> {$item->visible_title} </option>
{else}
<option value="{$item->catid}" {if $smarty.request.categ==$item->catid} selected="selected" {/if}> {$item->visible_title} </option>
{/if}
{/foreach}
</select>
<select name="pp" id="pp">
{section name=pp loop=90 step=5}
<option value="{$smarty.section.pp.index+10}" {if $smarty.request.pp==$smarty.section.pp.index+10}selected{/if}>{$smarty.section.pp.index+10}{$lang.eachsite}</option>
{/section}
</select>
            </td>
          </tr>
          <tr>
            <td>{$lang.calendar_period}</td>
            <td><select name="s_day" id="s_day">
                <option value=""></option>
                
{section name=sd loop=32 start=1}

                <option value="{$smarty.section.sd.index}" {if $smarty.request.s_day==$smarty.section.sd.index}selected="selected"{/if}>{$smarty.section.sd.index}</option>
                
{/section}

              </select>
              <select name="s_month" id="s_month">
                <option value=""></option>
                
{section name=sm loop=13 start=1}

                <option value="{$smarty.section.sm.index}" {if $smarty.request.s_month==$smarty.section.sm.index}selected="selected"{/if}>{$smarty.section.sm.index}</option>
                
{/section}

              </select>
              <select name="s_year" id="s_year" >
                <option value=""></option>
                
{assign var="year" value=$smarty.now|date_format:"%Y"}
{section name=sy loop=$year+1 start=2000}

                <option value="{$smarty.section.sy.index}" {if $smarty.request.s_year==$smarty.section.sy.index}selected="selected"{/if}>{$smarty.section.sy.index}</option>
                
{/section}

              </select>
              -
              <select name="e_day" id="e_day">
                <option value=""></option>
                
                
{section name=sd loop=32 start=1}

                
                <option value="{$smarty.section.sd.index}" {if $smarty.request.e_day==$smarty.section.sd.index}selected="selected"{/if}>{$smarty.section.sd.index}</option>
                
                
{/section}

              
              </select>
              <select name="e_month" id="e_month">
                <option value=""></option>
                
                
{section name=sm loop=13 start=1}

                
                <option value="{$smarty.section.sm.index}" {if $smarty.request.e_month==$smarty.section.sm.index}selected="selected"{/if}>{$smarty.section.sm.index}</option>
                
                
{/section}

              
              </select>
              <select name="e_year" id="e_year" >
                <option value=""></option>
                
                
{assign var="year" value=$smarty.now|date_format:"%Y"}
{section name=sy loop=$year+1 start=2000}

                
                <option value="{$smarty.section.sy.index}" {if $smarty.request.e_year==$smarty.section.sy.index}selected="selected"{/if}>{$smarty.section.sy.index}</option>
                
                
{/section}

              
              </select>
</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td>{$lang.rssfeed}</td>
            <td><a target="_blank" href="{$rsslink}"><img src="templates/{$theme}/img/page/rss.gif" alt="" border="0" class="absmiddle" /></a> </td>
          </tr>
        </table>
      </form></td>
  </tr>
</table>
{/if}
{/strip}
{/if}