popupVacant.php 1.73 KB
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/ApiBill.php"; ?>
<?
	$obj = new ApiBill($_REQUEST);
	
	$data = $obj->getVacantList() ; 
	
?>

<div class="pop room_none_pop_box">
	<ul class="head">
		<li>o</li>
		<li class="title">공실율</li>
		<li class="jExit" style="text-align:right;"><img src="/web/inc/images/btn_pop_x.png" alt="esc" width="30%" style="padding:9px 12px 0px 0px;"/></li>
		<div style="clear:both;"></div>
	</ul>
		<!-- 리스트 -->
		<div class="contant room_none_pop">
			<ul>
				<li>
					<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
					<a><?= $data["date1"] ?></a><!-- 월 -->
					<a></a>
					<a></a>
					<a>
					<? 
						if($data["room_cnt1"] > 0) {
					 		echo round(($data["vacant_cnt1"] / $data["room_cnt1"] * 100), 2) ;
						} else {
							echo "0" ;
						} 
					?> %
					</a><!-- 공실율 -->
				</li>
				<div style="clear:both;"></div>
				<li>
					<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
					<a><?= $data["date2"] ?></a><!-- 월 -->
					<a></a>
					<a></a>
					<a>
					<? 
						if($data["room_cnt2"] > 0) {
					 		echo round(($data["vacant_cnt2"] / $data["room_cnt2"] * 100), 2) ;
						} else {
							echo "0" ;
						} 
					?> %
					</a><!-- 공실율 -->
				</li>
				<div style="clear:both;"></div>
				<li>
					<a><img src="/web/inc/images/circle_bg.png" width="100%"/></a>
					<a><?= $data["date3"] ?></a><!-- 월 -->
					<a></a>
					<a></a>
					<a>
					<? 
						if($data["room_cnt3"] > 0) {
					 		echo round(($data["vacant_cnt3"] / $data["room_cnt3"] * 100), 2) ;
						} else {
							echo "0" ;
						} 
					?> %
					</a><!-- 공실율 -->
				</li>
				<div style="clear:both;"></div>
			</ul>
		</div>
		<!-- 리스트 -->

</div>