roomView.php 8.08 KB
<? include $_SERVER["DOCUMENT_ROOT"] . "/web/inc/php/header.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/ApiBill.php"; ?>
<?
	$obj = new ApiBill($_REQUEST);
	
	$data = $obj->getRoomData() ; 
	
	
// 	echo json_encode($data) ;
?>

<script>

	$(document).ready(function(){
		var _isANDApp    = (navigator.userAgent.indexOf('APPG(ANDROID)') != -1);

		if(!_isANDApp){
			var h = $(".Wrap").height() + 100;
			$(".Wrap").css({"height" : h + "px"});
		}

	});

</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>호실상세</p></li><!-- 날짜 -->
		<li></li>
	</ul>
	<div style="clear:both;"></div>
</header>
<!-- 헤드 -->

<!-- 리스트 -->
<div class="contant con2 buil_list room_detail">
	<ul>
		<li>
			<a></a>
			<a style="font-weight:bold;">호실정보</a>
			<a></a>
		</li>
		<div style="clear:both;"></div>
		<li>
			<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
			<a>호실</a><!-- 이름 -->
			<a><?= $data["name"] ?></a><!-- 내용 -->
		</li>
		<div style="clear:both;"></div>
		<li>
			<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
			<a>관리 유형</a><!-- 이름 -->
			<a>
			<? if($data["manage_type"] == "LC") { ?> 장기위탁
			<? } else if($data["manage_type"] == "SC") { ?> 단기위탁
			<? } else if($data["manage_type"] == "LS") { ?> 장기자기
			<? } else if($data["manage_type"] == "SS") { ?> 단기자기
			<? } ?>
			</a><!-- 내용 -->
		</li>
		<div style="clear:both;"></div>
		<li>
			<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
			<a>호실 비번</a><!-- 이름 -->
			<a><?= $data["pw"] ?></a><!-- 내용 -->
		</li>
		<div style="clear:both;"></div>
		<li>
			<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
			<a>계약 진행상황</a><!-- 이름 -->
			<a>
			<? if($data["contract_status"] == "RD") { ?> 입주
			<? } else if($data["contract_status"] == "EP") { ?> 공실
			<? } else if($data["contract_status"] == "UC") { ?> 계약중
			<? } else if($data["contract_status"] == "CE") { ?> 계약연장
			<? } ?>
			</a><!-- 내용 -->
		</li>
		<div style="clear:both;"></div>
	</ul>
</div>

<div class="contant con2 buil_list room_detail">
	<ul>
		<li>
			<a></a>
			<a style="font-weight:bold;">입주자 정보</a>
			<a></a>
		</li>
		<div style="clear:both;"></div>
		<li>
			<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
			<a>입주자</a><!-- 이름 -->
			<a><?= $data["contractor_name"] ?></a><!-- 내용 -->
		</li>
		<div style="clear:both;"></div>
		<li>
			<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
			<a>연락처</a><!-- 이름 -->
			<a><?= $data["contractor_tel"] ?></a><!-- 내용 -->
		</li>
		<div style="clear:both;"></div>
		<li>
			<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
			<a>반환계좌</a><!-- 이름 -->
			<a><?= $data["contractor_account_bank"] . $data["contractor_account_no"] ?>
			</a><!-- 내용 -->
		</li>
		<div style="clear:both;"></div>
		<li> 
			<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
			<a>계약일</a><!-- 이름 -->
			<a><?= $data["contractDate"] ?></a><!-- 내용 -->
		</li>
		<div style="clear:both;"></div>
		<li>
			<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
			<a>입주일</a><!-- 이름 -->
			<a><?= $data["moveInDate"] ?></a><!-- 내용 -->
		</li>
		<div style="clear:both;"></div>
		<li>
			<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
			<a>계약만료일</a><!-- 이름 -->
			<a><?= $data["contractExpireDate"] ?></a><!-- 내용 -->
		</li>
		<div style="clear:both;"></div>
		<li>
			<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
			<a>차량번호</a><!-- 이름 -->
			<a><?= $data["contractor_car_no"] ?></a><!-- 내용 -->
		</li>
		<div style="clear:both;"></div>
	</ul>
</div>

