<PCPIN:TPL name="main">
<table id="main_contents" border="0" cellspacing="0" cellpadding="0" width="100%">
  <tr>
    <td id="contents_header">
      Player Profile
    </td>
  </tr> 
  <tr>
    <td>
      <table class="contents_tbl" border="0" cellspacing="5" cellpadding="0" width="100%">
        <PCPIN:TPL name="profile_page" 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">
            <tr>
              <td style="text-align:center;border:0px;width:180px;">
                <table class="contents_tbl" id="classes_tbl" border="0" cellspacing="0" cellpadding="0" width="100%">
                  <tr>
                    <td style="padding:0px;text-align:center;">
                      <img src="{PLAYER_IMG}" title="{PLAYER_IMG_TITLE}" alt="{PLAYER_IMG_TITLE}" class="player_image" /></td>
                  </tr>
                </table>
                <br />
                <table class="contents_tbl" id="classes_tbl" border="0" cellspacing="0" cellpadding="0" width="100%">
                  <tr>
                    <td style="text-align:center">
                      <b>Class</b>
                    </td>
                    <td style="text-align:center">
                      <b>Time</b>
                    </td>
                  </tr>
                  <PCPIN:TPL name="team_classes" type="simplecondition" requiredvars="DISPLAY">
                    <tr class="tbl_hrow_{ROW}">
                      <td>
                        {CLASS}
                      </td>
                      <td style="text-align:right">
                        {TIME}
                      </td>
                    </tr>
                  </PCPIN:TPL>
                </table>
                <br />
                <table id="player_aliases_tbl" class="contents_tbl" border="0" cellspacing="0" cellpadding="0" width="100%">
                  <tr>
                    <td style="text-align:center">
                      <b>Aliases</b>
                    </td>
                  </tr>
                  <PCPIN:TPL name="player_aliases" type="simplecondition" requiredvars="DISPLAY">
                    <tr class="tbl_hrow_{ROW}">
                      <td style="text-align:center">
                        {NAME}
                      </td>
                    </tr>
                  </PCPIN:TPL>
                </table>
              </td>
              <td style="text-align:center;border:0px;">
                <table class="contents_tbl" border="0" cellspacing="0" cellpadding="0" width="100%">
                  <tr>
                    <td class="tbl_hrow_name" style="text-align:center">
                      <h3>{NAME}</h3>
                    </td>
                  </tr>
                </table>
                <br />
                <table id="player_stats_tbl" class="contents_tbl" border="0" cellspacing="0" cellpadding="0" width="100%">
                  <tr>
                    <td style="text-align:center" colspan="6">
                      <b>Gaming stats</b>
                    </td>
                  </tr>
                  <tr class="tbl_hrow_1">
                    <td style="width:23%">
                      Kills
                    </td>
                    <td style="width:10%;text-align:right;">
                      {KILLS}
                    </td>
                    <td style="width:23%">
                      Dynamite plant
                    </td>
                    <td style="width:10%;text-align:right">
                      {DYNAMITE_PLANT}
                    </td>
                    <td style="width:23%">
                      Health given
                    </td>
                    <td style="width:10%;text-align:right">
                      {HEALTH_GIVEN}
                    </td>
                  </tr>
                  <tr class="tbl_hrow_2">
                    <td>
                      Deaths
                    </td>
                    <td style="text-align:right">
                      {DEATHS}
                    </td>
                    <td>
                      Dynamite diffuse
                    </td>
                    <td style="text-align:right">
                      {DYNAMITE_DIFFUSE}
                    </td>
                    <td>
                      Health taken
                    </td>
                    <td style="text-align:right">
                      {HEALTH_TAKEN}
                    </td>
                  </tr>
                  <tr class="tbl_hrow_1">
                    <td>
                      Teamkills
                    </td>
                    <td style="text-align:right">
                      {TEAMKILLS}
                    </td>
                    <td>
                      Repairs
                    </td>
                    <td style="text-align:right">
                      {REPAIRS}
                    </td>
                    <td>
                      Ammo given
                    </td>
                    <td style="text-align:right">
                      {AMMO_GIVEN}
                    </td>
                  </tr>
                  <tr class="tbl_hrow_2">
                    <td>
                      Teamdeaths
                    </td>
                    <td style="text-align:right">
                      {TEAMDEATHS}
                    </td>
                    <td>
                      Revives
                    </td>
                    <td style="text-align:right">
                      {REVIVES}
                    </td>
                    <td>
                      Ammo taken
                    </td>
                    <td style="text-align:right">
                      {AMMO_TAKEN}
                    </td>
                  </tr>
                  <tr class="tbl_hrow_1">
                    <td>
                      Kill sprees
                    </td>
                    <td style="text-align:right">
                      {KILL_SPREES}
                    </td>
                    <td>
                      Objectives taken
                    </td>
                    <td style="text-align:right">
                      {OBJECTIVES_TAKEN}
                    </td>
                    <td>
                      &nbsp;
                    </td>
                    <td style="text-align:right">
                      &nbsp;
                    </td>
                  </tr>
                  <tr class="tbl_hrow_2">
                    <td>
                      Longest kill spree
                    </td>
                    <td style="text-align:right">
                      {LONGEST_KILL_SPREE}
                    </td>
                    <td>
                      Disguises
                    </td>
                    <td style="text-align:right">
                      {DISGUISES}
                    </td>
                    <td>
                      Time Axis
                    </td>
                    <td style="text-align:right">
                      {TIME_AXIS}
                    </td>
                  </tr>
                  <tr class="tbl_hrow_1">
                    <td>
                      Death sprees
                    </td>
                    <td style="text-align:right">
                      {DEATH_SPREES}
                    </td>
                    <td>
                      &nbsp;
                    </td>
                    <td style="text-align:right">
                      &nbsp;
                    </td>
                    <td>
                      Time Allies
                    </td>
                    <td style="text-align:right">
                      {TIME_ALLIES}
                    </td>
                  </tr>
                  <tr class="tbl_hrow_2">
                    <td>
                      Longest death spree
                    </td>
                    <td style="text-align:right">
                      {LONGEST_DEATH_SPREE}
                    </td>
                    <td>
                      &nbsp;
                    </td>
                    <td style="text-align:right">
                      &nbsp;
                    </td>
                    <td>
                      Time Spectator
                    </td>
                    <td style="text-align:right">
                      {TIME_SPECTATOR}
                    </td>
                  </tr>
                  <tr class="tbl_hrow_1">
                    <td>
                      First killer
                    </td>
                    <td style="text-align:right">
                      {FIRST_KILLER}
                    </td>
                    <td>
                      &nbsp;
                    </td>
                    <td style="text-align:right">
                      &nbsp;
                    </td>
                    <td>
                      Time total
                    </td>
                    <td style="text-align:right">
                      {TIME_TOTAL}
                    </td>
                  </tr>
                  <tr class="tbl_hrow_2">
                    <td>
                      First victim
                    </td>
                    <td style="text-align:right">
                      {FIRST_VICTIM}
                    </td>
                    <td>
                      &nbsp;
                    </td>
                    <td style="text-align:right">
                      &nbsp;
                    </td>
                    <td>
                      Avg. ping
                    </td>
                    <td style="text-align:right">
                      {AVG_PING}
                    </td>
                  </tr>
                </table>
                <br />
                <table id="weapon_stats_tbl" class="contents_tbl" border="0" cellspacing="0" cellpadding="0" width="100%">
                  <tr>
                    <td style="text-align:center" colspan="6">
                      <b>Weapon stats</b>
                    </td>
                  </tr>
                  <tr>
                    <td style="text-align:center">
                      <b>Weapon / Mean Of Death</b>
                    </td>
                    <td style="text-align:center">
                      <b>Kills</b>
                    </td>
                    <td style="text-align:center">
                      <b>Deaths</b>
                    </td>
                    <td style="text-align:center">
                      <b>Teamkills</b>
                    </td>
                    <td style="text-align:center">
                      <b>Teamdeaths</b>
                    </td>
                    <td style="text-align:center">
                      &nbsp;
                    </td>
                  </tr>
                  <PCPIN:TPL name="weapon_stats" type="simplecondition" requiredvars="DISPLAY">
                    <tr class="tbl_hrow_{ROW}" title="{WEAPON}">
                      <td style="text-align:center;vertical-align:middle;">
                        {WEAPON}
                      </td>
                      <td style="text-align:center;vertical-align:middle;">
                        {KILLS}
                      </td>
                      <td style="text-align:center;vertical-align:middle;">
                        {DEATHS}
                      </td>
                      <td style="text-align:center;vertical-align:middle;">
                        {TEAMKILLS}
                      </td>
                      <td style="text-align:center;vertical-align:middle;">
                        {TEAMDEATHS}
                      </td>
                      <td style="text-align:center;padding:0px;vertical-align:middle;">
                        <img id="{ROW}" src="{MOD_IMG}" alt="" title="" height="11px" onload="loadedThumbs.push(new Array(this, 'weapon_img_{IMG_NR}'))" />
                        <img src="{MOD_IMG}" alt="" title="" id="weapon_img_{IMG_NR}" class="mod_image" style="display:none" />
                      </td>
                    </tr>
                  </PCPIN:TPL>
                </table>
                <br />
                <table border="0" cellspacing="0" cellpadding="0" width="100%">
                  <tr valign="top">
                    <td width="50%" style="text-align:center;border:0px;padding:3px;">
                      <table id="favorite_victims_tbl" class="contents_tbl" border="0" cellspacing="0" cellpadding="0" width="100%">
                        <tr>
                          <td style="text-align:center" colspan="4">
                            <b>Favorite Victims (top {MAX_FAVORITE_VICTIMS})</b>
                          </td>
                        </tr>
                        <tr>
                          <td style="text-align:center">
                            <b>Name</b>
                          </td>
                          <td style="text-align:center">
                            <b>Kills</b>
                          </td>
                          <td style="text-align:center">
                            <b>Deaths</b>
                          </td>
                          <td style="text-align:center">
                            <b>Eff%</b>
                          </td>
                        </tr>
                        <PCPIN:TPL name="favorite_victims" type="simplecondition" requiredvars="DISPLAY">
                          <tr class="tbl_hrow_{ROW}">
                            <td style="text-align:center">
                              <a href="{FORMLINK}?do=player_stats&amp;player_key={KEY}" title="Show stats for {NAME_TXT}">{NAME}</a>
                            </td>
                            <td style="text-align:right">
                              {KILLS}
                            </td>
                            <td style="text-align:right">
                              {DEATHS}
                            </td>
                            <td style="text-align:right">
                              {EFFICIENCY}
                            </td>
                          </tr>
                        </PCPIN:TPL>
                      </table>
                    </td>
                    <td width="50%" style="text-align:center;border:0px;padding:3px;">
                      <table id="worst_enemies_tbl" class="contents_tbl" border="0" cellspacing="0" cellpadding="0" width="100%">
                        <tr>
                          <td style="text-align:center" colspan="4">
                            <b>Worst enemies (top {MAX_WORST_ENEMIES})</b>
                          </td>
                        </tr>
                        <tr>
                          <td>
                            <b>Name</b>
                          </td>
                          <td style="text-align:center">
                            <b>Kills</b>
                          </td>
                          <td style="text-align:center">
                            <b>Deaths</b>
                          </td>
                          <td style="text-align:center">
                            <b>Eff%</b>
                          </td>
                        </tr>
                        <PCPIN:TPL name="worst_enemies" type="simplecondition" requiredvars="DISPLAY">
                          <tr class="tbl_hrow_{ROW}">
                            <td>
                              <a href="{FORMLINK}?do=player_stats&amp;player_key={KEY}" title="Show stats for {NAME_TXT}">{NAME}</a>
                            </td>
                            <td style="text-align:right">
                              {KILLS}
                            </td>
                            <td style="text-align:right">
                              {DEATHS}
                            </td>
                            <td style="text-align:right">
                              {EFFICIENCY}
                            </td>
                          </tr>
                        </PCPIN:TPL>
                      </table>
                    </td>
                  </tr>
                </table>
              </td>
              <td style="text-align:center;border:0px;width:180px;">
                <table id="recent_games_tbl" class="contents_tbl" border="0" cellspacing="0" cellpadding="0" width="100%">
                  <tr>
                    <td style="text-align:center" colspan="2">
                      <b>Recent games</b>
                    </td>
                  </tr>
                  <tr>
                    <td style="text-align:center;width:1%;">
                      <b>Nr.</b>
                    </td>
                    <td style="text-align:center">
                      <b>Map</b>
                    </td>
                  </tr>
                  <PCPIN:TPL name="recent_games" type="simplecondition" requiredvars="DISPLAY">
                    <tr class="tbl_hrow_{ROW}" onclick="$('game_details_{NR}').click()">
                      <td style="text-align:center;width:1%;">
                        <a id="game_details_{NR}" href="{FORMLINK}?do=game_stats&amp;game_nr={NR}" title="Show statistics for this game">{NR}</a>
                      </td>
                      <td style="text-align:center" id="map_name_cell_{NR}">
                        {MAP}
                        <img id="recent_games_{NR}" src="./image/clearpixel.gif" alt="" title="" onload="loadedThumbs.push(new Array($('map_name_cell_{NR}'), 'recent_game_{NR}'))" />
                        <img src="{MAP_IMG}" alt="" title="" id="recent_game_{NR}" class="map_image" style="display:none" />
                      </td>
                    </tr>
                  </PCPIN:TPL>
                </table>
              </td>
            </tr>
          </PCPIN:SUB>
        </PCPIN:TPL>
      </table>
    </td>
  </tr>
</table>
</PCPIN:TPL>