  <table border='0' cellpadding='3' cellspacing='1' class='bgcol1 adminranks'>
    <tr class='forumhead'><td colspan='2' class='admrow'>
      <div class='admtab'><a href='{LINK_BOARD}'>{TABLE_HEADLINE}</a></div>
      <div class='admtab'><a href='{LINK_FORUMS}'>{FORUMS_HEADLINE}</a></div>
      <div class='admtab'><a href='{LINK_USERS}'>{USERS_HEADLINE}</a></div>
      <div class='admtab sel'><a href='{LINK_USERRANKS}'>{USERRANKS_HEADLINE}</a></div></td></tr>
      

    <!-- IF FLAGS.EDITRANK -->
      <tr class='forumhead'><td colspan='2'>{EDIT_RANK_HEADLINE}</td></tr>
      <tr class='forumhead'><td colspan='2' class='admrow'>
      <div class='admtab2 small'><a href='{LINK_USERRANKS}'>{BACK}</a></div></td></tr>
      <tr><td colspan='2'>
          <form method='post' action='{CONF.MAINSCRIPT}'>
        <table border='0' cellpadding='3' cellspacing='1' class='bgcol1'>
          <tr class='foruminner'><td class='descr b'>{DESCR_RANK}</td>
            <td class='field'><input type='text' name='descr' value='{FORM_VAL_RANK_DESCR}' class='f100' />
              <input type='hidden' name='action' value='edit_userrank' />
              <input type='hidden' name='rank_id' value='{FORM_VAL_RANK_ID}' />
              <input type='hidden' name='img' value='{FORM_VAL_RANK_IMG}' /></td></tr>
          <tr class='foruminner'><td class='b'>{DESCR_IMG}</td>
            <td><div class='rankholder'><img src='{IMG_RANK_SRC}' alt=''class='sbbrank' /></div>
            <a href='#' onclick="openrankimgs('{CONF.RELPATH}');return false;">{DESCR_SELECT_RANK_IMG}</a></td></tr>
    
      <tr class='forumfoot'><td colspan='2' class='c'><input type='submit' value='{DESCR_SAVE}' /></td></tr>
      </table>
      </form>
      <div id='sbb_modalbg'></div>
      <div id='sbbrankimgs'></div>
      
    <!-- ENDIF FLAGS.EDITRANK -->
    
<!-- IF FLAGS.SHOWRANKS -->   
    <!-- IF RANKS -->

    <tr class='forumhead'><td colspan='2'>{DEFINED_USERRANKS_HEADLINE}</td></tr>
    <tr class='forumhead'><td colspan='2' class='admrow'>
      <div class='admtab2 small'><a href='{CONF.MAINSCRIPT}?todo=adminuserranks&amp;section=edit'>{ADDRANK}</a></div></td></tr>
    
    <tr class='foruminner'><td colspan='2'>
      
      <table border='0' cellpadding='3' cellspacing='1' class='bgcol1'>
        <tr class='forumhead'><td>{DESCR_RANK}</td>
          <td class='c'>{DESCR_IMG}</td>
          <td class='rankusr c'>{DESCR_USERS}</td>
          <td class='ranktools c'>Tools</td>
      </tr>
      
      
      <!-- BEGIN RANKS -->
        <tr class='foruminner'><td>{RANK_DESCR}</td>
              <td class='c'><img src='{RANK_IMG}' alt='' /></td>
              <td class='c'>{RANK_USERS}</td>
              <td class='c'>
                <a href='{top.CONF.MAINSCRIPT}?todo=adminuserranks&amp;section=edit&amp;rank_id={RANK_ID}'><img src='{top.CONF.TEMPLATE_PATH}/images/icons/pencil.png' alt='{top.IMG_EDITTITLE}' title='{top.IMG_EDITTITLE}' /></a>
                <a href='{top.CONF.MAINSCRIPT}?action=delrank&amp;rank_id={RANK_ID}' onclick="return confirm('{top.CONFIRM_DELRANK}');"><img src='{top.CONF.TEMPLATE_PATH}/images/icons/delete.png' alt='{top.IMG_DELTITLE}' title='{top.IMG_DELTITLE}' /></a></td>
          </tr>
      <!-- END RANKS -->
    </table>
    
    <!-- ELSE -->
      <tr class='forumhead'><td colspan='2' class='admrow'>
        <div class='admtab2 small'><a href='{CONF.MAINSCRIPT}?todo=adminuserranks&amp;section=edit'>{ADDRANK}</a></div></td></tr>
      <tr class='foruminner'><td colspan='2'><div class='infobox'>{NO_RANKS_DEFINED}</div></td></tr>
    <!-- ENDIF RANKS -->
<!-- ENDIF FLAGS.SHOWRANKS -->
  </td></tr></table>
