mybook.ejs
1.68 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<html>
<head>
<title><%= title %></title>
<link rel='stylesheet' href='/stylesheets/style.css'/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
</head>
<body>
<script>
$(document).ready(function() {
});
</script>
<div id ="maintitle"><image src ='/images/title_edit.png' width='600px' height='auto'/></div>
<div id ="mynav">
<ul class="sidenav">
<li><a class="active" href="home">home</a></li>
<li><a href="map">맛집도장찍기</a></li>
<li><a href="mybook">견문록확인</a></li>
</ul>
</div>
<div id ="content"> <br/>
<div id = "title">
당신의 견문록 스탬프는 <%=rows.length%>개 입니다<br/>
</div>
<table border="1">
<%
for(var i=0; i<rows.length; i++)
{
var oneItem = rows[i];
%>
<%if(i==0){ %>
<tr>
<td><p class="bold"><%=i%> <%=oneItem.title%></p>
<p class="small"><%=oneItem.address%></p></td>
<%} else if (i%3==0){%>
</tr>
<tr>
<td><p class="bold"><%=i%> <%=oneItem.title%></p>
<p class="small"><%=oneItem.address%></p></td>
<%}else if(i%3!=0 && i!=rows.length-1){%>
<td><p class="bold"><%=i%> <%=oneItem.title%></p>
<p class="small"><%=oneItem.address%></p></td>
<%}else{%>
<td><p class="bold"><%=i%> <%=oneItem.title%></p>
<p class="small"><%=oneItem.address%></p></td></tr>
<%}}%>
</table>
</div>
<div id ="footer"></div>
</body>
</html>