-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
210 lines (195 loc) · 6.83 KB
/
index.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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
<?php
$db = mysqli_connect('localhost:3306','root','','travels');
//include_once('infop.php');
$que="SELECT * FROM `advertise`";
$result = mysqli_query($db, $que);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="css/style.css">
<style type="text/css">
.title .signup-op{
display: flex;
justify-content:space-between;
}
.signup-op a{
text-decoration: none;
border: 2px solid #000;
background-color: rgba(68,241,154,1);
padding: 8px 20px;
color: black;
transition: 0.8s ease;
}
.signup-op a:hover{
background-color: white;
}
</style>
<script>
var Length=0, x=0;
function startTimer(length) {
setInterval(function(){
for(var i=1;i<=length;i++){
document.getElementById(i).style.display = "none";
}
if(x==length){
x=1;
}
else{
x=x+1;
}
document.getElementById(x).style.display = "block";
}, 3000);
}
function PopWindowOne(){
floatingWindow = window.open("calendar.html","","height=600,width=800,scrollbars=no");
}
</script>
</head>
<body>
<header>
<div class="slideshow-container">
<div class="mySlides fade">
<img class="image1" src="Akko.jpg" style="width:100%;">
</div>
<div class="mySlides fade">
<img class="image1" src="haifa.jpg" style="width:100%;">
</div>
<div class="mySlides fade">
<img class="image1" src="jurselm2.jpg" style="width:100%;">
</div>
<?php
$count=0;
while($rows = mysqli_fetch_assoc($result))
{
$count=$count+1;
?>
<img class="image2" id="<?php echo $count;?>" src="<?php echo $rows['ad_img'];?>" alt="<?php echo $rows['ad_img'];?>">
<?php
}
?>
<img alt="sample" id="<?php echo $count;?>" src="earth-globe.png" onload='startTimer("<?php echo $count;?>")' style="display:none;">
<div class="main">
<ul>
<ul class="list">
<li class="logo"><a href="index.html"><img src="earth-globe.png" alt="Logo" style="width:36px;height:36px"></a></li>
<div class="search">
<form method="POST" action="info.php">
<input type="text" name="search_p" placeholder="Search.." size="50">
<input type="image" name="submit_p" src="search_icon.png" alt="Search image" style="width:22;height:22; margin-left: 60px; margin-top: 32px;">
</form>
</div>
</ul>
<ul class="list2">
<li class="active-menu"><a href="#">Home</a></li>
<li><a id="long" href="destination.html">Destination</a></li>
<li><a href="gallery.html">Gallery</a></li>
<li><a href="signup.html">Sign Up</a></li>
<li><a href="feedback.html">Feedback</a></li>
<li><a href="contact.html">Contact</a></li>
<li><a href="#" onclick="PopWindowOne()">Calendar</a></li>
</ul>
</ul>
</div>
<a class="prev" onclick="plusSlides(-1)">❮</a>
<a class="next" onclick="plusSlides(1)">❯</a>
</div>
</header>
<br>
<div style="text-align:center">
<span class="dot" onclick="currentSlide(1)"></span>
<span class="dot" onclick="currentSlide(2)"></span>
<span class="dot" onclick="currentSlide(3)"></span>
</div>
<div class="title">
<h1>Tours4u</h1>
<div class="signup-op">
<a href="signup.html">SignUp</a>
<a href="signin.html">SignIn</a>
</div>
</div>
<div class="contain">
<div class="heading">
<h2>Popular Destination</h2>
</div>
<div class="box">
<div class="imgBox">
<img src="images//gallery//Eilat1.jpg" alt="Eilat Image" style="width: auto;height: 270px;">
</div>
<div class="name-text left1">
<h2>Eilat</h2>
<a href="destination.html" class="btn">Visit</a>
</div>
</div>
<div class="box">
<div class="imgBox">
<img src="images//gallery//Sea of Galilee1.jpg" alt="Sea of Galilee Image" style="width: auto;height: 270px;">
</div>
<div class="name-text left2">
<h2>Sea of Galilee</h2>
<a href="destination.html" class="btn">Visit</a>
</div>
</div>
<div class="box">
<div class="imgBox">
<img src="images//gallery//TheDeadSea1.jpg" alt="TheDeadSea Image" style="width: auto;height: 270px;">
</div>
<div class="name-text left3">
<h2>TheDeadSea</h2>
<a href="destination.html" class="btn">Visit</a>
</div>
</div>
<div class="box">
<div class="imgBox">
<img src="images//gallery//jurselm1.jpg" alt="Jurselm1 Image" style="width: auto;height: 270px;">
</div>
<div class="name-text left4">
<h2>Jurselm1</h2>
<a href="destination.html" class="btn">Visit</a>
</div>
</div>
<div class="destination-btn">
<a href="destination.html">View all</a>
</div>
</div>
<div class="about">
<h2>Abouts Us</h2>
<footer>
<a href="https://www.facebook.com/"> <img src="images//logo//facebook.png" height="25px" width="25px"> </a>
<a href="https://www.instagram.com/"> <img src="images//logo//instagram.png" height="25px" width="25px"> </a>
<a href="https://twitter.com/"> <img src="images//logo//twitter.png" height="25px" width="25px"> </a>
<p> <b> posted by : salah elidn qeadan<br>
Posted by: ismaiel abo amra<br>
posted by : asraa <br>
posted by : saber elsyed</b></p>
</footer>
</div>
<script>
var slideIndex = 1;
var images=[];
showSlides(slideIndex);
function plusSlides(n) {
showSlides(slideIndex += n);
}
function currentSlide(n) {
showSlides(slideIndex = n);
}
function showSlides(n) {
var i;
var slides = document.getElementsByClassName("mySlides");
var dots = document.getElementsByClassName("dot");
if (n > slides.length) {slideIndex = 1}
if (n < 1) {slideIndex = slides.length}
for (i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
}
for (i = 0; i < dots.length; i++) {
dots[i].className = dots[i].className.replace(" active", "");
}
slides[slideIndex-1].style.display = "block";
dots[slideIndex-1].className += " active";
}
</script>
</body>
</html>