utilityView.php
5.07 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<? include $_SERVER["DOCUMENT_ROOT"] . "/web/inc/php/header.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/ApiBill.php"; ?>
<?
$obj = new ApiBill($_REQUEST);
$data = $obj->getUtilityData() ;
$str = explode("-", $data["month"]) ;
$month = $str[0] . "." . $str[1] ;
// echo json_encode($data) ;
?>
<script>
$(document).ready(function(){
$(".jUsingView").click2(function(){
var page = $(this).attr("page");
var number = ("<?= $_REQUEST["no"] ?>");
$.ajax({
url : "/web/billManage/popupUsing.php",
type : "POST",
dataType : "html",
data : {
number : number
}, success : function(data){
$(".jPopupArea").html("") ;
$(".jPopupArea").append(data) ;
$(".jPopupArea").show() ;
}
});
});
$(document).on("click", ".jExit", function(){
$(".jPopupArea").html("") ;
$(".jPopupArea").hide() ;
});
});
</script>
<div class="Wrap" style="height:100%">
<!-- 헤드 -->
<header>
<ul>
<li class="jBack"><img src="/web/inc/images/btn_top_back_over.png" alt="back" width="20%"/></li>
<li><p><?= $month ?></p></li><!-- 날짜 -->
<li></li>
</ul>
<div style="clear:both;"></div>
</header>
<!-- 헤드 -->
<!-- 납부기한/금액 -->
<div class="contant con1">
<dl>
<dt>납부기한 : <span><?= $data["monthDate"] ?></span></dt>
<dd>총 금액은 <span style="font-size:15px; color:#ff0000; font-weight:bold; "><?= number_format($data["current_month_charge"]) ?></span> 원 입니다.</dd>
</dl>
</div>
<!-- 납부기한/금액 -->
<!-- 리스트 -->
<div class="contant con2">
<ul>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>전기료</a><!-- 이름 -->
<a><span><?= number_format($data["electricity_charge"]) ?></span> 원</a><!-- 금액 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>가스료</a><!-- 이름 -->
<a><span><?= number_format($data["gas_charge"]) ?></span> 원</a><!-- 금액 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>수도료</a><!-- 이름 -->
<a><span><?= number_format($data["water_charge"]) ?></span> 원</a><!-- 금액 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>공용 전기료</a><!-- 이름 -->
<a><span><?= number_format($data["community_electricity_charge"]) ?></span> 원</a><!-- 금액 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>공용 수도료</a><!-- 이름 -->
<a><span><?= number_format($data["community_water_charge"]) ?></span> 원</a><!-- 금액 -->
</li>
<li class="used">
<a class="jUsingView">사용량</a>
<a>소계 <span><?= number_format($data["current_month_charge"]) ?></span> 원</a><!-- 금액 -->
</li>
<div style="clear:both;"></div>
</ul>
</div>
<div class="contant con2">
<ul>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>당월부과액</a><!-- 이름 -->
<a><span><?= number_format($data["current_month_charge"]) ?></span> 원</a><!-- 금액 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>전월 미납액(연체료 포함)</a><!-- 이름 -->
<a><span><?= number_format($data["sum_before_payment"]) ?></span> 원</a><!-- 금액 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>납기 내 금액</a><!-- 이름 -->
<a><span><?= number_format($data["current_month_charge"] + $data["sum_before_payment"]) ?></span> 원</a><!-- 금액 -->
</li>
<div style="clear:both;"></div>
</ul>
</div>
<div class="contant con2">
<ul>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>당월연체료</a><!-- 이름 -->
<a><span><?= number_format($data["current_month_late_fee"]) ?></span> 원</a><!-- 금액 -->
</li>
<div style="clear:both;"></div>
<li>
<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
<a>납기 후 금액</a><!-- 이름 -->
<a><span><?= number_format($data["current_month_charge"] + $data["sum_before_payment"] + $data["current_month_late_fee"]) ?></span> 원</a><!-- 금액 -->
</li>
<div style="clear:both;"></div>
</ul>
</div>
<!-- 리스트 -->
<!-- 계좌 -->
<div class="bank">
<div>
<ul class="text1">
<li>입금은행</li>
<li>계좌번호</li>
</ul>
<ul class="text2">
<li><?= $data["util_account_bank"] ?></li><!-- 은행 -->
<li><?= $data["util_account_no"] ?> (<?= $data["util_account_owner"] ?>)</li><!-- 계좌번호 -->
</ul>
</div>
</div>
<!-- 계좌 -->
</div>
<div class="jPopupArea" style="position: absolute; width: 100%; top: 0px; height: 100%; background: rgba(100, 100, 100, 0.5); display: none;"></div>
<? include $_SERVER["DOCUMENT_ROOT"] . "/web/inc/php/footer.php" ?>