-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathabout_us.php
187 lines (146 loc) · 4.93 KB
/
about_us.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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<?php
include 'session.php';
include 'connect.php';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>GetAways@India</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="SHORTCUT ICON" href="assets/img/logo.jpg">
<title></title>
<link href="control.css" rel="stylesheet" />
<link href="assets/css/bootstrap.css" rel="stylesheet" />
<link href="assets/css/font-awesome.min.css" rel="stylesheet" />
<link href="assets/css/style.css" rel="stylesheet" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<style>
body{
height:20px;
background-image: url("bg2.jpg");
}
table {
background:url(bg3.jpg);
background-size:contain;
background-repeat:no-repeat;
border-collapse: collapse;
width: 70%;
opacity: 0.8;
}
th, td {
text-align: center;
padding: 8px;
}
tr:nth-child(even){background-color: #f2f2f2}
th {
background-color: #4CAF50;
color: white;
}
h2{
text-align: center;
}
a{
color: red;
}
a button{
color: black;
background-color:blanchedalmond;
}
button: hover{
background-color: brown;
}
</style>
</head>
<body>
<!-- NAV SECTION -->
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-left" href="index.php"><img src="assets/img/logo3.png" height="50px;"></a>
<a class="navbar-brand" href="index.php">GET AWAYS @ INDIA</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li><a>WELCOME ADMIN!!!</a></li>
<li><a href="logout.php" style="background:#E74C3C;border-radius:10px; color:white">LOGOUT</a></li>
</ul>
</div>
</div>
</div>
<!--END NAV SECTION -->
<div id="mySidenav" style="background:linear-gradient(to bottom, #f0f2f0, #000c40); color: black">
<a href="msg.php">Messages</a>
<a href="banner.php">Banner_edit</a>
<a href="places.php">Places_list</a>
<a href="locations.php">Locations</a>
<a href="about_us.php">About Us</a>
</div>
<br><br><br>
<div class="container">
<div class="row text-center">
<div class="col-md-offset-2" style=" color: black; border-radius: 10px" >
<h2> About Us: </h2>
<div class="col-md-12">
<div class="row text-center" >
<span class="line-sep " >
----------X------------X----------X-------------X------------X----------X-------------X------------X----------X------------X------------X----------X------------X------------X----------X------------
</span>
</div>
</div>
<br>
<div style="background:linear-gradient(to bottom,#00d2ff, #928dab); padding: 20px; color: black" >
<hr>
<form action="about_us2.php" method="post" enctype="multipart/form-data">
<h3 style="float: left">Add a paragraph</h3><br>
<textarea class="col-md-12" rows="4" name="paragraph" placeholder="Enter a paragraph....." required ></textarea><br><br><br><hr>
<br><br><input type="submit" value="Add Paragraph" name="submit">
</form>
</div>
<br><br>
<div class="col-md-12">
<div class="row text-center" >
<span class="line-sep " >
----------X------------X----------X-------------X------------X----------X-------------X------------X----------X------------X------------X----------X------------X------------X----------X------------
</span>
</div>
</div>
<br><br>
<h2 > About Us: </h2>
<table class="col-md-12" >
<tr>
<th>UNIQUE_ID</th>
<th>ABOUT US</th>
<th>ACTION</th>
</tr>
<?php
@$sql="SELECT * FROM about_us ";
$result = $conn->query($sql);
if ($result->num_rows >= 0) {
while($row = $result->fetch_assoc()) {
?>
<tr>
<td><?php echo $row["id"] ?></td>
<td><?php echo $row["paragraph"] ?></td>
<td>
<a onclick="return confirm('Are you sure you want to edit ???');" href="about_us_edit.php?id=<?php echo $row['id']?>"><button>edit</button></a>
<a onclick="return confirm('Are you sure you want to delete this entry????');" href="about_us_del.php?id=<?php echo $row['id']?>" ><button>delete</button></a>
<br>
</td>
</tr>
<?php
}
}
?>
</table>
</div>
</div>
</div>
<br><br><br>
</body>
</html>