<?php
/*======================================================================*\
|| #################################################################### ||
|| # eGamers of Tomorrow Battlefield 3 Leaderboard                    # ||
|| # ---------------------------------------------------------------- # ||
|| # Dieses Copyright darf nicht entfernt werden                      # ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------Teil des Bf3 Leaderboards von EoT-----------------# ||
|| #                      http://eot-clan.net                         # ||
|| #################################################################### ||
\*======================================================================*/

require_once ('../inc/config.php');
require_once ('../language/'.$row['language'].'.php');

$EoT = new eGamersofTomorrow;

?>
  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
          "http://www.w3.org/TR/html4/loose.dtd">
       <head>
        <title>BF3 LB / Class</title>
        <?php echo $styleSettings; ?>
       </head>
       <body>
         <div class="body_bfLB" style="width:<?php echo $style['IndexDivWidth']; ?>px;">   
	           <?php echo $Banner; ?>
        <ul id="statstabs" class="shadetabs" style="margin-top:10px;margin-bottom:-10px;">
        <li><a href="../index.php">Leaderboard</a></li>
        <li><a href="class.php" class="selected"><?php echo LANG_CLANSTATS_TAB_KITS; ?></a></li>
        <li><a href="skill.php"><?php echo LANG_CLANSTATS_TAB_SKILL; ?></a></li>
        <li><a href="teamplay.php">Teamplay</a></li>
        <li><a href="vehicles.php"><?php echo LANG_CLANSTATS_TAB_VEHICLES; ?></a></li>
        <li><a href="weaponstats.php"><?php echo LANG_CLANSTATS_TAB_WEAPONS; ?></a></li>
        <li><a href="ribbonsstats.php">Ribbons</a></li>
        <li><a href="medalsstats.php">Medals</a></li>
        <li><a href="events.php"> Events</a></li>
        <li><a href="serverHistory.php">S.History</a></li>
      </ul>
				<table class="default" style="width:<?php echo $style['IndexTableWidth']; ?>px;">
        <td class="head" colspan="10" cellspacing="0"><?php echo LANG_CLANSTATS_TITLE; ?></td>
        <tr>
        	<td class="result" width="60px" height="70px"><img src="<?php echo $domain;?>/img/fav/big/assault.png" title="Assault" alt="assault" width="40px"/></td>
        	<td class="result" width="20px" style="border-right:<?php echo $style['result_border']; ?>"><?php echo LANG_CLANSTATS_POINTS_ASSAULT; ?></td>
        	<?php
        	$qry = "SELECT soldiername,assault FROM ".DBPrefix."generalStats ORDER by assault DESC LIMIT 5 ";
            $result = mysql_query($qry);
            while(($data = mysql_fetch_assoc($result)) !== FALSE ) {
	         ?> 
	         <td class="result" width="100px" style="font-size:11px;"><a href="../stats.php?name=<?php echo rawurlencode($data['soldiername']); ?>" target="_self"><b><?php echo $EoT->nameTrimchars($data['soldiername']); ?></b></a><br /><br /><div class="text" style="width:<?php echo $textwidth; ?>px"><?php echo $EoT->points($data['assault']); ?></div></td>
	         <?php
           }
         ?>
         <tr>
           <td class="result" width="60px" height="70px"><img src="<?php echo $domain;?>/img/fav/big/support.png" title="Support" alt="support" width="40px"/></td>
        	<td class="result" width="20px" style="border-right:<?php echo $style['result_border']; ?>"><?php echo LANG_CLANSTATS_POINTS_SUPPORT; ?></td>
        	<?php
        	$qry = "SELECT soldiername,support FROM ".DBPrefix."generalStats ORDER by support DESC LIMIT 5 ";
            $result = mysql_query($qry);
            while(($data = mysql_fetch_assoc($result)) !== FALSE ) {
	         ?> 
	         <td class="result" width="100px" style="font-size:11px;"><a href="../stats.php?name=<?php echo rawurlencode($data['soldiername']); ?>" target="_self"><b><?php echo $EoT->nameTrimchars($data['soldiername']); ?></b></a><br /><br /><div class="text" style="width:<?php echo $textwidth; ?>px"><?php echo $EoT->points($data['support']); ?></div></td>
	         <?php
           }
?>
         </tr>
        <tr>
           <td class="result" width="60px" height="70px"><img src="<?php echo $domain;?>/img/fav/big/engineer.png" title="Engineer" alt="engineer" width="40px"/></td>
        	<td class="result" width="20px" style="border-right:<?php echo $style['result_border']; ?>"><?php echo LANG_CLANSTATS_POINTS_ENGINEER; ?></td>
        	<?php
        	$qry = "SELECT soldiername,engineer FROM ".DBPrefix."generalStats ORDER by engineer DESC LIMIT 5 ";
            $result = mysql_query($qry);
            while(($data = mysql_fetch_assoc($result)) !== FALSE ) {
	         ?> 
	         <td class="result" width="100px" style="font-size:11px;"><a href="../stats.php?name=<?php echo rawurlencode($data['soldiername']); ?>" target="_self"><b><?php echo $EoT->nameTrimchars($data['soldiername']); ?></b></a><br /><br /><div class="text" style="width:<?php echo $textwidth; ?>px"><?php echo $EoT->points($data['engineer']); ?></div></td>
	         <?php
           }
?>
          </tr>
         <tr> 
           <td class="result" width="60px" height="70px"><img src="<?php echo $domain;?>/img/fav/big/recon.png" title="Recon" alt="recon" width="40px"/></td>
        	<td class="result" width="20px" style="border-right:<?php echo $style['result_border']; ?>"><?php echo LANG_CLANSTATS_POINTS_RECON; ?></td>
        	<?php
        	$qry = "SELECT soldiername,recon FROM ".DBPrefix."generalStats ORDER by recon DESC LIMIT 5 ";
            $result = mysql_query($qry);
            while(($data = mysql_fetch_assoc($result)) !== FALSE ) {
	         ?> 
	         <td class="result" width="100px" style="font-size:11px;"><a href="../stats.php?name=<?php echo rawurlencode($data['soldiername']); ?>" target="_self"><b><?php echo $EoT->nameTrimchars($data['soldiername']); ?></b></a><br /><br /><div class="text" style="width:<?php echo $textwidth; ?>px"><?php echo $EoT->points($data['recon']); ?></div></td>
	         <?php
           }
?>
      </td> 
		  </tr>
	</table>
	
	
	<?php  include_once '../inc/footer.php';
	
	echo '</div>
	     </body>
      </html>';


