-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathsubarea.php
73 lines (59 loc) · 1.73 KB
/
subarea.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
<!DOCTYPE html>
<html lang="en">
<head>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Ads in area</title>
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Font Awesome -->
<link href="css/font-awesome.min.css" rel="stylesheet">
<!-- custom css -->
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<?php
include ("function/function.php");
include ("include/header.php");
include ("function/area.php");
include ("include/bannar.php");
include ("include/search.php");
?>
<br>
<div class="container">
<?php
include ("include/sidebar.php");
?>
<div class="col-md-7 text-center">
<?php
if(isset($_GET["id"])) {
$subarea_id = $_GET["id"];
$select = "select * from subarea where areaid='".$subarea_id."'";
$run_subarea=$con->query($select);
while($row=$run_subarea->fetch_array()){
echo "<div class='media' style=' background-color: #99CCCC;
border: 3px solid #009999;
padding: 10px;'>
<h2>".$row['subareaname']."</h2>
<a href='areawiseProduct.php?subareaid=".$row['id']."'><button class='btn btn-primary'>Show Product</button></a>
</div>";
}
}
?>
</div>
<?php
include ("include/rightbar.php");
?>
</div>
<?php
include ("include/footer.php");
?>
<!--/Footer-->
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="js/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed By Imran-->
<script src="js/bootstrap.min.js"></script>
</body>
</html>