<script type="text/javascript">
function showDiv(type,id){
	divs = document.getElementsByTagName('div');
	for (i=0; i<divs.length;i++){
		if (/opt_divs/.test(divs[i].className)){
			divs[i].style.display = 'none';
		}
	}
	if (!id)id = '';
	document.getElementById(type+id).style.display = 'block';
	document.anchors.item(type+id).scrollIntoView();
}
</script>
<div class="CPbigTitle" style="background-image: url(<{$xoops_url}>/modules/system/admin/pages/images/pages_big.png)"><{$lang_page_manager}></div><br />
<div style="margin-top:0; float: right; width:300px;" align="right">
  <form action="admin.php?fct=pages&op=list" method="POST">
    <input type="text" name="query" id="query" size="30" value="<{$query}>" />
    <input type="submit" name="btn" value="<{$lang_search}>" />
    <input type="submit" name="btn1" value="<{$lang_cancel}>" onclick="document.getElementById('query').value='';" />
  </form>
</div>
<br style="clear: right; line-height:1px;" />
  <table width="100%" cellspacing="1" cellpadding="0" class="outer">
    <tr align="center">
      <th width="5%"><{$lang_page_id}></th>
      <th width="10%"><{$lang_page_module}></th>
      <th align="left" width="20%"><{$lang_page_title}></th>
      <th align="left" width="25%"><{$lang_page_url}></th>
      <th width="7%"><{$lang_page_status}></th>
      <th width="13%"><{$lang_page_options}></th>
    </tr>
    <{if $pagecount > 0}>
    <{foreach item=page key=key from=$pages}>
      <tr class="<{cycle values="even,odd"}>" align="center">
        <td><{$page.page_id}></td>
        <td><{$page.module}></td>
        <td align="left"><{$page.page_title}></td>
        <td align="left"><{$page.page_url}></td>
        <td><a href="admin.php?fct=pages&op=changestatus&page_id=<{$page.page_id}>"><img src="images/<{$page.page_status}>.png" title="<{$lang_page_changests}>" alt="<{$lang_page_changests}>" /></a></td>
        <td>
          <{if $page.page_vurl != '0'}>
            <a href="<{$page.page_vurl}>" rel="external"><img src="images/view_big.png" title="<{$lang_page_prevpage}>" alt="<{$lang_page_prevpage}>" /></a>
          <{else}>
            <img src="images/view_big_off.png" title="<{$lang_page_prevpage}>" alt="<{$lang_page_prevpage}>" />
          <{/if}>
      	  <a href="admin.php?fct=pages&op=editpage&page_id=<{$page.page_id}>"><img src="images/edit_big.png" title="<{$lang_page_editpage}>" alt="<{$lang_page_editpage}>" /></a>
      	  <a href="admin.php?fct=pages&op=delpage&page_id=<{$page.page_id}>"><img src="images/delete_big.png" title="<{$lang_page_delpage}>" alt="<{$lang_page_delpage}>" /></a>
        </td>
      </tr>
    <{/foreach}>
    <{else}>
      <tr><td class="head" colspan="8" align="center"><{$lang_notfound}></td></tr>
    <{/if}>
    <tr>
      <td class="head" colspan="8" align="right">
        <{$pag}>
        <input type="button" onclick="icms_showDiv('addpageform','','hiddendiv'); return false;" value="<{$lang_page_addpage}>" />
      </td>
   </tr>
  </table>
<br />
<a name="addpageform_anchor"></a>
<div id="addpageform" class="hiddendiv" style="display:none;"><{$addpageform}></div>