<?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/shop.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 />
                                    <!-- Описание контента -->
									<div class="nice_panel" id="user_" align="center" style="margin-top: 10px;width:99%">

                                        <!-- OPEN UNIT SHOP1 -->
                                        <div style="padding: 1px;" id="shop1" onclick="process('','/process/shop.php?ident=1','shop1 .result','shop1 .result','shop1')">
                                            <table cellspacing="0" cellpadding="0" border="0" height="100%" width="100%">
                                                <tbody>
                                                    <tr>
                                                        <td>
                                                            <div style="height: 20px; margin: 5px; text-align: left;" id="user__info_login">
                                                            <b><?=$Name[1]; ?></b>                                                    
                                                            </div>
                                                        </td>
                                                    </tr>
                                                    <tr class="buys" style="background-color: #FAEDD0;">
                                                        <td height="100%" width="100%">
                                                            <div style="width:100%;padding:5px;text-align:left">
                                                                <table style="width:100%">
                                                                    <tbody>
                                                                        <tr>
                                                                            <td width="10%" style="vertical-align:top;padding-bottom: 5px;">
                                                                                <span class="payer">
                                                                                    <img src="/images/shop/image_1.png" border="0">
                                                                                </span>
                                                                            </td>
                                                                            <td style="padding: 5px;"><br />
                                                                                <img src="/images/icons/prestij.gif" width="15" height="15" align="absmiddle"> <b>Престиж:</b> <span style="color:#A5B33A;">+500</span><br />
                                                                                <img src="/images/icons/expir.gif" width="15" height="15" align="absmiddle"> <b>Уровень:</b> <span style="color:#A5B33A;">1</span><br />
                                                                                <img src="/images/icons/profile.gif" width="15" height="15" align="absmiddle"> <b>Доход:</b> <span style="color:#A5B33A;"><?=$Dohod[1]; ?> в минуту</span><br />
                                                                                <img src="/images/icons/time.gif" width="15" height="15" align="absmiddle"> <b>Ремонт:</b> <span style="color:#A5B33A;">через <?=$Srok[1]; ?> дней</span><br />
                                                                                <img src="/images/icons/rem.jpg" width="15" height="15" align="absmiddle"><b>Покупка:</b> <span style="color:#A5B33A;"><?=$Remont[1]; ?> ремкомплект</span><br />
                                                                                <img src="/images/icons/buy.gif" width="15" height="15" align="absmiddle"><b>Покупка:</b> <span style="color:#A5B33A;"><?=$Price[1]; ?> бустеров</span>
                                                                            </td>
                                                                        </tr>
                                                                    </tbody>
                                                                </table>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <div class="buys" style="height: 27px;">
                                                                <div class="result" style="width:98%;padding:5px;text-align:center"></div>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                        </div>
                                        <script type="text/javascript">$("#shop1 .profitability").height($("#shop1 .profitability").width())</script>
                                        <!-- CLOSE UNIT SHOP1 -->
                                        <div style="background-color: #F0E8D5;margin: 0;display:block;height: 20px;padding: 0;"></div>
                                        <!-- OPEN UNIT SHOP2 -->
                                        <div style="padding: 1px;" id="shop2" onclick="process('','/process/shop.php?ident=2','shop2 .result','shop2 .result','shop2')">
                                            <table cellspacing="0" cellpadding="0" border="0" height="100%" width="100%">
                                                <tbody>
                                                    <tr>
                                                        <td>
                                                            <div style="height: 20px; margin: 5px; text-align: left;" id="user__info_login">
                                                            <b><?=$Name[2]; ?></b>                                                    
                                                            </div>
                                                        </td>
                                                    </tr>
                                                    <tr class="buys" style="background-color: #FAEDD0;">
                                                        <td height="100%" width="100%">
                                                            <div style="width:100%;padding:5px;text-align:left">
                                                                <table style="width:100%">
                                                                    <tbody>
                                                                        <tr>
                                                                            <td width="10%" style="vertical-align:top;padding-bottom: 5px;">
                                                                                <span class="payer">
                                                                                    <img src="/images/shop/image_2.png" border="0">
                                                                                </span>
                                                                            </td>
                                                                            <td style="padding: 5px;"><br />
                                                                                <img src="/images/icons/prestij.gif" width="15" height="15" align="absmiddle"> <b>Престиж:</b> <span style="color:#A5B33A;">+500</span><br />
                                                                                <img src="/images/icons/expir.gif" width="15" height="15" align="absmiddle"> <b>Уровень:</b> <span style="color:#A5B33A;">2</span><br />
                                                                                <img src="/images/icons/profile.gif" width="15" height="15" align="absmiddle"> <b>Доход:</b> <span style="color:#A5B33A;"><?=$Dohod[2]; ?> в минуту</span><br />
                                                                                <img src="/images/icons/time.gif" width="15" height="15" align="absmiddle"> <b>Ремонт:</b> <span style="color:#A5B33A;">через <?=$Srok[2]; ?> дней</span><br />
                                                                                <img src="/images/icons/rem.jpg" width="15" height="15" align="absmiddle"><b>Покупка:</b> <span style="color:#A5B33A;"><?=$Remont[2]; ?> ремкомплект</span><br />
                                                                                <img src="/images/icons/buy.gif" width="15" height="15" align="absmiddle"><b>Покупка:</b> <span style="color:#A5B33A;"><?=$Price[2]; ?> бустеров</span>
                                                                            </td>
                                                                        </tr>
                                                                    </tbody>
                                                                </table>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <div class="buys" style="height: 27px;">
                                                                <div class="result" style="width:98%;padding:5px;text-align:center"></div>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                        </div>
                                        <script type="text/javascript">$("#shop2 .profitability").height($("#shop2 .profitability").width())</script>
									    <!-- CLOSE UNIT SHOP2 -->

                                        <div style="background-color: #F0E8D5;margin: 0;display:block;height: 20px;padding: 0;"></div>
                                        
                                        <!-- OPEN UNIT SHOP3 -->
                                        <div style="padding: 1px;" id="shop3" onclick="process('','/process/shop.php?ident=3','shop3 .result','shop3 .result','shop3')">
                                            <table cellspacing="0" cellpadding="0" border="0" height="100%" width="100%">
                                                <tbody>
                                                    <tr>
                                                        <td>
                                                            <div style="height: 20px; margin: 5px; text-align: left;" id="user__info_login">
                                                            <b><?=$Name[3]; ?></b>                                                    
                                                            </div>
                                                        </td>
                                                    </tr>
                                                    <tr class="buys" style="background-color: #FAEDD0;">
                                                        <td height="100%" width="100%">
                                                            <div style="width:100%;padding:5px;text-align:left">
                                                                <table style="width:100%">
                                                                    <tbody>
                                                                        <tr>
                                                                            <td width="10%" style="vertical-align:top;padding-bottom: 5px;">
                                                                                <span class="payer">
                                                                                    <img src="/images/shop/image_3.png" border="0">
                                                                                </span>
                                                                            </td>
                                                                            <td style="padding: 5px;"><br />
                                                                                <img src="/images/icons/prestij.gif" width="15" height="15" align="absmiddle"> <b>Престиж:</b> <span style="color:#A5B33A;">+500</span><br />
                                                                                <img src="/images/icons/expir.gif" width="15" height="15" align="absmiddle"> <b>Уровень:</b> <span style="color:#A5B33A;">5</span><br />
                                                                                <img src="/images/icons/profile.gif" width="15" height="15" align="absmiddle"> <b>Доход:</b> <span style="color:#A5B33A;"><?=$Dohod[3]; ?> в минуту</span><br />
                                                                                <img src="/images/icons/time.gif" width="15" height="15" align="absmiddle"> <b>Ремонт:</b> <span style="color:#A5B33A;">через <?=$Srok[3]; ?> дней</span><br />
                                                                                <img src="/images/icons/rem.jpg" width="15" height="15" align="absmiddle"><b>Покупка:</b> <span style="color:#A5B33A;"><?=$Remont[3]; ?> ремкомплект</span><br />
                                                                                <img src="/images/icons/buy.gif" width="15" height="15" align="absmiddle"><b>Покупка:</b> <span style="color:#A5B33A;"><?=$Price[3]; ?> бустеров</span>
                                                                            </td>
                                                                        </tr>
                                                                    </tbody>
                                                                </table>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <div class="buys" style="height: 27px;">
                                                                <div class="result" style="width:98%;padding:5px;text-align:center"></div>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                        </div>
                                        <script type="text/javascript">$("#shop3 .profitability").height($("#shop3 .profitability").width())</script>
									    <!-- CLOSE UNIT SHOP3 -->

                                        <div style="background-color: #F0E8D5;margin: 0;display:block;height: 20px;padding: 0;"></div>

                                        <!-- OPEN UNIT SHOP4 -->
                                        <div style="padding: 1px;" id="shop4" onclick="process('','/process/shop.php?ident=4','shop4 .result','shop4 .result','shop4')">
                                            <table cellspacing="0" cellpadding="0" border="0" height="100%" width="100%">
                                                <tbody>
                                                    <tr>
                                                        <td>
                                                            <div style="height: 20px; margin: 5px; text-align: left;" id="user__info_login">
                                                            <b><?=$Name[4]; ?></b>                                                    
                                                            </div>
                                                        </td>
                                                    </tr>
                                                    <tr class="buys" style="background-color: #FAEDD0;">
                                                        <td height="100%" width="100%">
                                                            <div style="width:100%;padding:5px;text-align:left">
                                                                <table style="width:100%">
                                                                    <tbody>
                                                                        <tr>
                                                                            <td width="10%" style="vertical-align:top;padding-bottom: 5px;">
                                                                                <span class="payer">
                                                                                    <img src="/images/shop/image_4.png" border="0">
                                                                                </span>
                                                                            </td>
                                                                            <td style="padding: 5px;"><br />
                                                                                <img src="/images/icons/prestij.gif" width="15" height="15" align="absmiddle"> <b>Престиж:</b> <span style="color:#A5B33A;">+500</span><br />
                                                                                <img src="/images/icons/expir.gif" width="15" height="15" align="absmiddle"> <b>Уровень:</b> <span style="color:#A5B33A;">8</span><br />
                                                                                <img src="/images/icons/profile.gif" width="15" height="15" align="absmiddle"> <b>Доход:</b> <span style="color:#A5B33A;"><?=$Dohod[4]; ?> в минуту</span><br />
                                                                                <img src="/images/icons/time.gif" width="15" height="15" align="absmiddle"> <b>Ремонт:</b> <span style="color:#A5B33A;">через <?=$Srok[4]; ?> дней</span><br />
                                                                                <img src="/images/icons/rem.jpg" width="15" height="15" align="absmiddle"><b>Покупка:</b> <span style="color:#A5B33A;"><?=$Remont[4]; ?> ремкомплект</span><br />
                                                                                <img src="/images/icons/buy.gif" width="15" height="15" align="absmiddle"><b>Покупка:</b> <span style="color:#A5B33A;"><?=$Price[4]; ?> бустеров</span>
                                                                            </td>
                                                                        </tr>
                                                                    </tbody>
                                                                </table>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <div class="buys" style="height: 27px;">
                                                                <div class="result" style="width:98%;padding:5px;text-align:center"></div>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                        </div>
                                        <script type="text/javascript">$("#shop4 .profitability").height($("#shop4 .profitability").width())</script>
									    <!-- CLOSE UNIT SHOP4 -->

                                        <div style="background-color: #F0E8D5;margin: 0;display:block;height: 20px;padding: 0;"></div>

                                        <!-- OPEN UNIT SHOP5 -->
                                        <div style="padding: 1px;" id="shop5" onclick="process('','/process/shop.php?ident=5','shop5 .result','shop5 .result','shop5')">
                                            <table cellspacing="0" cellpadding="0" border="0" height="100%" width="100%">
                                                <tbody>
                                                    <tr>
                                                        <td>
                                                            <div style="height: 20px; margin: 5px; text-align: left;" id="user__info_login">
                                                            <b><?=$Name[5]; ?></b>                                                    
                                                            </div>
                                                        </td>
                                                    </tr>
                                                    <tr class="buys" style="background-color: #FAEDD0;">
                                                        <td height="100%" width="100%">
                                                            <div style="width:100%;padding:5px;text-align:left">
                                                                <table style="width:100%">
                                                                    <tbody>
                                                                        <tr>
                                                                            <td width="10%" style="vertical-align:top;padding-bottom: 5px;">
                                                                                <span class="payer">
                                                                                    <img src="/images/shop/image_5.png" border="0">
                                                                                </span>
                                                                            </td>
                                                                            <td style="padding: 5px;"><br />
                                                                                <img src="/images/icons/prestij.gif" width="15" height="15" align="absmiddle"> <b>Престиж:</b> <span style="color:#A5B33A;">+500</span><br />
                                                                                <img src="/images/icons/expir.gif" width="15" height="15" align="absmiddle"> <b>Уровень:</b> <span style="color:#A5B33A;">10</span><br />
                                                                                <img src="/images/icons/profile.gif" width="15" height="15" align="absmiddle"> <b>Доход:</b> <span style="color:#A5B33A;"><?=$Dohod[5]; ?> в минуту</span><br />
                                                                                <img src="/images/icons/time.gif" width="15" height="15" align="absmiddle"> <b>Ремонт:</b> <span style="color:#A5B33A;">через <?=$Srok[5]; ?> дней</span><br />
                                                                                <img src="/images/icons/rem.jpg" width="15" height="15" align="absmiddle"><b>Покупка:</b> <span style="color:#A5B33A;"><?=$Remont[5]; ?> ремкомплект</span><br />
                                                                                <img src="/images/icons/buy.gif" width="15" height="15" align="absmiddle"><b>Покупка:</b> <span style="color:#A5B33A;"><?=$Price[5]; ?> бустеров</span>
                                                                            </td>
                                                                        </tr>
                                                                    </tbody>
                                                                </table>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <div class="buys" style="height: 27px;">
                                                                <div class="result" style="width:98%;padding:5px;text-align:center"></div>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                        </div>
                                        <script type="text/javascript">$("#shop5 .profitability").height($("#shop5 .profitability").width())</script>
									    <!-- CLOSE UNIT SHOP5 -->

                                        <div style="background-color: #F0E8D5;margin: 0;display:block;height: 20px;padding: 0;"></div>

                                        <!-- OPEN UNIT SHOP6 -->
                                        <div style="padding: 1px;" id="shop6" onclick="process('','/process/shop.php?ident=6','shop6 .result','shop6 .result','shop6')">
                                            <table cellspacing="0" cellpadding="0" border="0" height="100%" width="100%">
                                                <tbody>
                                                    <tr>
                                                        <td>
                                                            <div style="height: 20px; margin: 5px; text-align: left;" id="user__info_login">
                                                            <b><?=$Name[6]; ?></b>                                                    
                                                            </div>
                                                        </td>
                                                    </tr>
                                                    <tr class="buys" style="background-color: #FAEDD0;">
                                                        <td height="100%" width="100%">
                                                            <div style="width:100%;padding:5px;text-align:left">
                                                                <table style="width:100%">
                                                                    <tbody>
                                                                        <tr>
                                                                            <td width="10%" style="vertical-align:top;padding-bottom: 5px;">
                                                                                <span class="payer">
                                                                                    <img src="/images/shop/image_6.png" border="0">
                                                                                </span>
                                                                            </td>
                                                                            <td style="padding: 5px;"><br />
                                                                                <img src="/images/icons/prestij.gif" width="15" height="15" align="absmiddle"> <b>Престиж:</b> <span style="color:#A5B33A;">+500</span><br />
                                                                                <img src="/images/icons/expir.gif" width="15" height="15" align="absmiddle"> <b>Уровень:</b> <span style="color:#A5B33A;">12</span><br />
                                                                                <img src="/images/icons/profile.gif" width="15" height="15" align="absmiddle"> <b>Доход:</b> <span style="color:#A5B33A;"><?=$Dohod[6]; ?> в минуту</span><br />
                                                                                <img src="/images/icons/time.gif" width="15" height="15" align="absmiddle"> <b>Ремонт:</b> <span style="color:#A5B33A;">через <?=$Srok[6]; ?> дней</span><br />
                                                                                <img src="/images/icons/rem.jpg" width="15" height="15" align="absmiddle"><b>Покупка:</b> <span style="color:#A5B33A;"><?=$Remont[6]; ?> ремкомплект</span><br />
                                                                                <img src="/images/icons/buy.gif" width="15" height="15" align="absmiddle"><b>Покупка:</b> <span style="color:#A5B33A;"><?=$Price[6]; ?> бустеров</span>
                                                                            </td>
                                                                        </tr>
                                                                    </tbody>
                                                                </table>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <div class="buys" style="height: 27px;">
                                                                <div class="result" style="width:98%;padding:5px;text-align:center"></div>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                        </div>
                                        <script type="text/javascript">$("#shop6 .profitability").height($("#shop6 .profitability").width())</script>
									    <!-- CLOSE UNIT SHOP6 -->
                                        <div style="background-color: #F0E8D5;margin: 0;display:block;height: 20px;padding: 0;"></div>

                                </td>
                            </tr>
                        </tbody>
                    </table>                                
                    </td><!-- CONTENT USER -->
                </tr>
            </tbody>
        </table>
    </td>
</tr>
<!-- CLOSE CENTER -->