<div class="adminnavi">
  <a href="./index.php"><{$module->getShow('name')}></a>
  &raquo;&raquo; <a href="./index.php?op=CategoryList"><{$smarty.const._MI_MYUPLOADER_LANG_CATEGORY_LIST}></a>
</div>

<h3><{$smarty.const._MI_MYUPLOADER_LANG_CATEGORY_LIST}></h3>

<ul class="toptab">
  <li><a href="index.php?op=CategoryEdit"><{$smarty.const._AD_MYUPLOADER_LANG_ADD_A_NEW_CATEGORY}></a></li>
</ul>

<table class="outer">
  <tr>
<{*    <th><{$smarty.const._MD_MYUPLOADER_LANG_CATEGORY}>*}>
    <th><{$smarty.const._AD_MYUPLOADER_LANG_CAT_NAME}><br />
      <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=<{$smarty.const.MYUPLOADER_CATEGORY_SORT_KEY_CAT_NAME}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /></a>
      <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=-<{$smarty.const.MYUPLOADER_CATEGORY_SORT_KEY_CAT_NAME}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /></a></th>
    <th><{$smarty.const._AD_MYUPLOADER_LANG_CAT_DESCRIPTION}><br />
      <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=<{$smarty.const.MYUPLOADER_CATEGORY_SORT_KEY_CAT_DESCRIPTION}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /></a>
      <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=-<{$smarty.const.MYUPLOADER_CATEGORY_SORT_KEY_CAT_DESCRIPTION}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /></a></th>
    <th><{$smarty.const._AD_MYUPLOADER_LANG_CAT_MAXSIZE}><br />
      <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=<{$smarty.const.MYUPLOADER_CATEGORY_SORT_KEY_CAT_MAXSIZE}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /></a>
      <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=-<{$smarty.const.MYUPLOADER_CATEGORY_SORT_KEY_CAT_MAXSIZE}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /></a></th>
    <th><{$smarty.const._AD_MYUPLOADER_LANG_CAT_MAXLENGTH}><br />
      <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=<{$smarty.const.MYUPLOADER_CATEGORY_SORT_KEY_CAT_MAXLENGTH}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /></a>
      <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=-<{$smarty.const.MYUPLOADER_CATEGORY_SORT_KEY_CAT_MAXLENGTH}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /></a></th>
    <th><{$smarty.const._AD_MYUPLOADER_LANG_CAT_RESIZELENGTH}><br />
      <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=<{$smarty.const.MYUPLOADER_CATEGORY_SORT_KEY_CAT_RESIZELENGTH}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /></a>
      <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=-<{$smarty.const.MYUPLOADER_CATEGORY_SORT_KEY_CAT_RESIZELENGTH}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /></a></th>
    <th><{$smarty.const._AD_MYUPLOADER_LANG_CAT_THUMBLENGTH}><br />
      <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=<{$smarty.const.MYUPLOADER_CATEGORY_SORT_KEY_CAT_THUMBLENGTH}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /></a>
      <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=-<{$smarty.const.MYUPLOADER_CATEGORY_SORT_KEY_CAT_THUMBLENGTH}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /></a></th>
    <th><{$smarty.const._AD_MYUPLOADER_LANG_CAT_ACTIVE}><br />
      <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=<{$smarty.const.MYUPLOADER_CATEGORY_SORT_KEY_CAT_ACTIVE}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /></a>
      <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=-<{$smarty.const.MYUPLOADER_CATEGORY_SORT_KEY_CAT_ACTIVE}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /></a></th>
    <th><{$smarty.const._AD_MYUPLOADER_LANG_CAT_WEIGHT}><br />
      <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=<{$smarty.const.MYUPLOADER_CATEGORY_SORT_KEY_CAT_WEIGHT}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /></a>
      <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=-<{$smarty.const.MYUPLOADER_CATEGORY_SORT_KEY_CAT_WEIGHT}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /></a></th>
<{*    <th><{$smarty.const._MD_MYUPLOADER_LANG_CAT_PID}><br />
      <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=<{$smarty.const.MYUPLOADER_CATEGORY_SORT_KEY_CAT_PID}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /></a>
      <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=-<{$smarty.const.MYUPLOADER_CATEGORY_SORT_KEY_CAT_PID}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /></a></th>*}>
    <th><{$smarty.const._AD_MYUPLOADER_LANG_CONTROL}></th>
  </tr>
  <{foreach item=obj from=$objects}>
    <tr class="<{cycle values='odd,even'}>">
<{*      <td></td>*}>
      <td><{$obj->getShow('cat_name')}></td>
      <td><{$obj->getShow('cat_description')|xoops_substr:"0":"50"}></td>
      <td><{$obj->getShow('cat_maxsize')}></td>
      <td><{$obj->getShow('cat_maxlength')}></td>
      <td><{$obj->getShow('cat_resizelength')}></td>
      <td><{$obj->getShow('cat_thumblength')}></td>
      <td><{$obj->getShow('cat_active')}></td>
      <td><{$obj->getShow('cat_weight')}></td>
<{*      <td><{$obj->getShow('cat_pid')}></td>*}>
      <td>
        <a href="<{$xoops_url}>/modules/myuploader/index.php?op=ImageList&amp;category_id=<{$obj->getShow('category_id')}>"><img src="<{"icons/view.gif"|theme}>" alt="<{$smarty.const._MD_MYUPLOADER_LANG_LIST}>" title="<{$smarty.const._MD_MYUPLOADER_LANG_LIST}>" /></a>
        <a href="<{$xoops_url}>/modules/myuploader/index.php?op=ImageEdit&amp;category_id=<{$obj->getShow('category_id')}>"><img src="<{"icons/add.gif"|theme}>" alt="<{$smarty.const._MD_MYUPLOADER_LANG_ADD_IMAGE}>" title="<{$smarty.const._MD_MYUPLOADER_LANG_ADD_IMAGE}>" /></a>
        <a href="./index.php?op=CategoryEdit&amp;category_id=<{$obj->getShow('category_id')}>"><img src="<{"icons/edit.gif"|theme}>" alt="<{$smarty.const._EDIT}>" title="<{$smarty.const._EDIT}>" /></a>
        <a href="./index.php?op=CategoryDelete&amp;category_id=<{$obj->getShow('category_id')}>"><img src="<{"icons/delete.gif"|theme}>" alt="<{$smarty.const._DELETE}>" title="<{$smarty.const._DELETE}>" /></a>
      </td>
    </tr>
  <{/foreach}>
</table>
<div class="pagenavi"><{xoops_pagenavi pagenavi=$pageNavi}></div>
