include/layout.html
페이지 정보
본문
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout">
<head th:fragment="html_head">
<meta charset="UTF-8">
<title>SpringBoot</title>
<link rel="stylesheet" href="/css/style.css" />
<script src="http://code.jquery.com/jquery-1.12.4.min.js"></script>
<script src="http://code.jquery.com/jquery-migrate-1.4.1.min.js"></script>
</head>
<body>
<table width=100% height=50 border=0>
<tr>
<td colspan=2>
id : <span th:text="${session.id}"></span><br>
name : <span th:text="${session.name}"></span><br>
level : <span th:text="${session.level}"></span><br>
</td>
</tr>
<tr>
<td><a href="/">[로고]</a></td>
<td align=right th:with="info=${session.id}">
<span th:if="${info}">
<a href="/member/logout">[로그아웃]</a>
<a href="/member/modify">[회원수정]</a>
</span>
<span th:unless="${info}">
<a href="/member/login">[로그인]</a>
<a href="/member/write">[회원가입]</a>
</span>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<a href="/board/test">[ajaxTest]</a>
<a href="/gallery/list">[t_gallery]</a>
<a href="/board/list">[t_board]</a>
</td>
</tr>
</table>
<hr>
<div layout:fragment="content">
<!-- 컨텐츠 내용 -->
</div>
<th:block layout:fragment="script">
<!-- 스크립트 내용 -->
</th:block>
<hr>
<table width=100% height=50 border=0>
<tr>
<td align="center">카피라이터</td>
</tr>
</table>
</body>
</html>
- 이전글● HTML에서 Ajax 처리 ( 냉무 ) 24.06.13
- 다음글BoardController 24.06.13
댓글목록
등록된 댓글이 없습니다.