-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin_view_caves.php
154 lines (131 loc) · 4.67 KB
/
admin_view_caves.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<?php
include 'adminheader.php';
require 'includes/db_connection.php';
include 'includes/functions.php';
$id = null;
if ( !empty($_GET['id'])) {
$id = $_REQUEST['id'];
}
if ( null==$id ) {
header("Location: index.php");
} else {
$pdo = Database::connect();
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$sql = "SELECT * FROM sites where Site_ID = ?";
$q = $pdo->prepare($sql);
$q->execute(array($id));
$data = $q->fetch(PDO::FETCH_ASSOC);
Database::disconnect();
}
include 'header.php';
?>
<!DOCTYPE html>
<html>
<head>
<title>Login</title>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<title>login</title>
<script src="http://code.jquery.com/jquery-2.1.1.js"></script>
<script src="//code.jquery.com/ui/1.11.1/jquery-ui.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
</head>
</head>
<style>
body {
background-image: url("images/45.jpg"); background-size: 1370px 1000px; background-repeat: no-repeat;
}</style>
<style>
#box
{
width:100%;
max-width:400px;
border:1px solid #ccc;
border-radius:1px;
margin:0 auto;
padding:0 20px;
box-sizing:;
height:410px;
color:black;
font-size:15px;
}
ul{
color:black;
font-size: 10px;
padding:12px 5px;
}
.container{
border-radius: 1px;
color:white;
}
.form-control{
border-radius:none;
width:300px;
}
</style>
<ul class="nav navbar-nav navbar-center" >
</ul>
</div>
<a href="caves_admin.php" class="btn btn-primary btn-xl page-scroll"
style="background-color: rgba(20, 20, 20, 0.99);"
style="border-color: #49a42e;">Back to Caves</a>
<a href="index.php" class="btn btn-primary btn-xl page-scroll"
style="background-color: rgba(20, 20, 20, 0.99);"
style="border-color: #49a42e;">Log Out</a>
<body>
<div class="container">
<div class="span10 offset1">
<div class="row">
<h3>Caves</h3>
</div>
<div class="form-horizontal" >
<div class="control-group">
<label class="control-label">Name:</label>
<div class="controls">
<label class="checkbox">
<?php echo $data['name'];?>
</label>
</div>
</div>
<div class="control-group">
<label class="control-label">Resident Charges:</label>
<div class="controls">
<label class="checkbox">
<?php echo $data['resident_charges'];?>
</label>
</div>
</div>
<div class="control-group">
<label class="control-label">Non Resident Charges:</label>
<div class="controls">
<label class="checkbox">
<?php echo $data['non_resident_charges'];?>
</label>
</div>
</div>
<div class="control-group">
<label class="control-label">Nearby Hotels:</label>
<div class="controls">
<label class="checkbox">
<?php echo $data['hotelsnear'];?>
</label>
</div>
</div>
<div class="control-group">
<label class="control-label">Description:</label>
<div class="controls">
<label class="checkbox">
<?php echo $data['description'];?>
</label>
</div>
</div>
<div class="form-actions">
<a class="btn" href="caves_admin.php"></a>
</div>
</div>
</div>
</div> <!-- /container -->
</body>
</html>