<div class="panel panel-default">

	<div class="panel-heading mt2cms_main_left_panel_header"><h1 style="font-weight: 600;">Tabel de onoare</h1></div>

	<div style="padding: 0; padding-bottom: 15px;" class="panel-body mt2cms_main_left_panel_body">


		<ul class="nav nav-tabs" role="tablist">
				<li class="nav-item">
					<a class="nav-link active" data-toggle="tab" href="#players" role="tab"><img src="<?php print $site_url; ?>images/players.png" alt="<?php print $lang['players']; ?>" title="<?php print $lang['players']; ?>"></a>
				</li>
				<li class="nav-item" style="margin-left: 139px;margin-top: -2px;">
					<a class="nav-link" data-toggle="tab" href="#guilds" role="tab"><img src="<?php print $site_url; ?>images/guilds.png" alt="<?php print $lang['guilds']; ?>" title="<?php print $lang['guilds']; ?>"></a>
				</li>
			</ul>

			<!-- Tab panes -->
			<div class="tab-content">
				<div class="tab-pane active" id="players" role="tabpanel">
				<div class="text-rank">
				<a><?php print $lang['players']; ?></a>
				</div>
					<table class="table table-sm table-hover">

						<tbody>
							<?php
							if(!$offline) {
								$top = array();
								$top = topPlayers();
								$i=1;
								foreach($top as $player)
								{
							?>
							<tr>
								<td></td>
								
								<th scope="row">
									<?php 
									if($i==1) 
										print '<img src="../theme1/img/1.png" style="margin-left:-15px;">'; 
									else if($i==2) 
										print '<img src="../theme1/img/2.png" style="margin-left:-15px;">'; 
									else if($i==3) 
										print '<img src="../theme1/img/3.png" style="margin-left:-15px;">'; 
									else if($i==4) 
										print '<img src="../theme1/img/4.png" style="margin-left:-15px;">'; 
									else if($i==5) 
										print '<img src="../theme1/img/5.png" style="margin-left:-15px;">'; 
									?>
									<?php if ($i >=6 ) 
										print $i; 
									$i++;
									?>
								</th>
								<td><?php print $player['name']; ?></td>
								<td style="color: #867555; font-family: Arial; font-size: 15px; letter-spacing: 0.4px;"><a style="color: rgba(134, 117, 85, 0.4);font-family: 'Merriweather', serif;font-size:12px;">nivel</a><br><?php print $player['level']; ?></td>
							</tr>
							<?php }
							} else print $offline_players;
							?>

						</tbody>
					</table>
					
					<center>
					<?php if(!$offline) { ?>
						<a href="<?php print $site_url; ?>ranking/players" class="small_link_text">Vezi tot clasamentul</a>
					<?php } else print '<span class="tag tag-danger">'.$lang['server-offline'].'</span></br><span class="tag tag-danger">'.$lang['last-update'].': '.$offline_date.'</span>'; ?>
					</center></br>
				</div>
				<div class="tab-pane" id="guilds" role="tabpanel">
				<div class="text-rank">
				<a><?php print $lang['guilds']; ?></a>
				</div>
					<table class="table table-sm table-hover">

						<tbody>
							<?php
							if(!$offline) {
								$top = array();
								$top = topGuilds();
								
								$i=1;
								
								foreach($top as $guild)
								{
							?>
							<tr>
								<td></td>
								<th scope="row">
									<?php 
									if($i==1) 
										print '<img src="../theme1/img/1.png" style="margin-left:-15px;">'; 
									else if($i==2) 
										print '<img src="../theme1/img/2.png" style="margin-left:-15px;">'; 
									else if($i==3) 
										print '<img src="../theme1/img/3.png" style="margin-left:-15px;">'; 
									else if($i==4) 
										print '<img src="../theme1/img/4.png" style="margin-left:-15px;">'; 
									else if($i==5) 
										print '<img src="../theme1/img/5.png" style="margin-left:-15px;">'; 
									?>
									<?php if ($i >=6 ) 
										print $i; 
									$i++;
									?>
								</th>
								<td><?php print $guild['name']; ?></td>
								<td style="color: #867555; font-family: Arial; font-size: 15px; letter-spacing: 0.4px;"><a style="color: rgba(134, 117, 85, 0.4);font-family: 'Merriweather', serif;font-size:12px;">puncte</a><br><?php print $guild['ladder_point']; ?></td>
							</tr>
							<?php }
							} else print $offline_guilds;
							?>
						</tbody>
					</table>
					
					<center>
					<?php if(!$offline) { ?>
						<a href="<?php print $site_url; ?>ranking/guilds" class="small_link_text">Vezi tot clasamentul</a>
					<?php } else print '<span class="tag tag-danger">'.$lang['server-offline'].'</span></br><span class="tag tag-danger">'.$lang['last-update'].': '.$offline_date.'</span>'; ?>
					</center></br>
				</div>
			</div>


                     <div id="featured_video">

						<div id="featured_video_title">Video Noutati</div>
						<iframe id="video" width="255" height="163" src="https://www.youtube.com/embed/rv83Fekcags?si=aoRUDG355kW8oUjN" frameborder="0" allowfullscreen=""></iframe>							
						<div id="featured_video_uploader">Lunaris2</div>					
						</div>


	</div>

</div>