<div class="contant con2 buil_list room_detail">
	<ul>
		<li>
			<a></a>
			<a style="font-weight:bold;">기타 정보</a>
			<a></a>
		</li>
		<div style="clear:both;"></div>
		<li>
			<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
			<a>보증금</a><!-- 이름 -->
			<a><?= number_format($data["deposit"]) ?></a><!-- 내용 -->
		</li>
		<div style="clear:both;"></div>
		<li>
			<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
			<a>예치금</a><!-- 이름 -->
			<a><?= number_format($data["balance"]) ?></a><!-- 내용 -->
		</li>
		<div style="clear:both;"></div>
		<li>
			<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
			<a>월세</a><!-- 이름 -->
			<a><?= number_format($data["monthly_rent"]) ?></a><!-- 내용 -->
		</li>
		<div style="clear:both;"></div>
		<li>
			<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
			<a>기본관리비</a><!-- 이름 -->
			<a><?= number_format($data["maintenance_fee"]) ?></a><!-- 내용 -->
		</li>
		<div style="clear:both;"></div>
		<li>
			<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
			<a>케이블</a><!-- 이름 -->
			<a><?= number_format($data["cable"]) ?></a><!-- 내용 -->
		</li>
		<div style="clear:both;"></div>
		<li>
			<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
			<a>인터넷</a><!-- 이름 -->
			<a><?= number_format($data["internet"]) ?></a><!-- 내용 -->
		</li>
		<div style="clear:both;"></div>
		<li>
			<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
			<a>렌트1/2</a><!-- 이름 -->
			<a><?= number_format(($data["rent_1"] + $data["rent_2"] )) ?></a><!-- 내용 -->
		</li>
		<div style="clear:both;"></div>
		<li>
			<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
			<a>기타</a><!-- 이름 -->
			<a><?= number_format($data["etc"]) ?></a><!-- 내용 -->
		</li>
		<div style="clear:both;"></div>
		<li>
			<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
			<a>월세입금일</a><!-- 이름 -->
			<a><?= $data["monthly_rent_date"] ?></a><!-- 내용 -->
		</li>
		<div style="clear:both;"></div>
		<li>
			<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
			<a>건물주송금일</a><!-- 이름 -->
			<a><?= $data["payment_owner_date"] ?></a><!-- 내용 -->
		</li>
		<div style="clear:both;"></div>
		<li>
			<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
			<a>전기 검침일</a><!-- 이름 -->
			<a><?= $data["electricity_check_date"] ?></a><!-- 내용 -->
		</li>
		<div style="clear:both;"></div>
		<li>
			<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
			<a>가스 검침일</a><!-- 이름 -->
			<a><?= $data["gas_check_date"] ?></a><!-- 내용 -->
		</li>
		<div style="clear:both;"></div>
		<li>
			<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
			<a>수도 검침일</a><!-- 이름 -->
			<a><?= $data["water_check_date"] ?></a><!-- 내용 -->
		</li>
		<div style="clear:both;"></div>
		<li>
			<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
			<a>공과금 납입일</a><!-- 이름 -->
			<a><?= $data["billing_date"] ?></a><!-- 내용 -->
		</li>
		<div style="clear:both;"></div>
	</ul>
</div>

<div class="contant con2 buil_list room_detail">
	<ul>
		<li>
			<a></a>
			<a style="font-weight:bold;">입실/퇴실 예정</a>
			<a></a>
		</li>
		<div style="clear:both;"></div>
		<li>
			<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
			<a>입실예정일</a><!-- 이름 -->
			<a><?= $data["enteringDueDate"] ?></a><!-- 내용 -->
		</li>
		<div style="clear:both;"></div>
		<li>
			<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
			<a>퇴실예정일</a><!-- 이름 -->
			<a><?= $data["leavingDueDate"] ?></a><!-- 내용 -->
		</li>
		<div style="clear:both;"></div>
	</ul>
</div>
<!-- 리스트 -->

<!-- 특약 -->
<div class="note">
	<div>
		<ul class="text1">
			<li>특약</li>
			<li><textarea readonly="readonly" style="word-break:break-all; resize:none; border: none; width: 100%; height: 100%;"><?= $data["special_contract"] ?></textarea></li><!-- 비고내용 -->
		</ul>
	</div>
</div>
<!-- 특약 -->


</div>

<? include $_SERVER["DOCUMENT_ROOT"] . "/web/inc/php/footer.php" ?>