battles/__modules/clan_panel.php
2018-01-28 18:40:49 +02:00

105 lines
4.7 KiB
PHP

<?
session_start();
if(!isset($_SESSION['uid'])) { header('Location: ../index.php'); exit(); }
include('../config.php');
include('../functions.php');
$user ='';
if($user['klan'] == '') { header('Location: ../main.php'); exit(); }
if(!isset($_SESSION['razdel_panel'])) { $_SESSION['razdel_panel'] = 'main'; }
if($_GET['razdel']) {
switch ($_GET['razdel']) {
case "main": $_SESSION['razdel_panel'] = 'main'; break;
case "kazna": $_SESSION['razdel_panel'] = 'kazna'; break;
case "arsenal": $_SESSION['razdel_panel'] = 'arsenal'; break;
case "wars": $_SESSION['razdel_panel'] = 'wars'; break;
case "message": $_SESSION['razdel_panel'] = 'message'; break;
case "castle": $_SESSION['razdel_panel'] = 'castle'; break;
case "maintains": $_SESSION['razdel_panel'] = 'maintains'; break;
default: $_SESSION['razdel_panel'] = 'razdel_panel'; break;
}
}
?>
<html>
<head>
<title>404</title>
<link rel="stylesheet" type="text/css" href="../css/main.css" />
<script src="../js/jquery-1.7.2.min.js"></script>
<script src="../js/jquery.simplemodal.js"></script>
<script src="../js/jquery.ui.js?100"></script>
<script src="../js/mi.js"></script>
<link rel="stylesheet" href="../css/bkstyle.css?101" />
<link rel="stylesheet" href="../css/mi.css" />
<style>
.m { background: #99CCCC; text-align: center; }
.s { background: #BBDDDD; text-align: center; }
.s2 { background: #C0D6D4; text-align: center; }
a.menu { font-weight: bold; font-size: 8pt; color:#959595; text-decoration: none; text-align: center; }
a.menu2 { font-weight: bold; font-size: 8pt; color: #8F0000; text-decoration: none; text-align: center; }
a.menu:hover { font-weight:bold; font-size: 8pt; color: #8F0000; text-decoration: none; text-align: center; }
.menu22 { font-weight: bold; font-size: 8pt; color: #003388; text-decoration: none; text-align: center; }
.menu221 { background-color: #A5A5A5; text-align: center; }
.menu222 { font-weight: bold; font-size: 8pt; color: #000000; text-decoration: none; }
.body {margin: 5px; background: #D7D7D7}
</style>
</head>
<body>
<table width="100%">
<tbody>
<tr>
<td align="right">
<input type="button" onclick="location.href='../main.php';" value="Вернуться" />
</td>
</tr>
<tr>
<td width="100%" valign="top" align="center">
<table border="0" width="956">
<tbody>
<tr>
<td width="956" style="background-image: url(../i/clan_panel/menu_bg33.jpg); background-repeat: no-repeat">
<table border="0" cellpadding="4" cellspacing="3">
<tbody>
<tr height="38">
<td width="15">&nbsp;</td>
<td align="center" width="127" valign="top"><a class="menu<? if($_SESSION['razdel_panel'] == 'main') { echo "2"; }?>" href="?razdel=main">Главная</a></td>
<td align="center" width="127" valign="top"><a class="menu<? if($_SESSION['razdel_panel'] == 'kazna') { echo "2"; }?>" href="?razdel=kazna">Казна</a></td>
<!-- <td align="center" width="140" valign="top"><a class="menu<? if($_SESSION['razdel_panel'] == 'arsenal') { echo "2"; }?>" href="klan_arsenal.php">Арсенал</a></td> -->
<td align="center" width="143" valign="top"><a class="menu<? if($_SESSION['razdel_panel'] == 'wars') { echo "2"; }?>" href="?razdel=wars">Войны и враги</a></td>
<td align="center" width="140" valign="top"><a class="menu<? if($_SESSION['razdel_panel'] == 'message') { echo "2"; }?>" href="?razdel=message">Сообщения</a></td>
<!-- <td align="center" width="132" valign="top"><a class="menu<? if($_SESSION['razdel_panel'] == 'castle') { echo "2"; }?>" href="klan_castles.php">Замки</a></td> -->
<td align="center" width="122" valign="top"><a class="menu<? if($_SESSION['razdel_panel'] == 'maintains') { echo "2"; }?>" href="?razdel=maintains">Управление</a></td>
<td width="5">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<table border="0" width="1100">
<tbody>
<tr>
<td>
<table width="100%" border="0">
<tbody>
<tr>
<td align="center">
<? include('clan_modules/'.$_SESSION['razdel_panel'].'.php'); ?>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</body>
</html>