<?php
/*======================================================================*\
|| #################################################################### ||
|| # EoT-Clan BF3 Leaderboard                                         # ||
|| # ---------------------------------------------------------------- # ||
|| # Dieses Copyright darf nicht entfernet werden                     # ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # -----------------BF3 Leaderboard is a free Software--------------# ||
|| #                   http://eot-clan.net                            # ||
|| #################################################################### ||
\*======================================================================*/
if(!defined('DIRECTACCESS')){
echo 'You cannot access this file directly!';
die;
}
?>
<table class="default" cellspacing="0" cellpadding="5">
  <td class="head" colspan="10" cellspacing="0">Service Stars</td>
	  <tr> 
<td class="result">
	
	<div style="width:80px;float:left;">
    <a class="tooltip"><img src="img/ServiceStars.png" />
      <span style="margin-left:-40px;width:150px;z-index:1000;"><b>Assault Service Star</b><br />
      	<?php echo LANG_GENERAL_SERVICE_STAR.'<b><font class="DIVtext">'.$EoT->sStarPoints($data['assault'],"assault",$data['serviceStar_a']).'</font></b>'.LANG_GENERAL_SERVICE_STAR2.'<b><font class="DIVtext">'.($data['serviceStar_a']+1).'.</font></b>'.LANG_GENERAL_SERVICE_STAR3; ?><br />
      	<div class="progress_small" style="width:140px;height:25px;">
      		<div style="margin-top:5px;margin-left:2px;font-weight:bold;position:absolute;"><?php echo number_format($EoT->progress($data['assault'],"assault",$data['serviceStar_a']), 2, ',', '.'); ?>%</div>
					<div class="progress_size_small" style="width:<?php echo $EoT->progress($data['assault'],"assault",$data['serviceStar_a']); ?>%;max-width:139px;height:22px;">&nbsp;</div>
				</div>
      </span>
     </a>
    	<br />
    <div style="position:absolute;margin-left:<?php echo margin($data['serviceStar_a']); ?>px;margin-top:-21px;font-size:12px;"><b><?php echo $data['serviceStar_a']?></b></div>
    <img src="img/weapons/class/assault.png" />
  </div>
  
  <div style="width:80px;float:left;">
     <a class="tooltip"><img src="img/ServiceStars.png" />
      <span style="margin-left:-40px;width:150px;z-index:1000;"><b>Support Service Star</b><br />
      	<?php echo LANG_GENERAL_SERVICE_STAR.'<b><font class="DIVtext">'.$EoT->sStarPoints($data['support'],"support",$data['serviceStar_s']).'</font></b>'.LANG_GENERAL_SERVICE_STAR2.'<b><font class="DIVtext">'.($data['serviceStar_s']+1).'.</font></b>'.LANG_GENERAL_SERVICE_STAR3; ?><br />
      	<div class="progress_small" style="width:140px;height:25px;">
      		<div style="margin-top:5px;margin-left:2px;font-weight:bold;position:absolute;"><?php echo number_format($EoT->progress($data['support'],"support",$data['serviceStar_s']), 2, ',', '.'); ?>%</div>
					<div class="progress_size_small" style="width:<?php echo $EoT->progress($data['support'],"support",$data['serviceStar_s']); ?>%;max-width:139px;height:22px;">&nbsp;</div>
				</div>
      </span>
     </a>
    	<br />
    <div style="position:absolute;margin-left:<?php echo margin($data['serviceStar_s']); ?>px;margin-top:-21px;font-size:12px;"><b><?php echo $data['serviceStar_s']?></b></div>
    <img src="img/weapons/class/support.png" />
  </div>
  
  <div style="width:80px;float:left;">
     <a class="tooltip"><img src="img/ServiceStars.png" />
      <span style="margin-left:-40px;width:150px;z-index:1000;"><b>Engineer Service Star</b><br />
      	<?php echo LANG_GENERAL_SERVICE_STAR.'<b><font class="DIVtext">'.$EoT->sStarPoints($data['engineer'],"engineer",$data['serviceStar_e']).'</font></b>'.LANG_GENERAL_SERVICE_STAR2.'<b><font class="DIVtext">'.($data['serviceStar_e']+1).'.</font></b>'.LANG_GENERAL_SERVICE_STAR3; ?><br /> 
      	<div class="progress_small" style="width:140px;height:25px;">
      		<div style="margin-top:5px;margin-left:2px;font-weight:bold;position:absolute;"><?php echo number_format($EoT->progress($data['engineer'],"engineer",$data['serviceStar_e']), 2, ',', '.'); ?>%</div>
					<div class="progress_size_small" style="width:<?php echo $EoT->progress($data['engineer'],"engineer",$data['serviceStar_e']); ?>%;max-width:139px;height:22px;">&nbsp;</div>
				</div>
      </span>
     </a>
    	<br />
    <div style="position:absolute;margin-left:<?php echo margin($data['serviceStar_e']); ?>px;margin-top:-21px;font-size:12px;"><b><?php echo $data['serviceStar_e']?></b></div>
    <img src="img/weapons/class/engineer.png" />
  </div>
  
  <div style="width:80px;float:left;">
   <a class="tooltip"><img src="img/ServiceStars.png" />
      <span style="margin-left:-40px;width:150px;z-index:1000;"><b>Recon Service Star</b><br />
      	<?php echo LANG_GENERAL_SERVICE_STAR.'<b><font class="DIVtext">'.$EoT->sStarPoints($data['recon'],"recon",$data['serviceStar_r']).'</font></b>'.LANG_GENERAL_SERVICE_STAR2.'<b><font class="DIVtext">'.($data['serviceStar_r']+1).'.</font></b>'.LANG_GENERAL_SERVICE_STAR3; ?><br />
      	<div class="progress_small" style="width:140px;height:25px;">
					<div style="margin-top:5px;margin-left:2px;font-weight:bold;position:absolute;"><?php echo number_format($EoT->progress($data['recon'],"recon",$data['serviceStar_r']), 2, ',', '.'); ?>%</div>
					 <div class="progress_size_small" style="width:<?php echo $EoT->progress($data['recon'],"recon",$data['serviceStar_r']); ?>%;max-width:139px;height:22px;">&nbsp;</div>
				</div>
      </span>
     </a>
    	<br />
    <div style="position:absolute;margin-left:<?php echo margin($data['serviceStar_r']); ?>px;margin-top:-21px;font-size:12px;"><b><?php echo $data['serviceStar_r']?></b></div>
    <img src="img/weapons/class/recon.png" />
  </div>
  
  
   <div style="width:80px;float:left;">
   <a class="tooltip"><img src="img/ServiceStars.png" />
      <span style="margin-left:-40px;width:150px;z-index:1000;"><b>Air Helicopter Attack</b><br />
      	<?php echo LANG_GENERAL_SERVICE_STAR.'<b><font class="DIVtext">'.$EoT->sStarPoints($data['vehicleah'],"vehicleah",$data['vehicleahStar']).'</font></b>'.LANG_GENERAL_SERVICE_STAR2.'<b><font class="DIVtext">'.($data['vehicleahStar']+1).'.</font></b>'.LANG_GENERAL_SERVICE_STAR3; ?><br />
      	<div class="progress_small" style="width:140px;height:25px;">
					<div style="margin-top:5px;margin-left:2px;font-weight:bold;position:absolute;"><?php echo number_format($EoT->progress($data['vehicleah'],"vehicleah",$data['vehicleahStar']), 2, ',', '.'); ?>%</div>
					 <div class="progress_size_small" style="width:<?php echo $EoT->progress($data['vehicleah'],"vehicleah",$data['vehicleahStar']); ?>%;max-width:139px;height:22px;">&nbsp;</div>
				</div>
      </span>
     </a>
    	<br />
    <div style="position:absolute;margin-left:<?php echo margin($data['vehicleahStar']); ?>px;margin-top:-21px;font-size:12px;"><b><?php echo $data['vehicleahStar']?></b></div>
    <img src="img/vehicles/class/Mp_Vehicle_AH_Kills_AH.png" title="Air Helicopter Attack" />
  </div>
  
     <div style="width:80px;float:left;">
   <a class="tooltip"><img src="img/ServiceStars.png" />
      <span style="margin-left:-40px;width:150px;z-index:1000;"><b>Air Helicopter Scout</b><br />
      	<?php echo LANG_GENERAL_SERVICE_STAR.'<b><font class="DIVtext">'.$EoT->sStarPoints($data['vehiclesh'],"vehiclesh",$data['vehicleshStar']).'</font></b>'.LANG_GENERAL_SERVICE_STAR2.'<b><font class="DIVtext">'.($data['vehicleshStar']+1).'.</font></b>'.LANG_GENERAL_SERVICE_STAR3; ?><br />
      	<div class="progress_small" style="width:140px;height:25px;">
					<div style="margin-top:5px;margin-left:2px;font-weight:bold;position:absolute;"><?php echo number_format($EoT->progress($data['vehiclesh'],"vehiclesh",$data['vehicleshStar']), 2, ',', '.'); ?>%</div>
					 <div class="progress_size_small" style="width:<?php echo $EoT->progress($data['vehiclesh'],"vehiclesh",$data['vehicleshStar']); ?>%;max-width:139px;height:22px;">&nbsp;</div>
				</div>
      </span>
     </a>
    	<br />
    <div style="position:absolute;margin-left:<?php echo margin($data['vehicleshStar']); ?>px;margin-top:-21px;font-size:12px;"><b><?php echo $data['vehicleshStar']?></b></div>
    <img src="img/vehicles/class/Mp_Vehicle_SH_Kills_SH.png" title="Air Helicopter Scout"/>
  </div>
  
      <div style="width:80px;float:left;">
   <a class="tooltip"><img src="img/ServiceStars.png" />
      <span style="margin-left:-40px;width:150px;z-index:1000;"><b>Air Jet Attack</b><br />
      	<?php echo LANG_GENERAL_SERVICE_STAR.'<b><font class="DIVtext">'.$EoT->sStarPoints($data['vehiclejet'],"vehiclejet",$data['vehiclejetStar']).'</font></b>'.LANG_GENERAL_SERVICE_STAR2.'<b><font class="DIVtext">'.($data['vehiclejetStar']+1).'.</font></b>'.LANG_GENERAL_SERVICE_STAR3; ?><br />
      	<div class="progress_small" style="width:140px;height:25px;">
					<div style="margin-top:5px;margin-left:2px;font-weight:bold;position:absolute;"><?php echo number_format($EoT->progress($data['vehiclejet'],"vehiclejet",$data['vehiclejetStar']), 2, ',', '.'); ?>%</div>
					 <div class="progress_size_small" style="width:<?php echo $EoT->progress($data['vehiclejet'],"vehiclejet",$data['vehiclejetStar']); ?>%;max-width:139px;height:22px;">&nbsp;</div>
				</div>
      </span>
     </a>
    	<br />
    <div style="position:absolute;margin-left:<?php echo margin($data['vehiclejetStar']); ?>px;margin-top:-21px;font-size:12px;"><b><?php echo $data['vehiclejetStar']?></b></div>
    <img src="img/vehicles/class/Mp_Vehicle_Jet_Kills_Jet.png" title="Air Jet Attack"/>
  </div>
  
      <div style="width:80px;float:left;">
   <a class="tooltip"><img src="img/ServiceStars.png" />
      <span style="margin-left:-40px;width:150px;z-index:1000;"><b>Main Battle Tanks</b><br />
      	<?php echo LANG_GENERAL_SERVICE_STAR.'<b><font class="DIVtext">'.$EoT->sStarPoints($data['vehiclembt'],"vehiclembt",$data['vehiclembtStar']).'</font></b>'.LANG_GENERAL_SERVICE_STAR2.'<b><font class="DIVtext">'.($data['vehiclembtStar']+1).'.</font></b>'.LANG_GENERAL_SERVICE_STAR3; ?><br />
      	<div class="progress_small" style="width:140px;height:25px;">
					<div style="margin-top:5px;margin-left:2px;font-weight:bold;position:absolute;"><?php echo number_format($EoT->progress($data['vehiclembt'],"vehiclembt",$data['vehiclembtStar']), 2, ',', '.'); ?>%</div>
					 <div class="progress_size_small" style="width:<?php echo $EoT->progress($data['vehiclembt'],"vehiclembt",$data['vehiclembtStar']); ?>%;max-width:139px;height:22px;">&nbsp;</div>
				</div>
      </span>
     </a>
    	<br />
    <div style="position:absolute;margin-left:<?php echo margin($data['vehiclembtStar']); ?>px;margin-top:-21px;font-size:12px;"><b><?php echo $data['vehiclembtStar']?></b></div>
    <img src="img/vehicles/class/Mp_Vehicle_MBT_Kills_MBT.png" title="Main Battle Tanks"/>
  </div>
  
     <div style="width:80px;float:left;">
   <a class="tooltip"><img src="img/ServiceStars.png" />
      <span style="margin-left:-40px;width:150px;z-index:1000;"><b>Anti Air</b><br />
      	<?php echo LANG_GENERAL_SERVICE_STAR.'<b><font class="DIVtext">'.$EoT->sStarPoints($data['vehicleaa'],"vehicleaa",$data['vehicleaaStar']).'</font></b>'.LANG_GENERAL_SERVICE_STAR2.'<b><font class="DIVtext">'.($data['vehicleaaStar']+1).'.</font></b>'.LANG_GENERAL_SERVICE_STAR3; ?><br />
      	<div class="progress_small" style="width:140px;height:25px;">
					<div style="margin-top:5px;margin-left:2px;font-weight:bold;position:absolute;"><?php echo number_format($EoT->progress($data['vehicleaa'],"vehicleaa",$data['vehicleaaStar']), 2, ',', '.'); ?>%</div>
					 <div class="progress_size_small" style="width:<?php echo $EoT->progress($data['vehicleaa'],"vehicleaa",$data['vehicleaaStar']); ?>%;max-width:139px;height:22px;">&nbsp;</div>
				</div>
      </span>
     </a>
    	<br />
    <div style="position:absolute;margin-left:<?php echo margin($data['vehicleaaStar']); ?>px;margin-top:-21px;font-size:12px;"><b><?php echo $data['vehicleaaStar']?></b></div>
    <img src="img/vehicles/class/Mp_Vehicle_AA_Kills_AA.png" title="Anti Air"/>
  </div>
  
  
     <div style="width:80px;float:left;">
   <a class="tooltip"><img src="img/ServiceStars.png" />
      <span style="margin-left:-40px;width:150px;z-index:1000;"><b>Infantry Fighting Vehicle</b><br />
      	<?php echo LANG_GENERAL_SERVICE_STAR.'<b><font class="DIVtext">'.$EoT->sStarPoints($data['vehicleifv'],"vehicleifv",$data['vehicleifvStar']).'</font></b>'.LANG_GENERAL_SERVICE_STAR2.'<b><font class="DIVtext">'.($data['vehicleifvStar']+1).'.</font></b>'.LANG_GENERAL_SERVICE_STAR3; ?><br />
      	<div class="progress_small" style="width:140px;height:25px;">
					<div style="margin-top:5px;margin-left:2px;font-weight:bold;position:absolute;"><?php echo number_format($EoT->progress($data['vehicleifv'],"vehicleifv",$data['vehicleifvStar']), 2, ',', '.'); ?>%</div>
					 <div class="progress_size_small" style="width:<?php echo $EoT->progress($data['vehicleifv'],"vehicleifv",$data['vehicleifvStar']); ?>%;max-width:139px;height:22px;">&nbsp;</div>
				</div>
      </span>
     </a>
    	<br />
    <div style="position:absolute;margin-left:<?php echo margin($data['vehicleifvStar']); ?>px;margin-top:-21px;font-size:12px;"><b><?php echo $data['vehicleifvStar']?></b></div>
    <img src="img/vehicles/class/Mp_Vehicle_IFV_Kills_IFV.png" title="Infantry Fighting Vehicle"/>
  </div>
  
  
     </td>  
		</tr>
	</table>


<?php 

function margin($count){
	if ($count >= 10 && $count <= 99){
		$return = 31;
	}else if ($count >= 100){
		$return = 27;
	}else{
		$return = 37;
	}
	
	return $return;
}
		