<PCPIN:TPL name="main">
<table id="main_contents" border="0" cellspacing="0" cellpadding="0" width="100%">
  <tr>
    <td id="contents_header">
      Players
    </td>
  </tr>
  <tr>
    <td>
      <table class="contents_tbl" id="contents_tbl" border="0" cellspacing="0" cellpadding="0" width="100%">
        <PCPIN:TPL name="players_list" type="condition" conditionvar="DISPLAY">
          <PCPIN:SUB condition="empty">
            <tr>
              <td style="text-align:center">
                <b>No players found met your search criteria</b>
              </td>
            </tr>
          </PCPIN:SUB>
          <PCPIN:SUB condition="default">
            <PCPIN:TPL name="pages" type="simplecondition" requiredvars="TOTAL_PAGES" />
            <tr>
              <td style="text-align:center;width:1%;">
                <b>#</b>
              </td>
              <td style="text-align:center">
                <b>Name</b>
                &nbsp;
                <a href="{FORMLINK}?do=players&amp;player_search_name_enc={PLAYER_SEARCH_NAME_ENC}&amp;sort_by=name&amp;sort_dir=asc">
                  <img alt="Sort results by name in ascending order" title="Sort results by name in ascending order" src="./image/icons/arrow_up_13x9.gif" />
                </a>
                <a href="{FORMLINK}?do=players&amp;player_search_name_enc={PLAYER_SEARCH_NAME_ENC}&amp;sort_by=name&amp;sort_dir=desc">
                  <img alt="Sort results by name in descending order" title="Sort results by name in descending order" src="./image/icons/arrow_down_13x9.gif" />
                </a>
              </td>
              <td style="text-align:center">
                <b>Rating</b>
                &nbsp;
                <a href="{FORMLINK}?do=players&amp;player_search_name_enc={PLAYER_SEARCH_NAME_ENC}&amp;sort_by=rating&amp;sort_dir=asc">
                  <img alt="Sort results by rating in ascending order" title="Sort results by rating in ascending order" src="./image/icons/arrow_up_13x9.gif" />
                </a>
                <a href="{FORMLINK}?do=players&amp;player_search_name_enc={PLAYER_SEARCH_NAME_ENC}&amp;sort_by=rating&amp;sort_dir=desc">
                  <img alt="Sort results by rating in descending order" title="Sort results by rating in descending order" src="./image/icons/arrow_down_13x9.gif" />
                </a>
              </td>
              <td style="text-align:center">
                <b>Kills</b>
                &nbsp;
                <a href="{FORMLINK}?do=players&amp;player_search_name_enc={PLAYER_SEARCH_NAME_ENC}&amp;sort_by=kills&amp;sort_dir=asc">
                  <img alt="Sort results by kills in ascending order" title="Sort results by kills in ascending order" src="./image/icons/arrow_up_13x9.gif" />
                </a>
                <a href="{FORMLINK}?do=players&amp;player_search_name_enc={PLAYER_SEARCH_NAME_ENC}&amp;sort_by=kills&amp;sort_dir=desc">
                  <img alt="Sort results by kills in descending order" title="Sort results by kills in descending order" src="./image/icons/arrow_down_13x9.gif" />
                </a>
              </td>
              <td style="text-align:center">
                <b>Deaths</b>
                &nbsp;
                <a href="{FORMLINK}?do=players&amp;player_search_name_enc={PLAYER_SEARCH_NAME_ENC}&amp;sort_by=deaths&amp;sort_dir=asc">
                  <img alt="Sort results by deaths in ascending order" title="Sort results by deaths in ascending order" src="./image/icons/arrow_up_13x9.gif" />
                </a>
                <a href="{FORMLINK}?do=players&amp;player_search_name_enc={PLAYER_SEARCH_NAME_ENC}&amp;sort_by=deaths&amp;sort_dir=desc">
                  <img alt="Sort results by deaths in descending order" title="Sort results by deaths in descending order" src="./image/icons/arrow_down_13x9.gif" />
                </a>
              </td>
              <td style="text-align:center">
                <b>K/D</b>
                &nbsp;
                <a href="{FORMLINK}?do=players&amp;player_search_name_enc={PLAYER_SEARCH_NAME_ENC}&amp;sort_by=kills_deaths&amp;sort_dir=asc">
                  <img alt="Sort results by kills/deaths average in ascending order" title="Sort results by kills/deaths average in ascending order" src="./image/icons/arrow_up_13x9.gif" />
                </a>
                <a href="{FORMLINK}?do=players&amp;player_search_name_enc={PLAYER_SEARCH_NAME_ENC}&amp;sort_by=kills_deaths&amp;sort_dir=desc">
                  <img alt="Sort results by kills/deaths average in descending order" title="Sort results by kills/deaths average in descending order" src="./image/icons/arrow_down_13x9.gif" />
                </a>
              </td>
              <td style="text-align:center">
                <b>K/G</b>
                &nbsp;
                <a href="{FORMLINK}?do=players&amp;player_search_name_enc={PLAYER_SEARCH_NAME_ENC}&amp;sort_by=kills_game&amp;sort_dir=asc">
                  <img alt="Sort results by kills/game average in ascending order" title="Sort results by kills/game average in ascending order" src="./image/icons/arrow_up_13x9.gif" />
                </a>
                <a href="{FORMLINK}?do=players&amp;player_search_name_enc={PLAYER_SEARCH_NAME_ENC}&amp;sort_by=kills_game&amp;sort_dir=desc">
                  <img alt="Sort results by kills/game average in descending order" title="Sort results by kills/game average in descending order" src="./image/icons/arrow_down_13x9.gif" />
                </a>
              </td>
              <td style="text-align:center">
                <b>KS</b>
                &nbsp;
                <a href="{FORMLINK}?do=players&amp;player_search_name_enc={PLAYER_SEARCH_NAME_ENC}&amp;sort_by=kill_sprees&amp;sort_dir=asc">
                  <img alt="Sort results by kill sprees in ascending order" title="Sort results by kill sprees in ascending order" src="./image/icons/arrow_up_13x9.gif" />
                </a>
                <a href="{FORMLINK}?do=players&amp;player_search_name_enc={PLAYER_SEARCH_NAME_ENC}&amp;sort_by=kill_sprees&amp;sort_dir=desc">
                  <img alt="Sort results by kill sprees in descending order" title="Sort results by kill sprees in descending order" src="./image/icons/arrow_down_13x9.gif" />
                </a>
              </td>
              <td style="text-align:center">
                <b>DS</b>
                &nbsp;
                <a href="{FORMLINK}?do=players&amp;player_search_name_enc={PLAYER_SEARCH_NAME_ENC}&amp;sort_by=death_sprees&amp;sort_dir=asc">
                  <img alt="Sort results by death sprees in ascending order" title="Sort results by death sprees in ascending order" src="./image/icons/arrow_up_13x9.gif" />
                </a>
                <a href="{FORMLINK}?do=players&amp;player_search_name_enc={PLAYER_SEARCH_NAME_ENC}&amp;sort_by=death_sprees&amp;sort_dir=desc">
                  <img alt="Sort results by death sprees in descending order" title="Sort results by death sprees in descending order" src="./image/icons/arrow_down_13x9.gif" />
                </a>
              </td>
              <td style="text-align:center">
                <b>Games</b>
                &nbsp;
                <a href="{FORMLINK}?do=players&amp;player_search_name_enc={PLAYER_SEARCH_NAME_ENC}&amp;sort_by=games&amp;sort_dir=asc">
                  <img alt="Sort results by games in ascending order" title="Sort results by games in ascending order" src="./image/icons/arrow_up_13x9.gif" />
                </a>
                <a href="{FORMLINK}?do=players&amp;player_search_name_enc={PLAYER_SEARCH_NAME_ENC}&amp;sort_by=games&amp;sort_dir=desc">
                  <img alt="Sort results by games in descending order" title="Sort results by games in descending order" src="./image/icons/arrow_down_13x9.gif" />
                </a>
              </td>
              <td style="text-align:center">
                <b>Time</b>
                &nbsp;
                <a href="{FORMLINK}?do=players&amp;player_search_name_enc={PLAYER_SEARCH_NAME_ENC}&amp;sort_by=time&amp;sort_dir=asc">
                  <img alt="Sort results by time in ascending order" title="Sort results by time in ascending order" src="./image/icons/arrow_up_13x9.gif" />
                </a>
                <a href="{FORMLINK}?do=players&amp;player_search_name_enc={PLAYER_SEARCH_NAME_ENC}&amp;sort_by=time&amp;sort_dir=desc">
                  <img alt="Sort results by time in descending order" title="Sort results by time in descending order" src="./image/icons/arrow_down_13x9.gif" />
                </a>
              </td>
            </tr>
            <PCPIN:TPL name="player_row">
              <tr class="tbl_hrow_{ROW}">
                <td style="text-align:right;width:1%;" title="Nr.">
                  <a name="pk_{KEY}"></a>
                  {NR}
                </td>
                <td title="Name">
                  <PCPIN:TPL name="player_row_aka_btn_show" type="simplecondition" requiredvars="KEY">
                    <a id="player_aka_list_show_{KEY}" href="{FORMLINK}?do=players&amp;player_search_name_enc={PLAYER_SEARCH_NAME_ENC}&amp;sort_by={SORT_BY}&amp;sort_dir={SORT_DIR}&amp;page={PAGE}&amp;show_aliases_key={KEY}#pk_{KEY}" onclick="showAliases('{KEY}'); return false;"><img src="./image/icons/plus_box_15x12.gif" title="Show aliases" alt="Show aliases" /></a><a id="player_aka_list_hide_{KEY}" href="{FORMLINK}?do=players&amp;player_search_name_enc={PLAYER_SEARCH_NAME_ENC}&amp;sort_by={SORT_BY}&amp;sort_dir={SORT_DIR}&amp;page={PAGE}#pk_{KEY}"onclick="hideAliases('{KEY}'); return false;" style="display:none"><img src="./image/icons/minus_box_15x12.gif" title="Hide aliases" alt="Hide aliases" /></a>
                  </PCPIN:TPL>
                  <PCPIN:TPL name="player_row_aka_btn_hide" type="simplecondition" requiredvars="DISPLAY">
                    <a id="player_aka_list_hide_{KEY}" href="{FORMLINK}?do=players&amp;player_search_name_enc={PLAYER_SEARCH_NAME_ENC}&amp;sort_by={SORT_BY}&amp;sort_dir={SORT_DIR}&amp;page={PAGE}#pk_{KEY}"onclick="hideAliases('{KEY}'); return false;"><img src="./image/icons/minus_box_15x12.gif" title="Hide aliases" alt="Hide aliases" /></a><a id="player_aka_list_show_{KEY}" href="{FORMLINK}?do=players&amp;player_search_name_enc={PLAYER_SEARCH_NAME_ENC}&amp;sort_by={SORT_BY}&amp;sort_dir={SORT_DIR}&amp;page={PAGE}&amp;show_aliases_key={KEY}#pk_{KEY}" onclick="showAliases('{KEY}'); return false;" style="display:none"><img src="./image/icons/plus_box_15x12.gif" title="Show aliases" alt="Show aliases" /></a>
                  </PCPIN:TPL>
                  <a href="{FORMLINK}?do=player_stats&amp;player_key={KEY}" title="Show stats for {NAME_TXT}">{NAME}</a>
                  <span id="player_aka_list_{KEY}" style="display:none">
                    <PCPIN:TPL name="player_row_aka_list_js" type="simplecondition" requiredvars="DISPLAY">
                      <br />
                      &nbsp;&nbsp&nbsp;- <a href="{FORMLINK}?do=player_stats&amp;player_key={KEY}" title="Show stats for {NAME_TXT}">{NAME}</a>
                    </PCPIN:TPL>
                  </span>
                  <PCPIN:TPL name="player_row_aka_list" type="simplecondition" requiredvars="DISPLAY">
                    <br />
                    &nbsp;&nbsp&nbsp;- <a href="{FORMLINK}?do=player_stats&amp;player_key={KEY}" title="Show stats for {NAME_TXT}">{NAME}</a>
                  </PCPIN:TPL>
                </td>
                <td title="{NAME_TXT}: Rating" style="text-align:right">
                  {RATING}
                </td>
                <td title="{NAME_TXT}: Kills" style="text-align:right">
                  {KILLS}
                </td>
                <td title="{NAME_TXT}: Deaths" style="text-align:right">
                  {DEATHS}
                </td>
                <td title="{NAME_TXT}: Kills/Deaths" style="text-align:right">
                  {KD}
                </td>
                <td title="{NAME_TXT}: Kills/Game" style="text-align:right">
                  {KG}
                </td>
                <td title="{NAME_TXT}: Kill sprees" style="text-align:right">
                  {KILL_SPREES}
                </td>
                <td title="{NAME_TXT}: Death sprees" style="text-align:right">
                  {DEATH_SPREES}
                </td>
                <td title="{NAME_TXT}: Played games" style="text-align:right">
                  {GAMES}
                </td>
                <td title="{NAME_TXT}: Time played" style="text-align:right">
                  {TIME_PLAYED}
                </td>
              </tr>
            </PCPIN:TPL>
            <PCPIN:TPL name="pages" type="simplecondition" requiredvars="TOTAL_PAGES">
              <tr>
                <td colspan="11" style="text-align:right">
                  <b>Pages ({TOTAL_PAGES}):</b>
                  &nbsp;&nbsp;<a href="{FORMLINK}?do=players&amp;player_search_name_enc={PLAYER_SEARCH_NAME_ENC}&amp;sort_by={SORT_BY}&amp;sort_dir={SORT_DIR}&amp;page=1" title="Go to first page">&laquo;First</a>
                  <PCPIN:TPL name="pages_previous" type="simplecondition" requiredvars="PAGE">
                    &nbsp;&nbsp;<a href="{FORMLINK}?do=players&amp;player_search_name_enc={PLAYER_SEARCH_NAME_ENC}&amp;sort_by={SORT_BY}&amp;sort_dir={SORT_DIR}&amp;page={PAGE}" title="Go to previous page">&laquo;</a>
                  </PCPIN:TPL>
                  <PCPIN:TPL name="pages_page" type="condition" conditionvar="LINKED">
                    <PCPIN:SUB condition="empty">
                      &nbsp;&nbsp;[{PAGE}]
                    </PCPIN:SUB>
                    <PCPIN:SUB condition="default">
                      &nbsp;&nbsp;<a href="{FORMLINK}?do=players&amp;player_search_name_enc={PLAYER_SEARCH_NAME_ENC}&amp;sort_by={SORT_BY}&amp;sort_dir={SORT_DIR}&amp;page={PAGE}" title="Go to page [{PAGE}]">{PAGE}</a>
                    </PCPIN:SUB>
                  </PCPIN:TPL>
                  <PCPIN:TPL name="pages_next" type="simplecondition" requiredvars="PAGE">
                    &nbsp;&nbsp;<a href="{FORMLINK}?do=players&amp;player_search_name_enc={PLAYER_SEARCH_NAME_ENC}&amp;sort_by={SORT_BY}&amp;sort_dir={SORT_DIR}&amp;page={PAGE}" title="Go to next page">&raquo;</a>
                  </PCPIN:TPL>
                  &nbsp;&nbsp;<a href="{FORMLINK}?do=players&amp;player_search_name_enc={PLAYER_SEARCH_NAME_ENC}&amp;sort_by={SORT_BY}&amp;sort_dir={SORT_DIR}&amp;page={TOTAL_PAGES}" title="Go to last page">Last&raquo;</a>
                </td>
              </tr>
            </PCPIN:TPL>
          </PCPIN:SUB>
        </PCPIN:TPL>
      </table>
    </td>
  </tr>
</table>
</PCPIN:TPL>