<?php
/*
* @ServerMon v1.1
* @Developed by Maksa988
* @www.Server-Mon.ru
* @Copyright (C) 2014
*/
 if(!defined('SMON'))
	die('Hacking attempt!');
?>
<table class="table table-striped table-hover">		
	<thead>
		<tr>
			<td style="width: 20px;"><strong>#</strong></td>
			<td style="width: 20px;"></td>
			<td><strong>Название</strong></td>
			<td><strong>Адрес</strong></td>
			<td><strong>Игроки</strong></td>
			<td><strong>Карта</strong></td>
			<td><strong></strong></td>
		</tr>
	</thead>			
		<?php foreach($servers as $item): ?>
		<tr class="<?=$item['server_selection_type']?>">
			<td><small><?=$id++?></small></td>
			<td><small><center><img src="http://gs-monitor.com/media/icons/<?=$item['game_code']?>.png"></center></td>
			<td><small><a href="/servers/view/<?=$item['server_id']?>" title="Подробнее о сервере"><?=$item['server_name']?></a></small></td>
			<td><small><?=$item['server_ip']?>:<?=$item['server_port']?></small></td>
			<td><small><?=$item['server_players']?> / <?=$item['server_maxplayers']?></small></td>
			<td><small><?=$item['server_mapname']?></small></td>
			<td><small>
				<center>
				<span id="server-rating-<?=$item['server_id']?>">	
				<?if($item['server_vip_time'] != '0'):?>
					VIP
				<?else:?>
					<?=$item['server_vote']?>
				<?endif;?>
				<a class="servermon-vote" id="rating-up" data-rating="<?=$item['server_vote']?>" data-id="<?=$item['server_id']?>" title="Голосовать за сервер">
					<i class="glyphicon glyphicon-arrow-up"></i>
				</a>	
				</span>
				</center>
				</small>
			</td>
		</tr>
		<?php endforeach; ?>
</table>

