-
Notifications
You must be signed in to change notification settings - Fork 3
/
daftar.php
186 lines (171 loc) · 7.2 KB
/
daftar.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
184
185
186
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Informasi Kos Sekitar Udinus</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- Le styles -->
<link href="css/bootstrap.css" rel="stylesheet">
<style type="text/css">
body {
padding-top: 60px;
padding-bottom: 40px;
}
</style>
<link href="css/bootstrap-responsive.css" rel="stylesheet">
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="../assets/js/html5shiv.js"></script>
<![endif]-->
<!-- Fav and touch icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png">
<link rel="shortcut icon" href="../assets/ico/favicon.png">
</head>
<body>
<?php
$k = $_GET['kos'];
$untuk = "";
if($k=="lk") {
$untuk = "Laki-Laki";
} else {
$untuk = "Perempuan";
}
?>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="brand" href="index.php">Informasi Kos di Udinus</a>
<div class="nav-collapse collapse">
<ul class="nav">
<li class="active"><a href="index.php">Home</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Nama Jalan <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="carikos.php?tipe=<?php echo $untuk; ?>&&opsi=jalan&&jln=nakula">Jalan Nakula</a></li>
<li><a href="carikos.php?tipe=<?php echo $untuk; ?>&&opsi=jalan&&jln=nakular">Jalan Nakula Raya</a></li>
<li><a href="carikos.php?tipe=<?php echo $untuk; ?>&&opsi=jalan&&jln=arjuna">Jalan Arjuna</a></li>
<li><a href="carikos.php?tipe=<?php echo $untuk; ?>&&opsi=jalan&&jln=bima">Jalan Bima</a></li>
<li><a href="carikos.php?tipe=<?php echo $untuk; ?>&&opsi=jalan&&jln=sadewa">Jalan Sadewa</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Fasilitas <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="carikos.php?tipe=<?php echo $untuk; ?>&&opsi=fas&&fas=ac">AC</a></li>
<li><a href="carikos.php?tipe=<?php echo $untuk; ?>&&opsi=fas&&fas=tv">TV</a></li>
<li><a href="carikos.php?tipe=<?php echo $untuk; ?>&&opsi=fas&&fas=km">Kamar Mandi Dalam</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Harga <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="carikos.php?tipe=<?php echo $untuk; ?>&&opsi=harga&&hrg=200">200rb - 300rb</a></li>
<li><a href="carikos.php?tipe=<?php echo $untuk; ?>&&opsi=harga&&hrg=350">350rb - 400rb</a></li>
<li><a href="carikos.php?tipe=<?php echo $untuk; ?>&&opsi=harga&&hrg=450">450rb - 500rb</a></li>
<li><a href="carikos.php?tipe=<?php echo $untuk; ?>&&opsi=harga&&hrg=500">> 500rb</a></li>
</ul>
</li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
</div>
<div class="container">
<!-- Main hero unit for a primary marketing message or call to action -->
<div class="hero-unit">
<img width="1000" height="500" src="images/header.jpg" class="img-rounded">
</div>
<!-- Example row of columns -->
<div class="hero-unit">
<h2>Kos <?php echo $untuk; ?></h2><br/>
<table border="0" cellspacing="40" class="table table-striped">
<?php
include "koneksi.php";
$kos = $_GET['kos'];
if($kos=="lk") {
$tampil = "SELECT * FROM data_kos AS dk INNER JOIN member AS m ON dk.username = m.username WHERE dk.untuk='Laki-Laki'";
$querytampil = mysql_query($tampil);
while($hasil = mysql_fetch_array($querytampil)) {
$id = $hasil['id_kos'];
$nama = $hasil['namakos'];
$alamat = $hasil['alamatkos'];
$telp = $hasil['notelp'];
$harga = $hasil['harga'];
$gambar = $hasil['gambar_kos'];
?>
<tr>
<td><img src="<?php echo $gambar; ?>" width="320" height="320" class="img-rounded" /></td>
<td>
<a href="detail.php?id=<?php echo $id; ?>" ><h3><?php echo $nama; ?></h3></a><br/>
<?php echo $alamat; ?><br/>
Contact Person: <?php echo $telp; ?><br/>
Harga: Rp. <?php echo $harga; ?>
</td>
</tr>
<tr>
<td colspan="2"><hr/></td>
</tr>
<?php
}
} else {
$tampil = "SELECT * FROM data_kos AS dk INNER JOIN member AS m ON dk.username = m.username WHERE dk.untuk='Perempuan'";
$querytampil = mysql_query($tampil);
while($hasil = mysql_fetch_array($querytampil)) {
$id = $hasil['id_kos'];
$nama = $hasil['namakos'];
$alamat = $hasil['alamatkos'];
$telp = $hasil['notelp'];
$harga = $hasil['harga'];
$gambar = $hasil['gambar_kos'];
?>
<tr>
<td><img src="<?php echo $gambar; ?>" width="320" height="320" /></td>
<td>
<a href="detail.php?id=<?php echo $id; ?>" ><h3><?php echo $nama; ?></h3></a><br/>
<?php echo $alamat; ?><br/>
Contact Person: <?php echo $telp; ?><br/>
Harga: Rp. <?php echo $harga; ?>
</td>
</tr>
<tr>
<td colspan="2"><hr/></td>
</tr>
<?php
}
}
?>
</table>
</div>
<hr>
<footer>
<p>Copyright © ERA, AR, SL, EAS 2013</p>
</footer>
</div> <!-- /container -->
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="js/jquery.js"></script>
<script src="js/bootstrap-transition.js"></script>
<script src="js/bootstrap-alert.js"></script>
<script src="js/bootstrap-modal.js"></script>
<script src="js/bootstrap-dropdown.js"></script>
<script src="js/bootstrap-scrollspy.js"></script>
<script src="js/bootstrap-tab.js"></script>
<script src="js/bootstrap-tooltip.js"></script>
<script src="js/bootstrap-popover.js"></script>
<script src="js/bootstrap-button.js"></script>
<script src="js/bootstrap-collapse.js"></script>
<script src="js/bootstrap-carousel.js"></script>
<script src="js/bootstrap-typeahead.js"></script>
</body>
</html>