a8cf7494b976922c81473e54068d0d792b2e0e69.svn-base 1.49 KB
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/ApiBill.php"; ?>
<?
	$obj = new ApiBill($_REQUEST);
	
	$list = $obj->getRoomList() ; 
	
// 	echo json_encode($list) ;
?>

<div class="Wrap" style="height:100%">
	<!-- 리스트 -->
	<section>
	<? for($i=0; $i<sizeof($list); $i++) { 
			$row = $list[$i] ;
		?>
		<!-- 리스트 1개당 ul반복 -->
		<ul class="room_info jView" _no="<?= $row["no"] ?>" page="roomView.php">
			<li>
				<div class="date room_num">
					<p><?= $row["name"] ?></p><!-- 호실 -->
				</div>
			</li>
			<li class="room_user">
				<p style="margin:20px 0px 7px 0px;"><?= $row["contractor_name"] ?></p>
				<p class="price"><?= $row["contractor_tel"] ?></p><!-- 금액 -->
			</li>
			<li class="status_box">
			<? if($row["isEntering"]) {?>
				<div class="status logn_status yellow"><a>입실예정</a></div>
			<? } else if($row["isLeaving"]) {?>
				<div class="status logn_status navy"><a>퇴실예정</a></div>
			<? } else if($row["contract_status"] == "RD") { ?>
				<div class="status green"><a>입주</a></div>
			<? } else if($row["contract_status"] == "EP") { ?>
				<div class="status red"><a>공실</a></div>
			<? } else if($row["contract_status"] == "UC") { ?>
				<div class="status red"><a>협의중</a></div>
			<? } else if($row["contract_status"] == "CE") { ?>
				<div class="status red"><a>계약연장</a></div>
			<? } ?>
			</li>
			<div style="clear:both;"></div>
		</ul>
		<!-- 리스트 1개당 ul반복 -->
	<? } ?>
		
		
		
	</section>
	<!-- 리스트 -->
</div>