-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.html
More file actions
75 lines (70 loc) · 2.26 KB
/
template.html
File metadata and controls
75 lines (70 loc) · 2.26 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap 101 Template</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
</head>
<body>
<%for (var idx in buildings) { var building = buildings[idx]; if (building == null) continue; %>
<div class="container">
<div>
<div>건물이름: <%=building.name%></div>
<div>주소: <%=building.address%></div>
<div>교통편:
<ul>
<% for (var idx in building.traffics) {%>
<li><%= building.traffics[idx] %></li>
<% } %>
</ul>
</div>
<div>건물사진
<img src="<%=building.imageUrl%>" class="image-thumbnail">
</div>
<div>지도
<img src="<%=building.mapImageUrl%>" class="image-thumbnail">
</div>
<div>홈페이지
<a href='<%=building.url%>'><%=building.url%></a>
</div>
</div>
<table class="table table-striped">
<thead>
<th>호수</th>
<th>층</th>
<th>타입</th>
<th>넓이</th>
<th>월세</th>
<th>관리비</th>
<th>년도</th>
</thead>
<tbody>
<% for (var idx in building.houses) { %>
<% var house = building.houses[idx]; %>
<tr>
<td><%=house.no%></td>
<td><%=house.floor%></td>
<td><%=house.type%></td>
<td><%=house.size%></td>
<td><%=house.monthlyFee%></td>
<td><%=house.maintainanceFee%></td>
<td><%=house.established%></td>
</tr>
<% } %>
</tbody>
</table>
</div>
<% } %>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://code.jquery.com/jquery.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
</body>
</html>