<?php
header('Content-type: text/html; charset=utf-8');
$template = '
<!DOCTYPE html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html class="inner">
<head>
<title>' .$PRETITLE. ' - test</title>
<a name="top"></a>
<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/two-tiers.css">
<link rel="stylesheet" type="text/css" media="screen" href="'.$ROOT.'css/nt.css">
<link rel="stylesheet" type="text/css" media="screen" href="'.$ROOT.'css/addons.css">
<link rel="stylesheet" type="text/css" media="screen" href="'.$ROOT.'css/footer.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></head><body class="inner">

<style>
<!--none-->
</style>
</head>

<div id="page-1"><!-- page-1 -->
	<div id="page-2"><!-- page-2 -->

	<h1 id="page-title">test</h1>

		<ul id="navitems">
			<li>|<a href="'.$ROOT.'">'.$lang_main.'</a>|</li>
            <li><a href="'.$ROOT.'forum.php">'.$lang_forum.'</a>|</li>
            <li><a href="'.$ROOT.'?go=stats">'.$lang_top.'</a>|</li>
            <li><a href="'.$ROOT.'?go=currentranking">'.$lang_currentranking.'</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.'monitor.php">'.$lang_monetor.'</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>
		
		<form action="'.$ROOT.'?go=search" method="post" id="getstats">
			<label for="pid">'.$lang_search.':</label>
			<input type="text" name="searchvalue" id="pid" value="" />
			<input type="submit" class="btn" value="Go" />
		</form>

	<div id="page-3"><!-- page-3 -->
			<div id="content">
				<div id="content-id"><!-- template header end == begin content below -->

                <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="30" value="';
			if ($SEARCHVALUE)
				$template .= $SEARCHVALUE;
			$template .= '" type="text"/></label>
							<input class="button" name="search" value="Go" type="submit"/>
						</form>
					</div>';
				$template .= '</div>
				<!-- /search -->

                <!-- Top 10 -->
				<div id="top-players" class="col-section">
				<h2>'.$lang_GetTop10.'</h2>
			    <div class="id">
			    <table align="left" class="" width="250">
                
                    <tbody>';
foreach ($topten as $key => $value)
{
$value['name'] = preg_replace("/>/","&gt;",$value['name']);
$value['name'] = preg_replace("/</","&lt;",$value['name']);
	$template .= '</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>';
}
      $template .= '</tbody>
                </table>
                <p><a align="left" href="'.$ROOT.'?go=stats">'.$lang_GetStats.' &raquo;</a></p>
                </div>
                </div>
                <!--/ Top 10 -->
                <!-- ??? -->
                <div id="mlb-short" class="col-section">
				<h2>'.$lang_GetForum.'</h2>
				<div class="id">
				<br/>';	
                include('xf_forum.php');
				$template .= '</div>
                </div>
                <!--/ ??? -->
                
			</div><!-- /stats-col -->

            <div id="community-col"><!-- 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 -->

			<!-- server -->
			<div id="server" class="col-section">
            <h2>'.$lang_Servers.'</h2>
            <div class="id">
            <!-- code monitor bf -->

            <div>';
			include('bf2_monitor.php');
            $template .= '</div>

            <!-- code monitor bf -->
            </div>
			</div>
			<!-- server -->

            </div><!-- /community-col -->



    </div><!-- page-3 -->
	<!-- end content == footer below -->
	<hr class="clear">

<div id="footer">
<div class="footer_mod">
    <div class="footer_mod_left"><!-- Language -->
        <form method="post" id="content">
            <select name="lang">
            <option value="ru">Russian</option>
            <option value="en">English</option>
            <option value="jp">Japanese</option>
            </select>
            <input type="submit" value="'.$lang_select.'" />
        </form>
    </div><!-- / Language -->
    <div class="footer_mod_right">
    <a href="#top">Наверх</a>
    <!--&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">'.$lang_footerLASTUPDATE.'. '.$lang_footerNEXTUPDATE.'.<br>
	'.$lang_footerPROCESSED.'.<br><br/>
    '.$lang_copyrightProject.'<br/>
    <!-- Уважайте мою работу - не трогайте нижнюю строчку... (^ω^)/ -->
    '.$lang_copyrightBF2REW.'<br/>
    '.$lang_copyrightShark.'<br/></div>
</div>
</div>

    </div><!-- page-2 -->

</div><!-- page-1 -->';
$template .= '</body></html>';
?>