
{include file="../head.tpl"}
<form action="static.php" method="post" name="uform" id="uform">
  <table width="100%"  border="0" cellpadding="4" cellspacing="1" class="tableborder">
    <tr>
      <td class="secondrow"><table width="100%"  border="0" cellspacing="2" cellpadding="1">
          <tr>
            <td><div align="right">
                <table  border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    
                    <td><div align="right">
                        <select name="cat" id="cat">
                          <option value=""> {$langadmin.kat} ({$langadmin.all})</option>
                          
                         {foreach from=$categs item=fitem}
						  
                          <option value="{$fitem->id}" {if $smarty.request.cat == $fitem->id} selected="selected" {/if}>{$fitem->name}</option>
                          
                           {/foreach}
        				
                        </select>
                      </div></td>
                    <td><select name="selby" id="selby">
                        <option value="title" {if $smarty.request.selby == title} selected="selected" {/if}>{$langadmin.sortby} {$langadmin.title}</option>
                        <option value="hits" {if $smarty.request.selby == hits} selected="selected" {/if}>{$langadmin.sortby} {$langadmin.hits}</option>
                        <option value="ntime" {if $smarty.request.selby == ntime} selected="selected" {/if}>{$langadmin.sortby} {$langadmin.date}</option>
                        <option value="autor" {if $smarty.request.selby == autor} selected="selected" {/if}>{$langadmin.sortby} {$langadmin.autor}</option>
                      </select>
                    </td>
                    <td><select name="ud" id="ud">
					<option value="ASC" {if $smarty.request.ud == ASC} selected="selected" {/if}>{$langadmin.sortbyasc}</option>
                        <option value="DESC" {if $smarty.request.ud == DESC} selected="selected" {/if}>{$langadmin.sortbydesc}</option>
                        
                      </select>
                    </td>
                    <td>
<select name="pp" id="pp">
{section name=pp loop=95 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} / {$langadmin.eachsite}</option>
{/section}
 </select>
                    </td>
                    <td><input type="submit" class="button" value="{$langadmin.showthis}" />
					<input name="area" type="hidden" value="{$area}" />
					<input name="action" type="hidden" value="view" />
                    </td>
                  </tr>
                 
                </table>
              </div></td>
          </tr>
        </table></td>
    </tr>
  </table>
</form>

<form name="kform" method="post">
<table width="100%"  border="0" cellpadding="4" cellspacing="1" class="tableborder">

  <tr>
    <td colspan="6" class="header">{$langadmin.staticpages}</td>
    </tr>
  <tr>
    <th class="theader"><div align="left">{$langadmin.titleandlink}</div></th>
    <th class="theader">{$langadmin.kat}</th>
    <th class="theader">{$langadmin.datec} </th>
    <th class="theader">{$langadmin.autor}</th>
    <th class="theader">{$langadmin.hits}</th>
    <th class="theader">{$langadmin.actions}</th>
  </tr>
  {foreach from=$static item=st}
  <tr class="{cycle name="c0" values="c1,c2"}">
    <td class="tdspacer"><table  border="0" cellspacing="2" cellpadding="1">
      <tr>
        <td colspan="2"><strong>{$st->title}</strong></td>
        </tr>
      <tr>
        <td><input readonly="readonly" name="st{$st->id}" id="st{$st->id}" type="text" size="50" value="index.php?area={$area}&amp;p=static&amp;page={$st->pagename}"></td>
        <td><input onclick="window.open('../'+document.kform.st{$st->id}.value+'&amp;count=no','','height=480,width=800,scrollbars=yes,resizable=yes,location=yes');" type="button" class="button" value="{$langadmin.show}"></td>
      </tr>
    </table>
     </td>
    <td class="tdspacer"><div align="center">{$st->catname|sslash}</div></td>
    <td class="tdspacer">{$st->ctime}</td>
    <td class="tdspacer"><a href="user.php?action=edit&amp;id={$st->uid}">{$st->user}</a></td>
    <td class="tdspacer">{$st->hits}</td>
    <td>
<select onchange="eval(this.options[this.selectedIndex].value);selectedIndex=0;" name="mf{$st->id}" id="mf{$st->id}">
<option value="location.href = 'static.php?area={$area}&amp;action=edit&amp;id={$st->id}'">{$langadmin.editonce}</option>
<option value="if(confirm('{$langadmin.confirm_delstatic}')) location.href = 'static.php?area={$area}&amp;action=delete&amp;id={$st->id}&amp;file={$st->pagename}'">{$langadmin.delete}</option>
</select>
<input onclick="eval(document.getElementById('mf{$st->id}').value);" type="button" class="button" value="{$langadmin.go}">
	</td>
  </tr>
  {/foreach}
</table>
</form>
{if $navi}
<table width="100%"  border="0" cellpadding="4" cellspacing="1" class="tableborder">
  <tr>
    <td class="c1">{$navi}</td>
  </tr>
</table>
<br />
{/if} {include file="../foot.tpl"} 
