b3600386140da3587d8b2cc5ed1d00983198d500.svn-base
1.57 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
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/ApiBill.php"; ?>
<?
$obj = new ApiBill($_REQUEST);
$result = $obj->getMonthlyList() ;
$list = $result["list"] ;
$data = $result["data"] ;
//
// echo json_encode($_COOKIE) ;
// echo json_encode($list) ;
?>
<script language="javascript">
$(document).ready(function(){
}) ;
</script>
<!-- 건물명/년도 -->
<div class="year">
<ul>
<li><a><?= $data["buildingName"] ?> <?= $data["roomName"] ?></a></li>
<li><a class="jPopup" page="popupYear.php" rpage="monthly.php"><?= $_REQUEST["year"] == "" ? date("Y") : $_REQUEST["year"] ?></a></li>
</ul>
<div style="clear:both"></div>
</div>
<!-- 건물명/년도 -->
<!-- 리스트 -->
<section>
<!-- 리스트 1개당 ul반복 -->
<? for($i=0; $i<sizeof($list); $i++) {
$row = $list[$i] ;
$month = explode("-", $row["month"]) ;
?>
<ul class="jMonthlyView" _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반복 -->