Внедрение шаблонизатора. Решение самых идиотских ошибок вёрстки. Кое-где исправлены ошибки синтаксиса php.

This commit is contained in:
Igor Barkov (iwork)
2020-09-30 22:12:34 +03:00
parent 8b1a2e9b38
commit a4de6c51a3
41 changed files with 4688 additions and 5715 deletions
+7 -68
View File
@@ -6,7 +6,7 @@ if (empty($_SESSION['uid'])) {
}
require_once 'functions.php';
include('classes/quests_class.php');
require_once 'classes/quests_class.php';
$qEndNow = $_GET['end_qst_now'] ?? null;
$qEnd = $_GET['end_qst'] ?? null;
@@ -23,70 +23,9 @@ $qsee = '';
$qx = 0;
$error = '';
Template::header('module_quest');
?>
<!DOCTYPE html>
<html lang="ru">
<head>
<title></title>
<meta charset="utf-8">
<link rel="stylesheet" href="css/hostel.css"/>
<style>
div.ctContainerA, div.ctContainerB {
position: relative;
margin-bottom: 5px;
padding: 5px;
box-shadow: 3px 3px 5px 0 #323232;
}
div.ctContainerA {
border: 2px groove threedface;
}
div.ctTitle {
margin-bottom: 3px;
border-bottom: 2px groove threedface;
font-weight: bold;
color: #bf0000;
}
div.ctContent {
overflow: hidden;
position: relative;
width: 100%;
}
div.quest_target_item div.ctTitle a.action-start {
float: right;
}
div.quest_target_item[forever='1'] div.ctContent .available {
color: #800;
}
div.quest_target_item[forever='0'][available='0'] div.ctContent .available {
color: blue;
}
div.quest_target_item div.ctContent .available {
font-size: small;
}
div.quest_target_item div.ctContent img.icon {
width: 60px;
height: 60px;
float: left;
margin: 2px;
}
div.qriContainer {
position: relative;
display: inline;
font-size: 80%;
}
</style>
</head>
<body>
<link rel="stylesheet" href="css/hostel.css"/>
<?php
$sp = db::c()->query('SELECT `vars` FROM `actions` WHERE `vars` LIKE "?S" AND `vals` = "?s" AND `uid` = ?i LIMIT 100', "%start_quest%", "go", $user->id);
while ($pl = $sp->fetch_assoc()) {
@@ -111,10 +50,10 @@ if ($q->error) {
<input type="button" class="btns button-route" value="Вернуться" onclick="location.href='main.php';"/>
<input type="button" class="btns button-route" value="Обновить" onclick="location.href='module_quest.php';"/>
</div>
<?php if ($error) {err($error);} ?>
<?php if ($error) {
err($error);
} ?>
<div class="quest_target_container" style="padding-top: 15px;">
<?= $qsee ?>
</div>
</div>
</body>
</html>
</div>