<?php
/** header('Content-type: text/html; charset=utf-8'); **/
?>
<!DOCTYPE html>
<html class="inner">
<head>

<title><?=$PRETITLE?> - <?=$lang['titlemain']?></title>

<link rel="icon" href="<?'.$ROOT.'?>favicon.ico" type="image/x-icon"/>
<link rel="shortcut icon" href="<?'.$ROOT.'?>favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" type="text/css" media="screen" href="<?'.$ROOT.'?>css/main.css"/>
<link rel="stylesheet" type="text/css" media="screen" href="<?'.$ROOT.'?>css/footer.css"/>
<link rel="stylesheet" type="text/css" media="screen" href="<?'.$ROOT.'?>css/nt.css"/>
<link rel="stylesheet" type="text/css" media="print" href="<?'.$ROOT.'?>css/print.css"/>
<link rel="stylesheet" type="text/css" media="screen" href="<?'.$ROOT.'?>css/default.css"/>

<script type="text/javascript">/* no frames */ if(top.location != self.location) top.location.replace(self.location);</script>
<script type="text/javascript" src="<?'.$ROOT.'?>js/nt2.js"></script>
<script type="text/javascript">
var cssFix = function(){
  var u = navigator.userAgent.toLowerCase(),
  addClass = function(el,val){
    if(!el.className) {
      el.className = val;
    } else {
      var newCl = el.className;
      newCl+=(" "+val);
      el.className = newCl;
    }
  },
  is = function(t){return (u.indexOf(t)!=-1)};
  addClass(document.getElementsByTagName('html')[0],[
    (!(/opera|webtv/i.test(u))&&/msie (\d)/.test(u))?('ie ie'+RegExp.$1)
      :is('firefox/2')?'gecko ff2'
      :is('firefox/3')?'gecko ff3'
      :is('gecko/')?'gecko'
      :is('opera/9')?'opera opera9':/opera (\d)/.test(u)?'opera opera'+RegExp.$1
      :is('konqueror')?'konqueror'
      :is('applewebkit/')?'webkit safari'
      :is('mozilla/')?'gecko':'',
    (is('x11')||is('linux'))?' linux'
      :is('mac')?' mac'
      :is('win')?' win':''
  ].join(" "));
}();
</script>

<!-- Snow Script. -->
<!--<script type="text/javascript" src="Snow/Schill_Mania/snowstorm.js"></script>
<script type="text/javascript" src="Snow/Schill_Mania/snowstorm-min.js"></script>
<!-- End Snow Script. -->

