<?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/exchanger.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 cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
									<tbody>
										<tr>
											<td valign="top" class="rules" width="100%" style="padding-right: 10px;">
												<div align="center" style="vertical-align:middle;font-size:14px;font-weight: bold; width: 100%; background-color: rgb(232, 220, 196);">Бустеры: <img align="absmiddle" src="/images/index-icons/buster_dark.jpg">0&nbsp;&nbsp;Деньги: <img align="absmiddle" src="/images/index-icons/money_dark.jpg">$590</div>
												<br>
												<form action="" method="POST" id="exchangerForm" onsubmit="return false;">
												<div id="exc_select">
												<table cellpadding="0" cellspacing="0" border="0" width="100%">
													<tbody>
													
														<tr>
															<td align="center">
															
																<div class="exchange1" onmouseover="this.className='exchange1_on';" onmouseout="this.className='exchange1';">
																	<table width="224" border="0" cellpadding="0" cellspacing="0" style="font-weight:bold">
																		<tbody>
																		<tr>
																			<td colspan="3" style="height:56px">&nbsp;</td>
																		</tr>
																		<tr>
																			<td width="100" style="padding-left:7px;padding-top:12px;text-align:center;font-size:16px;color:#e24319">
																			<input style="width:65px;margin-left:-10px;background: none;border: none;text-align: center;" type="text" name="moneyout" maxlength="7" value="<?=intval($User['MoneyOut']); ?>" placeholder="" onkeyup="return calcul(this,'cashin',0,5);"/>
																			</td>
																			<td width="34">&nbsp;</td>
																			<td width="100" style="text-align:center;padding-right:0px;padding-top:13px;"><font style="font-size:12px;color:#7e8600">+5%</font></td>
																		</tr>
																		</tbody>
																	</table>
																</div>
															
															</td>						
															<td rowspan="2" width="200"><img src="/images/buy_buster.jpg"></td>
															
															<td align="center">
															
																<div class="exchange2" onmouseover="this.className='exchange2_on';" onmouseout="this.className='exchange2';">
																	<table width="224" border="0" cellpadding="0" cellspacing="0" style="font-weight:bold">
																		<tbody>
																		<tr>
																			<td colspan="3" style="height:56px">&nbsp;</td>
																		</tr>
																		<tr>
																			<td width="100" style="padding-left:7px;padding-top:12px;text-align:center;font-size:16px;color:#e24319"><span class="title" id="cashin"><?=intval($User['MoneyOut'] + ($User['MoneyOut'] * 0.05)); ?></span></td>
																			<td width="34">&nbsp;</td>
																			<td width="100" style="text-align:center;padding-right:0px;padding-top:13px;"><font style="font-size:12px;color:#7e8600"></font>
																				<font style="font-size:11px;color:#e24319"></font>
																			</td>
																		</tr>
																		</tbody>
																	</table>
																</div>
															
															</td>					
														</tr>

														<tr>
															<td align="center">
																<span class="button" onclick="process('exchangerForm','/process/exchanger.php','exchangerForm .fail','exchangerForm .fail','exchangerForm')">Обменять</span>
																<div class="fail"></div>
															</td>
														</tr>
														
													</tbody>
												</table>
												</div>
												</form>
											</td>
										</tr>
									</tbody>
									</table>
                                </td>
                            </tr>
                        </tbody>
                    </table>                                
                    </td><!-- CONTENT USER -->
                </tr>
            </tbody>
        </table>
    </td>
</tr>
<!-- CLOSE CENTER -->