ab7875816302e2a741ae60bc5d641e190dd524d5.svn-base 5.09 KB
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/ApiBill.php"; ?>
<?
	$obj = new ApiBill($_REQUEST);
	
	$data = $obj->getBuildingInfo() ; 
	
// 	echo json_encode($data) ;


?>

<div class="Wrap" style="height:100%">

<!-- 리스트 -->
<div class="contant con2 buil_list">
	<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["type"] == "SG") { ?> 원룸
			<? } else if($data["type"] == "OF") { ?> 오피스텔
			<? } else if($data["type"] == "UB") { ?> 도생
			<? } else if($data["type"] == "AP") { ?> 아파트
			<? } else if($data["type"] == "HS") { ?> 주택
			<? } else if($data["type"] == "ET") { ?> 기타
			<? } ?>
			</a><!-- 내용 -->
		</li>
		<div style="clear:both;"></div>
		<li>
			<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
			<a>건물주소</a><!-- 이름 -->
			<a><?= $data["address"] ?></a><!-- 내용 -->
		</li>
		<div style="clear:both;"></div>
		<li>
			<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
			<a>계약만기</a><!-- 이름 -->
			<a><?= $data["expireDate"] ?></a><!-- 내용 -->
		</li>
		<div style="clear:both;"></div>
	</ul>
</div>

<div class="contant con2 buil_list">
	<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["room_cnt"] ?>호</a><!-- 내용 -->
		</li>
		<div style="clear:both;"></div>
		<li>
			<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
			<a>입주수</a><!-- 이름 -->
			<a><?= $data["resident_cnt"] ?>호</a><!-- 내용 -->
		</li>
		<div style="clear:both;"></div>
		<li>
			<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
			<a>공실수</a><!-- 이름 -->
			<a><?= $data["vacant_cnt"] ?>호</a><!-- 내용 -->
		</li>
		<div style="clear:both;"></div>
		<li>
			<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
			<a>퇴실예정</a><!-- 이름 -->
			<a><?= $data["leaving_cnt"] ?>호</a><!-- 내용 -->
		</li>
		<div style="clear:both;"></div>
		<li>
			<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
			<a>입실예정</a><!-- 이름 -->
			<a><?= $data["entering_cnt"] ?>호</a><!-- 내용 -->
		</li>
		<div style="clear:both;"></div>
	</ul>
</div>

<div class="contant con2 buil_list">
	<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["owner_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["owner_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["owner_address"] ?></a><!-- 내용 -->
		</li>
		<div style="clear:both;"></div>
		<li>
			<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
			<a>건물주계좌</a><!-- 이름 -->
			<a><?= $data["owner_account_bank"] ?><!-- 은행 -->
			<?= $data["owner_account_no"] ?></a><!-- 내용 -->
		</li>
		<div style="clear:both;"></div>
	</ul>
</div>

<div class="contant con2 buil_list">
	<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["rent_manager"] ?></a><!-- 내용 -->
		</li>
		<div style="clear:both;"></div>
		<li>
			<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
			<a>관리비 부과 기준일</a><!-- 이름 -->
			<a><?= $data["manage_pay_date"] ?>일</a><!-- 내용 -->
		</li>
		<div style="clear:both;"></div>
		<li>
			<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
			<a>공실율</a><!-- 이름 -->
			<a class="jPopup" page="popupVacant.php" style="background:url('/web/inc/images/ic_list_arrow.png') no-repeat center right; padding-right:8%;">
				<? 
					if($data["room_cnt"] > 0) {
				 		echo round(($data["vacant_cnt"] / $data["room_cnt"] * 100), 2) ;
					} else {
						echo "0" ;
					} 
				 ?> %
			</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%;"></textarea><?= $data["note"] ?></li><!-- 비고내용 -->
		</ul>
	</div>
</div>
<!-- 비고 -->