</head>
<body class="inner">
<div id="page-1"><!-- page-1 -->
	<div id="page-2"><!-- page-2 -->

	<h1 id="page-title"><?=$PRETITLE?> - <?=$lang['titlemain']?></h1>
	<div id="page-3"><!-- page-3 -->

			<div id="content"><div id="content-id"><!-- content --><!-- content-id -->

			<!-- Navigation -->
			
			<ul id="navitems">
						<li>|<a href="<?'.$ROOT.'?>"><?=$lang['Home']?></a>|</li>
						<li><a href="<?'.$DOMAIN.'?>forum.php"><?=$lang['forum']?></a>|</li>
						<li><a href="<?'.$ROOT.'?>?go=stats"><?=$lang['top']?></a>|</li>
						<li><a href="<?'.$ROOT.'?>?go=currentranking"><?=$lang['Rankings']?></a>|</li>
						<li><a href="<?'.$ROOT.'?>?go=lastrounds"><?=$lang['lastrounds']?></a>|</li>
						<li><a href="<?'.$ROOT.'?>?go=banlist"><?=$lang['banlist']?></a>|</li>
						<li><a href="<?'.$ROOT.'?>?go=monitor"><?=$lang['monitor']?></a>|</li>
						<li><a href="<?'.$ROOT.'?>?go=faq"><?=$lang['FAQ']?></a>|</li>
						<li><a href="<?'.$ROOT.'?>?go=ubar"><?=$lang['UBAR']?></a>|</li>
						<li><a href="http://wiki.bf2s.com/"><?=$lang['Wiki']?></a>|</li>
					</ul>

			<!-- /Navigation -->
		
			<div id="stats-col"><!-- stats-col -->
				<!-- search -->
				<div id="get-stats" class="col-section">
					<h2><?=$lang['Get'] ?></h2>
					<div class="id">
							<p><?=$lang['GetText'] ?></p>
						<form action="?go=search" method="post">
							<label><?=$lang['search']?>:<br/>
							<input class="input" name="searchvalue" size="25" value="<?
							if ($SEARCHVALUE)
								$template .= $SEARCHVALUE;
							$template .= '';?>" type="text"/></label>
							<input class="button" name="search" value="Go" type="submit"/>
						</form>
					</div>
				</div>
				<!-- /search -->

				<!-- Top 10 -->
				<div id="top-players" class="col-section">
				<h2><?=$lang['GetTop10']?></h2>
			    <div class="id">
			    <?echo('<table align="left" class="" width="250">
                
                    <tbody>');?>
<?foreach ($top as $key => $value)
{
$value['name'] = preg_replace("/>/","&gt;",$value['name']);
$value['name'] = preg_replace("/</","&lt;",$value['name']);?>
	<?echo('</tr>
			<tr>
				<td align="right">'.($key+1).'.</td><td align="left">'.$value['score'].' - <a href="'.$ROOT.'?pid='.$value['id'].'">'.$value['name'].'</a>&nbsp;</td>
			</tr>');?>
<?}?>
      <?echo('</tbody>
                </table>
                ');?><p><a align="left" href="<?'.$ROOT.'?>?go=stats"><?=$lang['GetStats']?> &raquo;</a></p>
                </div>
                </div>
                <!--/ Top 10 -->
                
			<!-- server -->
			<div id="server" class="col-section">
            <h2><?=$lang['Servers']?></h2>
            <div class="id">
            <!-- code monitor bf -->

            <?
			include( MODULE_PATH .'bf2_monitor.php');
            ?>

            <!-- code monitor bf -->
            </div>
			</div>
			<!-- server -->
                
                
                <!-- ??? -->
<!--                <div id="mlb-short" class="col-section">
				<h2><?=$lang['GetForum']?></h2>
				<div class="id">
				<br/>	
                <?include( MODULE_PATH .'xf_forum.php');?>
				</div>
                </div>-->
                <!--/ ??? -->
                
			</div><!-- /stats-col -->

            <div id="community-col" style="overflow:auto;"><!-- community-col -->
            <!-- community -->


			<div id="community-features" class="col-section">
            <h2><?=$lang['GetCommunity']?></h2>
            <div class="id">
 				<p><?=$lang['CommunityText']?></a></p>
			</div>
            </div>
			<!-- community -->

<!--Сейчас бойцов на фронте - <?include( MODULE_PATH .'../../online.php');?>-->
            <?include( MODULE_PATH .'slider.php');?>

<div id="col-section">
    <h2>Новости и другая информатция портала</h2>
<?=$lang['news&info']?>
<br><br><br><br><br><br><br>
</div>
<br>
            </div><!-- /community-col -->

			<hr class="clear"/>

			</div></div> <!-- content-id --><!-- content -->

	<a id="secondhome" href="<?'.$ROOT.'?>"></a>

	<div class="clear"> </div>

	</div><!-- /page-3 -->
	</div><!-- /page-2 -->
    
<div id="footer">
<div class="footer_mod">
    <div class="footer_mod_left"><!-- Language -->
            <form method="post" id="content">
            <?=$lang['select']?>
			<select name="lang">
            <option value="ru"><?=$lang['Russian']?></option>
            <option value="en"><?=$lang['English']?></option>
            <!--<option value="jp"><?=$lang['Japanese']?></option>-->
            </select>
            <input type="submit" value="<?=$lang['selectsave']?>" />
            </form>
    </div><!-- / Language -->
    <div class="footer_mod_right">
    <a href="#top"><?=$lang['UpPage']?></a><br/>
    <!--&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<br/>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp-->
    </div>
    <div class="footer_mod_center"><br/><br/><br/>
    <?=$lang['copyrightProject']?><br/>
    <!-- Уважайте мою работу - не трогайте нижнюю строчку... (^ω^)/ -->
    <?=$lang['copyrightBF2REW']?><br/>
    <?=$lang['copyrightJobProject']?><br/></div>
</div>
</div>

</div><!-- /page-1 -->
</body></html>
