-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtable.php
More file actions
87 lines (77 loc) · 4.36 KB
/
table.php
File metadata and controls
87 lines (77 loc) · 4.36 KB
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
<?php
$post = Search::checkhouse_id();
?>
<?php
$mysqli = Connect::conn();
$search = new Search();
$houseinfo = $search->checkhouse_id();
if(!empty($houseinfo)){
foreach ($houseinfo as $info){
?>
<table style="word-break: keep-all;" height="50%" class="table table-striped table-hover table-bordered">
<tr id="mid">
<td colspan="8"><span style="font-size:20px;">詳細資訊</span></td>
</tr>
<tr id="mid">
<td style="background-color: #bbbbbb82";><span style="font-size:18px;">地址</span></td>
<td><span style="font-size:15px;"><?php echo $info['address'];?></span></td>
<td style="background-color: #bbbbbb82";><span style="font-size:18px;">刊登日期</span></td>
<td><span style="font-size:15px;"><?php echo date('Y-m-d',strtotime($info['date']));?></span></td>
<td style="background-color: #bbbbbb82";><span style="font-size:18px;">租期</span></td>
<td><span style="font-size:15px;"><?php echo $info['lease_term'];?></span></td>
<td style="background-color: #bbbbbb82";><span style="font-size:18px;">租金</span></td>
<td><span style="font-size:15px;"><?php echo $info['rental'];?>元/月</span></td>
</tr>
<tr id="mid">
<td style="background-color: #bbbbbb82";><span style="font-size:18px;">房型</span></td>
<td><span style="font-size:15px;"><?php echo $info['housetype'];?></span></td>
<td style="background-color: #bbbbbb82";><span style="font-size:18px;">坪數</span></td>
<td><span style="font-size:15px;"><?php echo $info['ping'];?>坪</span></td>
<td style="background-color: #bbbbbb82";><span style="font-size:18px;">屋齡</span></td>
<td><span style="font-size:15px;"><?php echo $info['house_age'];?></span></td>
<td style="background-color: #bbbbbb82";><span style="font-size:18px;">押金</span></td>
<td><span style="font-size:15px;"><?php echo $info['deposit'];?>元</span></td>
</tr>
<tr id="mid">
<td style="background-color: #bbbbbb82";><span style="font-size:18px;">寵物</span></td>
<td><span style="font-size:15px;"><?php echo $info['pet'];?></span></td>
<td style="background-color: #bbbbbb82";><span style="font-size:18px;">電梯</span></td>
<td><span style="font-size:15px;"><?php echo $info['elevator'];?></span></td>
<td style="background-color: #bbbbbb82";><span style="font-size:18px;">開伙</span></td>
<td><span style="font-size:15px;"><?php echo $info['opened'];?></span></td>
<td style="background-color: #bbbbbb82";><span style="font-size:18px;">車位</span></td>
<td><span style="font-size:15px;"><?php echo $info['parking_spaces'];?></span></td>
</tr>
<tr id="mid">
<td style="background-color: #bbbbbb82";><span style="font-size:18px;">租屋限制</span></td>
<td><span style="font-size:15px;"><?php echo $info['house_limit'];?></span></td>
<td style="background-color: #bbbbbb82";><span style="font-size:18px;">隔間材質</span></td>
<td><span style="font-size:15px;">水泥</span></td>
<td style="background-color: #bbbbbb82";><span style="font-size:18px;">門禁管制</span></td>
<td><span style="font-size:15px;"><?php echo $info['curfew'];?></span></td>
<td style="background-color: #bbbbbb82";><span style="font-size:18px;">提供設備</span></td>
<td><span style="font-size:15px;"><?php echo $info['equipment'];?></span></td>
</tr>
<tr id="mid">
<td style="background-color: #bbbbbb82";><span style="font-size:18px;">身分要求</span></td>
<td><span style="font-size:15px;"><?php echo $info['identity_requirements'];?></span></td>
<td style="background-color: #bbbbbb82";><span style="font-size:18px;">陽台:</span></td>
<td><span style="font-size:15px;"><?php echo $info['balcony'];?></span></td>
<td style="background-color: #bbbbbb82";><span style="font-size:18px;">安全設備</span></td>
<td colspan="3"><?php echo $info['equipment'];?></td>
</tr>
<tr id="mid">
<td style="background-color: #bbbbbb82; padding-top: 2.5%";><span style="font-size:18px;">生活機能</span></td>
<td style="padding-top: 2.5%"; colspan="7"><p>
<?php echo $info['material'];?>
</td>
</tr>
<tr id="mid">
<td style="background-color: #bbbbbb82";><span style="font-size:18px;">備註</span></td>
<td colspan="7"><?php echo $info['others'];?></td>
</tr>
</table>
<?php
}
}
?>