room.php
1.49 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
<? 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>