4a80ae4ac79e57f3d18445d922b3571bc2dbfcfc.svn-base
26.6 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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminRent.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/header.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/leftRentManage.php" ?>
<?
$obj = new AdminRent($_REQUEST, "");
$info = $obj->getInfoOfBuilding();
$group_list = $obj->getListOfGroupForBuilding();
$room_info = $obj->getInfoOfBuildingsRoom();
$vip_list = $obj->getListOfVIPForBuilding();
$room_info_p1 = $obj->getInfoOfPastBuildingsRoom(1);
$room_info_p2 = $obj->getInfoOfPastBuildingsRoom(2);
$room_info_p3 = $obj->getInfoOfPastBuildingsRoom(3);
$userList = $obj->getListOfUser('M', $obj->admUser['target_fk']);
$rurl = pack("H*", $_REQUEST["rurl"]) ;
?>
<script language="JavaScript">
// 쿠키 생성
function setCookie(cName, cValue, cDay){
var expire = new Date();
expire.setDate(expire.getDate() + cDay);
cookies = cName + '=' + escape(cValue) + '; path=/ '; // 한글 깨짐을 막기위해 escape(cValue)를 합니다.
if(typeof cDay != 'undefined') cookies += ';expires=' + expire.toGMTString() + ';';
document.cookie = cookies;
}
// 쿠키 가져오기
function getCookie(cName) {
cName = cName + '=';
var cookieData = document.cookie;
var start = cookieData.indexOf(cName);
var cValue = '';
if(start != -1){
start += cName.length;
var end = cookieData.indexOf(';', start);
if(end == -1)end = cookieData.length;
cValue = cookieData.substring(start, end);
}
return unescape(cValue);
}
</script>
<script type="text/javascript">
var _rurl = "<?=$rurl?>";
var _no = "<?=$_REQUEST[no]?>";
$(document).ready(function(){
if(<?=$_REQUEST["new"]?>==1) $("#room_btn").hide();
//=====프레입웤 변수들==================================================================================//
var FORM_TARGET_CLS_NM = ".data" ; // 폼을 동적 wrap 할 타겟 ID이름
var FORM_NAME = "alf" ; // 폼이름
var FORM_METHOD = "POST" ; // 폼 메쏘드
var FORM_USE_FILE = false ; // 파일폼 사용 여부
var FORM_ACTION = "/action_front.php" ;
var NEXT_CMD = "" ; // 다은 수행 할 cmd
//=====================================================================================================//
var jForm = $(FORM_TARGET_CLS_NM).mf({ "name" : FORM_NAME , "method" : FORM_METHOD , "action" : FORM_ACTION , "useFile" : FORM_USE_FILE }) ;
var dates = $('.jRsvDate').datepicker({
showMonthAfterYear:true,
inline: true,
changeMonth: true,
changeYear: true,
dateFormat : 'yy-mm-dd',
dayNamesMin:['일', '월', '화', '수', '목', '금', ' 토'],
monthNames:['1월','2월','3월','4월','5월','6월','7 월','8월','9월','10월','11월','12월'],
monthNamesShort:['1월','2월','3월','4월','5월','6월','7월','8월','9월','10월','11월','12월'],
showButtonPanel: true, currentText: '오늘 ' , closeText: '닫기',
onSelect: function(selectedDate) {
}
});
$(".jCancel").click2(function(){
location.href = _rurl;
});
$(".jDel").click2(function(){
var noArr = new Array(_no);
if(confirm("정말 삭제하시겠습니까?"))
{
deleteActrion(noArr);
}
});
$(".jMod").click2(function(){
var vip_fk = $(".owner_name option:selected").attr("no") ;
$("[name='vip_fk']").val(vip_fk) ;
var data = $("#jData").serialize() ;
$.ajax({
url : "/action_front.php?cmd=AdminRent.saveBuilding",
async : false,
cache : false,
dataType : "json",
data : data,
success : function(data){
alert(data.returnMessage);
if(_no != ""){
location.reload();
}
else{
location.href = _rurl;
}
setCookie('validation', data.returnCode,0);
},
error:function(request,status,error){
alert("code:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error);
}
});
});
$(".jRoomPopup").click2(function(){
if(getCookie('validation') == 1){
var roomPopup = window.open("/admin/popup/roomList.php?no=" + <?=$_REQUEST[no] == "" ? 0 : $_REQUEST[no]?>, 'roomPopup', "width=1200,height=800,top=100,left=200,location=no,menubar=no,resizable=yes,scrollbars=no,status=no,titlebar=no,toolbar=no");
setCookie('validation', 0, 0);
}
else{
if(confirm("저장하지 않은 정보를 잃을 수 있습니다.\n현재까지 작성된 건물 정보를 저장한 뒤 진행하시겠습니까?")){
var vip_fk = $(".owner_name option:selected").attr("no") ;
$("[name='vip_fk']").val(vip_fk) ;
var data = $("#jData").serialize();
$.ajax({
url : "/action_front.php?cmd=AdminRent.saveBuilding",
async : false,
cache : false,
dataType : "json",
data : data,
success : function(data){
alert(data.returnMessage);
setCookie('validation', data.returnCode,1 );
if(_no != ""){
location.reload();
}
else{
location.href = _rurl;
}
}
});
var roomPopup = window.open("/admin/popup/roomList.php?no=" + <?=$_REQUEST[no] == "" ? 0 : $_REQUEST[no]?>, 'roomPopup' , "width=1200,height=800,top=100,left=200,location=no,menubar=no,resizable=yes,scrollbars=no,status=no,titlebar=no,toolbar=no");
}
}
});
}) ;
function deleteActrion(noArr)
{
$.ajax({
url : "/action_front.php?cmd=AdminRent.delBuilding",
async : false,
cache : false,
data : {
"no" : noArr
},
success : function(data){
alert("삭제되었습니다");
location.href = _rurl;
}
});
}
</script>
<div id="Contents" class="notice">
<h1>건물등록(수정)</h1>
<!-- location area -->
<h2>
임대 관리 > <span>건물 관리</span>
</h2>
<!-- location area -->
<div class="data" style="width:100%;">
<form id="jData">
<input type="hidden" name="no" value="<?=$_REQUEST[no]?>" />
<input type="hidden" name="vip_fk" />
<input type="hidden" name="current_vip" value="<?=$info["vip_fk"]?>" />
<div class="btngroupcenter">
<span class="button medium gray jRoomPopup btnright_y" id="room_btn">호실정보</span>
</div>
<h3>건물 정보</h3>
<table class="datav" style="width:100%;">
<colgroup>
<col width="11%" />
<col width="22%" />
<col width="11%" />
<col width="22%" />
<col width="11%" />
<col width="22%" />
</colgroup>
<tr>
<!-- 건물명 -->
<th style="height:25px;">건물명</th>
<td class="center">
<select name="name" class="wm b_name" id="building_name">
<option value="">선택</option>
<? for($i=0; $i<sizeof($group_list); $i++){ ?>
<option no='<?=$group_list[$i]["no"]?>' value='<?=$group_list[$i]["name"]?>' <?=$info["name"] == $group_list[$i]["name"] ? "SELECTED" : ""?>><?=$group_list[$i]["name"]?></option>
<? } ?>
<?if($info["name"]){?>
<option value='<?=$info["name"]?>' selected><?=$info["name"]?></option>
<? } ?>
</select>
</td>
<!-- 건물종류 -->
<th style="height:25px;">건물종류</th>
<td class="center">
<select name="type" class="wb">
<option value="">선택</option>
<option value="<?=$obj->BUILDING_TYPE_SINGLE?>" <?=$info["type"] == $obj->BUILDING_TYPE_SINGLE ? "SELECTED" : ""?>>원룸</option>
<option value="<?=$obj->BUILDING_TYPE_OFFICE?>" <?=$info["type"] == $obj->BUILDING_TYPE_OFFICE ? "SELECTED" : ""?>>오피스텔</option>
<option value="<?=$obj->BUILDING_TYPE_URBAN?>" <?=$info["type"] == $obj->BUILDING_TYPE_URBAN ? "SELECTED" : ""?>>도생</option>
<option value="<?=$obj->BUILDING_TYPE_APART?>" <?=$info["type"] == $obj->BUILDING_TYPE_APART ? "SELECTED" : ""?>>아파트</option>
<option value="<?=$obj->BUILDING_TYPE_HOUSE?>" <?=$info["type"] == $obj->BUILDING_TYPE_HOUSE ? "SELECTED" : ""?>>주택</option>
<option value="<?=$obj->BUILDING_TYPE_ETC?>" <?=$info["type"] == $obj->BUILDING_TYPE_ETC ? "SELECTED" : ""?>>기타</option>
</select>
</td>
<!-- 건물주소 -->
<th style="height:25px;">건물주소</th>
<td class="center">
<input type="text" name="address" class="wb" value="<?=$info["address"]?>" />
</td>
</tr>
<tr>
<!-- 계약만기 -->
<th style="height:25px;">계약만기</th>
<td class="center">
<?php
$formattedDate = date('Y-m-d', strtotime($info["expire_date"]));
if($formattedDate == "1970-01-01") $formattedDate = "";
?>
<input type="text" name="expire_date" value="<?=$formattedDate?>" class="jRsvDate" readonly="true" />
</td>
<!-- 관리유형 -->
<th style="height:25px;">관리유형</th>
<td class="center">
<select name="manage_type" class="wb" value="">
<option value="">선택</option>
<option value="<?=$obj->BUILDING_MANAGE_TYPE_LONG_CONS?>" <?=$info["manage_type"] == $obj->BUILDING_MANAGE_TYPE_LONG_CONS ? "SELECTED" : ""?>>장기위탁</option>
<option value="<?=$obj->BUILDING_MANAGE_TYPE_SHORT_CONS?>" <?=$info["manage_type"] == $obj->BUILDING_MANAGE_TYPE_SHORT_CONS ? "SELECTED" : ""?>>단기위탁</option>
<option value="<?=$obj->BUILDING_MANAGE_TYPE_LONG_SELF?>" <?=$info["manage_type"] == $obj->BUILDING_MANAGE_TYPE_LONG_SELF ? "SELECTED" : ""?>>장기자기</option>
<option value="<?=$obj->BUILDING_MANAGE_TYPE_SHORT_SELF?>" <?=$info["manage_type"] == $obj->BUILDING_MANAGE_TYPE_SHORT_SELF ? "SELECTED" : ""?>>단기자기</option>
</select>
</td>
</tr>
</table>
<h3>호실 정보</h3>
<? if($room_info["room_cnt"]==0 && $room_info["resident_cnt"]==0 && $room_info["empty_cnt"]==0 && $room_info["leaving_cnt"]==0 && $room_info["entering_cnt"]==0){ ?>
<h4>등록된 호실 정보가 없습니다.</h4>
<? }else{ ?>
<table class="datav" style="width:100%;">
<colgroup>
<col width="11%">
<col width="9%">
<col width="11%">
<col width="9%">
<col width="11%">
<col width="9%">
<col width="11%">
<col width="9%">
<col width="11%">
<col width="9%">
</colgroup>
<tr>
<!-- 호실수 -->
<th style="height:25px;">호실수</th>
<td class="center">
<?=$room_info["room_cnt"]?>
</td>
<!-- 입주 -->
<th style="height:25px;">입주</th>
<td class="center">
<?=$room_info["resident_cnt"]?>
</td>
<!-- 공실 -->
<th style="height:25px;">공실</th>
<td class="center">
<?=$room_info["empty_cnt"]?>
</td>
<!-- 퇴실예정 -->
<th style="height:25px;">퇴실예정</th>
<td class="center">
<?=$room_info["leaving_cnt"]?>
</td>
<!-- 입실예정 -->
<th style="height:25px;">입실예정</th>
<td class="center">
<?=$room_info["entering_cnt"]?>
</td>
</tr>
</table>
<? } ?>
<h3>건물주 정보</h3>
<table class="datav" style="width:100%;">
<colgroup>
<col width="11%" />
<col width="22%" />
<col width="11%" />
<col width="22%" />
<col width="11%" />
<col width="22%" />
</colgroup>
<tr>
<!-- 건물주 -->
<th style="height:25px;">건물주</th>
<td class="center">
<select name="owner_name" class="owner_name" id="owner_name">
<option value="">선택</option>
<?if($info["owner_name"]){?>
<option value='<?=$info["owner_name"]?>' no="<?=$info["vip_fk"]?>" selected><?=$info["owner_name"]?></option>
<? } ?>
<? for($i=0; $i<sizeof($vip_list); $i++){ ?>
<option no='<?=$vip_list[$i]["no"]?>' value='<?=$vip_list[$i]["name"]?>' <?=$info["owner_name"] == $vip_list[$i]["name"] ? "SELECTED" : ""?>><?=$vip_list[$i]["name"]?></option>
<? } ?>
</select>
</td>
<!-- 연락처 -->
<th style="height:25px;">연락처</th>
<td class="center">
<input type="text" name="owner_tel" class="wb" value="<?=$info['owner_tel']?>" />
</td>
<!-- 주소 -->
<th style="height:25px;">주소</th>
<td class="center">
<input type="text" name="owner_address" class="wb" value="<?=$info['owner_address']?>" />
</td>
</tr>
<tr>
<!-- 월세입금계좌 은행 및 계좌번호 -->
<th style="height:50px;" rowspan='3'>월세입금계좌<br> /계좌번호<br> / 예금주</th>
<td class="center">
<select type="text" name="month_account_bank">
<option value="">선택</option>
<option value="우리" <?=$info["month_account_bank"] == "우리" ? "SELECTED" : ""?>>우리</option>
<option value="<?="경남"?>" <?=$info["month_account_bank"] == "경남" ? "SELECTED" : ""?>>경남</option>
<option value="<?="광주"?>" <?=$info["month_account_bank"] == "광주" ? "SELECTED" : ""?>>광주</option>
<option value="<?="국민"?>" <?=$info["month_account_bank"] == "국민" ? "SELECTED" : ""?>>국민</option>
<option value="<?="기업"?>" <?=$info["month_account_bank"] == "기업" ? "SELECTED" : ""?>>기업</option>
<option value="<?="농협"?>" <?=$info["month_account_bank"] == "농협" ? "SELECTED" : ""?>>농협</option>
<option value="<?="대구"?>" <?=$info["month_account_bank"] == "대구" ? "SELECTED" : ""?>>대구</option>
<option value="<?="도이치"?>" <?=$info["month_account_bank"] == "도이치" ? "SELECTED" : ""?>>도이치</option>
<option value="<?="부산"?>" <?=$info["month_account_bank"] == "부산" ? "SELECTED" : ""?>>부산</option>
<option value="<?="비엔피파리"?>" <?=$info["month_account_bank"] == "비엔피파리" ? "SELECTED" : ""?>>비엔피파리</option>
<option value="<?="산림"?>" <?=$info["month_account_bank"] == "산림" ? "SELECTED" : ""?>>산림</option>
<option value="<?="산업"?>" <?=$info["month_account_bank"] == "산업" ? "SELECTED" : ""?>>산업</option>
<option value="<?="상호저축"?>" <?=$info["month_account_bank"] == "상호저축" ? "SELECTED" : ""?>>상호저축</option>
<option value="<?="새마을금고"?>" <?=$info["month_account_bank"] == "새마을금고" ? "SELECTED" : ""?>>새마을금고</option>
<option value="<?="수춯입"?>" <?=$info["month_account_bank"] == "수출입" ? "SELECTED" : ""?>>수출입</option>
<option value="<?="수협"?>" <?=$info["month_account_bank"] == "수협" ? "SELECTED" : ""?>>수협</option>
<option value="<?="신용협동"?>" <?=$info["month_account_bank"] == "신용협동" ? "SELECTED" : ""?>>신용협동</option>
<option value="<?="신한"?>" <?=$info["month_account_bank"] == "신한" ? "SELECTED" : ""?>>신한</option>
<option value="<?="우체국"?>" <?=$info["month_account_bank"] == "우체국" ? "SELECTED" : ""?>>우체국</option>
<option value="<?="전북"?>" <?=$info["month_account_bank"] == "전북" ? "SELECTED" : ""?>>전북</option>
<option value="<?="제주"?>" <?=$info["month_account_bank"] == "제주" ? "SELECTED" : ""?>>제주</option>
<option value="<?="중국공상"?>" <?=$info["month_account_bank"] == "중국공상" ? "SELECTED" : ""?>>중국공상</option>
<option value="<?="케이뱅크"?>" <?=$info["month_account_bank"] == "케이뱅크" ? "SELECTED" : ""?>>케이뱅크</option>
<option value="<?="펀드온라인코리아"?>" <?=$info["month_account_bank"] == "펀드온라인코리아" ? "SELECTED" : ""?>>펀드온라인코리아</option>
<option value="<?="한국씨티"?>" <?=$info["month_account_bank"] == "한국씨티" ? "SELECTED" : ""?>>한국씨티</option>
<option value="<?="BOA"?>" <?=$info["month_account_bank"] == "BOA" ? "SELECTED" : ""?>>BOA</option>
<option value="<?="HSBC"?>" <?=$info["month_account_bank"] == "HSBC" ? "SELECTED" : ""?>>HSBC</option>
<option value="<?="JP모간체이스"?>" <?=$info["month_account_bank"] == "JP모간체이스" ? "SELECTED" : ""?>>JP모간체이스</option>
<option value="<?="KEB하나"?>" <?=$info["month_account_bank"] == "KEB하나" ? "SELECTED" : ""?>>KEB하나</option>
<option value="<?="SC"?>" <?=$info["month_account_bank"] == "SC" ? "SELECTED" : ""?>>SC</option>
</select>
</td>
<!-- 공과금입금계좌 은행 및 계좌번호 -->
<th style="height:50px;" rowspan='3'>공과금입금계좌<br> /계좌번호<br> / 예금주 </th>
<td class="center">
<select type="text" name="util_account_bank">
<option value="">선택</option>
<option value="<?="우리"?>" <?=$info["util_account_bank"] == "우리" ? "SELECTED" : ""?>>우리</option>
<option value="<?="경남"?>" <?=$info["util_account_bank"] == "경남" ? "SELECTED" : ""?>>경남</option>
<option value="<?="광주"?>" <?=$info["util_account_bank"] == "광주" ? "SELECTED" : ""?>>광주</option>
<option value="<?="국민"?>" <?=$info["util_account_bank"] == "국민" ? "SELECTED" : ""?>>국민</option>
<option value="<?="기업"?>" <?=$info["util_account_bank"] == "기업" ? "SELECTED" : ""?>>기업</option>
<option value="<?="농협"?>" <?=$info["util_account_bank"] == "농협" ? "SELECTED" : ""?>>농협</option>
<option value="<?="대구"?>" <?=$info["util_account_bank"] == "대구" ? "SELECTED" : ""?>>대구</option>
<option value="<?="도이치"?>" <?=$info["util_account_bank"] == "도이치" ? "SELECTED" : ""?>>도이치</option>
<option value="<?="부산"?>" <?=$info["util_account_bank"] == "부산" ? "SELECTED" : ""?>>부산</option>
<option value="<?="비엔피파리"?>" <?=$info["util_account_bank"] == "비엔피파리" ? "SELECTED" : ""?>>비엔피파리</option>
<option value="<?="산림"?>" <?=$info["util_account_bank"] == "산림" ? "SELECTED" : ""?>>산림</option>
<option value="<?="산업"?>" <?=$info["util_account_bank"] == "산업" ? "SELECTED" : ""?>>산업</option>
<option value="<?="상호저축"?>" <?=$info["util_account_bank"] == "상호저축" ? "SELECTED" : ""?>>상호저축</option>
<option value="<?="새마을금고"?>" <?=$info["util_account_bank"] == "새마을금고" ? "SELECTED" : ""?>>새마을금고</option>
<option value="<?="수춯입"?>" <?=$info["util_account_bank"] == "수출입" ? "SELECTED" : ""?>>수출입</option>
<option value="<?="수협"?>" <?=$info["util_account_bank"] == "수협" ? "SELECTED" : ""?>>수협</option>
<option value="<?="신용협동"?>" <?=$info["util_account_bank"] == "신용협동" ? "SELECTED" : ""?>>신용협동</option>
<option value="<?="신한"?>" <?=$info["util_account_bank"] == "신한" ? "SELECTED" : ""?>>신한</option>
<option value="<?="우체국"?>" <?=$info["util_account_bank"] == "우체국" ? "SELECTED" : ""?>>우체국</option>
<option value="<?="전북"?>" <?=$info["util_account_bank"] == "전북" ? "SELECTED" : ""?>>전북</option>
<option value="<?="제주"?>" <?=$info["util_account_bank"] == "제주" ? "SELECTED" : ""?>>제주</option>
<option value="<?="중국공상"?>" <?=$info["util_account_bank"] == "중국공상" ? "SELECTED" : ""?>>중국공상</option>
<option value="<?="케이뱅크"?>" <?=$info["util_account_bank"] == "케이뱅크" ? "SELECTED" : ""?>>케이뱅크</option>
<option value="<?="펀드온라인코리아"?>" <?=$info["util_account_bank"] == "펀드온라인코리아" ? "SELECTED" : ""?>>펀드온라인코리아</option>
<option value="<?="한국씨티"?>" <?=$info["util_account_bank"] == "한국씨티" ? "SELECTED" : ""?>>한국씨티</option>
<option value="<?="BOA"?>" <?=$info["util_account_bank"] == "BOA" ? "SELECTED" : ""?>>BOA</option>
<option value="<?="HSBC"?>" <?=$info["util_account_bank"] == "HSBC" ? "SELECTED" : ""?>>HSBC</option>
<option value="<?="JP모간체이스"?>" <?=$info["util_account_bank"] == "JP모간체이스" ? "SELECTED" : ""?>>JP모간체이스</option>
<option value="<?="KEB하나"?>" <?=$info["util_account_bank"] == "KEB하나" ? "SELECTED" : ""?>>KEB하나</option>
<option value="<?="SC"?>" <?=$info["util_account_bank"] == "SC" ? "SELECTED" : ""?>>SC</option>
</select>
</td>
<!-- 건물주계좌 -->
<th style="height:25px;" rowspan='3'>건물주계좌 <br> /계좌번호</th>
<td class="center">
<select type="text" name="owner_account_bank">
<option value="">선택</option>
<option value="<?="우리"?>" <?=$info["owner_account_bank"] == "우리" ? "SELECTED" : ""?>>우리</option>
<option value="<?="경남"?>" <?=$info["owner_account_bank"] == "경남" ? "SELECTED" : ""?>>경남</option>
<option value="<?="광주"?>" <?=$info["owner_account_bank"] == "광주" ? "SELECTED" : ""?>>광주</option>
<option value="<?="국민"?>" <?=$info["owner_account_bank"] == "국민" ? "SELECTED" : ""?>>국민</option>
<option value="<?="기업"?>" <?=$info["owner_account_bank"] == "기업" ? "SELECTED" : ""?>>기업</option>
<option value="<?="농협"?>" <?=$info["owner_account_bank"] == "농협" ? "SELECTED" : ""?>>농협</option>
<option value="<?="대구"?>" <?=$info["owner_account_bank"] == "대구" ? "SELECTED" : ""?>>대구</option>
<option value="<?="도이치"?>" <?=$info["owner_account_bank"] == "도이치" ? "SELECTED" : ""?>>도이치</option>
<option value="<?="부산"?>" <?=$info["owner_account_bank"] == "부산" ? "SELECTED" : ""?>>부산</option>
<option value="<?="비엔피파리"?>" <?=$info["owner_account_bank"] == "비엔피파리" ? "SELECTED" : ""?>>비엔피파리</option>
<option value="<?="산림"?>" <?=$info["owner_account_bank"] == "산림" ? "SELECTED" : ""?>>산림</option>
<option value="<?="산업"?>" <?=$info["owner_account_bank"] == "산업" ? "SELECTED" : ""?>>산업</option>
<option value="<?="상호저축"?>" <?=$info["owner_account_bank"] == "상호저축" ? "SELECTED" : ""?>>상호저축</option>
<option value="<?="새마을금고"?>" <?=$info["owner_account_bank"] == "새마을금고" ? "SELECTED" : ""?>>새마을금고</option>
<option value="<?="수춯입"?>" <?=$info["owner_account_bank"] == "수출입" ? "SELECTED" : ""?>>수출입</option>
<option value="<?="수협"?>" <?=$info["owner_account_bank"] == "수협" ? "SELECTED" : ""?>>수협</option>
<option value="<?="신용협동"?>" <?=$info["owner_account_bank"] == "신용협동" ? "SELECTED" : ""?>>신용협동</option>
<option value="<?="신한"?>" <?=$info["owner_account_bank"] == "신한" ? "SELECTED" : ""?>>신한</option>
<option value="<?="우체국"?>" <?=$info["owner_account_bank"] == "우체국" ? "SELECTED" : ""?>>우체국</option>
<option value="<?="전북"?>" <?=$info["owner_account_bank"] == "전북" ? "SELECTED" : ""?>>전북</option>
<option value="<?="제주"?>" <?=$info["owner_account_bank"] == "제주" ? "SELECTED" : ""?>>제주</option>
<option value="<?="중국공상"?>" <?=$info["owner_account_bank"] == "중국공상" ? "SELECTED" : ""?>>중국공상</option>
<option value="<?="케이뱅크"?>" <?=$info["owner_account_bank"] == "케이뱅크" ? "SELECTED" : ""?>>케이뱅크</option>
<option value="<?="펀드온라인코리아"?>" <?=$info["owner_account_bank"] == "펀드온라인코리아" ? "SELECTED" : ""?>>펀드온라인코리아</option>
<option value="<?="한국씨티"?>" <?=$info["owner_account_bank"] == "한국씨티" ? "SELECTED" : ""?>>한국씨티</option>
<option value="<?="BOA"?>" <?=$info["owner_account_bank"] == "BOA" ? "SELECTED" : ""?>>BOA</option>
<option value="<?="HSBC"?>" <?=$info["owner_account_bank"] == "HSBC" ? "SELECTED" : ""?>>HSBC</option>
<option value="<?="JP모간체이스"?>" <?=$info["owner_account_bank"] == "JP모간체이스" ? "SELECTED" : ""?>>JP모간체이스</option>
<option value="<?="KEB하나"?>" <?=$info["owner_account_bank"] == "KEB하나" ? "SELECTED" : ""?>>KEB하나</option>
<option value="<?="SC"?>" <?=$info["owner_account_bank"] == "SC" ? "SELECTED" : ""?>>SC</option>
</select>
</td>
</tr>
<tr>
<td class="center">
<input type="text" name="month_account_no" class="wb" value="<?=$info["month_account_no"]?>">
</td>
<td class="center">
<input type="text" name="util_account_no" class="wb" value="<?=$info["util_account_no"]?>">
</td>
<td class="center">
<input type="text" name="owner_account_no" class="wb" value="<?=$info["owner_account_no"]?>">
</td>
</tr>
<tr>
<!-- 월세입금계좌 예금주 -->
<td class="center">
<input type="text" name="month_account_owner" class="wb" value="<?=$info['month_account_owner']?>">
</td>
<!-- 공과금입금계좌 예금주 -->
<td class="center">
<input type="text" name="util_account_owner" class="wb" value="<?=$info['util_account_owner']?>">
</td>
</tr>
</table>
<h3>기타 정보</h3>
<table class="datav" style="width:100%;">
<colgroup>
<col width="11%" />
<col width="22%" />
<col width="11%" />
<col width="22%" />
<col width="11%" />
<col width="22%" />
</colgroup>
<tr>
<!-- 임대관리 담당 -->
<th style="height:25px;">임대관리 담당</th>
<td class="center">
<input type="text" name="rent_manager" class="wb" value="<?=$info['rent_manager']?>">
</td>
<!-- 관리비 부과 기준일 -->
<th style="height:25px;">관리비 부과 기준일</th>
<td class="center">
<select name="manage_pay_date">
<?if($_REQUEST["new"]==1){?>
<option>선택</option>
<?}?>
<? for($i=1; $i<=31; $i++){ ?>
<option value='<?=$i?>' <?=$info["manage_pay_date"] == $i ? "SELECTED" : ""?>><?=$i?></option>
<? } ?>
</select>
</td>
<!-- 공실률 -->
<th style="height:25px;">공실율</th>
<td class="center">
<?
if(intval($room_info["room_cnt"]) == 0) echo "0.00%";
else
printf("%.2f%%", doubleval(( doubleval($room_info["empty_cnt"])/doubleval($room_info["room_cnt"]) )* doubleval(100.0)));
echo "(직전 1개월: ";
if(intval($room_info_p1["room_cnt"]) == 0) echo "0.00%";
else
printf("%.2f%%", doubleval(( doubleval($room_info_p1["empty_cnt"])/doubleval($room_info_p1["room_cnt"]) )* doubleval(100.0)));
echo " 직전 2개월: ";
if(intval($room_info_p2["room_cnt"]) == 0) echo "0.00%";
else
printf("%.2f%%", doubleval(( doubleval($room_info_p2["empty_cnt"])/doubleval($room_info_p2["room_cnt"]) )* doubleval(100.0)));
echo " 직전 3개월: ";
if(intval($room_info_p3["room_cnt"]) == 0) echo "0.00%";
else
printf("%.2f%%", doubleval(( doubleval($room_info_p3["empty_cnt"])/doubleval($room_info_p3["room_cnt"]) )* doubleval(100.0)));
echo ")";
?>
</td>
</tr>
</table>
<h3>비고</h3>
<textarea name="note" rows="4" style="width:100%; resize:vertical;"><?=$info['note']?></textarea>
</form>
<div class="btngroupcenter">
<span class="button bigrounded blue jCancel btnleft_y">목록으로 </span>
<span class="button bigrounded blue jMod btnright_y" >저장</span>
</div>
</div>
</div>