<?php
/*======================================================================*\
|| #################################################################### ||
|| # EoT-Clan BC2 Leaderboard                                         # ||
|| # ---------------------------------------------------------------- # ||
|| # Dieses Copyright darf nicht entfernet werden                     # ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # -----------------BC2 Leaderboard is a free Software--------------# ||
|| #                   http://eot-clan.net                            # ||
|| #################################################################### ||
\*======================================================================*/
if(!defined('DIRECTACCESS')){
echo 'You cannot access this file directly!';
die;
}

   if ($data['hits'] == 0){
	   $accuracy = '0.0';
   }else{
    $accuracy = $data['hits'] * 100 / $data['shots'];
    $accuracy = number_format($accuracy, 2, ',', '.');
  }
  
  if ($data['rounds'] == 0){
	   $endrounds = '0.0';
   }else{
    $endrounds = $data['elo_games'] * 100 / $data['rounds'];
    $endrounds = number_format($endrounds, 2, ',', '.');
  }
  
?>
<div style="width:100%">

  <div style="float:left;">
   <table class="default" style="float: left; width: 196px; height: 219px; margin-left: 10px;" cellspacing="0" cellpadding="0">
		<tr>
			<td class="head" style="height:20px;">
				<?php echo LANG_GENERAL_DEFAULT; ?>
			</td>
		</tr>
		<tr>
			<td class="result">
				<span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_ROUNDS; ?></span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $EoT->points($data['rounds']); ?></span><br />
				<span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_ROUNDS_END; ?></span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $EoT->points($data['elo_games']); ?></span><br />
				<span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_ROUNDS_END; ?></span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $endrounds; ?>%</span><br />
				<span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_SKILL; ?></span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $EoT->points($data['elo']); ?></span><br />
				<span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_WINS; ?></span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $EoT->points($data['wins']); ?></span><br />
				<span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_LOOSES; ?></span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $EoT->points($data['losses']); ?></span><br />
				<span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_WL; ?></span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $EoT->KD($data['wins'],$data['losses']); ?></span><br />			
        <span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_CLASS_ASSAULT; ?>:</span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $EoT->points($data['assault']); ?></span><br />
        <span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_CLASS_SUPPORT; ?>:</span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $EoT->points($data['support']); ?></span><br />
        <span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_CLASS_ENGINEER; ?>:</span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $EoT->points($data['engineer']); ?></span><br />
        <span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_CLASS_RECON; ?>:</span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $EoT->points($data['recon']); ?></span><br />
      <br />
      <br />
      <br />
      <br />
      </td>
		</tr>
	</table>
</div>




<div style="float:left;">
<table class="default" style="float: left; width: 196px; height: 219px; margin-left: 9px;" cellspacing="0" cellpadding="0">
		<tr>
			<td class="head" style="height:20px;">
				<?php echo LANG_GENERAL_COMBAT; ?>
			</td>
		</tr>
		<tr>
			<td class="result">
				<span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_KILLS; ?></span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $EoT->points($data['kills']); ?></span><br />
				<span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_DEATHS; ?></span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $EoT->points($data['deaths']); ?></span><br />
				<span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_KILLSTREAK; ?></span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $EoT->points($data['killstreakbonus']); ?></span><br />
				<span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_LONGEST_HS; ?></span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $EoT->points($data['longesths']); ?> m</span><br />
				<span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_HANDGUN_HS; ?></span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $EoT->points($data['longesthandhs']); ?> m</span><br />
				<span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_HS; ?></span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $EoT->points($data['headshots']); ?></span><br />
				<span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_NEMESIS_KILLS; ?></span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $EoT->points($data['nemesiskills']); ?></span><br />
				<span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_NEMESIS_STREAK; ?></span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $EoT->points($data['nemesisstreak']); ?></span><br />
				<span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_VEHICLE_DESTROYED; ?></span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $EoT->points($data['vehicledestroyed']); ?></span><br />
				<span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_SHOTS; ?></span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $EoT->points($data['shots']); ?></span><br />
				<span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_HITS; ?></span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $EoT->points($data['hits']); ?></span><br />
				<span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_KILLSPERMINUTE; ?></span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php $min = $data['playtime']/60;  if ($min > 0){echo number_format($data['kills']/$min, 2, ',', '.'); ;}else{ echo 0;}  ?></span><br />
				<span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_DEATHSPERMINUTE; ?></span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php  if ($min > 0){echo number_format($data['deaths']/$min, 2, ',', '.'); ;}else{ echo 0;}  ?></span><br />
				<span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_KD; ?></span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $EoT->KD($data['kills'],$data['deaths']); ?></span><br />
				<span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_ACCURACY; ?></span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $accuracy; ?>%</span><br />
		 </td>
		</tr>
	</table>
