list.ejs
1.38 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
<!DOCTYPE html>
<html>
<head>
<title>묵호 - 놀이터</title>
<!-- Favicon-->
<link rel="icon" type="image/x-icon" href="../assets/favicon.ico" />
<link rel='stylesheet' href='/stylesheets/style.css'/>
</head>
<body>
<!-- Navigation-->
<nav class="navbar navbar-light bg-light static-top">
<div class="container">
<a class="navbar-brand" href="http://localhost:3000/main">묵호의 놀이터</a>
<div class="user">
<a> <%= ID %> 님 안녕하세요 </section></a>
<a class="btn btn-primary" href="http://localhost:3000/logout">로그아웃</a>
</div>
</div>
</nav>
<h1><%= title %></h1>
<a href="/board/write">글쓰기</a>
<table border="1">
<tr>
<td>번호</td>
<td>작성자</td>
<td>제목</td>
<td>조회수</td>
<td>수정일</td>
<td>등록일</td>
</tr>
<%
for(var i=0; i<rows.length; i++)
{
var data = rows[i];
%>
<tr>
<td><%=data.idx%></td>
<td><%=data.name%></td>
<td><a href="/board/read/<%=data.idx%>"><%=data.title%></a></td>
<td><%=data.hit%></td>
<td><%=data.modidate%></td>
<td><%=data.regdate%></td>
</tr>
<%}%>
</table>
</body>
</html>