126 lines
4.5 KiB
Plaintext
126 lines
4.5 KiB
Plaintext
|
|
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||
|
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||
|
|
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
|
||
|
|
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
|
||
|
|
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
|
||
|
|
<html>
|
||
|
|
<head>
|
||
|
|
<title></title>
|
||
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||
|
|
<script src="${pageContext.request.contextPath}/js/jquery/jquery-1.10.2.min.js"></script>
|
||
|
|
<script src="${pageContext.request.contextPath}/js/admins/common.js"></script>
|
||
|
|
<link rel="stylesheet" href="${pageContext.request.contextPath}/css/admins/style.css" type="text/css">
|
||
|
|
<script>
|
||
|
|
var context = "${pageContext.request.contextPath}";
|
||
|
|
|
||
|
|
function linkPage(index){
|
||
|
|
$("#pageIndex").val(index);
|
||
|
|
$("#listForm").attr("action", "${pageContext.request.contextPath}/admins/board/12.do").submit();
|
||
|
|
}
|
||
|
|
|
||
|
|
function goDetail(idx, aid) {
|
||
|
|
location.href = context + "/admins/board/12-view.do?idx=" + idx + "&aid=" + aid;
|
||
|
|
}
|
||
|
|
|
||
|
|
function goWrite() {
|
||
|
|
location.href = context + "/admins/board/12_write.do";
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
</head>
|
||
|
|
<body style="overflow-x:hidden;">
|
||
|
|
<form id="listForm" name="listForm">
|
||
|
|
<input type="hidden" id="pageIndex" name="pageIndex" value="${params.pageIndex}" />
|
||
|
|
<table id="Table_Main" width="100%" border="0" cellpadding="0" cellspacing="0">
|
||
|
|
<!--리스트 상단 이미지 시작-->
|
||
|
|
<tr><td colspan=2><img src="${pageContext.request.contextPath}/images/admins/board/5_toptit_05.gif"></td>
|
||
|
|
</tr>
|
||
|
|
<tr height=20><td colspan=2> </td>
|
||
|
|
</tr>
|
||
|
|
<tr height=12><td colspan=2><img src="${pageContext.request.contextPath}/images/admins/spacer.gif" width="1" height="12"></td>
|
||
|
|
</tr>
|
||
|
|
<!--리스트 상단 이미지 종료-->
|
||
|
|
|
||
|
|
<tr>
|
||
|
|
<td colspan=2>
|
||
|
|
<table id="Table_List" width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D6D6D6">
|
||
|
|
<!-- START : list head ----------------------------------------------------------------------------->
|
||
|
|
<tr height=28 bgcolor="#F5F5F5" class="list_head" align="center">
|
||
|
|
<td width=5%>번호</td>
|
||
|
|
<td width=55%>제목</td>
|
||
|
|
<td width=10%>글쓴이</td>
|
||
|
|
<td width=20%>등록일</td>
|
||
|
|
<td width=10%>조회수</td>
|
||
|
|
</tr>
|
||
|
|
<!-- END : list head ----------------------------------------------------------------------------->
|
||
|
|
<!-- REPEAT TABLE-->
|
||
|
|
<c:forEach items="${result}" var="result" varStatus="status">
|
||
|
|
<c:choose>
|
||
|
|
<c:when test="${result.name eq '관리자'}">
|
||
|
|
<tr height=28 bgcolor="#e3e3fc" class="list_content" align="center">
|
||
|
|
</c:when>
|
||
|
|
<c:otherwise>
|
||
|
|
<tr height=28 bgcolor="White" class="list_content" align="center">
|
||
|
|
</c:otherwise>
|
||
|
|
</c:choose>
|
||
|
|
<td>${result.aid}</td>
|
||
|
|
<td align="left">
|
||
|
|
<a href="javascript:goDetail('${result.idx}', '${result.aid}');">
|
||
|
|
<c:choose>
|
||
|
|
<c:when test="${fn:length(result.seq) eq 1}">
|
||
|
|
<c:choose>
|
||
|
|
<c:when test="${result.top eq '0'}">
|
||
|
|
${result.subject}
|
||
|
|
</c:when>
|
||
|
|
<c:otherwise>
|
||
|
|
<font color='red'>[공지] </font>${result.subject}
|
||
|
|
</c:otherwise>
|
||
|
|
</c:choose>
|
||
|
|
</c:when>
|
||
|
|
<c:otherwise>
|
||
|
|
<c:choose>
|
||
|
|
<c:when test="${fn:substring(result.seq, 1, 2) eq '0'}">
|
||
|
|
<img src="${pageContext.request.contextPath}/images/body/psboard/blt_re.gif"> ${result.subject}
|
||
|
|
</c:when>
|
||
|
|
<c:otherwise>
|
||
|
|
<img src="${pageContext.request.contextPath}/images/body/psboard/blt_re.gif"> ${result.subject}
|
||
|
|
</c:otherwise>
|
||
|
|
</c:choose>
|
||
|
|
</c:otherwise>
|
||
|
|
</c:choose>
|
||
|
|
</a>
|
||
|
|
</td>
|
||
|
|
<td>${result.name}</td>
|
||
|
|
<td>${result.datetime}</td>
|
||
|
|
<td>${result.readcount}</td>
|
||
|
|
</c:forEach>
|
||
|
|
</tr>
|
||
|
|
<!-- END OF REPEAT TABLE-->
|
||
|
|
</table>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
|
||
|
|
<!-- 글쓰기-->
|
||
|
|
<tr>
|
||
|
|
<td align="right" height="40">
|
||
|
|
<a href="javascript:goWrite()"><img src="${pageContext.request.contextPath}/images/admins/cus_bnt_write.gif" border="0"></a>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<!-- 글쓰기 종료-->
|
||
|
|
|
||
|
|
<!-- START : 네비게이션 ---------------------------------------------------------------------------->
|
||
|
|
<tr height=42>
|
||
|
|
<td align=center class="navi" colspan='2'>
|
||
|
|
<table width=100% >
|
||
|
|
<tr align="center">
|
||
|
|
<td id="page">
|
||
|
|
<ui:pagination paginationInfo = "${paginationInfo}" type="image" jsFunction="linkPage"/>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<!-- END : 네비게이션 ---------------------------------------------------------------------------->
|
||
|
|
</table>
|
||
|
|
</body>
|
||
|
|
</html>
|