<?php

/*
* @package BANANA WARS
* @copyright: (c) 2017 G.P. aka Mvcshka (mvcshka@yandex.ru)
* @license: GNU General Public License version 2; see LICENSE.txt
* @files: /page/levels.php
*
*/

if(!isset($_SESSION['id']))
{
	Header("Location: /");
	exit;
}

?>


<!-- OPEN CENTER -->
<tr>
    <td align="left" valign="top">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="284" align="left" valign="top">
                        <?php require('theme/users_block.php');?>
                    </td><!-- MENU USER -->
                    <td align="left" valign="top">
                    <?php require('theme/menu.php'); ?>
                    <div style="height:15px"></div>
                    <table width="672" cellspacing="0" cellpadding="0" style="padding-left:10px;padding-right:10px;">
                        <tbody>
                            <tr></tr>
                            <tr>
                                <td align="left" valign="top">
                                    <div style="background:url('/images/title.jpg') no-repeat center;text-align:center"><span style="background-color:#F0E8D5;padding-right:15px;padding-left:15px;font-size:18px">Таблица уровней</span></div>
                                    <br />
                                    <!-- Описание контента -->
									<table border="0" cellspacing="0" cellpadding="0" bgcolor="#E8DCC4" width="100%">
										<tbody>
											<tr>
												<td height="8px" width="8px"><img width="9" height="9" src="/images/form-up-left.gif"></td>
												<td></td>
												<td align="right"><img width="9" height="9" src="/images/form-up-right.gif"></td>
											</tr>
											<tr>
												<td style="padding:11px 20px" colspan="5">
													<table class="maintable" border="0" width="100%" cellspacing="0" cellpadding="4">
														<tbody>
															<tr align="left">
																<td><b>Уровень</b></td>
																<td><b>Опыт</b></td>
																<td><b>Реф. %</b></td>
																<td><b>% на вывод</b></td>
																<td><b>Ежедневный бонус</b></td>
															</tr>
															<?php for($i = 1; $i <= 12; $i++) { ?>
															<tr class="bgtable <?php if(GetUser('Level', $_SESSION['id']) == $i) echo 'mestyle'; ?>">
																<td>
																	<div align="left"><img scr="/images/index-icons/opit.jpg"><?=$i; ?></div>
																</td>
																<td>
																	<div align="left"><?php if($i == 1) echo 0; else echo $Lev[$i]; ?></div>
																</td>
																<td>
																	<div align="left">+<?=$RefPercent[$i]; ?>%</div>
																</td>
																<td>
																	<div align="left"><?=$PercentOut[$i]; ?>%</div>
																</td>
																<td>
																	<div align="left">1-<?=$BonusSum[$i]; ?></div>
																</td>
															</tr>
															<?php } ?>
														</tbody>
													</table>
												</td>
											</tr>
											<tr>
												<td height="8px" width="8px"><img width="9" height="9" src="/images/form-bottom-left.gif"></td>
												<td></td>
												<td align="right"><img width="9" height="9" src="/images/form-bottom-right.gif"></td>
											</tr>
										</tbody>
									</table>
                                </td>
                            </tr>
                        </tbody>
                    </table>                                
                    </td><!-- CONTENT USER -->
                </tr>
            </tbody>
        </table>
    </td>
</tr>
<!-- CLOSE CENTER -->