  <? if ($pubuserrole>=2) { ?>
    <table border=0 cellspacing=1 cellpadding=2 width=760>
    <form action="index.php?module=classifier&task=categories" method="post" name="filterform" id="filterform">
    <tr valign=top>
    <td valign=top class=newscontent>
    Select Group: 
    <select name="groupid" id="groupid" onChange="javascript:switch_selection();">
    <? include_once('object-selectusergroupall.tpl'); ?>
    </select>
    </td>
    </tr>
    </form>
    </table>
  <? } ?>

  <table border=1 cellspacing=1 cellpadding=2 width=760 style="border: 1px inset;">
  <tr valign=top>
  <td valign=top width=30 class=listheader>No.</td>
  <td valign=top width=240 class=listheader>Information Category</td>
  <td valign=top width=410 class=listheader>Description</td>
  <td valign=top width=80 class=listheader>Options</td>
  </tr>

  <? foreach ($categories_list as $mycategory) { ?>

    <tr valign=top>
    <td valign=top width=30 class=listnumber><?=$mycategory['recordno'];?></td>
    <td valign=top width=240 class=listcontent><?=$mycategory['category_name'];?></td>
    <td valign=top width=410 class=listcontent><?=$mycategory['category_description'];?>&nbsp;</td>
    <td valign=top width=80 class=listcontent>
    <a href="index.php?module=classifier&task=subjects&catid=<?=$mycategory['category_pkey'];?>"><img src="images/icon/folder.png" border=0 alt="Subject Headings"></a>
    <a href="index.php?module=classifier&task=categoryview&itemid=<?=$mycategory['category_pkey'];?>"><img src="gfx/options/b_view.png" border=0 alt="View"></a>
    <a href="index.php?module=classifier&task=categoryedit&itemid=<?=$mycategory['category_pkey'];?>"><img src="gfx/options/b_edit.png" border=0 alt="Edit"></a>
    <a href="index.php?module=classifier&task=categorydelete&itemid=<?=$mycategory['category_pkey'];?>"><img src="gfx/options/b_drop.png" border=0 alt="Delete"></a>
    </td>
    </tr>

  <? } ?>

  </table>

  <script type="text/javascript">

  function switch_selection() {
    document.filterform.submit();
  }

  </script>
