view.html
페이지 정보
![profile_image](https://dancepkt.cafe24.com/data/member_image/ad/admin.gif?1630310007)
본문
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{include/layout.html}">
<body>
<div layout:fragment="content">
<br>
<center>
<h1>게시판</h1>
<table width=700 border=1>
<tr>
<td>idx</td>
<td th:text="${board.boardIdx}"></td>
<td>조회수</td>
<td th:text="${board.hitCnt}"></td>
</tr>
<tr>
<td>작성자</td>
<td th:text="${board.creatorId}"></td>
<td>작성일</td>
<td th:text="${board.createdDatetime}"></td>
</tr>
<tr>
<td>제목</td>
<td colspan=3 th:text="${board.title}"></td>
</tr>
<tr>
<td>내용</td>
<td colspan=3 th:utext="${#strings.replace(board.contents, changeLine, '<br/>')}"></td>
</tr>
<tr th:each="list, num : ${board.fileList}">
<td colspan=4>
<!-- worksapce 경로 매칭 -->
서버 절대경로 : [[${list.storedFilePath}]]<br>
사용 절대경로 : <span th:text="${#strings.replace(list.storedFilePath,'C:/springboot/web/src/main/resources/static','')}"></span><br>
첨부[[${num.index + 1}]] : <a th:text="|${list.originalFileName} (${list.fileSize} kb)|" th:href="${#strings.replace(list.storedFilePath,'C:/springboot/web/src/main/resources/static','')}" download></a><br>
<img th:src="${#strings.replace(list.storedFilePath,'C:/springboot/web/src/main/resources/static','')}" width=100>
</td>
</tr>
</table>
<table width=700>
<tr>
<td width=200>
<a th:href="${'list' + pm.makeQuery(pm.cri.page)}">[목록]</a>
</td>
<td align=right>
<a th:href="${'modify' + pm.makeQuery(pm.cri.page) + '&boardIdx=' + board.boardIdx}" th:text="[수정]"></a>
<a th:href="@{delete(boardIdx=${board.boardIdx})}" th:text="[삭제]"></a>
</td>
</tr>
</table>
</center>
<br>
</div>
</body>
</html>
- 이전글sql-board.xml 24.06.11
- 다음글● 게시판 WRITE - 파일첨부 저장 ( 디비에 파일 정보 저장 ) 24.06.11
댓글목록
등록된 댓글이 없습니다.