<{include file="db:weblinks_header.html"}>

<table width="98%" cellspacing="1" cellpadding="2" border="0">

  <{if $category_image != ""}>
    <tr><td><{$category_image}></td></tr>
  <{/if}>

  <tr>
  <td class="newstitle">
  <a href="<{$module_url}>/index.php"><{$lang_main}></a>&nbsp;
  <img src="<{$module_url}>/images/arrow1.gif" border="0" alt="arrow" />&nbsp;

<!-- Start path list -->
  <{section name=j loop=$catpath}>
    <{if $smarty.section.j.last}>
      <b><{$catpath[j].title}></b>
    <{else}>
      <a href="<{$module_url}>/viewcat.php?cid=<{$catpath[j].cid}>"><{$catpath[j].title}></a>
      &nbsp;<img src="<{$module_url}>/images/arrow2.gif" border="0" alt="arrow" />&nbsp;
    <{/if}>
  <{/section}>
<!-- End path list -->

  &nbsp;(<{$category_totallink}>)
  </td>
  </tr>
</table>

<{if count($subcategories) gt 0}>
  <table width="90%">
    <tr>

    <{foreach item=subcat from=$subcategories}>
      <td align="left"><a href="<{$module_url}>/viewcat.php?cid=<{$subcat.id}>"><b><{$subcat.title}></b></a>&nbsp;(<{$subcat.totallinks}>)<br />
      <font class="subcategories"><{$subcat.infercategories}></font></td>
      <{if $subcat.count is div by 4}>
        </tr><tr>
      <{/if}>
    <{/foreach}>

    </tr>
  </table>
<{/if}>

<br />
<hr />

<{if $show_links == true}>
  <{if $show_navi == true}>
    <div>
    <{$lang_sortby}>&nbsp;&nbsp;
    <{$lang_title}> (<a href="<{$module_url}>/viewcat.php?cid=<{$category_id}>&amp;sortid=0">
    <img src="<{$module_url}>/images/up.gif" border="0" align="middle" alt="<{$lang_sort_0}>" /></a>
    <a href="<{$module_url}>/viewcat.php?cid=<{$category_id}>&amp;sortid=1">
    <img src="<{$module_url}>/images/down.gif" border="0" align="middle" alt="<{$lang_sort_1}>" /></a>)
    <{$lang_date}> (<a href="<{$module_url}>/viewcat.php?cid=<{$category_id}>&amp;sortid=2">
    <img src="images/up.gif" border="0" align="middle" alt="<{$lang_sort_2}>" /></a>
    <a href="<{$module_url}>/viewcat.php?cid=<{$category_id}>&amp;sortid=3">
    <img src="<{$module_url}>/images/down.gif" border="0" align="middle" alt="<{$lang_sort_3}>" /></a>)
    <{$lang_rating}> (<a href="<{$module_url}>/viewcat.php?cid=<{$category_id}>&amp;sortid=4">
    <img src="<{$module_url}>/images/up.gif" border="0" align="middle" alt="<{$lang_sort_4}>" /></a>
    <a href="<{$module_url}>/viewcat.php?cid=<{$category_id}>&amp;sortid=5">
    <img src="<{$module_url}>/images/down.gif" border="0" align="middle" alt="<{$lang_sort_5}>" /></a>)
    <{$lang_popularity}> (<a href="<{$module_url}>/viewcat.php?cid=<{$category_id}>&amp;sortid=6">
    <img src="<{$module_url}>/images/up.gif" border="0" align="middle" alt="<{$lang_sort_6}>" /></a>
    <a href="<{$module_url}>/viewcat.php?cid=<{$category_id}>&amp;sortid=7">
    <img src="<{$module_url}>/images/down.gif" border="0" align="middle" alt="<{$lang_sort_7}>" /></a>) <br />
    <b><{$lang_cursortedby}></b>
    </div>
    <hr />
  <{/if}>
  <br />

  <table width="98%" cellspacing="0" cellpadding="10" border="0">
    <tr><td width="100%" align="center" valign="top">
    <!-- Start link loop -->
    <{section name=i loop=$links}>
      <{include file="db:weblinks_link.html" link=$links[i]}>
    <{/section}>
    <!-- End link loop -->
    </td></tr>
  </table>

  <br /><br />
  <div style="text-align:center;"><{$page_navi}></div>

<{elseif $show_linklist == true}>
  <h4><{$lang_latestlistings}></h4>

  <table width="98%" cellspacing="0" cellpadding="10" border="0">
    <tr>
    <td width="100%" align="center" valign="top">

<!-- Start new link loop -->
    <{section name=i loop=$links}>
      <{include file="db:weblinks_linklist.html" link=$links[i]}>
    <{/section}>
<!-- End new link loop -->

    </td></tr>
  </table>
<{/if}>

<{include file="db:system_notification_select.html"}>
