-
Notifications
You must be signed in to change notification settings - Fork 1
/
services.php
117 lines (106 loc) · 3.27 KB
/
services.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
<?php
include_once("includes/db_connect.php");
session_start();
if(isset($_GET['city']))
{
//echo $_GET['city'];
$_SESSION['city']=$_GET['city'];
//echo $_SESSION['city'];
}
else if(isset($_SESSION['city']))
{
header("Location:services.php?city=$_SESSION[city]");
unset($_SESSION['city']);
$_SESSION['city']=="";
//exit();
//echo "<script>window.location.href = 'women.php?city=$_SESSION[city]';</script>";
}
?>
<!DOCTYPE HTML>
<html>
<head>
<title>Discount Ka Mall - Discounts on Other Services</title>
<link href="css/bootstrap.css" rel='stylesheet' type='text/css' />
<script type='text/javascript' src="js/jquery-1.11.1.min.js"></script>
<!-- Custom Theme files -->
<link href="css/style.css" rel='stylesheet' type='text/css' />
<!-- Custom Theme files -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<!--webfont-->
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<!-- start menu -->
<link href="css/megamenu.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src="js/megamenu.js"></script>
<script>$(document).ready(function(){$(".megamenu").megamenu();});</script>
<script src="js/menu_jquery.js"></script>
<!-- the jScrollPane script -->
<script type="text/javascript" src="js/jquery.jscrollpane.min.js"></script>
<script type="text/javascript" id="sourcecode">
$(function()
{
$('.scroll-pane').jScrollPane();
});
</script>
<script type="text/javascript">
$(function(){
$("#city").change(function(){
window.location='http://www.discountkamall.com/services.php?city=' + this.value
});
});
</script>
</head>
<body>
<!-- header_top -->
<?php include_once('header.php'); ?>
<!-- content -->
<div class="container">
<div class="main">
<!-- start content -->
<div class="content">
<?php
if(isset($_SESSION['city']))
{
$get_beauty=mysql_query("select * from discounts where category='Services' and city='{$_SESSION['city']}' and status='1'");
}
else
{
$get_beauty=mysql_query("select * from discounts where category='Services' and status='1'");
}
$beauty_rows=mysql_num_rows($get_beauty);
echo "<div class='content_text'>
<p style='font-size:22px;'>Other Services - $beauty_rows Listed</p>
</div>";
//echo $hospital_rows;
if($beauty_rows==0)
{
echo "<p style='font-size:22px;'> Awesome Discounts On Other Services Are Coming Soon</p>";
}
else
{
echo "<div class='row grids'>";
while($beauty=mysql_fetch_array($get_beauty))
{
$imgpath=substr("$beauty[7]", 3);
echo "<div class='col-md-3 grid1'>
<a href='details.php?disid=$beauty[8]'>
<img src='$imgpath' width='270' height='350' alt='Other Services - Discounts'/>
<div class='look'>
<h4>$beauty[2]</h4>
<p>$beauty[3]</p>
</div></a>
</div>";
}
echo "</div>";
}
?>
<iframe src='http://www.flipkart.com/affiliate/displayWidget?affrid=WRID-143948779653967474' frameborder=0 height=250 width=300></iframe>
<!-- end grids_of_3 -->
</div>
<!-- end content -->
</div>
</div>
<!-- footer_top -->
<?php include_once('footer.php'); ?>
</body>
</html>