<?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">
       <title>BF3 LB / Teamplay</title>
       <?php echo $styleSettings; ?>
         <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"><?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" class="selected">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="13" cellspacing="0"><?php echo LANG_CLANSTATS_TITLE; ?></td>
        <tr>
        	<td class="result" width="60px" height="70px"><img src="<?php echo $domain;?>/img/teamplay/kills.png" title="Kills" alt="kills" width="40px"/></td>
        	<td class="result" width="20px" style="border-right:<?php echo $style['result_border']; ?>;"><?php echo LANG_CLANSTATS_KILLSH; ?></td>	
        	<?php
        	$qry = "SELECT soldiername,killassists FROM ".DBPrefix."generalStats ORDER by killassists DESC LIMIT 5 ";
            $result = mysql_query($qry);
            $i = 0;
            while(($data = mysql_fetch_assoc($result)) !== FALSE ) {
            	$i++;
	         ?> 
	        <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 /><?php echo '<div class="text" style="width:'.$textwidth.'px">'.$EoT->points(round($data['killassists'])); ?></div></td>
	         <?php
           }
?>
         </tr>
        <tr>
           <td class="result" width="60px" height="70px"><img src="<?php echo $domain;?>/img/teamplay/heals.png" title="Heals" alt="heals" width="40px"/></td>
        	<td class="result" width="20px" style="border-right:<?php echo $style['result_border']; ?>"><?php echo LANG_CLANSTATS_HEAL; ?></td>
        	<?php
        	$qry = "SELECT soldiername,heals FROM ".DBPrefix."generalStats ORDER by heals 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 /><?php echo '<div class="text" style="width:'.$textwidth.'px">'.$EoT->points(round($data['heals'])); ?></div></td>
	         <?php
           }
?>
          </tr>
         <tr> 
           <td class="result" width="60px" height="70px"><img src="<?php echo $domain;?>/img/teamplay/ammo.png" title="Ammo" alt="ammo" width="40px"/></td>
        	<td class="result" width="20px" style="border-right:<?php echo $style['result_border']; ?>"><?php echo LANG_CLANSTATS_RESUPPLIE; ?></td>
        	<?php
        	$qry = "SELECT soldiername,resupplies FROM ".DBPrefix."generalStats ORDER by resupplies DESC LIMIT 5 ";
            $result = mysql_query($qry);
            $i = 0;
            while(($data = mysql_fetch_assoc($result)) !== FALSE ) {
            	$i++;
	         ?> 
	        <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 /><?php echo '<div class="text" style="width:'.$textwidth.'px">'.$EoT->points(round($data['resupplies'])); ?></div></td>
	         <?php
           }
?>
      </tr>
         <tr> 
           <td class="result" width="60px" height="70px"><img src="<?php echo $domain;?>/img/teamplay/repair.png" title="Repair" alt="repair" /></td>
        	<td class="result" width="20px" style="border-right:<?php echo $style['result_border']; ?>"><?php echo LANG_CLANSTATS_REPAIR; ?></td>
        	<?php
        	$qry = "SELECT soldiername,repairs FROM ".DBPrefix."generalStats ORDER by repairs DESC LIMIT 5 ";
            $result = mysql_query($qry);
            $i = 0;
            while(($data = mysql_fetch_assoc($result)) !== FALSE ) {
            	$i++;
	         ?> 
	        <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 /><?php echo '<div class="text" style="width:'.$textwidth.'px">'.$EoT->points($data['repairs']); ?></div></td>
	         <?php
           }
?>
      </tr>
         <tr> 
           <td class="result" width="60px" height="70px"><img src="<?php echo $domain;?>/img/teamplay/revives.png" title="Revives" alt="revives" width="40px"/></td>
        	<td class="result" width="20px" style="border-right:<?php echo $style['result_border']; ?>"><?php echo LANG_CLANSTATS_REVIVE; ?></td>
        	<?php
        	$qry = "SELECT soldiername,revives FROM ".DBPrefix."generalStats ORDER by revives DESC LIMIT 5 ";
            $result = mysql_query($qry);
            $i = 0;
            while(($data = mysql_fetch_assoc($result)) !== FALSE ) {
            	$i++;
	         ?> 
	         <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 /><?php echo '<div class="text" style="width:'.$textwidth.'px">'.$EoT->points($data['revives']); ?></div></td>
	         <?php
           }
?>

      </tr>
         <tr> 
           <td class="result" width="60px" height="70px"><img src="<?php echo $domain;?>/img/teamplay/suppresion.png" title="Suppresion" alt="suppresion" width="40px"/></td>
        	<td class="result" width="20px" style="border-right:<?php echo $style['result_border']; ?>"><?php echo LANG_CLANSTATS_SUPPRESION; ?></td>
        	<?php
        	$qry = "SELECT soldiername,suppression FROM ".DBPrefix."generalStats ORDER by suppression DESC LIMIT 5 ";
            $result = mysql_query($qry);
            $i = 0;
            while(($data = mysql_fetch_assoc($result)) !== FALSE ) {
            	$i++;
	         ?> 
	        <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 /><?php echo '<div class="text" style="width:'.$textwidth.'px">'.$EoT->points($data['suppression']); ?></div></td>
	         <?php
           }
