view.html > SPRINGBOOT

본문 바로가기
사이트 내 전체검색

SPRINGBOOT

view.html

페이지 정보

profile_image
작성자 관리자
댓글 0건 조회 43회 작성일 24-06-11 15:58

본문

<!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>

댓글목록

등록된 댓글이 없습니다.

회원로그인

회원가입

사이트 정보

공지사항
자유게시판
질문답변
1:1문의

 

별명 : 터푸가위
주소 : 부산시 동래구 명장로20번길 90
대표 : 박규태
메일 : dancepkt@******.com

접속자집계

오늘
191
어제
289
최대
10,760
전체
278,812
Copyright © dancePKT . All rights reserved.