-
Notifications
You must be signed in to change notification settings - Fork 0
/
user_top.php
63 lines (61 loc) · 1.49 KB
/
user_top.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
<div class="time_date">
<p id="datetime"></p>
<script>
var dt = new Date();
document.getElementById("datetime").innerHTML = dt.toLocaleString();
</script>
</div>
<div class="logo">
<a href="index.php"><h3>My<span>Tour</span></h3></a>
</div>
<div class="search">
<?php include 'search.php'; ?>
</div>
<div class="header_menu">
<ul>
<li>
<i class="fas fa-home"></i><a href="?key=<?php echo 1; ?>">Home</a>
</li>
<li>
<i class="fas fa-image"></i><a href="?key=<?php echo 2; ?>">Galary</a>
</li>
<li>
<i class="fab fa-accusoft"></i><a href="category.php?key=<?php echo 3; ?>">Tour-Category</a>
</li>
<li>
<i class="fas fa-address-card"></i><a href="?key=<?php echo 4; ?>">About</a>
</li>
<li>
<i class="fas fa-phone-square"></i><a href="?key=<?php echo 5; ?>">Contact</a>
</li>
<!-- <li>
<i class="fas fa-phone-square"></i><a href="?key=<?php echo 6; ?>">Cancel Tour</a>
</li> -->
</ul>
</div>
<div class="login">
<p><a href="#">Signup</a></p>
</div>
<script type="text/javascript">
$(document).ready(function(){
$("#search").keyup(function(){
var searchText = $(this).val();
if(searchText != ''){
$.ajax({
url:'action.php',
method:'post',
data:{query:searchText},
success:function(response){
$("#show-list").html(response);
}
});
}else{
$("#show-list").html('');
}
});
$(document).on('click','a',function(){
$("#search").val($(this).text());
$("#show-list").html('');
});
});
</script>