ef78e361c14da24607b9af054472ab254553cde0.svn-base
2.24 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
88
89
90
91
92
93
94
95
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/ApiBill.php"; ?>
<?
$obj = new ApiBill($_REQUEST);
$result = $obj->getRentList() ;
$requestList = $result["requestList"] ;
$rentList = $result["rentList"] ;
// echo json_encode($rentList) ;
?>
<script>
$(document).ready(function(){
});
</script>
<div class="Wrap" style="height:100%">
<!-- 리스트 -->
<section>
<? for($i=0; $i<sizeof($requestList); $i++) {
$row = $requestList[$i] ;
?>
<!-- 리스트 1개당 ul반복 -->
<ul class="room_info jView" _no="<?= $row["no"] ?>" page="requestView.php">
<li>
<div class="date room_num">
<p><?= $row["room_name"] ?></p><!-- 호실 -->
</div>
</li>
<li>
<p style="margin:20px 0px 7px 0px;"><?= $row["requestDate"] ?></p>
<p class="price"><?= number_format($row["charge"]) ?>원</p><!-- 금액 -->
</li>
<li class="status_box">
<div class="status logn_status rent_list brown">
<a>비용청구</a><!-- 상태([임대료내역]비용청구일때는 class = 'brown') -->
</div>
</li>
<div style="clear:both;"></div>
</ul>
<!-- 리스트 1개당 ul반복 -->
<? } ?>
<? for($i=0; $i<sizeof($rentList); $i++) {
$row = $rentList[$i] ;
?>
<!-- 리스트 1개당 ul반복 -->
<ul class="room_info" page="rentView.php">
<li>
<div class="date room_num">
<p><?= $row["name"] ?></p><!-- 호실 -->
</div>
</li>
<li>
<p style="margin:20px 0px 7px 0px;"><?= $row["monthDate"] ?></p>
<p class="price"><?= number_format($row["payment_owner"]) ?>원</p><!-- 금액 -->
</li>
<li class="status_box" _no="<?= $row["NO"] ?>">
<div class="status logn_status rent_list brown">
<a>월세</a>
</div>
<? if($row["is_paid"] == 0) { ?>
<div class="status logn_status rent_list long_orange">
<a>연체</a>
</div>
<? } else if($row["is_paid"] == 1) {?>
<div class="status logn_status rent_list long_orange">
<a>납입</a>
</div>
<? } else if($row["is_paid"] == 2) {?>
<div class="status logn_status rent_list brown">
<a>청구중</a>
</div>
<? } ?>
</li>
<div style="clear:both;"></div>
</ul>
<!-- 리스트 1개당 ul반복 -->
<? } ?>
</section>
<!-- 리스트 -->
</div>
<? include $_SERVER["DOCUMENT_ROOT"] . "/web/inc/php/footer.php" ?>