Внедрение шаблонизатора. Решение самых идиотских ошибок вёрстки. Кое-где исправлены ошибки синтаксиса php.
This commit is contained in:
+10
-30
@@ -12,19 +12,16 @@ if ($user->battle) {
|
||||
exit;
|
||||
}
|
||||
$Tournament = new Tournament();
|
||||
Template::header('Турниры');
|
||||
?>
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<META content="text/html; charset=utf-8" http-equiv=Content-type>
|
||||
</head>
|
||||
<body style="background-image:url('/i/tournament/tournament2.jpg');background-repeat:no-repeat;background-position:center top;">
|
||||
<META HTTP-EQUIV="REFRESH" CONTENT="10">
|
||||
<div style='color:#8F0000; font-weight:bold; font-size:16px; text-align:center; float:left;'>Турнирная</div>
|
||||
<div style="float: right; padding-right: 6px;">
|
||||
<input type="button" onclick="window.location='main.php?setch=1'" value="Вернуться">
|
||||
</div>
|
||||
<br>
|
||||
<?php
|
||||
if (count($_POST) > 0) {
|
||||
if (!empty($_POST)) {
|
||||
if ($_POST['newtournament']) {
|
||||
$Tournament->CreateTournament("Еженедельные турниры");
|
||||
}
|
||||
@@ -42,12 +39,6 @@ if (count($_POST) > 0) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//$Tournir->CreateHTML(7);
|
||||
//echo $dateTime=mktime(20, 20, 0, 03, 31, 2010);
|
||||
//$Tournir->PrepearTournir();
|
||||
|
||||
|
||||
$dateD = mysql_fetch_row(mysql_query("select datetime from turnament where old=0 limit 1"));
|
||||
|
||||
if (mktime() >= ($dateD[0] + 10)) {
|
||||
@@ -61,21 +52,10 @@ if (mktime() >= ($dateD[0] + 10)) {
|
||||
$Tournament->ShowTournirFinaliats();
|
||||
?>
|
||||
<form method="post">
|
||||
<?php
|
||||
if ($user['align'] == 2.99) {
|
||||
?>
|
||||
<table>
|
||||
<tr>
|
||||
<td>Добавление нового турнира</td>
|
||||
<td><input type="submit" name="newtournament" value="Добавить"></td>
|
||||
<td>Приготовить турнир и запустить</td>
|
||||
<td><input type="submit" name="preptournament" value="Добавить"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</form>
|
||||
<META HTTP-EQUIV="REFRESH" CONTENT="10">
|
||||
</body>
|
||||
</html>
|
||||
<?php if ($user->admin) { ?>
|
||||
<div>
|
||||
<input type="submit" name="newtournament" value="Добавить новый турнир">
|
||||
<input type="submit" name="preptournament" value="Приготовить турнир и запустить">
|
||||
</div>
|
||||
<?php } ?>
|
||||
</form>
|
||||
Reference in New Issue
Block a user