-
Notifications
You must be signed in to change notification settings - Fork 0
/
index2.php
152 lines (130 loc) · 7.1 KB
/
index2.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
<?php
include('header.php');
$product=$_GET['product'];
?>
<div class="banner">
<div class="container">
<div class="col-lg-12">
<div class="col-lg-12">
<!-- Slider Starts Here-->
<div class="gallery-area">
<div class="slider-wrapper theme-default">
<div id="slider" class="nivoSlider">
<img src="slider/slider_image/slide_show1.png" data-thumb="slider/slider_image/slide_show1.png" alt="" title="<a href='http://www.trademydeals.com/deals.php' onClick='alert('')>Hot Deals</a>" class="img-responsive" />
<img src="slider/slider_image/slide_show3_11.png" data-thumb="slider/slider_image/slide_show3_11.png" alt="" title="<a href='http://www.trademydeals.com/coupons.php' onClick='alert('')>Hot Coupons</a>" class="img-responsive" />
<img src="slider/slider_image/slide_show2.png" data-thumb="slider/slider_image/slide_show2.png" alt="" title="<a href='http://www.trademydeals.com/flyers.php' onClick='alert('')>Hot Flyer </a>" class="img-responsive" />
<img src="slider/slider_image/slide_show4.png" data-thumb="slider/slider_image/slide_show4.png" alt="" title="<a href='http://www.trademydeals.com/ads.php' onClick='alert('')>Hot ads </a>" class="img-responsive"/>
<img src="slider/slider_image/slide_show5.png" data-thumb="slider/slider_image/slide_show5.png" alt="" title="<a href='http://www.trademydeals.com/jobs.php' onClick='alert('')>Hot Jobs </a>" class="img-responsive"/> </div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="slider/nivo-slider/jquery.nivo.slider.js" type="text/javascript"></script>
<script type="text/javascript">
$(window).load(function() {
$('#slider').nivoSlider({
directionNav: false,
controlNav: false,
animSpeed: 500,
pauseTime: 3000
});
});
</script>
<!-- Slider End Here-->
</div>
</div>
</div>
</div>
<div class="content">
<div class="container">
<div class="col-lg-12">
<div class="col-lg-12">
<div class="subcontent">
<h3>Top Features</h3>
</div>
<div class="subcontent2">
<div class="col-lg-12" style="background:#d1a78f;">
<div class="container1">
<div class="main1">
<ul id="carousel" class="elastislide-list" style="min-height:250px;">
<?php $sel_Query = "SELECT * FROM `deals` WHERE country='$pcountry' ORDER BY id DESC";
$query = mysql_query($sel_Query);
while ($row1= mysql_fetch_object($query))
{?> <li style="min-width:220px; padding-right:13px; padding:10px 10px; max-width:230px;">
<div class="content1">
<img src="img/<?php echo $row1->images;?>" class="img-responsive">
<a><h3><?php echo $row1->deals_title; ?></h3></a>
<p><?php echo $row1->description; ?></p>
<button type="button" class="btn btn-sm btn-danger pull-right btn4">View</button>
</div>
</li><?php } ?>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-12">
<div class="col-lg-9">
<div class="col-lg-12" style=" margin-top:20px;">
<div class="sub1">
<h4>Hot deal</h4>
</div>
<div class="col-lg-12" >
<?php $sel_Query1 = "SELECT * FROM `deals` WHERE deals_title LIKE '%$product%' OR company_name LIKE '%$product%' OR description LIKE '%$product%' ORDER BY id DESC limit 3";
$query1 = mysql_query($sel_Query1);
while ($row11= mysql_fetch_object($query1))
{?> <div class="col-lg-4">
<div class="content2" style="margin-top:10px;">
<img src="img/<?php echo $row11->images; ?>" class="img-responsive">
<a><h3><?php echo $row11->deals_title; ?></h3></a>
<p><?php echo $row11->description; ?></p>
<button type="button" class="btn btn-sm btn-danger pull-right btn5">View</button>
</div>
</div> <?php } ?>
</div>
</div>
<div class="col-lg-12" style=" margin-top:20px;">
<div class="sub1">
<h4>Hot deals</h4>
</div>
<div class="col-lg-12" >
<?php $sel_Query1 = "SELECT * FROM `coupons` WHERE coupon LIKE '%$product%' OR company_name LIKE '%$product%' OR description LIKE '%$product%' ORDER BY id DESC limit 3";
$query1 = mysql_query($sel_Query1);
while ($coupons= mysql_fetch_object($query1))
{?>
<div class="col-lg-4">
<div class="content2" style="margin-top:10px;">
<img src="img/<?php echo $coupons->images; ?>" class="img-responsive">
<a><h3><?php echo $coupons->coupon; ?></h3></a>
<p><?php echo $coupons->description; ?></p>
<button type="button" class="btn btn-sm btn-danger pull-right btn5">View</button>
</div>
</div>
<?php } ?>
</div>
</div>
<div class="col-lg-12" style=" margin-top:20px;">
<div class="sub1">
<h4>Hot deals</h4>
</div>
<div class="col-lg-12" >
<?php $sel_Query2 = "SELECT * FROM `flyers` WHERE flyers_title LIKE '%$product%' OR company_name LIKE '%$product%' OR description LIKE '%$product%' ORDER BY id DESC limit 3";
$query2 = mysql_query($sel_Query2);
while ($flyers= mysql_fetch_object($query2))
{?>
<div class="col-lg-4">
<div class="content2" style="margin-top:10px;">
<img src="img/<?php echo $flyers->images; ?>" class="img-responsive">
<a><h3><?php echo $flyers->flyers_title; ?></h3></a>
<p><?php echo $flyers->description; ?></p>
<button type="button" class="btn btn-sm btn-danger pull-right btn5">View</button>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
<?php
include('footer.php');
?>