flush -- WIP admin panel

This commit is contained in:
Tony Yang
2019-05-30 14:18:07 +08:00
parent 75af7df7b4
commit 84fb4180c9
53 changed files with 9104 additions and 2 deletions

16
theme/nav/default.html Normal file
View File

@@ -0,0 +1,16 @@
<div class="ts top attached pointing secondary large menu" id="menu">
<div class="ts narrow container">
<a href="index.php" class="active item">首頁</a>
<form class="right fitted item" action="login.php" method="POST" name="login">
<div class="tablet or large device only">
<div class="ts small underlined input">
<input placeholder="Username" type="text" name="username">
<input placeholder="Password" type="password" name="password">
</div>
</div>
<button class="ts small primary login icon button">
<i class="sign in icon"></i>
</button>
</form>
</div>
</div>

28
theme/nav/util.php Normal file
View File

@@ -0,0 +1,28 @@
<?php
$self = @end(explode('/',$_SERVER['PHP_SELF']));
?>
<div class="ts top attached pointing secondary large menu" id="menu">
<div class="ts narrow container">
<a href="index.php" class="<?php if ($self == 'index.php') { echo "active "; } ?>item">首頁</a>
<div class="ts <?php if ($self == 'post.php') { echo "active "; } ?>dropdown item">
<div class="text">文章</div>
<div class="menu">
<a href="post.php?new" class="item">新增</a>
<a href="post.php" class="item">列表</a>
</div>
</div>
<a href="account.php" class="<?php if ($self == 'account.php') { echo "active "; } ?>item">帳號</a>
<div class="right menu">
<a href="#" class="notification icon item"><i class="bell outline icon"></i></a>
<a href="#" class="item" id="logout">登出</a>
</div>
</div>
</div>
<div class="ts narrow container" id="notification-wrapper">
<div class="notification container">
<div class="ts borderless top attached segment">通知</div>
<div class="ts relaxed divided feed"></div>
<a class="ts bottom attached fluid button" href="notification.php">看所有通知</a>
</div>
</div>
<script src="include/js/notification.js"></script>