Dragon-Knight/templates/primary.php

52 lines
1.3 KiB
PHP

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?= $title ?></title>
<link rel="stylesheet" href="/css/dk.css">
<script>
function opencharpopup(id = 0)
{
const url = id == 0 ? '/character' : '/character/' + id
window.open(url, "", "width=210,height=500,scrollbars")
}
function openmappopup()
{
window.open("/showmap", "", "width=520,height=520,scrollbars")
}
</script>
</head>
<body>
<div id="game-container">
<header>
<img id="logo" src="/img/logo.gif" alt="<?= $dkgamename ?>" title="<?= $dkgamename ?>">
<nav><?= $topnav ?></nav>
</header>
<main>
<section id="left"><?= $leftnav ?></section>
<section id="middle"><?= $content ?></section>
<section id="right"><?= $rightnav ?></section>
</main>
<footer>
<div>Powered by <a href="/" target="_new">Dragon Knight</a></div>
<div>&copy; 2024 Sharkk</div>
<div><?= $totaltime ?> Seconds, <?= $numqueries ?> Queries</div>
<div>Version <?= $version ?> <?= $build ?></div>
</footer>
<?php
if (!empty($querylog)) {
echo '<pre>';
foreach ($querylog as $record) echo '<div>['.round($record[1], 2)."s] {$record[0]}</div>";
echo '</pre>';
}
?>
</div>
</body>
</html>