<%
/**
 * <pre>
 * @Class Name : listRentItem.jsp (샘플)
 * 
 * @Description : RESTful API 호출 샘플
 * 
 * 
 * @프로젝트명: 지방문화원 통합자료관리시스템 구축사업 (2021)
 *
 * </pre>
 *
 * @ ------------    --------    ---------------------------
 * @ 수정일                     수정자             수정내용
 * @ ------------    --------    ---------------------------
 * @ 2021. 6. 15.    KNKIM       최초 생성
 *
 * 
 * @author 이씨플라자 * DIGITALSHIP KNKIM
 * @since 2021. 6. 15.
 * @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>
<head>
<title>${pageTitle}</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">

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

</script>
</head>

<body>
<!-- javascript warning tag  -->
<noscript class="noScriptTitle"><spring:message code="common.noScriptTitle.msg" /></noscript>
<form 
    action="${pageContext.request.contextPath}/sample/listRentItem.do" 
    method="post"> 
   
	<div class="wTableFrm">
	    <!-- 타이틀 -->
	    <h2>${pageTitle}</h2>
	    
	    <div style="clear:both;">Server Protocol : ${serverProtocol}</div>
	    <div style="clear:both;">Server IP : ${serverIp}</div>
	    <div style="clear:both;">Server PORT : ${serverPort}</div>
	    
	    <br />&nbsp;
	    <a href="/cart/listCartItems.do">카트</a><br />
	    <br />&nbsp;
	    <br />
	        
	    rows : <input name="rows" id="rows" value="10" /> <br />
	    page : <input name="page" id="page" value="1" /> <br />
	    mngOrgCd : <input name="mngOrgCd" id="mngOrgCd" value="KCCF" /> <br />
	    mbInfoId : <input name="mbInfoId" id="mbInfoId" value="BDCCAF34CF8AA365C660ADB121CE6741" /> <br />
	    --------------------------------------------------------------------------
	    <br />
	    resultCode : <input name="resultCode" id="resultCode" value="${resultCode}" /> <br />
	    resultMessage : <input name="resultCode" id="resultCode" value="${resultMessage}" /> <br />
	    totPages : <input name="info.name" id="info.name" value="${info.totPages}" /> <br />
	    records : <input name="info.name" id="info.name" value="${info.records}" /> <br />
	    list : <input name=""list"" id="list" value="${list}" /> <br />
	    <c:forEach var="record" items="${list }">
	        &nbsp;&nbsp;&nbsp;&nbsp; > ----------------------------------------------------------- <br />
            &nbsp;&nbsp;&nbsp;&nbsp; > mngOrgCd = ${record.mngOrgCd} <br />
            &nbsp;&nbsp;&nbsp;&nbsp; > operReadRangeCd = ${record.operReadRangeCd} <br />
            &nbsp;&nbsp;&nbsp;&nbsp; > bookLtRvStatusCd = ${record.bookLtRvStatusCd} <br />
            &nbsp;&nbsp;&nbsp;&nbsp; > title = ${record.title} <br />
            &nbsp;&nbsp;&nbsp;&nbsp; > typeCodeNm = ${record.typeCodeNm} <br />
            &nbsp;&nbsp;&nbsp;&nbsp; > awaiterCnt = ${record.awaiterCnt} <br />
            &nbsp;&nbsp;&nbsp;&nbsp; > useStatus = ${record.useStatus} <br />
            &nbsp;&nbsp;&nbsp;&nbsp; > masterId = ${record.masterId} <br />
            
            <input type="button" name="addCartBtn" id="addCartBtn" onclick="fn_addRentCart('${record.masterId}', '${record.useStatus}')" value="관심자료 추가" />
            <br />
        </c:forEach>
        
	    <br />
	
	    <div style="clear:both;"></div>
	    
	    <input type="submit" id="btnSubmit" name="btnSubmit" value="전송" />
	    
	</div>

</form>    

</body>
</html>
