-
Notifications
You must be signed in to change notification settings - Fork 0
/
category.php
183 lines (150 loc) · 4.1 KB
/
category.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
<?php
require 'database/db_connect.php';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>--Tour_category---</title>
<meta charset="UTF-8">
<title>--Home--</title>
<link rel="stylesheet" href="assets/user_css/user_css.css">
<link href='https://fonts.googleapis.com/css?family=Beth Ellen' rel='stylesheet'>
<script src="https://kit.fontawesome.com/6f84ddc6a9.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<!-- Popper JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
</head>
<body>
<div class="top_header">
<?php include 'user_top.php'; ?>
</div>
<div class="add_slider">
<?php
require 'database/db_connect.php';
$sql="select * from tbl_advertiesment,tbl_package where tbl_advertiesment.package=tbl_package.package_id and tbl_advertiesment.a_id='1'";
$r=mysqli_query($connection,$sql);
if($r){
$result=mysqli_fetch_assoc($r);
}else {
die('error'.mysqli_error($connection));
}
?>
<div class="add_content">
<p><span style="color: red;font-size: 40px;font-weight: 700;font-family: bold;margin-top: -20px;text-align: center;"><?php echo $result['offer']; ?></span> in <?php echo $result['package_name']; ?></p>
</div>
</div>
<?php
if (isset($_GET['key'])) {
$val = $_GET['key'];
if ($val==1) {
include 'home.php';
include 'user_galary.php';
include 'about.php';
include 'user_contact.php';
}else if ($val==2) {
include 'user_galary.php';
include 'about.php';
include 'user_contact.php';
}else if ($val==4) {
include 'about.php';
include 'user_contact.php';
}else if ($val==5) {
include 'user_contact.php';
}
} ?>
<div class="category_container">
<div class="category_function">
<h3>Category</h3>
<ul>
<?php
$s="select * from tbl_category";
$result=mysqli_query($connection,$s);
$r=mysqli_num_rows($result);
//echo $r;
while($data=mysqli_fetch_array($result))
{
?>
<li><a href="?ca_id=<?php echo $data[0] ?>"><?php echo $data[1]; ?></a></li>
<?php } ?>
</ul>
</div>
<!-- <?php include 'category_description.php'; ?> -->
<?php
if (isset($_GET['ca_id'])) {
$val = $_GET['ca_id'];
if (!empty($val)) {
include 'user_subcategory.php';
}
}
if(isset($_GET['subc_id'])){
$val1= $_GET['subc_id'];
if(!empty($val1)){
include 'user_package.php';
}
}
if(isset($_GET['p_id'])){
$val1= $_GET['p_id'];
if(!empty($val1)){
include 'user_view_package.php';
}
}
if(isset($_GET['pid'])){
$val1= $_GET['pid'];
if(!empty($val1)){
include 'user_enquiry.php';
}
}
// if(isset($_GET['key'])){
// $val1= $_GET['key'];
// if(!empty($val1)){
// include 'cancel_tour.php';
// }
// }
if(isset($_GET['key3'])){
$val1= $_GET['key3'];
$_SESSION['val'] = $val1;
if($val1==17){
include 'cancel_tour.php';
}
}
if (isset($_GET['key'])) {
$val = $_GET['key'];
if($val==3){
include 'category_description.php';
}
}
?>
</div>
<?php include 'about.php';
include 'user_contact.php'; ?>
<div class="foter">
<?php include 'bottom.php'; ?>
</div>
<script>
var myIndex = 0;
carousel();
function carousel() {
var i;
var x = document.getElementsByClassName("mySlides");
for (i = 0; i < x.length; i++) {
x[i].style.display = "none";
}
myIndex++;
if (myIndex > x.length) {myIndex = 1}
x[myIndex-1].style.display = "block";
setTimeout(carousel, 2000); // Change image every 2 seconds
}
</script>
<script>
function onClick(element) {
document.getElementById("img01").src = element.src;
document.getElementById("myModal").style.display = "block";
}
</script>
</body>
</html>