2017-03-07 09:38:47 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
2018-07-31 15:58:23 +02:00
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
2017-03-07 09:38:47 +01:00
|
|
|
|
2018-07-31 15:58:23 +02:00
|
|
|
<title>pile ADMIN INTERFACE</title>
|
2017-03-07 09:38:47 +01:00
|
|
|
|
2018-07-31 15:58:23 +02:00
|
|
|
<link rel="stylesheet" type="text/css" href="assets/admin.css">
|
2019-05-17 10:02:04 +02:00
|
|
|
<link rel="icon" type="image/png" href="/favicon.png">
|
2018-07-31 15:58:23 +02:00
|
|
|
</head>
|
|
|
|
<body>
|
2017-03-07 09:38:47 +01:00
|
|
|
|
2018-07-31 15:58:23 +02:00
|
|
|
<div id="sidebar">
|
|
|
|
<div id="sidebar-head">
|
|
|
|
<h1><a href="admin.php">pile admin</a></h1>
|
|
|
|
</div>
|
|
|
|
<div id="sidebar-taglist">
|
|
|
|
<ul id="sidebar-taglist-overview">
|
|
|
|
<li id="sidebar-taglist-top"><a href="?tag=*">ALL (<?= $all_count ?>)</a></li>
|
|
|
|
<li id="sidebar-taglist-top"><a href="?tag=_">UNTAGGED (<?= $none_count ?>)</a></li>
|
|
|
|
<li id="sidebar-taglist-top"><a href="?action=new_tag">ADD TAG</a></li>
|
|
|
|
</ul>
|
|
|
|
<ul>
|
2018-09-17 11:25:56 +02:00
|
|
|
<?php
|
2018-07-31 15:58:23 +02:00
|
|
|
foreach ($tags as $tag) {
|
2019-04-30 19:13:45 +02:00
|
|
|
echo '<li><a href="?tag=' . $tag['id'] . "\">" . $tag['name'] . " (" . $tag['count'] . ")</a></li>";
|
2018-07-31 15:58:23 +02:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="content">
|
|
|
|
<?php echo $content ?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="login">
|
|
|
|
<form method="get">
|
|
|
|
<input type="hidden" name="action" value="logout">
|
|
|
|
<button type="submit" id="login-button">log out</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
2017-03-07 09:38:47 +01:00
|
|
|
</body>
|
|
|
|
</html>
|