</div>	


	
<div style="float:left;">
<table class="default" style="float: left; width: 196px; height: 219px; margin-left: 9px;" cellspacing="0" cellpadding="0">
		<tr>
			<td class="head" style="height:20px;">
				<?php echo LANG_GENERAL_TEAMPLAY; ?>
			</td>
		</tr>
		<tr>
			<td class="result">
				<span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_KILL_ASSISTS; ?></span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $EoT->points($data['killassists']); ?></span><br />	
				<span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_DESTROY_ASSISTS; ?></span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $EoT->points($data['vehicledestroyassist']); ?></span><br />	
				<span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_DAMAGE_ASSISTS; ?></span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $EoT->points($data['damagaassists']); ?></span><br />	
				<span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_REVIVES; ?></span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $EoT->points($data['revives']); ?></span><br />
				<span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_RESUPPLIES; ?></span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $EoT->points($data['resupplies']); ?></span><br />
				<span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_HEALS; ?></span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $EoT->points($data['heals']); ?></span><br />
				<span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_REPAIRS; ?></span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $EoT->points($data['repairs']); ?></span><br />		
		    <span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_FLAGS_CAPTURED; ?></span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $EoT->points($data['flagcaps']); ?></span><br />	
		    <span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_FLAGS_DEFENDED; ?></span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $EoT->points($data['flagdef']); ?></span><br />	
		    <span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_MCOMS_DESTROY; ?></span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $EoT->points($data['mcomdest']); ?></span><br />	
		    <span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_MCOMS_DEFEND_KILLS; ?></span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $EoT->points($data['mcomdefkills']); ?></span><br />	
				<span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_SUPRESSION; ?></span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $EoT->points($data['suppression']); ?></span><br />	
		   <br />
		   <br />
		   <br />
		 </td>
		</tr>
	</table>
</div>	


<div style="float:left;">
<table class="default" style="float: left; width: 196px; height: 219px; margin-left: 9px;" cellspacing="0" cellpadding="0">
		<tr>
			<td class="head" style="height:20px;">
				<?php echo LANG_GENERAL_POINTS_STATS; ?>
			</td>
		</tr>
		<tr>
			<td class="result">
				<span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_POINTS; ?></span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $EoT->points($data['points']); ?></span><br />
				<span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_BONUS; ?></span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $EoT->points($data['bonus']); ?></span><br />
				<span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_AWARD; ?></span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $EoT->points($data['award']); ?></span><br />
				<span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_TEAM; ?></span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $EoT->points($data['team']); ?></span><br />
				<span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_SQUAD; ?></span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $EoT->points($data['squad']); ?></span><br />
				<span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_OBJECTIVE; ?></span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $EoT->points($data['objective']) ; ?></span><br />
				<span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_UNLOCK; ?></span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php echo $EoT->points($data['aunlock']) ; ?></span><br />
				<span style="text-align:left; font-size:11px; line-height:11px; float:left; margin-left:5px;"><?php echo LANG_GENERAL_PPM; ?></span>
				<span style="text-align:right; font-size:11px; line-height:11px; float:right;margin-right:5px;"><?php  if ($min > 0){echo number_format($data['points']/$min, 2, ',', '.'); ;}else{ echo 0;} ?></span><br />
			<br />
      <br />
      <br />
      <br />
      <br />
      <br />
      <br />
		 </td>
		</tr>
	</table>
 </div>	
</div>