forked from allenshih1/database
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadd_airport.php
More file actions
39 lines (39 loc) · 1007 Bytes
/
add_airport.php
File metadata and controls
39 lines (39 loc) · 1007 Bytes
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
<?php require_once("header.php"); ?>
<?php
if(isset($_SESSION['isAuth']) && $_SESSION['isAdmin'])
{
?>
<table style="width:800">
<tr>
<td> abbr </td>
<td> name </td>
<td> country </td>
<td> longitude </td>
<td> latitude </td>
<td> timezone </td>
</tr>
<tr>
<form action="add_airport_func.php" method="post">
<td> <input type="text" name="abbr"> </td>
<td> <input type="text" name="name"> </td>
<td> <input type="text" name="country"> </td>
<td> <input type="text" name="longitude"> </td>
<td> <input type="text" name="latitude"> </td>
<td> <input type="text" name="timezone"> </td>
<td> <button type="submit">新增</button> </td>
<td> <a href="airport_management.php"><button type="button">取消</button></a> </td>
</form>
</tr>
</table>
<?php
} else if(isset($_SESSION['isAuth'])){
?>
permission denied
<?php
} else {
?>
please login first
<?php
}
?>
<?php require_once("footer.php"); ?>