Играемся кнопками.
This commit is contained in:
parent
cac8243aa2
commit
7dad2a06e3
47
main.php
47
main.php
@ -808,7 +808,7 @@ if (input::get('setch')) {
|
||||
}
|
||||
?>
|
||||
|
||||
<html>
|
||||
<html lang="ru">
|
||||
<head>
|
||||
<link rel="stylesheet" href="css/main.css"/>
|
||||
<meta charset="utf-8">
|
||||
@ -832,6 +832,7 @@ if (input::get('setch')) {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<title></title>
|
||||
</head>
|
||||
|
||||
<body id="body" onload="<?= topsethp() ?>">
|
||||
@ -839,42 +840,45 @@ if (input::get('setch')) {
|
||||
<div class="btn-control">
|
||||
<div class="left-text">
|
||||
<div class="nickname-wrapper"><?= nick::id($user['id'])->full() ?></div>
|
||||
<div class="text-title">Карта миров</div>
|
||||
<div class="hint-text">(Сейчас в игре: <strong><?= $online->getNumRows() ?></strong> чел.)</div>
|
||||
<div class="hint-text">Сейчас в игре: <strong><?= $online->getNumRows() ?></strong> чел.</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function update() {
|
||||
location.href = "main.php?setch=1&rnd=<?= mt_rand() ?>";
|
||||
}
|
||||
function gotolinkedfile(filename) {
|
||||
location.href = filename;
|
||||
}
|
||||
</script>
|
||||
|
||||
<button onclick="update()">Обновить</button>
|
||||
<button onclick="gotolinkedfile('zayavka.php')">Поединки</button>
|
||||
<button onclick="gotolinkedfile('main.php?edit=1')">Инвентарь</button>
|
||||
<button onclick="gotolinkedfile(module_quest.php)">Активные задания</button>
|
||||
<button onclick="gotolinkedfile(main.php)">Вернуться</button>
|
||||
|
||||
<div class="button-mid btn" name="setch" title="Обновить"
|
||||
onClick="location.href='main.php?setch=1&tmp=8455';">Обновить
|
||||
onClick="location.href='main.php?setch=1&rnd=<?= mt_rand() ?>';">Обновить
|
||||
</div>
|
||||
<div class="button-mid btn" name="combats" title="Поединки" onClick="location.href='zayavka.php';"><strong>Поединки</strong>
|
||||
</div>
|
||||
<div class="button-mid btn" name="invent" title="Настройки / инвентарь"
|
||||
onClick="location.href='main.php?edit=1';">Инвентарь
|
||||
<div class="button-mid btn" name="invent" title="Инвентарь" onClick="location.href='main.php?edit=1';">
|
||||
Инвентарь
|
||||
</div>
|
||||
<div class="button-mid btn" name="effects" onclick="location.href='module_quest.php';" value="Состояние"
|
||||
title="Состояние">Состояние
|
||||
</div>
|
||||
<div class="button-dark-mid btn" name="helps"
|
||||
onClick="window.open('help/combats.html', 'help', 'height=300,width=500,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes')"
|
||||
title="Подсказка">Подсказка
|
||||
<div class="button-mid btn" name="effects" onclick="location.href='module_quest.php';" title="Состояние">
|
||||
Состояние
|
||||
</div>
|
||||
<div class="button-mid btn" name="backpage" onClick="location.href='main.php';" title="Вернуться">
|
||||
Вернуться
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="btn-control">
|
||||
|
||||
<? if ($user['room'] == 20) { ?><img src="i/flag_position.png" border="0"/><? } ?>
|
||||
<? if ($user['room'] === 20) { ?><img src="i/flag_position.png" border="0"/><? } ?>
|
||||
<div class="button-big btn" name="backpage" onClick="location.href='main.php?goto=plo';"
|
||||
title="Выйти на Центральную площадь">Выйти на Центральную площадь
|
||||
title="Выйти на Центральную площадь">Центральная площадь
|
||||
</div>
|
||||
|
||||
<!-- Куууууча комнат. 1-17, 36, 54, 19, 18, 56, 55, 57 -->
|
||||
<div class="hr_n"></div>
|
||||
|
||||
<div class="map-block">
|
||||
<div class="map-block-logo novi4ki"></div>
|
||||
<div class="map-block-mid novi4ki">
|
||||
@ -887,7 +891,6 @@ if (input::get('setch')) {
|
||||
</div>
|
||||
<div class="map-block-right novi4ki"></div>
|
||||
</div>
|
||||
|
||||
<div class="hr_n"></div>
|
||||
</body>
|
||||
</html>
|
||||
@ -2034,7 +2037,7 @@ $online = db::c()->query('SELECT 1 FROM `online` WHERE `real_time` >= ?i', (time
|
||||
</li>
|
||||
<li>
|
||||
<div class="button-big btn" title="Обновить экран"
|
||||
onClick="location.href='main.php?sssetch=Обновить экран';">Обновить экран
|
||||
onClick="location.href='main.php?setch=Обновить экран';">Обновить экран
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
|
Loading…
Reference in New Issue
Block a user