-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.html
51 lines (48 loc) · 1.44 KB
/
main.html
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
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorator="~{layouts/layout_base}">
<head>
<title>Thymeleaf Tutorial</title>
<!-- 페이지의 고유 CSS -->
<th:block layout:fragment="css">
</th:block>
<!-- 페이지의 고유 스크립트 링크 -->
<th:block layout:fragment="script_link">
</th:block>
</head>
<body>
<div class="w3-main" style="margin-left:250px;">
<th:block layout:fragment="content" >
<div class="w3-row w3-padding-64 w3-container">
<h1 class="w3-text-teal">H2 database sample</h1>
<p th:text="${serverNow}">serverNow</p>
<h2>Uers</h2>
<div class="w3-responsive">
<table class="w3-table-all">
<tr>
<th>USERID</th>
<th>First Name</th>
<th>Last Name</th>
<th>Email</th>
<th>Reg. date</th>
</tr>
<tr th:each="user : ${users}">
<td th:text="${user.userid}">userid</td>
<td th:text="${user.first_name}">first_name</td>
<td th:text="${user.last_name}">last_name</td>
<td th:text="${user.email}">email</td>
<td th:text="${user.reg_dt}">reg_dt</td>
</tr>
</table>
</div>
</div>
</th:block>
</div>
<th:block layout:fragment="script_src">
<!--/* 페이지의 고유 스크립트 소스(타임리프 처리되면 사라지는 주석) */-->
<script type="text/javascript" th:inline="javascript">
</script>
</th:block>
</body>
</html>