popupVacant.php
1.73 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
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/ApiBill.php"; ?>
<?
$obj = new ApiBill($_REQUEST);
$data = $obj->getVacantList() ;
?>
<div class="pop room_none_pop_box">
<ul class="head">
<li>o</li>
<li class="title">공실율</li>
<li class="jExit" style="text-align:right;"><img src="/web/inc/images/btn_pop_x.png" alt="esc" width="30%" style="padding:9px 12px 0px 0px;"/></li>
<div style="clear:both;"></div>
</ul>
<!-- 리스트 -->
<div class="contant room_none_pop">
<ul>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a><?= $data["date1"] ?>월</a><!-- 월 -->
<a></a>
<a></a>
<a>
<?
if($data["room_cnt1"] > 0) {
echo round(($data["vacant_cnt1"] / $data["room_cnt1"] * 100), 2) ;
} else {
echo "0" ;
}
?> %
</a><!-- 공실율 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a><?= $data["date2"] ?>월</a><!-- 월 -->
<a></a>
<a></a>
<a>
<?
if($data["room_cnt2"] > 0) {
echo round(($data["vacant_cnt2"] / $data["room_cnt2"] * 100), 2) ;
} else {
echo "0" ;
}
?> %
</a><!-- 공실율 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a><?= $data["date3"] ?>월</a><!-- 월 -->
<a></a>
<a></a>
<a>
<?
if($data["room_cnt3"] > 0) {
echo round(($data["vacant_cnt3"] / $data["room_cnt3"] * 100), 2) ;
} else {
echo "0" ;
}
?> %
</a><!-- 공실율 -->
</li>
<div style="clear:both;"></div>
</ul>
</div>
<!-- 리스트 -->
</div>