<%
/**
 * <pre>
 * @Class Name : selectItemInfo.jsp
 * 
 * @Description : 소장자료 상세내용을 조회한다.
 * 
 * 
 * @프로젝트명: 지방문화원 통합자료관리시스템 구축사업 (2021)
 *
 * </pre>
 *
 * @ ------------    --------    ---------------------------
 * @ 수정일                     수정자             수정내용
 * @ ------------    --------    ---------------------------
 * @ 2021. 7. 30.    JSYOO       최초 생성
 *
 * 
 * @author 이씨플라자 * DIGITALSHIP JSYOO
 * @since 2021. 7. 30.
 * @version 1.0
 *
 */
 %>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>

<c:set var="pageTitle">자료 상세</c:set>

<!DOCTYPE html>
<html lang="ko">
<head>
<title>${pageTitle}</title>

<script type="text/javaScript" language="javascript">

// 목록 보기로 이동
function fn_list() {
    $("#articleForm").attr("action", "${pageContext.request.contextPath}/collection/listItems.do");
    $("#articleForm").submit();
}
</script>

<style>

.image {
    float: left;
}

.title{
}
</style>
</head>

<body>

<h1>${pageTitle }</h1>

<form name="articleForm" id="articleForm"  
      action="${pageContext.request.contextPath}/collection/listItems.do" 
      method="post"> 
    <div>
        <div class="image">
            <img src="data:image/jpeg;base64,[encoded data, 7100 characters]" />
        </div>
        <div class="title">
            <strong><c:out value="${article.rentItem }"/></strong>
            <p>저자 : <c:out value="${article.author }"/></p>
            <p>관리번호 : <c:out value="${article.ctrlNum }"/></p>
            <p>출판사 : <c:out value="${article.publisher }"/></p>
        </div>
    </div>
    <br><div id="informContent" name="informContent" style="clear:both;width:50%;">
        <c:out value="${article.rentItemContent }"/>
    </div>
    
    <!-- 관련 작업 버튼 -->
    <button type="button" name="btnList" id="btnList" class="float"
        onclick="fn_list()">목록</button>
</form>

</body>
</html>
