list.ejs
1.54 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
<!DOCTYPE html>
<html>
<head>
<meta charset = "utf-8">
<title><%= title %></title>
<link rel = 'stylesheet' href='stylesheets/style.css'/>
<meta charset = "utf-8">
<meta http-equiv="X-UA-Compatible" content = "IE=edge">
<meta name = "viewport" content = "width=device-width, initial-scale=1">
<title><%= title %></title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<link rel = 'bootstrap' href = 'javascripts/bootstrap.js'/>
<link rel = 'jquery' href = 'javascripts/jquery-3.3.1.min.js'/>
</head>
<body>
<h1><%= title %></h1>
<a href="/board/write">글쓰기로 이동</a>
<br>
<br>
<table class = "table table-striped table-bordered table-hober">
<thead>
<tr class="list-table1 blue">
<td>번호</td>
<td>작성자</td>
<td>제목</td>
<td>조회수</td>
<td>변경일</td>
</tr>
<tbody>
<%
for(var i=0; i<rows.length; i++)
{
var oneItem = rows[i];
%>
<tr>
<td><%=oneItem.idx%></td>
<td><%=oneItem.creater_id%></td>
<td><%=oneItem.title%></td>
<td><%=oneItem.hit%></td>
<td><%=oneItem.modidate%></td>
</tr>
<%
}
%>
</table>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<!-- 모든 컴파일된 플러그인을 포함합니다 (아래), 원하지 않는다면 필요한 각각의 파일을 포함하세요 -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
</body>
</html>