flush -- WIP admin panel
This commit is contained in:
16
theme/nav/default.html
Normal file
16
theme/nav/default.html
Normal 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
28
theme/nav/util.php
Normal 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>
|
||||
Reference in New Issue
Block a user