1510c78e3b1a13c1ab20d5b7c770460454dfbac7.svn-base
1.48 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
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/ApiBill.php"; ?>
<?
$obj = new ApiBill($_REQUEST);
$result = $obj->getUtilityList() ;
$list = $result["list"] ;
$data = $result["data"] ;
// echo json_encode($list) ;
?>
<!-- 건물명/년도 -->
<div class="year">
<ul>
<li><a><?= $data["buildingName"] ?> <?= $data["roomName"] ?></a></li>
<li><a class="jPopup" page="popupYear.php" rpage="utility.php"><?= $_REQUEST["year"] == "" ? date("Y") : $_REQUEST["year"] ?></a></li>
</ul>
<div style="clear:both"></div>
</div>
<!-- 건물명/년도 -->
<!-- 리스트 -->
<section>
<? for($i=0; $i<sizeof($list); $i++) {
$row = $list[$i] ;
$month = explode("-", $row["month"]) ;
?>
<!-- 리스트 1개당 ul반복 -->
<ul class="jUtilityView" _no="<?= $row["no"] ?>">
<li>
<div class="date">
<p><?= $month[1]?>월</p><!-- 날짜 -->
</div>
</li>
<li>
<p style="margin:20px 0px 7px 0px;"><?= $row["monthDate"] ?> (전기+가스+수도)</p>
<p class="price"><?= number_format($row["current_month_charge"]) ?>원</p><!-- 금액 -->
</li>
<li class="status_box">
<? if($row["is_paid"] == 1) { ?>
<div class="status orange"><a>납입</a></div>
<? } else if($row["is_paid"] == 0) { ?>
<div class="status red"><a>연체</a></div>
<? } else if($row["is_paid"] == 2) { ?>
<div class="status orange"><a>청구</a></div>
<? } ?>
</li>
<div style="clear:both;"></div>
</ul>
<!-- 리스트 1개당 ul반복 -->
<? } ?>
</section>
<!-- 리스트 -->