forked from allenshih1/database
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
55 lines (55 loc) · 1.2 KB
/
header.php
File metadata and controls
55 lines (55 loc) · 1.2 KB
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
<?
session_save_path("./session/");
session_start();
require_once('check_exist.php');
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>My Flight site</title>
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
</head>
<body>
<?php
if(isset($_SESSION['isAuth']) && $_SESSION['isAdmin'])
{
?>
<table>
<tr>
<td> <a href="admin_flight.php"> 班機管理 </a> </td>
<td> <a href="comparison.php"> 比價表 </a> </td>
<td> <a href="account_management.php"> 帳號管理 </a> </td>
<td> <a href="airport_management.php"> 機場管理 </a> </td>
<td> <a href="country_management.php"> 國家管理 </a> </td>
<td> <a href="search_ticket.php"> 機票查詢 </a> </td>
<td> <a href=logout.php> 登出 </a> </td>
</tr>
</table>
<?php
}
elseif(isset($_SESSION['isAuth']))
{
?>
<table>
<tr>
<td> <a href="flight.php"> 班機 </a> </td>
<td> <a href="comparison.php"> 比價表 </a> </td>
<td> <a href="search_ticket.php"> 機票查詢 </a> </td>
<td> <a href=logout.php> 登出 </a> </td>
</tr>
</table>
<?php
}
else
{
?>
<table>
<tr>
<td> <a href="search_ticket.php"> 機票查詢 </a> </td>
<td> <a href=login.php> 登入 </a> </td>
</tr>
</table>
<?php
}
?>