another final version
This commit is contained in:
parent
ecaaede66b
commit
5ca0b2d397
36
akadem.php
36
akadem.php
@ -13,6 +13,7 @@ if ($user['battle'] != 0) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$status = 'Внимание! Моментальная оплата без подтверждения!';
|
$status = 'Внимание! Моментальная оплата без подтверждения!';
|
||||||
|
$get = urldecode(filter_input(INPUT_SERVER, 'QUERY_STRING'));
|
||||||
|
|
||||||
function setProfession($name, $type, $needMoney, $needLevel)
|
function setProfession($name, $type, $needMoney, $needLevel)
|
||||||
{
|
{
|
||||||
@ -30,15 +31,14 @@ function setProfession($name, $type, $needMoney, $needLevel)
|
|||||||
return 'Вы получили профессию!';
|
return 'Вы получили профессию!';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($_POST['smith']) $status = setProfession('smith',1,300,3);
|
if ($get == 'smith') $status = setProfession('smith', 1, 300, 3);
|
||||||
if ($_POST['mercenary']) $status = setProfession('mercenary',2,700,5);
|
if ($get == 'mercenary') $status = setProfession('mercenary', 2, 700, 5);
|
||||||
if ($_POST['medic']) $status = setProfession('medic',2,700,5);
|
if ($get == 'medic') $status = setProfession('medic', 2, 700, 5);
|
||||||
|
|
||||||
if ($_GET['exit'] == 1) {
|
if ($get == 'exit') {
|
||||||
db::c()->query('UPDATE `users`,`online` SET `users`.`room` = 2702, `online`.`room` = 2702 WHERE `users`.`id` = ?i AND `online`.`id` = ?i', $user['id'], $user['id']);
|
db::c()->query('UPDATE `users`,`online` SET `users`.`room` = 2702, `online`.`room` = 2702 WHERE `users`.`id` = ?i AND `online`.`id` = ?i', $user['id'], $user['id']);
|
||||||
header('Location: city.php');
|
header('Location: city.php');
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
@ -49,19 +49,15 @@ if ($_GET['exit'] == 1) {
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="topRoomButtons">
|
<div class="topRoomButtons">
|
||||||
<form action="city.php?act=go&level=2702" method=POST>
|
<button onclick="location.href='main.php'">Обновить</button>
|
||||||
<input type="button" class="btns" value="Обновить" onclick="location.href='main.php';"/>
|
<button onclick="location.href='?exit'">Вернуться</button>
|
||||||
<input type="button" class="btns button-route" value="Вернуться" onclick="location.href='?exit=1';"/>
|
|
||||||
</form>
|
|
||||||
</div>
|
</div>
|
||||||
<h1>Академия</h1>
|
<h1>Академия</h1>
|
||||||
<div><?php if (!empty($status)) err($status); ?></div>
|
<div><?php if (!empty($status)) err($status); ?></div>
|
||||||
<div class="appblock">
|
<div class="appblock">
|
||||||
<span class="legend">Наёмник</span>
|
<span class="legend">Наёмник</span>
|
||||||
<?php if (empty($user['prof2'])): ?>
|
<?php if (empty($user['prof2'])): ?>
|
||||||
<form method="post">
|
<button onclick="location.href='?mercenary'">Изучить профессию</button>
|
||||||
<input type="submit" name="mercenary" value="Изучить профессию" title="Изучить профессию">
|
|
||||||
</form>
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<button style="color: darkred" disabled>У вас уже есть боевая профессия</button>
|
<button style="color: darkred" disabled>У вас уже есть боевая профессия</button>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
@ -75,9 +71,7 @@ if ($_GET['exit'] == 1) {
|
|||||||
<div class="appblock">
|
<div class="appblock">
|
||||||
<span class="legend">Лекарь</span>
|
<span class="legend">Лекарь</span>
|
||||||
<?php if (empty($user['prof2'])): ?>
|
<?php if (empty($user['prof2'])): ?>
|
||||||
<form method="post">
|
<button onclick="location.href='?medic'">Изучить профессию</button>
|
||||||
<input type="submit" name="medic" value="Изучить профессию" title="Изучить профессию">
|
|
||||||
</form>
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<button style="color: darkred" disabled>У вас уже есть боевая профессия</button>
|
<button style="color: darkred" disabled>У вас уже есть боевая профессия</button>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
@ -100,8 +94,8 @@ if ($_GET['exit'] == 1) {
|
|||||||
<div class="appblock">
|
<div class="appblock">
|
||||||
<span class="legend">Кузнец</span>
|
<span class="legend">Кузнец</span>
|
||||||
<button disabled>Недоступно</button>
|
<button disabled>Недоступно</button>
|
||||||
<span class="wrap">Цена<span class="num">300</span></span>
|
<span class="wrap">Цена<span class="num">5000</span></span>
|
||||||
<span class="wrap">Уровень персонажа<span class="num">5</span></span>
|
<span class="wrap">Уровень персонажа<span class="num">10</span></span>
|
||||||
<span class="wrap">
|
<span class="wrap">
|
||||||
Кузнец может создавать новые предметы используя расходные материалы. Мирная профессия.
|
Кузнец может создавать новые предметы используя расходные материалы. Мирная профессия.
|
||||||
</span>
|
</span>
|
||||||
@ -109,9 +103,7 @@ if ($_GET['exit'] == 1) {
|
|||||||
<div class="appblock">
|
<div class="appblock">
|
||||||
<span class="legend">Оружейник</span>
|
<span class="legend">Оружейник</span>
|
||||||
<?php if (empty($user['prof1'])): ?>
|
<?php if (empty($user['prof1'])): ?>
|
||||||
<form method="post">
|
<button onclick="location.href='?smith'">Изучить профессию</button>
|
||||||
<input type="submit" name="smith" value="Изучить профессию" title="Изучить профессию">
|
|
||||||
</form>
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<button style="color: darkred" disabled>У вас уже есть мирная профессия</button>
|
<button style="color: darkred" disabled>У вас уже есть мирная профессия</button>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
@ -124,8 +116,8 @@ if ($_GET['exit'] == 1) {
|
|||||||
<div class="appblock">
|
<div class="appblock">
|
||||||
<span class="legend">Алхимик</span>
|
<span class="legend">Алхимик</span>
|
||||||
<button disabled>Недоступно</button>
|
<button disabled>Недоступно</button>
|
||||||
<span class="wrap">Цена<span class="num">500</span></span>
|
<span class="wrap">Цена<span class="num">5000</span></span>
|
||||||
<span class="wrap">Уровень персонажа<span class="num">8</span></span>
|
<span class="wrap">Уровень персонажа<span class="num">10</span></span>
|
||||||
<span class="wrap">
|
<span class="wrap">
|
||||||
Алхимик может создавать новые зелья используя расходные материалы. Мирная профессия.
|
Алхимик может создавать новые зелья используя расходные материалы. Мирная профессия.
|
||||||
</span>
|
</span>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user