?>


      </tr>
         <tr> 
           <td class="result" width="60px" height="70px"><img src="<?php echo $domain;?>/img/teamplay/destroy.png" title="Destroy" alt="destroy" width="40px"/></td>
        	<td class="result" width="20px" style="border-right:<?php echo $style['result_border']; ?>"><?php echo LANG_CLANSTATS_DESTROY; ?></td>
        	<?php
        	$qry = "SELECT soldiername,vehicledestroyassist FROM ".DBPrefix."generalStats ORDER by vehicledestroyassist DESC LIMIT 5 ";
            $result = mysql_query($qry);
            $i = 0;
            while(($data = mysql_fetch_assoc($result)) !== FALSE ) {
            	$i++;
	         ?> 
	         <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 /><?php echo '<div class="text" style="width:'.$textwidth.'px">'.$EoT->points($data['vehicledestroyassist']); ?></div></td>
	         <?php
           }
?>

       </tr>
         <tr> 
           <td class="result" width="60px" height="70px"><img src="<?php echo $domain;?>/img/teamplay/mcomattacker.png" title="MCOMS Destroy" alt="mcoms destroy" width="40px"/></td>
        	<td class="result" width="20px" style="border-right:<?php echo $style['result_border']; ?>"><?php echo LANG_CLANSTATS_MCOMDESTROY; ?></td>
        	<?php
        	$qry = "SELECT soldiername,mcomdest FROM ".DBPrefix."generalStats ORDER by mcomdest DESC LIMIT 5 ";
            $result = mysql_query($qry);
            $i = 0;
            while(($data = mysql_fetch_assoc($result)) !== FALSE ) {
            	$i++;
	         ?> 
	         <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 /><?php echo '<div class="text" style="width:'.$textwidth.'px">'.$EoT->points($data['mcomdest']); ?></div></td>
	         <?php
           }
     
?>

      </tr>
         <tr> 
           <td class="result" width="60px" height="70px"><img src="<?php echo $domain;?>/img/teamplay/mcdefender.png" title="MCOMS Defend" alt="mcoms defend" width="40px"/></td>
        	<td class="result" width="20px" style="border-right:<?php echo $style['result_border']; ?>"><?php echo LANG_CLANSTATS_MCOMDEFEND; ?></td>
        	<?php
        	$qry = "SELECT soldiername,mcomdefkills FROM ".DBPrefix."generalStats ORDER by mcomdefkills DESC LIMIT 5 ";
            $result = mysql_query($qry);
            $i = 0;
            while(($data = mysql_fetch_assoc($result)) !== FALSE ) {
            	$i++;
	         ?> 
	         <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 /><?php echo '<div class="text" style="width:'.$textwidth.'px">'.$EoT->points($data['mcomdefkills']); ?></div></td>
	         <?php
           }
?>

        </tr>
         <tr> 
           <td class="result" width="60px" height="70px"><img src="<?php echo $domain;?>/img/teamplay/flaggdefend.png" title="Flaggs Defend" alt="flagg defend" width="40px"/></td>
        	<td class="result" width="20px" style="border-right:<?php echo $style['result_border']; ?>"><?php echo LANG_CLANSTATS_FLAGGDEFEND; ?></td>
        	<?php
        	$qry = "SELECT soldiername,flagdef FROM ".DBPrefix."generalStats ORDER by flagdef DESC LIMIT 5 ";
            $result = mysql_query($qry);
            $i = 0;
            while(($data = mysql_fetch_assoc($result)) !== FALSE ) {
            	$i++;
	         ?> 
	         <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 /><?php echo '<div class="text" style="width:'.$textwidth.'px">'.$EoT->points($data['flagdef']); ?></div></td>
	         <?php
           }
?>  
           </tr>
         <tr> 
           <td class="result" width="60px" height="70px"><img src="<?php echo $domain;?>/img/teamplay/flaggattack.png" title="Flaggs Attack" alt="flagg attack" width="40px"/></td>
        	<td class="result" width="20px" style="border-right:<?php echo $style['result_border']; ?>"><?php echo LANG_CLANSTATS_FLAGATTACK; ?></td>
        	<?php
        	$qry = "SELECT soldiername,flagcaps FROM ".DBPrefix."generalStats ORDER by flagcaps DESC LIMIT 5 ";
            $result = mysql_query($qry);
            $i = 0;
            while(($data = mysql_fetch_assoc($result)) !== FALSE ) {
            	$i++;
	         ?> 
	         <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 /><?php echo '<div class="text" style="width:'.$textwidth.'px">'.$EoT->points($data['flagcaps']); ?></div></td>
	         <?php
           }
?>
      </td> 
		  </tr>
	</table>
	
	<?php  include_once '../inc/footer.php';
	        echo '</div>';


