Внедрение шаблонизатора.
This commit is contained in:
parent
6fd40b7bdf
commit
ce77253d3b
14
clan.php
14
clan.php
@ -3,6 +3,7 @@ ob_start("ob_gzhandler");
|
|||||||
session_start();
|
session_start();
|
||||||
if (empty($_SESSION['uid'])) {
|
if (empty($_SESSION['uid'])) {
|
||||||
header("Location: index.php");
|
header("Location: index.php");
|
||||||
|
exit;
|
||||||
}
|
}
|
||||||
include_once 'functions.php';
|
include_once 'functions.php';
|
||||||
if (!$user->clan) {
|
if (!$user->clan) {
|
||||||
@ -99,15 +100,8 @@ if ($login && $action == 'edit_status') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$clan_memberlist = db::c()->query('SELECT `id`, `login`, `status`, `level`, `room`, `align`, (select `id` from `online` WHERE `date` >= ?i AND `id` = users.`id`) AS `online` FROM `users` WHERE `klan` = ?i ORDER BY `online` DESC , `login` ASC', (time() - 60), $clanRow['id']);
|
$clan_memberlist = db::c()->query('SELECT `id`, `login`, `status`, `level`, `room`, `align`, (select `id` from `online` WHERE `date` >= ?i AND `id` = users.`id`) AS `online` FROM `users` WHERE `klan` = ?i ORDER BY `online` DESC , `login` ASC', (time() - 60), $clanRow['id']);
|
||||||
|
Template::header('clan');
|
||||||
?>
|
?>
|
||||||
<!doctype html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<link rel=stylesheet href="css/main.css">
|
|
||||||
<meta charset="utf-8">
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div>
|
<div>
|
||||||
<button onclick="location.href='main.php'">Вернуться</button>
|
<button onclick="location.href='main.php'">Вернуться</button>
|
||||||
<?php if (!empty($status)) {err($status);} ?>
|
<?php if (!empty($status)) {err($status);} ?>
|
||||||
@ -236,6 +230,4 @@ $clan_memberlist = db::c()->query('SELECT `id`, `login`, `status`, `level`, `roo
|
|||||||
function use(option) {
|
function use(option) {
|
||||||
document.getElementById(option).innerHTML = "<form method='post'><input placeholder='Имя персонажа' name='login'><button name='action' value='" + option + "' type='submit'>Ок</button><button>×</button></form>";
|
document.getElementById(option).innerHTML = "<form method='post'><input placeholder='Имя персонажа' name='login'><button name='action' value='" + option + "' type='submit'>Ок</button><button>×</button></form>";
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</body>
|
|
||||||
</html>
|
|
Loading…
Reference in New Issue
Block a user