-
Notifications
You must be signed in to change notification settings - Fork 0
/
display.php
79 lines (73 loc) · 2.42 KB
/
display.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
<?php
include 'dbconnection.php';?>
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/reset.css"> <!-- CSS reset -->
<link rel="stylesheet" href="css/style.css"> <!-- Resource style -->
<link rel="stylesheet" href="css/style0.css">
<link rel="stylesheet" href="css/padding.css">
<link href="https://fonts.googleapis.com/css?family=Raleway:300" rel="stylesheet">
<script src="js/modernizr.js"></script> <!-- Modernizr -->
<title>Click-Kart</title>
</head>
<body>
<?php include 'menu.php';?>
<?php echo '
<div class="center-it-all">
<div class="center-it">
<h3>'.$_GET['cat'].'</h3>
<div class="section group">';
$query = "select product_name,price,product_code,image from product where pro_cat='".$_GET['cat']."'";
//var_dump($query);
$result = mysqli_query($con, $query);
//var_dump($result);
while($row=mysqli_fetch_array($result))
{
$pro_name=$row['product_name'];
$pro_price=$row['price'];
$p_code=$row['product_code'];
echo '<div class="grid_1_of_4 images_1_of_4">
<h4><a href="preview.php?pcode='.$p_code.'">'.$pro_name.'</a></h4>
<a href="preview.php?pcode='.$p_code.'"><img src="'.$row['image'].'" style="height:120px; width:auto;" alt="" /></a>
<div class="price-details">
<div class="price-number">
<p><span class="rupees">₹'.$pro_price.'</span></p>
</div>
<div class="add-cart">
<h4><a href="preview.php?pcode='.$p_code.'">More Info</a></h4>
</div>
<div class="clear"></div>
</div>
</div>
';
}
echo '
</div>
</div>
</div>
<div style="clear:both">
</div>'; ?>
<?php include 'slider.preview.php'; ?>
<?php include 'footer.php';?>
<!--Scripts-->
<script type="text/javascript">
$(document).ready(function() {
$().UItoTop({
easingType: 'easeOutQuart'
});
});
</script>
<a href="#" id="toTop"> </a>
<script type="text/javascript" src="js/jquery-1.9.0.min.js"></script>
<script src="js/jquery.openCarousel.js" type="text/javascript"></script>
<script type="text/javascript" src="js/easing.js"></script>
<script type="text/javascript" src="js/move-top.js"></script>
<script type="text/javascript" src="js/navigation.js"></script>
<script src="js/jquery-2.1.1.js"></script>
<script src="js/jquery.mobile.custom.min.js"></script>
<script src="js/main.js"></script>
</body>
</html>