-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsingle-post5.php
191 lines (152 loc) · 7.21 KB
/
single-post5.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
188
189
190
191
<?php
session_start();
date_default_timezone_set('Asia/Riyadh');
include 'comment.inc.php'; //php code to set and get comments
include 'dbh.inc.php'; //database connection
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>الحديقة الساحرة</title>
<!--
Highway Template
https://templatemo.com/tm-520-highway
-->
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" href="apple-touch-icon.png">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/bootstrap-theme.min.css">
<link rel="stylesheet" href="css/fontAwesome.css">
<link rel="stylesheet" href="css/light-box.css">
<link rel="stylesheet" href="css/templatemo-style.css">
<link rel="stylesheet" href="css/commentstyle.css">
<link href="https://fonts.googleapis.com/css?family=Kanit:100,200,300,400,500,600,700,800,900" rel="stylesheet">
<script src="js/vendor/modernizr-2.8.3-respond-1.4.2.min.js"></script>
</head>
<body>
<nav>
<div class="logo">
<a href="riyadh-season.php">Riyadh<em> Season</em></a>
</div>
<div class="menu-icon">
<span></span>
</div>
</nav>
<div class="page-heading">
<div class="container">
<div class="heading-content">
<h1>الحديقة الساحرة</h1>
</div>
</div>
</div>
<div class="blog-entries">
<div class="container">
<div class="col-md-9">
<div class="blog-posts">
<div class="row">
<div class="col-md-12">
<div class="single-blog-post">
<img src="home/magicForest2.jpg" alt="">
<div class="text-content">
<h2>الحديقة الساحرة</h2>
<p>فعالية عائلية في أجواء الحديقة الساحرة. توفر فعاليات وانشطة تفاعلية لكل أفرد العائلة مثل العروض الحية والموسيقية أو الأنشطة الرياضية كتسلق الجدران وحبل الانزلاق.
<br><br>التذاكر تباع في موقع الفعالية
<br><br><a href="riyadh-season.php">الرئسية</a></p>
<?php
if(isset($_SESSION["newSession"]))
{
echo " <form method='POST' action='".setComments($conn)."'> <!--post so we cant see the data in url, Private -->
<input type='hidden' name='uid' value='".$_SESSION["newSession"]."'> <!-- cant see it, but it's submitted -->
<input type='hidden' name='date' value='".date('Y-m-d H:i:s')."'>
<input type='hidden' name='pageid' value='6'>
<textarea name='message' id='message'></textarea> <br>
<button name='CommentSubmit' type='submit' id='CommentSubmit'> Comment</button>
</form>"; }
getComments($conn, '6');
?>
<div class="tags-share">
<div class="row">
<div class="col-md-6">
<ul class="tags">
<li><a href="https://www.google.com/maps/place/24%C2%B039'58.9%22N+46%C2%B044'12.9%22E/@24.666356,46.736916,17z/data=!3m1!4b1!4m5!3m4!1s0x0:0x0!8m2!3d24.666356!4d46.736916">الموقع</a>,</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-3">
<div class="recent-posts">
<div class="sidebar-heding">
<h2>فعاليات أخرى</h2>
</div>
<ul>
<li><a href="single-post4.php">
<img src="home/nightGarden.jpg" alt="Recent Post 1">
<div class="text">
<h6>الحدائق الليلية</h6>
</div>
</li></a>
<li><a href="single-post3.php">
<img src="home/safarii.jpg" alt="Recent Post 2">
<div class="text">
<h6>سفاري الرياض</h6>
</div>
</li></a>
<li><a href="single-post1.php">
<img src="home/boulevard.jpg" alt="Recent Post 3">
<div class="text">
<h6>البوليفارد</h6>
</div>
</li></a>
</ul>
</div>
</div>
</div>
</div>
</div>
<footer>
<div class="container-fluid">
<div class="col-md-12">
<p> Web Application Programming Project</p>
</div>
</div>
</footer>
<section class="overlay-menu">
<div class="container">
<div class="row">
<div class="main-menu">
<ul>
<?php if( isset($_SESSION['newSession']) && !empty($_SESSION['newSession']) )
{
?>
<li>
<a href="../logout-page.php">Logout</a>
</li>
<?php }else{ ?>
<li>
<a href="../login_page.php">Login</a>
</li>
<li>
<a href="../signup-page.php">Sign up</a>
</li>
<?php } ?>
</ul>
</div>
</div>
</div>
</section>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.11.2.min.js"><\/script>')</script>
<script src="js/vendor/bootstrap.min.js"></script>
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>
</body>
</html>