-
Notifications
You must be signed in to change notification settings - Fork 1
/
header.php
61 lines (58 loc) · 2.22 KB
/
header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
print ("<?xml version='1.0' encoding='utf-8'?>".PHP_EOL);
include_once ("functions.php");
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh_TW" lang="zh_TW">
<head>
<title><?php print($title);?> | 適用於網路管理者的IP位址表</title>
<meta name="author" content="國立海洋大學資訊工程學系 B97570146 楊力維、09957010 林博仁、Ming-Ting Wei" />
<meta name="description" content="適用於網路管理者的IP位址表" />
<meta name="generator" content="Vim" />
<meta name="keywords" content="IP地址表" />
<meta name="robots" content="index,follow" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link href='styles/screen.css' rel='stylesheet' type='text/css' />
<link href='favicons/First_blue.ico' rel='icon' type='image/vnd.microsoft.icon' />
<script type="text/javascript" src="scripts/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="scripts/bootstrap-alerts.js"></script>
<script type="text/javascript" src="scripts/jquery.tablesorter.min.js"></script>
<script type="text/javascript" src="scripts/functions.js"></script>
</head>
<body>
<div class="topbar">
<div class="topbar-inner">
<div class="container">
<a class="brand" href="index.php">適用於網路管理者的IP位址表</a>
<?php if (isUser()):?>
<ul class="nav">
<li><a href="new.php">新增 IP 設定</a></li>
<li><a href="edit.php">修改 IP 設定</a></li>
<?php if (isSuperUser()): ?>
<li><a href="admin.php">新增/刪除管理員帳號</a></li>
<?php endif; ?>
</ul>
<?php endif; ?>
<ul class="nav secondary-nav">
<li><a href="messenger.php">留言板</a></li>
<?php if (isUser()):?>
<li><a href="logout.php">登出 <?php htmlspecialchars(print($_SESSION['userName']))?></a></li>
<?php else: ?>
<li><a href="login.php">登入</a></li>
<?php endif; ?>
</ul>
</div>
</div>
</div>
<?php
/* flash message */
if (hasFlash()) :
$flashMessage = getFlash();
?>
<div class="container">
<div class="alert-message <?php echo $flashMessage['type']; ?>">
<a class="close" href="#">×</a>
<p><?php echo $flashMessage['message']; ?></p>
</div>
</div>
<?php endif; ?>