Прикручиваем шаблон. Хороним идиотские ошибки.

This commit is contained in:
Igor Barkov (iwork) 2020-09-30 17:48:23 +03:00
parent 354499f885
commit 47147182fb
1 changed files with 91 additions and 103 deletions

View File

@ -21,18 +21,14 @@ if (isset($user['id'])) {
include('./classes/battle_new.class.php');
$fbattle = new fbattle($user['battle']);
Template::header('fbattle');
?>
<html>
<head>
<link rel="stylesheet" href="css/main.css">
<meta charset="utf-8">
<script type="text/javascript" src="js/ZeroClipboard.js"></script>
<script type="text/javascript" src="js/sl2.js"></script>
<script type="text/javascript" src="js/ch.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="js/tooltip.js"></script>
<link rel="stylesheet" type="text/css" href="css/tooltip.css"/>
<SCRIPT>
<script>
function refreshPeriodic() {
<?php if($fbattle->battle) { ?>location.href = '<?=$_SERVER['PHP_SELF']?>?batl=<?=$_REQUEST['batl']?>';//reload();
<?}?>
@ -40,8 +36,6 @@ $fbattle = new fbattle($user['battle']);
}
timerID = setTimeout("refreshPeriodic()", 20000);
</SCRIPT>
<script>
let Hint3Name = '';
function findlogin(title, script, name) {
@ -135,8 +129,6 @@ $fbattle = new fbattle($user['battle']);
cursor: pointer;
}
</style>
</head>
<body onLoad="top.setHP(<?= $user['hp'] ?>,<?= $user['maxhp'] ?>)">
<div id="hint3" class="ahint"></div>
<form action="<?= $_SERVER['PHP_SELF'] ?>" method="POST" name="f1" id="f1">
<table width=100% cellspacing=0 cellpadding=0 border=0>
@ -542,12 +534,8 @@ $fbattle = new fbattle($user['battle']);
</td></tr>
</table>
</form>
<div id="oMenu" onmouseout="closeMenu()"
style="position: absolute; border: 1px solid #666; background-color: #CCC; display: none; "></div>
</body>
</html>
<?php
db::c()->query('UNLOCK TABLES');
?>