tg폴더 복사, 외사통계, 외국수사업무공유 페이지 전시
parent
db98cb473f
commit
fbf06470d6
|
|
@ -111,7 +111,7 @@ public class WeakPlaceController {
|
||||||
}
|
}
|
||||||
model.addAttribute("filename1Ext", filename1Ext);
|
model.addAttribute("filename1Ext", filename1Ext);
|
||||||
|
|
||||||
return "/target/weakPlaceView.tiles";
|
return "/tg/weakPlaceView.tiles";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -147,7 +147,7 @@ public class WeakPlaceController {
|
||||||
model.addAttribute("today", todayStr);
|
model.addAttribute("today", todayStr);
|
||||||
|
|
||||||
|
|
||||||
return "/target/weakPlaceList.tiles";
|
return "/tg/weakPlaceList.tiles";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -200,7 +200,7 @@ public class WeakPlaceController {
|
||||||
model.addAttribute("loginUserVO", "loginUserVO");
|
model.addAttribute("loginUserVO", "loginUserVO");
|
||||||
model.addAttribute("registerFlag", "create");
|
model.addAttribute("registerFlag", "create");
|
||||||
|
|
||||||
return "/target/weakPlaceAdd.tiles";
|
return "/tg/weakPlaceAdd.tiles";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -233,7 +233,7 @@ public class WeakPlaceController {
|
||||||
if (bindingResult.hasErrors()) {
|
if (bindingResult.hasErrors()) {
|
||||||
model.addAttribute("weakPlaceVO", weakPlaceVO);
|
model.addAttribute("weakPlaceVO", weakPlaceVO);
|
||||||
model.addAttribute("registerFlag", "create");
|
model.addAttribute("registerFlag", "create");
|
||||||
return "target/weakPlaceAdd.tiles";
|
return "tg/weakPlaceAdd.tiles";
|
||||||
}
|
}
|
||||||
|
|
||||||
// 파일 저장 및 데이터 입력
|
// 파일 저장 및 데이터 입력
|
||||||
|
|
@ -272,7 +272,7 @@ public class WeakPlaceController {
|
||||||
model.addAttribute("loginUserVO", loginUserVO);
|
model.addAttribute("loginUserVO", loginUserVO);
|
||||||
model.addAttribute("registerFlag", "modify");
|
model.addAttribute("registerFlag", "modify");
|
||||||
|
|
||||||
return "/target/weakPlaceAdd.tiles";
|
return "/tg/weakPlaceAdd.tiles";
|
||||||
}
|
}
|
||||||
|
|
||||||
return "redirect:/target/weakplace/view.do?place1="
|
return "redirect:/target/weakplace/view.do?place1="
|
||||||
|
|
@ -311,7 +311,7 @@ public class WeakPlaceController {
|
||||||
if (bindingResult.hasErrors()) {
|
if (bindingResult.hasErrors()) {
|
||||||
model.addAttribute("weakPlaceVO", weakPlaceVO);
|
model.addAttribute("weakPlaceVO", weakPlaceVO);
|
||||||
model.addAttribute("registerFlag", "modify");
|
model.addAttribute("registerFlag", "modify");
|
||||||
return "target/weakPlaceAdd.tiles";
|
return "tg/weakPlaceAdd.tiles";
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] deleteFiles = multiRequest.getParameterValues("deleteFile");
|
String[] deleteFiles = multiRequest.getParameterValues("deleteFile");
|
||||||
|
|
|
||||||
|
|
@ -107,18 +107,56 @@
|
||||||
<insert id="Board.insertBoard" parameterType="boardVO">
|
<insert id="Board.insertBoard" parameterType="boardVO">
|
||||||
INSERT INTO
|
INSERT INTO
|
||||||
H3_BD_${id}_LIST (
|
H3_BD_${id}_LIST (
|
||||||
BD_MB_ID, BD_CATEGORY, BD_NAME, BD_GROUP_SEQ,
|
BD_MB_ID,
|
||||||
BD_CONTENT, BD_SUBJECT, BD_PARENT_SEQ, BD_PREV_SEQ, BD_NEXT_SEQ, BD_STEP,
|
BD_CATEGORY,
|
||||||
BD_DEPTH, BD_REGDATE, BD_HIT, BD_RECOMMEND, BD_IP, BD_NOTICE,
|
BD_NAME,
|
||||||
BD_HTML, BD_NUM1, BD_NUM2, BD_DATA1, BD_DATA2, BD_PLACE1, BD_POSITION
|
BD_GROUP_SEQ,
|
||||||
|
BD_CONTENT,
|
||||||
|
BD_SUBJECT,
|
||||||
|
BD_PARENT_SEQ,
|
||||||
|
BD_PREV_SEQ,
|
||||||
|
BD_NEXT_SEQ,
|
||||||
|
BD_STEP,
|
||||||
|
BD_DEPTH,
|
||||||
|
BD_REGDATE,
|
||||||
|
BD_HIT,
|
||||||
|
BD_RECOMMEND,
|
||||||
|
BD_IP,
|
||||||
|
BD_NOTICE,
|
||||||
|
BD_HTML,
|
||||||
|
BD_NUM1,
|
||||||
|
BD_NUM2,
|
||||||
|
BD_DATA1,
|
||||||
|
BD_DATA2,
|
||||||
|
BD_PLACE1,
|
||||||
|
BD_POSITION
|
||||||
) VALUES (
|
) VALUES (
|
||||||
#{userId}, #{category}, #{userName}, #{groupSeq},
|
#{userId},
|
||||||
#{content}, #{subject}, #{parentSeq}, #{prevSeq}, #{nextSeq}, #{step},
|
#{category},
|
||||||
#{depth}, NOW(), ${hit}, 0, #{ip,jdbcType=VARCHAR}, #{notice},
|
#{userName},
|
||||||
1, 0, 0, #{data1,jdbcType=VARCHAR}, #{data2,jdbcType=VARCHAR}, #{place1,jdbcType=VARCHAR}, #{position,jdbcType=VARCHAR}
|
#{groupSeq},
|
||||||
|
#{content},
|
||||||
|
#{subject},
|
||||||
|
#{parentSeq},
|
||||||
|
#{prevSeq},
|
||||||
|
#{nextSeq},
|
||||||
|
#{step},
|
||||||
|
#{depth},
|
||||||
|
NOW(),
|
||||||
|
${hit},
|
||||||
|
0,
|
||||||
|
#{ip,jdbcType=VARCHAR},
|
||||||
|
#{notice},
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
#{data1,jdbcType=VARCHAR},
|
||||||
|
#{data2,jdbcType=VARCHAR},
|
||||||
|
#{place1,jdbcType=VARCHAR},
|
||||||
|
#{position,jdbcType=VARCHAR}
|
||||||
)
|
)
|
||||||
<selectKey resultType="int" keyProperty="seq" order="AFTER">
|
<selectKey resultType="int" keyProperty="seq" order="AFTER">
|
||||||
SELECT H3_BD_${id}_LIST_SEQ.CURRVAL FROM DUAL
|
SELECT currval(H3_BD_${id}_LIST_SEQ) as seq
|
||||||
</selectKey>
|
</selectKey>
|
||||||
<!--
|
<!--
|
||||||
BD_SEQ, BD_MB_ID, BD_GROUP_SEQ, BD_CATEGORY, BD_NAME,
|
BD_SEQ, BD_MB_ID, BD_GROUP_SEQ, BD_CATEGORY, BD_NAME,
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,8 @@
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
SELECT *
|
SELECT *
|
||||||
FROM (
|
FROM (
|
||||||
SELECT ROWNUM RNUM, ALL_LIST.*,
|
SELECT
|
||||||
|
(row_number() over()) as RNUM, ALL_LIST.*,
|
||||||
(SELECT COUNT(*) FROM H3_SUSA_FILE WHERE SF_SS_SEQ = ALL_LIST.SS_IDX) AS FILE_CNT,
|
(SELECT COUNT(*) FROM H3_SUSA_FILE WHERE SF_SS_SEQ = ALL_LIST.SS_IDX) AS FILE_CNT,
|
||||||
(SELECT CODENM FROM TCODE WHERE CODE1 = 'C001' AND CODE2 = ALL_LIST.SS_PLACE1) AS PLACE1_STR
|
(SELECT CODENM FROM TCODE WHERE CODE1 = 'C001' AND CODE2 = ALL_LIST.SS_PLACE1) AS PLACE1_STR
|
||||||
FROM (
|
FROM (
|
||||||
|
|
@ -85,7 +86,7 @@
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
ORDER BY SS_IDX DESC
|
ORDER BY SS_IDX DESC
|
||||||
) ALL_LIST
|
) ALL_LIST
|
||||||
)
|
) AS list
|
||||||
WHERE
|
WHERE
|
||||||
RNUM > #{firstIndex} AND
|
RNUM > #{firstIndex} AND
|
||||||
RNUM <= #{firstIndex} + #{recordCountPerPage}
|
RNUM <= #{firstIndex} + #{recordCountPerPage}
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
GROUP BY
|
GROUP BY
|
||||||
C.CODE2, C.CODENM_YAK
|
C.CODE2, C.CODENM_YAK
|
||||||
)
|
) AS list
|
||||||
ORDER BY
|
ORDER BY
|
||||||
UPPER(PLACE1) ASC
|
UPPER(PLACE1) ASC
|
||||||
]]>
|
]]>
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
||||||
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
|
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
|
||||||
<script type="text/javaScript" language="javascript" defer="defer">
|
<script type="text/javaScript" language="javascript" defer="defer">
|
||||||
<!--
|
|
||||||
|
|
||||||
/* 글 상세 화면 function */
|
/* 글 상세 화면 function */
|
||||||
function fn_select(id) {
|
function fn_select(id) {
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,181 @@
|
||||||
|
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||||
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||||
|
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
|
||||||
|
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator"%>
|
||||||
|
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
||||||
|
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
|
||||||
|
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
||||||
|
<%@ page import="kcg.faics.cmmn.service.CodeService" %>
|
||||||
|
<form:form commandName="corpVO" id="detailForm" name="detailForm" enctype="multipart/form-data">
|
||||||
|
<form:hidden path="orgId" />
|
||||||
|
<form:hidden path="grpNo" />
|
||||||
|
<form:hidden path="writer" />
|
||||||
|
<form:hidden path="writerPlace1" />
|
||||||
|
<div id="table">
|
||||||
|
<table class="tb">
|
||||||
|
<colgroup>
|
||||||
|
<col width="150"/>
|
||||||
|
<col width="?"/>
|
||||||
|
</colgroup>
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption">
|
||||||
|
<label for="title"><c:out value="${fieldNameMap['place1str']}" /></label>
|
||||||
|
</td>
|
||||||
|
<td class="tbtd_content">
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${registerFlag == 'create' and loginUserVO.place1 eq 'PS00'}">
|
||||||
|
<form:select path="place1" cssClass="use">
|
||||||
|
<c:forEach var="result" items="${placeList}" varStatus="status">
|
||||||
|
<form:option value="${result.code2}" label="${result.codenm}" />
|
||||||
|
</c:forEach>
|
||||||
|
</form:select>
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
|
<c:out value="${corpVO.place1str}" />
|
||||||
|
<form:hidden path="place1" />
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption"><label for="title"><c:out value="${fieldNameMap.name}" /></label></td>
|
||||||
|
<td class="tbtd_content">
|
||||||
|
<form:input path="name" cssClass="txt" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption"><label for="title"><c:out value="${fieldNameMap.location}" /></label></td>
|
||||||
|
<td class="tbtd_content">
|
||||||
|
<form:input path="location" cssClass="txt" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<c:if test="${corpVO.grpNo eq '03'}">
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption"><label for="title"><c:out value="${fieldNameMap.shipCnt}" /></label></td>
|
||||||
|
<td class="tbtd_content">
|
||||||
|
<form:input path="shipCnt" cssClass="txt" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</c:if>
|
||||||
|
<c:if test="${corpVO.grpNo ne '01'}">
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption"><label for="title"><c:out value="${fieldNameMap.ceo}" /></label></td>
|
||||||
|
<td class="tbtd_content">
|
||||||
|
<form:input path="ceo" cssClass="txt" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</c:if>
|
||||||
|
<c:if test="${corpVO.grpNo eq '04' or corpVO.grpNo eq '05'}">
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption"><label for="title"><c:out value="${fieldNameMap.jobType}" /></label></td>
|
||||||
|
<td class="tbtd_content">
|
||||||
|
<form:input path="jobType" cssClass="txt" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</c:if>
|
||||||
|
<c:if test="${corpVO.grpNo eq '03'}">
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption"><label for="title"><c:out value="${fieldNameMap.memberCnt}" /></label></td>
|
||||||
|
<td class="tbtd_content">
|
||||||
|
<form:input path="memberCnt" cssClass="txt" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</c:if>
|
||||||
|
<c:if test="${corpVO.grpNo eq '05'}">
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption"><label for="title"><c:out value="${fieldNameMap.partner}" /></label></td>
|
||||||
|
<td class="tbtd_content">
|
||||||
|
<form:input path="partner" cssClass="txt" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</c:if>
|
||||||
|
<c:if test="${corpVO.grpNo eq '03'}">
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption"><label for="title"><c:out value="${fieldNameMap.basicYear}" /></label></td>
|
||||||
|
<td class="tbtd_content">
|
||||||
|
<form:input path="basicYear" cssClass="txt" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption"><label for="title"><c:out value="${fieldNameMap.fund}" /></label></td>
|
||||||
|
<td class="tbtd_content">
|
||||||
|
<form:input path="fund" cssClass="txt" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</c:if>
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption"><label for="title"><c:out value="${fieldNameMap.tel}" /></label></td>
|
||||||
|
<td class="tbtd_content">
|
||||||
|
<form:input path="tel" cssClass="txt" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption"><label for="title"><c:out value="${fieldNameMap.fax}" /></label></td>
|
||||||
|
<td class="tbtd_content">
|
||||||
|
<form:input path="fax" cssClass="txt" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption"><label for="title"><c:out value="${fieldNameMap.comments}" /></label></td>
|
||||||
|
<td class="tbtd_content">
|
||||||
|
<form:input path="comments" cssClass="txt" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<div id="sysbtn">
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span class="btn_blue_l">
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${registerFlag == 'modify'}">
|
||||||
|
<a href="<c:url value='/target/corp/view.do'>
|
||||||
|
<c:param name="orgId" value="${corpVO.orgId}" />
|
||||||
|
<c:param name="orgNo" value="${corpVO.orgNo}" />
|
||||||
|
<c:param name="place1" value="${corpVO.place1}" />
|
||||||
|
</c:url>"><spring:message code="button.cancel" /></a>
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
|
<a href="<c:url value='/target/corp/list.do'>
|
||||||
|
<c:param name="orgId" value="${corpVO.orgId}" />
|
||||||
|
<c:param name="grpNo" value="${corpVO.grpNo}" />
|
||||||
|
<c:param name="place1" value="${corpVO.place1}" />
|
||||||
|
</c:url>"><spring:message code="button.cancel" /></a>
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
<img src="<c:url value='/images/rte/btn_bg_r.gif'/>" style="margin-left:6px;" alt="<spring:message code="button.cancel" />"/>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span class="btn_blue_l">
|
||||||
|
<a href="javascript:fn_save();">
|
||||||
|
<c:if test="${registerFlag == 'create'}">
|
||||||
|
<spring:message code="button.goCreate" />
|
||||||
|
<img src="<c:url value='/images/rte/btn_bg_r.gif'/>" style="margin-left:6px;" alt="<spring:message code="button.goCreate" />"/>
|
||||||
|
</c:if>
|
||||||
|
<c:if test="${registerFlag == 'modify'}">
|
||||||
|
<spring:message code="button.goModify" />
|
||||||
|
<img src="<c:url value='/images/rte/btn_bg_r.gif'/>" style="margin-left:6px;" alt="<spring:message code="button.goModify" />"/>
|
||||||
|
</c:if>
|
||||||
|
</a>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</form:form>
|
||||||
|
|
||||||
|
|
||||||
|
<script type="text/javascript" src="<c:url value='/validator.do'/>"></script>
|
||||||
|
<validator:javascript formName="corpVO" staticJavascript="false" xhtml="true" cdata="false"/>
|
||||||
|
<script type="text/javaScript" defer="defer">
|
||||||
|
<!--
|
||||||
|
function fn_save() {
|
||||||
|
var frm = document.detailForm;
|
||||||
|
if (!validateCorpVO(frm)) {
|
||||||
|
return;
|
||||||
|
} else {
|
||||||
|
frm.submit();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
-->
|
||||||
|
</script>
|
||||||
|
|
@ -0,0 +1,217 @@
|
||||||
|
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||||
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||||
|
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
|
||||||
|
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
|
||||||
|
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
||||||
|
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
||||||
|
<form:form commandName="searchVO" name="searchForm" method="get">
|
||||||
|
<form:hidden path="grpNo" />
|
||||||
|
<div id="search">
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<label for="place1">소속</label>
|
||||||
|
<form:select path="place1" cssClass="use">
|
||||||
|
<c:forEach var="result" items="${placeList}" varStatus="status">
|
||||||
|
<form:option value="${result.code2}" label="${result.codenm}" />
|
||||||
|
</c:forEach>
|
||||||
|
</form:select>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label for="name"><spring:message code="target.corp.name" /></label>
|
||||||
|
<form:input path="name" />
|
||||||
|
</li>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${searchVO.grpNo eq '03'}">
|
||||||
|
<li>
|
||||||
|
<label for="jobType"><spring:message code="target.corp.jobtype" /></label>
|
||||||
|
<form:select path="orgId" cssClass="use">
|
||||||
|
<c:forEach var="result" items="${corpOrgList}" varStatus="status">
|
||||||
|
<form:option value="${result.key}" label="${result.value}" />
|
||||||
|
</c:forEach>
|
||||||
|
</form:select>
|
||||||
|
</li>
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
|
<form:hidden path="orgId" />
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
<li>
|
||||||
|
<span class="btn_blue_l">
|
||||||
|
<a href="javascript:fn_selectList();">
|
||||||
|
<spring:message code="button.goSearch" />
|
||||||
|
</a>
|
||||||
|
<img src="<c:url value='/images/rte/btn_bg_r.gif'/>" style="margin-left: 6px;" alt="<spring:message code="button.goSearch" />" />
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</form:form>
|
||||||
|
<div id="divPrintArea">
|
||||||
|
<div id ="divPrintTitle" style="display: none;margin: 10px 0 10px 0;">치안대상</div>
|
||||||
|
<form:form name="listForm" method="get">
|
||||||
|
<input type="hidden" name="idx" />
|
||||||
|
<!-- List -->
|
||||||
|
<div id="table">
|
||||||
|
검색결과 : ${corpList.size()}건
|
||||||
|
<table width="100%" border="0" cellpadding="0" cellspacing="0"
|
||||||
|
summary="치안대상 목록을 확인 할 수 있습니다.">
|
||||||
|
<caption>치안대상 목록</caption>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th align="center">번호</th>
|
||||||
|
<th align="center"><c:out value="${fieldNameMap.place1str}" /></th>
|
||||||
|
<th align="center"><c:out value="${fieldNameMap.name}" /></th>
|
||||||
|
<th align="center"><c:out value="${fieldNameMap.location}" /></th>
|
||||||
|
<c:if test="${searchVO.grpNo eq '03'}">
|
||||||
|
<th align="center"><c:out value="${fieldNameMap.shipCnt}" /></th>
|
||||||
|
</c:if>
|
||||||
|
<c:if test="${searchVO.grpNo ne '01'}">
|
||||||
|
<th align="center"><c:out value="${fieldNameMap.ceo}" /></th>
|
||||||
|
</c:if>
|
||||||
|
<c:if test="${searchVO.grpNo eq '04' or searchVO.grpNo eq '05'}">
|
||||||
|
<th align="center"><c:out value="${fieldNameMap.jobType}" /></th>
|
||||||
|
</c:if>
|
||||||
|
<c:if test="${searchVO.grpNo eq '03'}">
|
||||||
|
<th align="center"><c:out value="${fieldNameMap.memberCnt}" /></th>
|
||||||
|
</c:if>
|
||||||
|
<c:if test="${searchVO.grpNo eq '05'}">
|
||||||
|
<th align="center"><c:out value="${fieldNameMap.partner}" /></th>
|
||||||
|
</c:if>
|
||||||
|
<c:if test="${searchVO.grpNo eq '03'}">
|
||||||
|
<th align="center"><c:out value="${fieldNameMap.basicYear}" /></th>
|
||||||
|
<th align="center"><c:out value="${fieldNameMap.fund}" /></th>
|
||||||
|
</c:if>
|
||||||
|
<th align="center"><c:out value="${fieldNameMap.tel}" /></th>
|
||||||
|
<th align="center"><c:out value="${fieldNameMap.fax}" /></th>
|
||||||
|
<th align="center"><c:out value="${fieldNameMap.comments}" /></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${corpList.size() > 0}">
|
||||||
|
<c:forEach var="result" items="${corpList}" varStatus="status">
|
||||||
|
<tr>
|
||||||
|
<td align="center" class="listtd"><c:out value="${status.index+1}" /></td>
|
||||||
|
<td align="center" class="listtd"><c:out value="${result.place1str}" /></td>
|
||||||
|
<td align="center" class="listtd">
|
||||||
|
<a href="<c:url value="/target/corp/view.do">
|
||||||
|
<c:param name="place1" value="${result.place1}" />
|
||||||
|
<c:param name="orgId" value="${result.orgId}" />
|
||||||
|
<c:param name="orgNo" value="${result.orgNo}" />
|
||||||
|
</c:url>">
|
||||||
|
<c:out value="${result.name}" />
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center" class="listtd"><c:out value="${result.location}" /></td>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${searchVO.grpNo eq '02'}">
|
||||||
|
<td align="center" class="listtd"><c:out value="${result.ceo}" /></td>
|
||||||
|
</c:when>
|
||||||
|
<c:when test="${searchVO.grpNo eq '03'}">
|
||||||
|
<td align="center" class="listtd"><c:out value="${result.shipCnt}" /></td>
|
||||||
|
<td align="center" class="listtd"><c:out value="${result.ceo}" /></td>
|
||||||
|
<td align="center" class="listtd"><c:out value="${result.memberCnt}" /></td>
|
||||||
|
<td align="center" class="listtd"><c:out value="${result.basicYear}" /></td>
|
||||||
|
<td align="center" class="listtd"><c:out value="${result.fund}" /></td>
|
||||||
|
</c:when>
|
||||||
|
<c:when test="${searchVO.grpNo eq '04'}">
|
||||||
|
<td align="center" class="listtd"><c:out value="${result.ceo}" /></td>
|
||||||
|
<td align="center" class="listtd"><c:out value="${result.jobType}" /></td>
|
||||||
|
</c:when>
|
||||||
|
<c:when test="${searchVO.grpNo eq '05'}">
|
||||||
|
<td align="center" class="listtd"><c:out value="${result.ceo}" /></td>
|
||||||
|
<td align="center" class="listtd"><c:out value="${result.jobType}" /></td>
|
||||||
|
<td align="center" class="listtd"><c:out value="${result.partner}" /></td>
|
||||||
|
</c:when>
|
||||||
|
</c:choose>
|
||||||
|
<td align="center" class="listtd"><c:out value="${result.tel}" /></td>
|
||||||
|
<td align="center" class="listtd"><c:out value="${result.fax}" /></td>
|
||||||
|
<td align="center" class="listtd"><c:out value="${result.comments}" /></td>
|
||||||
|
</tr>
|
||||||
|
</c:forEach>
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
|
<tr>
|
||||||
|
<td class="listtd" align="center" colspan="<c:choose>
|
||||||
|
<c:when test="${searchVO.grpNo eq '01'}">7</c:when>
|
||||||
|
<c:when test="${searchVO.grpNo eq '02'}">8</c:when>
|
||||||
|
<c:when test="${searchVO.grpNo eq '03'}">12</c:when>
|
||||||
|
<c:when test="${searchVO.grpNo eq '04'}">9</c:when>
|
||||||
|
<c:when test="${searchVO.grpNo eq '05'}">10</c:when>
|
||||||
|
</c:choose>">
|
||||||
|
<spring:message code="msg.nodata" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<!-- /List -->
|
||||||
|
</form:form>
|
||||||
|
</div>
|
||||||
|
<!-- /PrintArea -->
|
||||||
|
<form:form name="menuForm" method="get">
|
||||||
|
<div id="sysbtn">
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span class="btn_blue_l">
|
||||||
|
<a href="<c:url value="/target/corp/stats.do"/>"><spring:message code="button.goList" /></a>
|
||||||
|
<img src="<c:url value='/images/rte/btn_bg_r.gif'/>" style="margin-left:6px;" alt="<spring:message code="button.goList" />"/>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
<c:if test="${loginUserVO.isAdmin}" >
|
||||||
|
<li>
|
||||||
|
<span class="btn_blue_l">
|
||||||
|
<a href="<c:url value="/target/corp/add.do">
|
||||||
|
<c:param name="orgId" value="${searchVO.orgId}" />
|
||||||
|
<c:param name="grpNo" value="${searchVO.grpNo}" />
|
||||||
|
<c:param name="place1" value="${searchVO.place1}" />
|
||||||
|
</c:url>"><spring:message code="button.create" /></a>
|
||||||
|
<img src="<c:url value='/images/rte/btn_bg_r.gif'/>" style="margin-left:6px;" alt="<spring:message code="button.create" />"/>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
</c:if>
|
||||||
|
<li>
|
||||||
|
<span class="btn_blue_l">
|
||||||
|
<a href="javascript:fn_print();"><spring:message code="button.print" /></a>
|
||||||
|
<img src="<c:url value='/images/rte/btn_bg_r.gif'/>" style="margin-left:6px;" alt="<spring:message code="button.print" />"/>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span class="btn_blue_l">
|
||||||
|
<a href="<c:url value="/target/corp/listtoexcel.do">
|
||||||
|
<c:param name="orgId" value="${searchVO.orgId}" />
|
||||||
|
<c:param name="name" value="${searchVO.name}" />
|
||||||
|
<c:param name="place1" value="${searchVO.place1}" />
|
||||||
|
<c:param name="grpNo" value="${searchVO.grpNo}" />
|
||||||
|
</c:url>"><spring:message code="button.excel" /></a>
|
||||||
|
<img src="<c:url value='/images/rte/btn_bg_r.gif'/>" style="margin-left:6px;" alt="<spring:message code="button.excel" />"/>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</form:form>
|
||||||
|
|
||||||
|
<script type="text/javaScript" defer="defer">
|
||||||
|
<!--
|
||||||
|
/* 목록 화면 function */
|
||||||
|
function fn_selectList() {
|
||||||
|
document.searchForm.submit();
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 글 등록 화면 function */
|
||||||
|
function fn_addView() {
|
||||||
|
document.menuForm.action = "<c:url value='/target/corp/add.do'/>";
|
||||||
|
document.menuForm.submit();
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 출력 */
|
||||||
|
function fn_print(){
|
||||||
|
var divPrintTitle = document.getElementById("divPrintTitle");
|
||||||
|
divPrintTitle.style.display = "inline";
|
||||||
|
printDiv($("#divPrintArea").html());
|
||||||
|
divPrintTitle.style.display = "none";
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
</script>
|
||||||
|
|
@ -0,0 +1,139 @@
|
||||||
|
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||||
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||||
|
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
|
||||||
|
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
|
||||||
|
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
||||||
|
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
||||||
|
<div id="divPrintArea">
|
||||||
|
<jsp:useBean id="toDay" class="java.util.Date" />
|
||||||
|
<div id ="divPrintTitle" style="display: none;margin: 10px 0 10px 0;">치안대상 현황 출력(출력일자 : <fmt:formatDate value="${toDay}" pattern="yyyy-MM-dd" />)</div>
|
||||||
|
<table width="100%">
|
||||||
|
<caption>외사취약지 현황</caption>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<c:forEach var="item" items="${statsPerPlace}" varStatus="status">
|
||||||
|
<th align="center"><c:out value="${item['CODENM_YAK']}" /></th>
|
||||||
|
</c:forEach>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<c:forEach var="item" items="${statsPerPlace}" varStatus="status">
|
||||||
|
<td align="center" class="listtd"><c:out value="${item['CNT']}" /></td>
|
||||||
|
</c:forEach>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<form:form commandName="weakPlaceList" name="listForm" method="get">
|
||||||
|
<input type="hidden" name="idx" />
|
||||||
|
<!-- List -->
|
||||||
|
<div id="table">
|
||||||
|
<table width="100%" border="0" cellpadding="0" cellspacing="0"
|
||||||
|
summary="게시판 목록을 확인 할 수 있습니다.">
|
||||||
|
<caption>치안대상 통계현황</caption>
|
||||||
|
<colgroup>
|
||||||
|
<col width="?">
|
||||||
|
<col width="45">
|
||||||
|
<col width="45">
|
||||||
|
<col width="45">
|
||||||
|
<col width="45">
|
||||||
|
<col width="45">
|
||||||
|
<col width="45">
|
||||||
|
<col width="45">
|
||||||
|
<col width="45">
|
||||||
|
<col width="45">
|
||||||
|
<col width="45">
|
||||||
|
<col width="45">
|
||||||
|
<col width="45">
|
||||||
|
<col width="45">
|
||||||
|
<col width="45">
|
||||||
|
<col width="45">
|
||||||
|
<col width="45">
|
||||||
|
</colgroup>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th align="center"><spring:message code="equip.name" /></th>
|
||||||
|
<th align="center"><spring:message code="equip.total" /></th>
|
||||||
|
<th align="center"><spring:message code="equip.PS01" /></th>
|
||||||
|
<th align="center"><spring:message code="equip.PS02" /></th>
|
||||||
|
<th align="center"><spring:message code="equip.PS03" /></th>
|
||||||
|
<th align="center"><spring:message code="equip.PS04" /></th>
|
||||||
|
<th align="center"><spring:message code="equip.PS05" /></th>
|
||||||
|
<th align="center"><spring:message code="equip.PS06" /></th>
|
||||||
|
<th align="center"><spring:message code="equip.PS07" /></th>
|
||||||
|
<th align="center"><spring:message code="equip.PS08" /></th>
|
||||||
|
<th align="center"><spring:message code="equip.PS09" /></th>
|
||||||
|
<th align="center"><spring:message code="equip.PS10" /></th>
|
||||||
|
<th align="center"><spring:message code="equip.PS11" /></th>
|
||||||
|
<th align="center"><spring:message code="equip.PS12" /></th>
|
||||||
|
<th align="center"><spring:message code="equip.PS13" /></th>
|
||||||
|
<th align="center"><spring:message code="equip.PS14" /></th>
|
||||||
|
<th align="center"><spring:message code="equip.PS17" /></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<c:forEach var="item" items="${stats}" varStatus="status">
|
||||||
|
<tr>
|
||||||
|
<td align="center">
|
||||||
|
<a href="<c:url value="/target/corp/list.do">
|
||||||
|
<c:param name="orgId" value="${item.ORG_ID}" />
|
||||||
|
<c:param name="grpNo" value="${item.GRP_NO}" />
|
||||||
|
</c:url>">
|
||||||
|
<c:out value="${item.ORG_NM}" />
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center" class="listtd"><c:out value="${item.TOT_CNT}" /></td>
|
||||||
|
<td align="center" class="listtd"><c:out value="${item.PS01_CNT}" /></td>
|
||||||
|
<td align="center" class="listtd"><c:out value="${item.PS02_CNT}" /></td>
|
||||||
|
<td align="center" class="listtd"><c:out value="${item.PS03_CNT}" /></td>
|
||||||
|
<td align="center" class="listtd"><c:out value="${item.PS04_CNT}" /></td>
|
||||||
|
<td align="center" class="listtd"><c:out value="${item.PS05_CNT}" /></td>
|
||||||
|
<td align="center" class="listtd"><c:out value="${item.PS06_CNT}" /></td>
|
||||||
|
<td align="center" class="listtd"><c:out value="${item.PS07_CNT}" /></td>
|
||||||
|
<td align="center" class="listtd"><c:out value="${item.PS08_CNT}" /></td>
|
||||||
|
<td align="center" class="listtd"><c:out value="${item.PS09_CNT}" /></td>
|
||||||
|
<td align="center" class="listtd"><c:out value="${item.PS10_CNT}" /></td>
|
||||||
|
<td align="center" class="listtd"><c:out value="${item.PS11_CNT}" /></td>
|
||||||
|
<td align="center" class="listtd"><c:out value="${item.PS12_CNT}" /></td>
|
||||||
|
<td align="center" class="listtd"><c:out value="${item.PS13_CNT}" /></td>
|
||||||
|
<td align="center" class="listtd"><c:out value="${item.PS14_CNT}" /></td>
|
||||||
|
<td align="center" class="listtd"><c:out value="${item.PS17_CNT}" /></td>
|
||||||
|
</tr>
|
||||||
|
</c:forEach>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<!-- /List -->
|
||||||
|
</form:form>
|
||||||
|
</div>
|
||||||
|
<!-- /PrintArea -->
|
||||||
|
<form:form name="menuForm" method="get">
|
||||||
|
<div id="sysbtn">
|
||||||
|
<ul>
|
||||||
|
<li><span class="btn_blue_l">
|
||||||
|
<a href="javascript:fn_print();"><spring:message code="button.print" /></a>
|
||||||
|
<img src="<c:url value='/images/rte/btn_bg_r.gif'/>" style="margin-left: 6px;" alt="<spring:message code="button.print" />" />
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span class="btn_blue_l">
|
||||||
|
<a href="<c:url value="/target/corp/statstoexcel.do"/>" target="_blank"><spring:message code="button.excel" /></a>
|
||||||
|
<img src="<c:url value='/images/rte/btn_bg_r.gif'/>" style="margin-left:6px;" alt="<spring:message code="button.excel" />"/>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</form:form>
|
||||||
|
|
||||||
|
<script type="text/javaScript" defer="defer">
|
||||||
|
<!--
|
||||||
|
/* 출력 */
|
||||||
|
function fn_print(){
|
||||||
|
var divPrintTitle = document.getElementById("divPrintTitle");
|
||||||
|
divPrintTitle.style.display = "inline";
|
||||||
|
printDiv($("#divPrintArea").html());
|
||||||
|
divPrintTitle.style.display = "none";
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
</script>
|
||||||
|
|
@ -0,0 +1,136 @@
|
||||||
|
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||||
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||||
|
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
|
||||||
|
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator"%>
|
||||||
|
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
||||||
|
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
||||||
|
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
||||||
|
<div id="divPrintArea">
|
||||||
|
<div id ="divPrintTitle" style="display: none;margin: 10px 0 10px 0;">외사취약지</div>
|
||||||
|
<div id="table">
|
||||||
|
<table class="tb">
|
||||||
|
<colgroup>
|
||||||
|
<col width="150"/>
|
||||||
|
<col width="?"/>
|
||||||
|
</colgroup>
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption"><c:out value="${fieldNameMap.place1str}" /></td>
|
||||||
|
<td class="tbtd_content"><c:out value="${corpVO.place1str}" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption"><c:out value="${fieldNameMap.name}" /></td>
|
||||||
|
<td class="tbtd_content"><c:out value="${corpVO.name}" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption"><c:out value="${fieldNameMap.location}" /></td>
|
||||||
|
<td class="tbtd_content"><c:out value="${corpVO.location}" /></td>
|
||||||
|
</tr>
|
||||||
|
<c:if test="${corpVO.grpNo eq '03'}">
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption"><c:out value="${fieldNameMap.shipCnt}" /></td>
|
||||||
|
<td class="tbtd_content"><c:out value="${corpVO.shipCnt}" /></td>
|
||||||
|
</tr>
|
||||||
|
</c:if>
|
||||||
|
<c:if test="${corpVO.grpNo ne '01'}">
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption"><c:out value="${fieldNameMap.ceo}" /></td>
|
||||||
|
<td class="tbtd_content"><c:out value="${corpVO.ceo}" /></td>
|
||||||
|
</tr>
|
||||||
|
</c:if>
|
||||||
|
<c:if test="${corpVO.grpNo eq '04' or corpVO.grpNo eq '05'}">
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption"><c:out value="${fieldNameMap.jobType}" /></td>
|
||||||
|
<td class="tbtd_content"><c:out value="${corpVO.jobType}" /></td>
|
||||||
|
</tr>
|
||||||
|
</c:if>
|
||||||
|
<c:if test="${corpVO.grpNo eq '03'}">
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption"><c:out value="${fieldNameMap.memberCnt}" /></td>
|
||||||
|
<td class="tbtd_content"><c:out value="${corpVO.memberCnt}" /></td>
|
||||||
|
</tr>
|
||||||
|
</c:if>
|
||||||
|
<c:if test="${corpVO.grpNo eq '05'}">
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption"><c:out value="${fieldNameMap.partner}" /></td>
|
||||||
|
<td class="tbtd_content"><c:out value="${corpVO.partner}" /></td>
|
||||||
|
</tr>
|
||||||
|
</c:if>
|
||||||
|
<c:if test="${corpVO.grpNo eq '03'}">
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption"><c:out value="${fieldNameMap.basicYear}" /></td>
|
||||||
|
<td class="tbtd_content"><c:out value="${corpVO.basicYear}" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption"><c:out value="${fieldNameMap.fund}" /></td>
|
||||||
|
<td class="tbtd_content"><c:out value="${corpVO.fund}" /></td>
|
||||||
|
</tr>
|
||||||
|
</c:if>
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption"><c:out value="${fieldNameMap.tel}" /></td>
|
||||||
|
<td class="tbtd_content"><c:out value="${corpVO.tel}" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption"><c:out value="${fieldNameMap.fax}" /></td>
|
||||||
|
<td class="tbtd_content"><c:out value="${corpVO.fax}" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption"><c:out value="${fieldNameMap.comments}" /></td>
|
||||||
|
<td class="tbtd_content"><c:out value="${corpVO.comments}" /></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<form:form commandName="corpVO" name="menuForm" method="post">
|
||||||
|
<form:hidden path="place1" />
|
||||||
|
<form:hidden path="orgId" />
|
||||||
|
<form:hidden path="orgNo" />
|
||||||
|
<div id="sysbtn">
|
||||||
|
<ul>
|
||||||
|
<c:if test="${loginUserVO.isAdmin || loginUserVO.place1 eq corpVO.place1}">
|
||||||
|
<li>
|
||||||
|
<span class="btn_blue_l">
|
||||||
|
<a href="javascript:fn_modify();"><spring:message code="button.goModify" /></a>
|
||||||
|
<img src="<c:url value='/images/rte/btn_bg_r.gif'/>" style="margin-left:6px;" alt="<spring:message code='button.goModify' />"/>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span class="btn_blue_l">
|
||||||
|
<a href="javascript:fn_delete();"><spring:message code="button.goDelete" /></a>
|
||||||
|
<img src="<c:url value='/images/rte/btn_bg_r.gif'/>" style="margin-left:6px;" alt="<spring:message code='button.goDelete' />"/>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
</c:if>
|
||||||
|
<li>
|
||||||
|
<span class="btn_blue_l">
|
||||||
|
<a href="<c:url value="/target/corp/list.do">
|
||||||
|
<c:param name="place1" value="${corpVO.place1}" />
|
||||||
|
<c:param name="orgId" value="${corpVO.orgId}" />
|
||||||
|
<c:param name="grpNo" value="${corpVO.grpNo}" />
|
||||||
|
</c:url>"><spring:message code="button.goList" /></a>
|
||||||
|
<img src="<c:url value='/images/rte/btn_bg_r.gif'/>" style="margin-left: 6px;" alt="<spring:message code='button.goList' />" />
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</form:form>
|
||||||
|
|
||||||
|
|
||||||
|
<script type="text/javascript" defer="defer">
|
||||||
|
<!--
|
||||||
|
/* 수정 화면 function */
|
||||||
|
function fn_modify() {
|
||||||
|
document.menuForm.method = "get";
|
||||||
|
document.menuForm.action = "<c:url value='/target/corp/update.do'/>";
|
||||||
|
document.menuForm.submit();
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 삭제 화면 function */
|
||||||
|
function fn_delete() {
|
||||||
|
if (confirm("<spring:message code="confirm.msg.askDel" />")){
|
||||||
|
document.menuForm.method = "post";
|
||||||
|
document.menuForm.action = "<c:url value='/target/corp/delete.do'/>";
|
||||||
|
document.menuForm.submit();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
-->
|
||||||
|
</script>
|
||||||
|
|
@ -0,0 +1,214 @@
|
||||||
|
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||||
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||||
|
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
|
||||||
|
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator"%>
|
||||||
|
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
||||||
|
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
|
||||||
|
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
||||||
|
<style type="text/css">
|
||||||
|
.fileImg {
|
||||||
|
max-height:220px;
|
||||||
|
max-width:400px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<form:form commandName="divMngVO" id="detailForm" name="detailForm" enctype="multipart/form-data" method="POST">
|
||||||
|
<form:hidden path="writer" />
|
||||||
|
<div id="table">
|
||||||
|
<table class="tbl_add">
|
||||||
|
<colgroup>
|
||||||
|
<col width="166">
|
||||||
|
<col width="">
|
||||||
|
<col width="166">
|
||||||
|
<col width="">
|
||||||
|
</colgroup>
|
||||||
|
<tr>
|
||||||
|
<th>
|
||||||
|
<form:label path="place"><spring:message code="target.divmng.place" /></form:label>
|
||||||
|
</th>
|
||||||
|
<td>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${registerFlag == 'create' and loginUserVO.authAdmin eq 1}">
|
||||||
|
<form:select path="place" cssClass="use">
|
||||||
|
<c:forEach var="result" items="${placeList}" varStatus="status">
|
||||||
|
<form:option value="${result.code2}" label="${result.codenm}" />
|
||||||
|
</c:forEach>
|
||||||
|
</form:select>
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
|
<c:out value="${divMngVO.placeStr}" />
|
||||||
|
<form:hidden path="place" />
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
</td>
|
||||||
|
<th>
|
||||||
|
<form:label path="fileImg"><spring:message code="target.divmng.fileImg" /></form:label>
|
||||||
|
</th>
|
||||||
|
<td>
|
||||||
|
<c:if test="${registerFlag eq 'modify' and not empty divMngVO.fileImg}">
|
||||||
|
<img src="<c:url value="/target/divmng/download.do">
|
||||||
|
<c:param name="place" value="${divMngVO.place}" />
|
||||||
|
<c:param name="no" value="${divMngVO.no}" />
|
||||||
|
<c:param name="fileId" value="fileImg" />
|
||||||
|
</c:url>" alt="<spring:message code="target.divmng" /> 이미지" class="fileImg" /><br />
|
||||||
|
<input type="checkbox" id="chkDelFileImg" name="deleteFile" value="fileImg"/>
|
||||||
|
<label for="chkDelFileImg"><c:out value="${divMngVO.fileImg}" />는 삭제합니다.</label>
|
||||||
|
<br />
|
||||||
|
</c:if>
|
||||||
|
<input type="file" name="fileImgObj" class="input_file" size="60" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>
|
||||||
|
<form:label path="tel"><spring:message code="target.divmng.tel" /></form:label>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<form:input path="tel" cssClass="txt" />
|
||||||
|
</td>
|
||||||
|
<th>
|
||||||
|
<form:label path="tel"><spring:message code="target.divmng.local" /></form:label>
|
||||||
|
</th>
|
||||||
|
<td>
|
||||||
|
<form:input path="local" cssClass="txt" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>
|
||||||
|
<form:label path="tel"><spring:message code="target.divmng.gubun" /></form:label>
|
||||||
|
</th>
|
||||||
|
<td>
|
||||||
|
<form:radiobutton path="gubun" value="i" label="상주" />
|
||||||
|
<form:radiobutton path="gubun" value="o" label="비상주" />
|
||||||
|
</td>
|
||||||
|
<th>
|
||||||
|
<form:label path="tel"><spring:message code="target.divmng.staffNum" /></form:label>
|
||||||
|
</th>
|
||||||
|
<td>
|
||||||
|
<form:input path="staffNum" cssClass="txt" /> 명
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>
|
||||||
|
<form:label path="tel"><spring:message code="target.divmng.condition" /></form:label>
|
||||||
|
</td>
|
||||||
|
<td colspan="3">
|
||||||
|
<form:textarea path="condition" cssClass="ta" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>
|
||||||
|
<form:label path="tel"><spring:message code="target.divmng.equipStat" /></form:label>
|
||||||
|
</th>
|
||||||
|
<td colspan="3">
|
||||||
|
<form:textarea path="equipStat" cssClass="ta" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><spring:message code="target.divmng.file" /></th>
|
||||||
|
<td colspan="3">
|
||||||
|
<p>
|
||||||
|
<c:if test="${registerFlag eq 'modify' and not empty divMngVO.file1}">
|
||||||
|
<input type="checkbox" name="deleteFile" value="file1"/>
|
||||||
|
<c:out value="${divMngVO.file1}" />는 삭제합니다.
|
||||||
|
</c:if>
|
||||||
|
<input type="file" name="file1obj" class="input_file" size="60" />
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<c:if test="${registerFlag eq 'modify' and not empty divMngVO.file2}">
|
||||||
|
<input type="checkbox" name="deleteFile" value="file2"/>
|
||||||
|
<c:out value="${divMngVO.file2}" />는 삭제합니다.
|
||||||
|
</c:if>
|
||||||
|
<input type="file" name="file2obj" class="input_file" size="60" />
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<c:if test="${registerFlag eq 'modify' and not empty divMngVO.file3}">
|
||||||
|
<input type="checkbox" name="deleteFile" value="file3"/>
|
||||||
|
<c:out value="${divMngVO.file3}" />는 삭제합니다.
|
||||||
|
</c:if>
|
||||||
|
<input type="file" name="file3obj" class="input_file" size="60" />
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<div class="boardviewinfo">
|
||||||
|
<ul class="right btn-style">
|
||||||
|
<li>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${registerFlag == 'modify'}">
|
||||||
|
<a href="<c:url value='/target/divmng/view.do'>
|
||||||
|
<c:param name="place" value="${divMngVO.place}" />
|
||||||
|
<c:param name="no" value="${divMngVO.no}" />
|
||||||
|
</c:url>"><spring:message code="button.cancel" /></a>
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
|
<a href="<c:url value='/target/divmng/list.do'>
|
||||||
|
<c:param name="place" value="${divMngVO.place}" />
|
||||||
|
</c:url>"><spring:message code="button.cancel" /></a>
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="javascript:fn_save();">
|
||||||
|
<c:if test="${registerFlag == 'create'}">
|
||||||
|
<spring:message code="button.goCreate" />
|
||||||
|
</c:if>
|
||||||
|
<c:if test="${registerFlag == 'modify'}">
|
||||||
|
<spring:message code="button.goModify" />
|
||||||
|
</c:if>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<!-- <div id="sysbtn">
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span class="btn_blue_l">
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${registerFlag == 'modify'}">
|
||||||
|
<a href="<c:url value='/target/divmng/view.do'>
|
||||||
|
<c:param name="place" value="${divMngVO.place}" />
|
||||||
|
<c:param name="no" value="${divMngVO.no}" />
|
||||||
|
</c:url>"><spring:message code="button.cancel" /></a>
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
|
<a href="<c:url value='/target/divmng/list.do'>
|
||||||
|
<c:param name="place" value="${divMngVO.place}" />
|
||||||
|
</c:url>"><spring:message code="button.cancel" /></a>
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
<img src="<c:url value='/images/rte/btn_bg_r.gif'/>" style="margin-left:6px;" alt="<spring:message code="button.cancel" />"/>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span class="btn_blue_l">
|
||||||
|
<a href="javascript:fn_save();">
|
||||||
|
<c:if test="${registerFlag == 'create'}">
|
||||||
|
<spring:message code="button.goCreate" />
|
||||||
|
<img src="<c:url value='/images/rte/btn_bg_r.gif'/>" style="margin-left:6px;" alt="<spring:message code="button.goCreate" />"/>
|
||||||
|
</c:if>
|
||||||
|
<c:if test="${registerFlag == 'modify'}">
|
||||||
|
<spring:message code="button.goModify" />
|
||||||
|
<img src="<c:url value='/images/rte/btn_bg_r.gif'/>" style="margin-left:6px;" alt="<spring:message code="button.goModify" />"/>
|
||||||
|
</c:if>
|
||||||
|
</a>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div> -->
|
||||||
|
</form:form>
|
||||||
|
|
||||||
|
|
||||||
|
<script type="text/javascript" src="<c:url value='/validator.do'/>"></script>
|
||||||
|
<validator:javascript formName="divMngVO" staticJavascript="false" xhtml="true" cdata="false"/>
|
||||||
|
<script type="text/javaScript" defer="defer">
|
||||||
|
<!--
|
||||||
|
function fn_save() {
|
||||||
|
var frm = document.detailForm;
|
||||||
|
if (!validateDivMngVO(frm)) {
|
||||||
|
return;
|
||||||
|
} else {
|
||||||
|
frm.submit();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
-->
|
||||||
|
</script>
|
||||||
|
|
@ -0,0 +1,128 @@
|
||||||
|
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||||
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||||
|
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
|
||||||
|
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
|
||||||
|
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
||||||
|
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
||||||
|
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
|
||||||
|
<form:form commandName="searchVO" name="searchForm" method="get">
|
||||||
|
<div class="search2">
|
||||||
|
<ul>
|
||||||
|
<li class="margin-left"><label for="place">소속</label></li>
|
||||||
|
<li class="form_search2 margin-left">
|
||||||
|
<form:select path="place" cssClass="use">
|
||||||
|
<c:forEach var="result" items="${placeList}" varStatus="status">
|
||||||
|
<form:option value="${result.code2}" label="${result.codenm}" />
|
||||||
|
</c:forEach>
|
||||||
|
</form:select>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span class="btn_blue">
|
||||||
|
<a href="javascript:fn_selectList();"><spring:message code="button.goSearch" /></a>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</form:form>
|
||||||
|
<div id="divPrintArea">
|
||||||
|
<div id ="divPrintTitle" style="display: none;margin: 10px 0 10px 0;"><spring:message code="target.divmng" /></div>
|
||||||
|
<form:form name="listForm" method="get">
|
||||||
|
<input type="hidden" name="idx" />
|
||||||
|
<div class="pageinfo">
|
||||||
|
<ul class="left">
|
||||||
|
<li>검색결과<em>${fn:length(divMngList)}</em>건</li>
|
||||||
|
</ul>
|
||||||
|
<ul class="right btn-style">
|
||||||
|
<li><a class="btn_print" href="javascript:fn_print();"></a></li>
|
||||||
|
<li><a class="btn_excel" href="<c:url value="/target/divmng/listtoexcel.do"><c:param name="place" value="${searchVO.place}" /></c:url>"></a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<!-- List -->
|
||||||
|
<div id="table">
|
||||||
|
<table class="tbl_listview" width="100%" border="1" cellpadding="0" cellspacing="0" summary="<spring:message code="target.divmng" /> 목록을 확인 할 수 있습니다.">
|
||||||
|
<colgroup>
|
||||||
|
<col width="80">
|
||||||
|
<col width="200">
|
||||||
|
<col width="?">
|
||||||
|
<col width="100">
|
||||||
|
<col width="100">
|
||||||
|
<col width="140">
|
||||||
|
</colgroup>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th align="center">번호</th>
|
||||||
|
<th align="center"><spring:message code="target.divmng.place" /></th>
|
||||||
|
<th align="center"><spring:message code="target.divmng.local" /></th>
|
||||||
|
<th align="center"><spring:message code="target.divmng.gubun" /></th>
|
||||||
|
<th align="center"><spring:message code="target.divmng.staffNum" /></th>
|
||||||
|
<th align="center"><spring:message code="target.divmng.tel" /></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${fn:length(divMngList) > 0}">
|
||||||
|
<c:forEach var="result" items="${divMngList}" varStatus="status">
|
||||||
|
<tr>
|
||||||
|
<td align="center"><c:out value="${status.index+1}" /></td>
|
||||||
|
<td align="left"><c:out value="${result.placeStr}" /></td>
|
||||||
|
<td align="left">
|
||||||
|
<a href="<c:url value="/target/divmng/view.do">
|
||||||
|
<c:param name="place" value="${result.place}" />
|
||||||
|
<c:param name="no" value="${result.no}" />
|
||||||
|
</c:url>">
|
||||||
|
<c:out value="${result.local}" />
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center"><c:out value="${result.gubunStr}" /></td>
|
||||||
|
<td align="center"><c:out value="${result.staffNum}" />명</td>
|
||||||
|
<td align="center"><c:out value="${result.tel}" /></td>
|
||||||
|
</tr>
|
||||||
|
</c:forEach>
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
|
<tr>
|
||||||
|
<td align="center" colspan="6">
|
||||||
|
<spring:message code="msg.nodata" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<!-- /List -->
|
||||||
|
</form:form>
|
||||||
|
</div>
|
||||||
|
<!-- /PrintArea -->
|
||||||
|
<form:form name="menuForm" method="get">
|
||||||
|
<div class="board_buttom">
|
||||||
|
<ul class="btn-style right">
|
||||||
|
<c:if test="${loginUserVO.isAdmin}" >
|
||||||
|
<li><a class="btn_create" href="<c:url value="/target/divmng/add.do" />"><spring:message code="button.create" /></a></li>
|
||||||
|
</c:if>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</form:form>
|
||||||
|
|
||||||
|
<script type="text/javaScript" defer="defer">
|
||||||
|
<!--
|
||||||
|
/* 목록 화면 function */
|
||||||
|
function fn_selectList() {
|
||||||
|
document.searchForm.submit();
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 글 등록 화면 function */
|
||||||
|
function fn_addView() {
|
||||||
|
document.menuForm.action = "<c:url value='/target/corp/add.do'/>";
|
||||||
|
document.menuForm.submit();
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 출력 */
|
||||||
|
function fn_print(){
|
||||||
|
var divPrintTitle = document.getElementById("divPrintTitle");
|
||||||
|
divPrintTitle.style.display = "inline";
|
||||||
|
printDiv($("#divPrintArea").html());
|
||||||
|
divPrintTitle.style.display = "none";
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
</script>
|
||||||
|
|
@ -0,0 +1,179 @@
|
||||||
|
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||||
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||||
|
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
|
||||||
|
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator"%>
|
||||||
|
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
||||||
|
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
||||||
|
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
||||||
|
<div id="divPrintArea">
|
||||||
|
<div id ="divPrintTitle" style="display: none;margin: 10px 0 10px 0;">
|
||||||
|
<spring:message code="target.divmng" /> < <c:out value="${divMngVO.placeStr}" />
|
||||||
|
</div>
|
||||||
|
<div id="table">
|
||||||
|
<table class="tbl_add">
|
||||||
|
<colgroup>
|
||||||
|
<col width="166">
|
||||||
|
<col width="">
|
||||||
|
<col width="166">
|
||||||
|
<col width="">
|
||||||
|
</colgroup>
|
||||||
|
<tr>
|
||||||
|
<th><spring:message code="target.divmng.place" /></th>
|
||||||
|
<td><c:out value="${divMngVO.placeStr}" /></td>
|
||||||
|
<th><spring:message code="target.divmng.tel" /></th>
|
||||||
|
<td><c:out value="${divMngVO.tel}" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><spring:message code="target.divmng.local" /></th>
|
||||||
|
<td><c:out value="${divMngVO.local}" /></td>
|
||||||
|
<th ><spring:message code="target.divmng.gubun" /></th>
|
||||||
|
<td><c:out value="${divMngVO.gubunStr}" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><spring:message code="target.divmng.staffNum" /></th>
|
||||||
|
<td><c:out value="${divMngVO.staffNum}" />명</td>
|
||||||
|
<th><spring:message code="target.divmng.condition" /></th>
|
||||||
|
<td><c:out value="${divMngVO.condition}" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><spring:message code="target.divmng.equipStat" /></th>
|
||||||
|
<td colspan="3"><c:out value="${divMngVO.equipStat}" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><spring:message code="target.divmng.file" /></th>
|
||||||
|
<td colspan="3">
|
||||||
|
<c:if test="${divMngVO.file1 ne null and divMngVO.file1 ne ''}">
|
||||||
|
<p><a href="<c:url value="/target/divmng/download.do">
|
||||||
|
<c:param name="place" value="${divMngVO.place}" />
|
||||||
|
<c:param name="no" value="${divMngVO.no}" />
|
||||||
|
<c:param name="fileId" value="file1" />
|
||||||
|
</c:url>" target="_blank"><c:out value="${divMngVO.file1}" /></a></p>
|
||||||
|
</c:if>
|
||||||
|
<c:if test="${divMngVO.file2 ne null and divMngVO.file2 ne ''}">
|
||||||
|
<p><a href="<c:url value="/target/divmng/download.do">
|
||||||
|
<c:param name="place" value="${divMngVO.place}" />
|
||||||
|
<c:param name="no" value="${divMngVO.no}" />
|
||||||
|
<c:param name="fileId" value="file2" />
|
||||||
|
</c:url>" target="_blank"><c:out value="${divMngVO.file2}" /></a></p>
|
||||||
|
</c:if>
|
||||||
|
<c:if test="${divMngVO.file3 ne null and divMngVO.file3 ne ''}">
|
||||||
|
<p><a href="<c:url value="/target/divmng/download.do">
|
||||||
|
<c:param name="place" value="${divMngVO.place}" />
|
||||||
|
<c:param name="no" value="${divMngVO.no}" />
|
||||||
|
<c:param name="fileId" value="file3" />
|
||||||
|
</c:url>" target="_blank"><c:out value="${divMngVO.file3}" /></a></p>
|
||||||
|
</c:if>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="4">
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${divMngVO.fileImg ne null and divMngVO.fileImg ne ''}" >
|
||||||
|
<a id="imgViewer" href="<c:url value="/target/divmng/download.do">
|
||||||
|
<c:param name="place" value="${divMngVO.place}" />
|
||||||
|
<c:param name="no" value="${divMngVO.no}" />
|
||||||
|
<c:param name="fileId" value="fileImg" />
|
||||||
|
</c:url>">
|
||||||
|
<img src="<c:url value="/target/divmng/download.do">
|
||||||
|
<c:param name="place" value="${divMngVO.place}" />
|
||||||
|
<c:param name="no" value="${divMngVO.no}" />
|
||||||
|
<c:param name="fileId" value="fileImg" />
|
||||||
|
</c:url>" alt="<spring:message code="target.divmng" /> 이미지" width="400" />
|
||||||
|
</a>
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
|
<img src="/images/basic_img.jpg" alt="<spring:message code="target.divmng" /> 이미지" />
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<form:form commandName="divMngVO" name="menuForm" method="post">
|
||||||
|
<form:hidden path="place" />
|
||||||
|
<form:hidden path="no" />
|
||||||
|
<div class="boardviewinfo">
|
||||||
|
<ul class="right btn-style">
|
||||||
|
<c:if test="${loginUserVO.isAdmin}">
|
||||||
|
<li>
|
||||||
|
<a href="javascript:fn_modify();"><spring:message code="button.goModify" /></a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="javascript:fn_delete();"><spring:message code="button.goDelete" /></a>
|
||||||
|
</li>
|
||||||
|
</c:if>
|
||||||
|
<li>
|
||||||
|
<a href="javascript:fn_print();"><spring:message code="button.print" /></a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="<c:url value="/target/divmng/list.do"><c:param name="place" value="${divMngVO.place}" /></c:url>"><spring:message code="button.goList" /></a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<!-- <div id="sysbtn">
|
||||||
|
<ul>
|
||||||
|
<c:if test="${loginUserVO.isAdmin}">
|
||||||
|
<li>
|
||||||
|
<span class="btn_blue_l">
|
||||||
|
<a href="javascript:fn_modify();"><spring:message code="button.goModify" /></a>
|
||||||
|
<img src="<c:url value='/images/rte/btn_bg_r.gif'/>" style="margin-left:6px;" alt="<spring:message code='button.goModify' />" />
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span class="btn_blue_l">
|
||||||
|
<a href="javascript:fn_delete();"><spring:message code="button.goDelete" /></a>
|
||||||
|
<img src="<c:url value='/images/rte/btn_bg_r.gif'/>" style="margin-left:6px;" alt="<spring:message code='button.goDelete' />"/>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
</c:if>
|
||||||
|
<li>
|
||||||
|
<span class="btn_blue_l">
|
||||||
|
<a href="javascript:fn_print();"><spring:message code="button.print" /></a>
|
||||||
|
<img src="<c:url value='/images/rte/btn_bg_r.gif'/>" style="margin-left: 6px;" alt="<spring:message code='button.print' />" />
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span class="btn_blue_l">
|
||||||
|
<a href="<c:url value="/target/divmng/list.do">
|
||||||
|
<c:param name="place" value="${divMngVO.place}" />
|
||||||
|
</c:url>"><spring:message code="button.goList" /></a>
|
||||||
|
<img src="<c:url value='/images/rte/btn_bg_r.gif'/>" style="margin-left: 6px;" alt="<spring:message code='button.goList' />" />
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div> -->
|
||||||
|
</form:form>
|
||||||
|
|
||||||
|
<script type="text/javascript" defer="defer">
|
||||||
|
/* 수정 화면 function */
|
||||||
|
function fn_modify() {
|
||||||
|
document.menuForm.method = "get";
|
||||||
|
document.menuForm.action = "<c:url value='/target/divmng/update.do'/>";
|
||||||
|
document.menuForm.submit();
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 삭제 화면 function */
|
||||||
|
function fn_delete() {
|
||||||
|
if (confirm("<spring:message code="confirm.msg.askDel" />")){
|
||||||
|
document.menuForm.method = "post";
|
||||||
|
document.menuForm.action = "<c:url value='/target/divmng/delete.do'/>";
|
||||||
|
document.menuForm.submit();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 출력 */
|
||||||
|
function fn_print(){
|
||||||
|
var divPrintTitle = document.getElementById("divPrintTitle");
|
||||||
|
divPrintTitle.style.display = "inline";
|
||||||
|
printDiv($("#divPrintArea").html());
|
||||||
|
divPrintTitle.style.display = "none";
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 이미지 크게보기 */
|
||||||
|
$(document).ready(function() {
|
||||||
|
$("#imgViewer").fancybox({
|
||||||
|
type: "image"
|
||||||
|
});
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
|
@ -0,0 +1,220 @@
|
||||||
|
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||||
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||||
|
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
|
||||||
|
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator"%>
|
||||||
|
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
||||||
|
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
|
||||||
|
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
||||||
|
<style type="text/css">
|
||||||
|
.fileImg {
|
||||||
|
max-height:220px;
|
||||||
|
max-width:400px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<form:form commandName="ferryVO" id="detailForm" name="detailForm" enctype="multipart/form-data" method="POST">
|
||||||
|
<form:hidden path="serNo" />
|
||||||
|
<form:hidden path="writer" />
|
||||||
|
<div id="table">
|
||||||
|
<table class="tb">
|
||||||
|
<colgroup>
|
||||||
|
<col width="100"/>
|
||||||
|
<col width="?"/>
|
||||||
|
<col width="100"/>
|
||||||
|
<col width="?"/>
|
||||||
|
</colgroup>
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption">
|
||||||
|
<form:label path="ferryName"><spring:message code="target.ferry.name" /></form:label>
|
||||||
|
</td>
|
||||||
|
<td class="tbtd_content">
|
||||||
|
<form:input path="ferryName" cssClass="txt" />
|
||||||
|
</td>
|
||||||
|
<td class="tbtd_caption">
|
||||||
|
<form:label path="repreName"><spring:message code="target.ferry.repreName" /></form:label>
|
||||||
|
</td>
|
||||||
|
<td class="tbtd_content">
|
||||||
|
<form:input path="repreName" cssClass="txt" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption">
|
||||||
|
<form:label path="ferryOffice"><spring:message code="target.ferry.office" /></form:label>
|
||||||
|
</td>
|
||||||
|
<td class="tbtd_content">
|
||||||
|
<form:input path="ferryOffice" cssClass="txt" />
|
||||||
|
</td>
|
||||||
|
<td class="tbtd_caption">
|
||||||
|
<form:label path="tel"><spring:message code="target.ferry.tel" /></form:label>
|
||||||
|
</td>
|
||||||
|
<td class="tbtd_content">
|
||||||
|
<form:input path="tel" cssClass="txt" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption">
|
||||||
|
<form:label path="ferryTon"><spring:message code="target.ferry.ton" /></form:label>
|
||||||
|
</td>
|
||||||
|
<td class="tbtd_content">
|
||||||
|
<form:input path="ferryTon" cssClass="txt" /> 톤
|
||||||
|
</td>
|
||||||
|
<td class="tbtd_caption">
|
||||||
|
<form:label path="ferrySosok"><spring:message code="target.ferry.ferrySosok" /></form:label>
|
||||||
|
</td>
|
||||||
|
<td class="tbtd_content">
|
||||||
|
<form:input path="ferrySosok" cssClass="txt" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption">
|
||||||
|
<form:label path="ferryRoute"><spring:message code="target.ferry.route" /></form:label>
|
||||||
|
</td>
|
||||||
|
<td class="tbtd_content">
|
||||||
|
<form:select path="ferryRoute">
|
||||||
|
<form:options items="${routeList}" itemValue="code" itemLabel="value"/>
|
||||||
|
</form:select>
|
||||||
|
</td>
|
||||||
|
<td class="tbtd_caption">
|
||||||
|
<form:label path="sailingDistance"><spring:message code="target.ferry.sailingDistance" /></form:label>
|
||||||
|
</td>
|
||||||
|
<td class="tbtd_content">
|
||||||
|
<form:input path="sailingDistance" cssClass="txt" /> 마일
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption">
|
||||||
|
<form:label path="ferryTime"><spring:message code="target.ferry.ferryTime" /></form:label>
|
||||||
|
</td>
|
||||||
|
<td class="tbtd_content">
|
||||||
|
<form:input path="ferryTime" cssClass="txt" /> 시간
|
||||||
|
</td>
|
||||||
|
<td class="tbtd_caption">
|
||||||
|
<form:label path="sailingDate"><spring:message code="target.ferry.sailingDate" /></form:label>
|
||||||
|
</td>
|
||||||
|
<td class="tbtd_content">
|
||||||
|
<form:input path="sailingDate" cssClass="txt" /> (형식 : 2000-01-01)
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption">
|
||||||
|
<form:label path="ferrySpeedMax"><spring:message code="target.ferry.speed" /></form:label>
|
||||||
|
</td>
|
||||||
|
<td class="tbtd_content">
|
||||||
|
<spring:message code="target.ferry.speedMax" />
|
||||||
|
<form:input path="ferrySpeedMax" cssClass="txt" /> 노트<br />
|
||||||
|
<spring:message code="target.ferry.speedNor" />
|
||||||
|
<form:input path="ferrySpeedNor" cssClass="txt" /> 노트
|
||||||
|
</td>
|
||||||
|
<td class="tbtd_caption">
|
||||||
|
<form:label path="ferryGuestCnt"><spring:message code="target.ferry.capacity" /></form:label>
|
||||||
|
</td>
|
||||||
|
<td class="tbtd_content">
|
||||||
|
<spring:message code="target.ferry.guestCnt" />
|
||||||
|
<form:input path="ferryGuestCnt" cssClass="txt" /> 명<br />
|
||||||
|
<spring:message code="target.ferry.clueCnt" />
|
||||||
|
<form:input path="ferryClueCnt" cssClass="txt" /> 명
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption">
|
||||||
|
<form:label path="runCnt"><spring:message code="target.ferry.runCnt" /></form:label>
|
||||||
|
</td>
|
||||||
|
<td class="tbtd_content">
|
||||||
|
<form:select path="runTerm">
|
||||||
|
<form:options items="${runTermList}" itemValue="code" itemLabel="value"/>
|
||||||
|
</form:select>
|
||||||
|
<form:input path="runCnt" cssClass="txt" /> 회
|
||||||
|
</td>
|
||||||
|
<td class="tbtd_caption">
|
||||||
|
<form:label path="cooperateNation"><spring:message code="target.ferry.cooperateNation" /></form:label>
|
||||||
|
</td>
|
||||||
|
<td class="tbtd_content">
|
||||||
|
<form:input path="cooperateNation" cssClass="txt" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption">
|
||||||
|
<form:label path="imgFile"><spring:message code="target.ferry.imgFile" /></form:label>
|
||||||
|
</td>
|
||||||
|
<td class="tbtd_content" colspan="3">
|
||||||
|
<c:if test="${registerFlag eq 'modify' and not empty ferryVO.imgFile}">
|
||||||
|
<form:hidden path="imgFile"/>
|
||||||
|
<img src="<c:url value="/target/ferry/download.do">
|
||||||
|
<c:param name="serNo" value="${ferryVO.serNo}" />
|
||||||
|
</c:url>" alt="<spring:message code="target.ferry" /> 이미지" width="350" /><br />
|
||||||
|
<input type="checkbox" id="chkDelFileImg" name="deleteFile" value="imgFile"/>
|
||||||
|
<label for="chkDelFileImg"><c:out value="${ferryVO.imgFile}" />는 삭제합니다.</label><br />
|
||||||
|
</c:if>
|
||||||
|
<input type="file" name="imgFileObj" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption">
|
||||||
|
<form:label path="comments"><spring:message code="target.ferry.comments" /></form:label>
|
||||||
|
</td>
|
||||||
|
<td class="tbtd_content" colspan="3">
|
||||||
|
<form:input path="comments" cssClass="txt" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<div id="sysbtn">
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span class="btn_blue_l">
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${registerFlag == 'modify'}">
|
||||||
|
<a href="<c:url value='/target/ferry/view.do'>
|
||||||
|
<c:param name="serNo" value="${ferryVO.serNo}" />
|
||||||
|
</c:url>"><spring:message code="button.cancel" /></a>
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
|
<a href="<c:url value='/target/ferry/list.do'>
|
||||||
|
<c:param name="ferryRoute" value="${ferryVO.ferryRoute}" />
|
||||||
|
</c:url>"><spring:message code="button.cancel" /></a>
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
<img src="<c:url value='/images/rte/btn_bg_r.gif'/>" style="margin-left:6px;" alt="<spring:message code="button.cancel" />"/>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span class="btn_blue_l">
|
||||||
|
<a href="javascript:fn_save();">
|
||||||
|
<c:if test="${registerFlag == 'create'}">
|
||||||
|
<spring:message code="button.goCreate" />
|
||||||
|
<img src="<c:url value='/images/rte/btn_bg_r.gif'/>" style="margin-left:6px;" alt="<spring:message code="button.goCreate" />"/>
|
||||||
|
</c:if>
|
||||||
|
<c:if test="${registerFlag == 'modify'}">
|
||||||
|
<spring:message code="button.goModify" />
|
||||||
|
<img src="<c:url value='/images/rte/btn_bg_r.gif'/>" style="margin-left:6px;" alt="<spring:message code="button.goModify" />"/>
|
||||||
|
</c:if>
|
||||||
|
</a>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</form:form>
|
||||||
|
|
||||||
|
|
||||||
|
<script type="text/javascript" src="<c:url value='/validator.do'/>"></script>
|
||||||
|
<validator:javascript formName="ferryVO" staticJavascript="false" xhtml="true" cdata="false"/>
|
||||||
|
<script type="text/javaScript" defer="defer">
|
||||||
|
<!--
|
||||||
|
$(document).ready(function() {
|
||||||
|
$("#sailingDate").datepicker({
|
||||||
|
dateFormat: 'yy-mm-dd',
|
||||||
|
onSelect: function(date){
|
||||||
|
$("#sailingDate").val(date);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
function fn_save() {
|
||||||
|
var frm = document.detailForm;
|
||||||
|
if (!validateFerryVO(frm)) {
|
||||||
|
return;
|
||||||
|
} else {
|
||||||
|
frm.submit();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
-->
|
||||||
|
</script>
|
||||||
|
|
@ -0,0 +1,142 @@
|
||||||
|
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||||
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||||
|
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
|
||||||
|
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
|
||||||
|
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
||||||
|
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
||||||
|
<form:form commandName="searchVO" name="searchForm" method="get">
|
||||||
|
<div id="search">
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<label for="place"><spring:message code="target.ferry.route" /></label>
|
||||||
|
<form:select path="ferryRoute" cssClass="use">
|
||||||
|
<c:forEach var="result" items="${routeList}" varStatus="status">
|
||||||
|
<form:option value="${result.code}" label="${result.value}" />
|
||||||
|
</c:forEach>
|
||||||
|
</form:select>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span class="btn_blue_l">
|
||||||
|
<a href="javascript:fn_selectList();">
|
||||||
|
<spring:message code="button.goSearch" />
|
||||||
|
</a>
|
||||||
|
<img src="<c:url value='/images/rte/btn_bg_r.gif'/>" style="margin-left: 6px;" alt="<spring:message code="button.goSearch" />" />
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</form:form>
|
||||||
|
<div id="divPrintArea">
|
||||||
|
<div id ="divPrintTitle" style="display: none;margin: 10px 0 10px 0;"><spring:message code="target.ferry" /></div>
|
||||||
|
<form:form name="listForm" method="get">
|
||||||
|
<input type="hidden" name="idx" />
|
||||||
|
<!-- List -->
|
||||||
|
<div id="table">
|
||||||
|
검색결과 : ${ferryList.size()}건
|
||||||
|
<table width="100%" border="0" cellpadding="0" cellspacing="0"
|
||||||
|
summary="<spring:message code="target.ferry" /> 목록을 확인 할 수 있습니다.">
|
||||||
|
<caption><spring:message code="target.ferry" /> 목록</caption>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th align="center" rowspan="2"><spring:message code="target.ferry.no" /></th>
|
||||||
|
<th align="center" rowspan="2"><spring:message code="target.ferry.name" /></th>
|
||||||
|
<th align="center" rowspan="2"><spring:message code="target.ferry.office" /></th>
|
||||||
|
<th align="center" rowspan="2"><spring:message code="target.ferry.ton" /></th>
|
||||||
|
<th align="center" rowspan="2"><spring:message code="target.ferry.ferrySosok" /></th>
|
||||||
|
<th align="center" rowspan="2"><spring:message code="target.ferry.route" /></th>
|
||||||
|
<th align="center" rowspan="2"><spring:message code="target.ferry.sailingDistance" /></th>
|
||||||
|
<th align="center" rowspan="2"><spring:message code="target.ferry.ferryTime" /></th>
|
||||||
|
<th align="center"><spring:message code="target.ferry.speed" /></th>
|
||||||
|
<th align="center" colspan="3"><spring:message code="target.ferry.capacity" /></th>
|
||||||
|
<th align="center" rowspan="2"><spring:message code="target.ferry.runCnt" /></th>
|
||||||
|
<th align="center" rowspan="2"><spring:message code="target.ferry.sailingDate" /></th>
|
||||||
|
<th align="center" rowspan="2"><spring:message code="target.ferry.isCooperate" /></th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th align="center"><spring:message code="target.ferry.speedNor" /></th>
|
||||||
|
<th align="center"><spring:message code="target.ferry.capacityTot" /></th>
|
||||||
|
<th align="center"><spring:message code="target.ferry.guestCnt" /></th>
|
||||||
|
<th align="center"><spring:message code="target.ferry.clueCnt" /></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${ferryList.size() > 0}">
|
||||||
|
<c:forEach var="result" items="${ferryList}" varStatus="status">
|
||||||
|
<tr>
|
||||||
|
<td align="center" class="listtd"><c:out value="${status.index+1}" /></td>
|
||||||
|
<td align="center" class="listtd">
|
||||||
|
<a href="<c:url value="/target/ferry/view.do">
|
||||||
|
<c:param name="serNo" value="${result.serNo}" />
|
||||||
|
</c:url>">
|
||||||
|
<c:out value="${result.ferryName}" />
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center" class="listtd"><c:out value="${result.ferryOffice}" /></td>
|
||||||
|
<td align="center" class="listtd"><c:out value="${result.ferryTon}" /></td>
|
||||||
|
<td align="center" class="listtd"><c:out value="${result.ferrySosok}" /></td>
|
||||||
|
<td align="center" class="listtd"><c:out value="${result.ferryRouteStr}" /></td>
|
||||||
|
<td align="center" class="listtd"><c:out value="${result.sailingDistance}" /></td>
|
||||||
|
<td align="center" class="listtd"><c:out value="${result.ferryTime}" /></td>
|
||||||
|
<td align="center" class="listtd"><c:out value="${result.ferrySpeedNor}" /></td>
|
||||||
|
<td align="center" class="listtd"><c:out value="${result.capacity}" /></td>
|
||||||
|
<td align="center" class="listtd"><c:out value="${result.ferryGuestCnt}" /></td>
|
||||||
|
<td align="center" class="listtd"><c:out value="${result.ferryClueCnt}" /></td>
|
||||||
|
<td align="center" class="listtd"><c:out value="${result.runCntStr}" /></td>
|
||||||
|
<td align="center" class="listtd"><c:out value="${result.sailingDate}" /></td>
|
||||||
|
<td align="center" class="listtd"><c:out value="${result.isCooperateStr}" /></td>
|
||||||
|
</tr>
|
||||||
|
</c:forEach>
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
|
<tr>
|
||||||
|
<td class="listtd" align="center" colspan="15">
|
||||||
|
<spring:message code="msg.nodata" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<!-- /List -->
|
||||||
|
</form:form>
|
||||||
|
</div>
|
||||||
|
<!-- /PrintArea -->
|
||||||
|
<form:form name="menuForm" method="get">
|
||||||
|
<div id="sysbtn">
|
||||||
|
<ul>
|
||||||
|
<c:if test="${loginUserVO.isAdmin}" >
|
||||||
|
<li>
|
||||||
|
<span class="btn_blue_l">
|
||||||
|
<a href="<c:url value="/target/ferry/add.do" />"><spring:message code="button.create" /></a>
|
||||||
|
<img src="<c:url value='/images/rte/btn_bg_r.gif'/>" style="margin-left:6px;" alt="<spring:message code="button.create" />"/>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
</c:if>
|
||||||
|
<li>
|
||||||
|
<span class="btn_blue_l">
|
||||||
|
<a href="javascript:fn_print();"><spring:message code="button.print" /></a>
|
||||||
|
<img src="<c:url value='/images/rte/btn_bg_r.gif'/>" style="margin-left:6px;" alt="<spring:message code="button.print" />"/>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</form:form>
|
||||||
|
|
||||||
|
<script type="text/javaScript" defer="defer">
|
||||||
|
<!--
|
||||||
|
/* 목록 화면 function */
|
||||||
|
function fn_selectList() {
|
||||||
|
document.searchForm.submit();
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 출력 */
|
||||||
|
function fn_print(){
|
||||||
|
var divPrintTitle = document.getElementById("divPrintTitle");
|
||||||
|
divPrintTitle.style.display = "inline";
|
||||||
|
printDiv($("#divPrintArea").html());
|
||||||
|
divPrintTitle.style.display = "none";
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
</script>
|
||||||
|
|
@ -0,0 +1,168 @@
|
||||||
|
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||||
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||||
|
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
|
||||||
|
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator"%>
|
||||||
|
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
||||||
|
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
||||||
|
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
||||||
|
<div id="divPrintArea">
|
||||||
|
<div id ="divPrintTitle" style="display: none;margin: 10px 0 10px 0;">
|
||||||
|
<jsp:useBean id="toDay" class="java.util.Date" />
|
||||||
|
<spring:message code="target.ferry" /> (출력일자 : <fmt:formatDate value="${toDay}" pattern="yyyy-MM-dd" />)
|
||||||
|
</div>
|
||||||
|
<div id="table">
|
||||||
|
<table class="tb">
|
||||||
|
<colgroup>
|
||||||
|
<col width="150"/>
|
||||||
|
<col width="?"/>
|
||||||
|
<col width="150"/>
|
||||||
|
<col width="200"/>
|
||||||
|
</colgroup>
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption"><spring:message code="target.ferry.name" /></td>
|
||||||
|
<td class="tbtd_content"><c:out value="${ferryVO.ferryName}" /></td>
|
||||||
|
<td class="tbtd_content" rowspan="10" colspan="2">
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${ferryVO.imgFile ne null and ferryVO.imgFile ne ''}" >
|
||||||
|
<a id="imgViewer" href="<c:url value="/target/ferry/download.do">
|
||||||
|
<c:param name="serNo" value="${ferryVO.serNo}" />
|
||||||
|
</c:url>">
|
||||||
|
<img src="<c:url value="/target/ferry/download.do">
|
||||||
|
<c:param name="serNo" value="${ferryVO.serNo}" />
|
||||||
|
</c:url>" alt="<spring:message code="target.ferry" /> 이미지" width="350" />
|
||||||
|
</a>
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
|
<img src="/images/basic_img.jpg" alt="<spring:message code="target.ferry" /> 이미지" />
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption"><spring:message code="target.ferry.repreName" /></td>
|
||||||
|
<td class="tbtd_content"><c:out value="${ferryVO.repreName}" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption"><spring:message code="target.ferry.office" /></td>
|
||||||
|
<td class="tbtd_content"><c:out value="${ferryVO.ferryOffice}" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption"><spring:message code="target.ferry.tel" /></td>
|
||||||
|
<td class="tbtd_content"><c:out value="${ferryVO.tel}" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption"><spring:message code="target.ferry.ton" /></td>
|
||||||
|
<td class="tbtd_content"><c:out value="${ferryVO.ferryTon}" /> 톤</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption"><spring:message code="target.ferry.ferrySosok" /></td>
|
||||||
|
<td class="tbtd_content"><c:out value="${ferryVO.ferrySosok}" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption"><spring:message code="target.ferry.route" /></td>
|
||||||
|
<td class="tbtd_content"><c:out value="${ferryVO.ferryRouteStr}" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption"><spring:message code="target.ferry.sailingDistance" /></td>
|
||||||
|
<td class="tbtd_content"><c:out value="${ferryVO.sailingDistance}" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption"><spring:message code="target.ferry.ferryTime" /></td>
|
||||||
|
<td class="tbtd_content"><c:out value="${ferryVO.ferryTime}" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption"><spring:message code="target.ferry.sailingDate" /></td>
|
||||||
|
<td class="tbtd_content"><c:out value="${ferryVO.sailingDate}" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption"><spring:message code="target.ferry.speed" /></td>
|
||||||
|
<td class="tbtd_content">
|
||||||
|
최대 <c:out value="${ferryVO.ferrySpeedMax}" /> 노트<br />
|
||||||
|
항해 <c:out value="${ferryVO.ferrySpeedNor}" /> 노트<br />
|
||||||
|
</td>
|
||||||
|
<td class="tbtd_caption"><spring:message code="target.ferry.capacity" /></td>
|
||||||
|
<td class="tbtd_content">
|
||||||
|
여객 <c:out value="${ferryVO.ferryGuestCnt}" /> 명<br />
|
||||||
|
승무원 <c:out value="${ferryVO.ferryClueCnt}" /> 명<br />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption"><spring:message code="target.ferry.runCnt" /></td>
|
||||||
|
<td class="tbtd_content"><c:out value="${ferryVO.runCntStr}" /></td>
|
||||||
|
<td class="tbtd_caption"><spring:message code="target.ferry.cooperateNation" /></td>
|
||||||
|
<td class="tbtd_content"><c:out value="${ferryVO.cooperateNation}" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="tbtd_caption"><spring:message code="target.ferry.comments" /></td>
|
||||||
|
<td class="tbtd_content" colspan="3"><c:out value="${ferryVO.comments}" /></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<form:form commandName="ferryVO" name="menuForm" method="post">
|
||||||
|
<form:hidden path="serNo" />
|
||||||
|
<div id="sysbtn">
|
||||||
|
<ul>
|
||||||
|
<c:if test="${loginUserVO.isAdmin}">
|
||||||
|
<li>
|
||||||
|
<span class="btn_blue_l">
|
||||||
|
<a href="javascript:fn_modify();"><spring:message code="button.goModify" /></a>
|
||||||
|
<img src="<c:url value='/images/rte/btn_bg_r.gif'/>" style="margin-left:6px;" alt="<spring:message code='button.goModify' />" />
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span class="btn_blue_l">
|
||||||
|
<a href="javascript:fn_delete();"><spring:message code="button.goDelete" /></a>
|
||||||
|
<img src="<c:url value='/images/rte/btn_bg_r.gif'/>" style="margin-left:6px;" alt="<spring:message code='button.goDelete' />"/>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
</c:if>
|
||||||
|
<li>
|
||||||
|
<span class="btn_blue_l">
|
||||||
|
<a href="javascript:fn_print();"><spring:message code="button.print" /></a>
|
||||||
|
<img src="<c:url value='/images/rte/btn_bg_r.gif'/>" style="margin-left: 6px;" alt="<spring:message code='button.print' />" />
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span class="btn_blue_l">
|
||||||
|
<a href="<c:url value="/target/ferry/list.do" />"><spring:message code="button.goList" /></a>
|
||||||
|
<img src="<c:url value='/images/rte/btn_bg_r.gif'/>" style="margin-left: 6px;" alt="<spring:message code='button.goList' />" />
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</form:form>
|
||||||
|
|
||||||
|
|
||||||
|
<script type="text/javascript" defer="defer">
|
||||||
|
/* 수정 화면 function */
|
||||||
|
function fn_modify() {
|
||||||
|
document.menuForm.method = "get";
|
||||||
|
document.menuForm.action = "<c:url value='/target/ferry/update.do'/>";
|
||||||
|
document.menuForm.submit();
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 삭제 화면 function */
|
||||||
|
function fn_delete() {
|
||||||
|
if (confirm("<spring:message code="confirm.msg.askDel" />")){
|
||||||
|
document.menuForm.method = "post";
|
||||||
|
document.menuForm.action = "<c:url value='/target/ferry/delete.do'/>";
|
||||||
|
document.menuForm.submit();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 출력 */
|
||||||
|
function fn_print(){
|
||||||
|
var divPrintTitle = document.getElementById("divPrintTitle");
|
||||||
|
divPrintTitle.style.display = "inline";
|
||||||
|
printDiv($("#divPrintArea").html());
|
||||||
|
divPrintTitle.style.display = "none";
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 이미지 크게보기 */
|
||||||
|
$(document).ready(function() {
|
||||||
|
$("#imgViewer").fancybox({
|
||||||
|
type: "image"
|
||||||
|
});
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
|
@ -0,0 +1,203 @@
|
||||||
|
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||||
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||||
|
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
|
||||||
|
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator"%>
|
||||||
|
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
||||||
|
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
|
||||||
|
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
||||||
|
<form:form commandName="weakPlaceVO" id="detailForm" name="detailForm" enctype="multipart/form-data">
|
||||||
|
<form:hidden path="writer" />
|
||||||
|
<c:forEach var="list" items="${wpNoMap}" varStatus="num">
|
||||||
|
<input type="hidden" id="hdWpNo_${list.key}" value="${list.value}" />
|
||||||
|
</c:forEach>
|
||||||
|
<div id="table">
|
||||||
|
<table class="tbl_add">
|
||||||
|
<colgroup>
|
||||||
|
<col width="150"/>
|
||||||
|
<col width="?"/>
|
||||||
|
</colgroup>
|
||||||
|
<tr>
|
||||||
|
<th>
|
||||||
|
<label for="title"><spring:message code="target.wp.wpNoStr" /></label>
|
||||||
|
</th>
|
||||||
|
<td>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${weakPlaceVO.place1 == 'PS00' and registerFlag == 'create'}">
|
||||||
|
<form:select path="place1" cssClass="use" onchange="changePlace(this.value);">
|
||||||
|
<c:forEach var="result" items="${placeList}" varStatus="status">
|
||||||
|
<form:option value="${result.code2}" label="${result.codenmYak}" />
|
||||||
|
</c:forEach>
|
||||||
|
</form:select>
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
|
<label>${weakPlaceVO.place1str}</label>
|
||||||
|
<form:hidden path="place1" />
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
-
|
||||||
|
<span id="spanWpNo">${weakPlaceVO.wpNo}</span>
|
||||||
|
<form:hidden path="wpNo" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><label for="title"><spring:message code="target.wp.name" /></label></th>
|
||||||
|
<td class="tbtd_content">
|
||||||
|
<form:input path="name" cssClass="txt" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><label for="title"><spring:message code="target.wp.location" /></label></th>
|
||||||
|
<td class="tbtd_content">
|
||||||
|
<form:input path="location" cssClass="txt" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><label for="title"><spring:message code="target.wp.comments" /></label></th>
|
||||||
|
<td class="tbtd_content">
|
||||||
|
<form:textarea path="comments" cssClass="ta" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><label for="title"><spring:message code="target.wp.filename1" /></label></th>
|
||||||
|
<td class="tbtd_content">
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${registerFlag != 'modify'}">
|
||||||
|
<p><input type="file" name="file1" class="input_file" size="60" /></p>
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
|
<form:hidden path="filename1" />
|
||||||
|
<p>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${fn:length(weakPlaceVO.filename1) > 0}">
|
||||||
|
<input type="checkbox" name="deleteFile" value="1"/>
|
||||||
|
<c:out value="${weakPlaceVO.filename1}"/>는 삭제합니다.
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
|
<input type="file" name="file1" class="input_file" size="60" />
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
</p>
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><label for="title"><spring:message code="target.wp.filename2" /></label></th>
|
||||||
|
<td class="tbtd_content">
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${registerFlag != 'modify'}">
|
||||||
|
<p><input type="file" name="file2" class="input_file" size="60" /></p>
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
|
<form:hidden path="filename2" />
|
||||||
|
<p>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${fn:length(weakPlaceVO.filename2) > 0}">
|
||||||
|
<input type="checkbox" name="deleteFile" value="2"/>
|
||||||
|
<c:out value="${weakPlaceVO.filename2}"/>는 삭제합니다.
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
|
<input type="file" name="file2" class="input_file" size="60" />
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
</p>
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="boardviewinfo">
|
||||||
|
<ul class="right btn-style">
|
||||||
|
<li>
|
||||||
|
<a href="javascript:fn_selectList();"><spring:message code="button.goList" /></a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${registerFlag == 'modify'}">
|
||||||
|
<a href="/target/weakplace/view.do?place1=<c:out value="${weakPlaceVO.place1}"/>&wpNo=<c:out value="${weakPlaceVO.wpNo}"/>"><spring:message code="button.cancel" /></a>
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
|
<a href="/target/weakplace/list.do"><spring:message code="button.cancel" /></a>
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="javascript:fn_save();">
|
||||||
|
<c:if test="${registerFlag == 'create'}">
|
||||||
|
<spring:message code="button.goCreate" />
|
||||||
|
</c:if>
|
||||||
|
<c:if test="${registerFlag == 'modify'}">
|
||||||
|
<spring:message code="button.goModify" />
|
||||||
|
</c:if>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<!-- <div id="sysbtn">
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span class="btn_blue_l">
|
||||||
|
<a href="javascript:fn_selectList();"><spring:message code="button.goList" /></a>
|
||||||
|
<img src="<c:url value='/images/rte/btn_bg_r.gif'/>" style="margin-left:6px;" alt="<spring:message code='button.goList' />"/>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span class="btn_blue_l">
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${registerFlag == 'modify'}">
|
||||||
|
<a href="/target/weakplace/view.do?place1=<c:out value="${weakPlaceVO.place1}"/>&wpNo=<c:out value="${weakPlaceVO.wpNo}"/>"><spring:message code="button.cancel" /></a>
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
|
<a href="/target/weakplace/list.do"><spring:message code="button.cancel" /></a>
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
<img src="<c:url value='/images/rte/btn_bg_r.gif'/>" style="margin-left:6px;" alt="<spring:message code="button.cancel" />"/>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span class="btn_blue_l">
|
||||||
|
<a href="javascript:fn_save();">
|
||||||
|
<c:if test="${registerFlag == 'create'}">
|
||||||
|
<spring:message code="button.goCreate" />
|
||||||
|
<img src="<c:url value='/images/rte/btn_bg_r.gif'/>" style="margin-left:6px;" alt="<spring:message code="button.goCreate" />"/>
|
||||||
|
</c:if>
|
||||||
|
<c:if test="${registerFlag == 'modify'}">
|
||||||
|
<spring:message code="button.goModify" />
|
||||||
|
<img src="<c:url value='/images/rte/btn_bg_r.gif'/>" style="margin-left:6px;" alt="<spring:message code="button.goModify" />"/>
|
||||||
|
</c:if>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div> -->
|
||||||
|
</form:form>
|
||||||
|
|
||||||
|
|
||||||
|
<script type="text/javascript" src="<c:url value='/validator.do'/>"></script>
|
||||||
|
<validator:javascript formName="weakPlaceVO" staticJavascript="false" xhtml="true" cdata="false"/>
|
||||||
|
<script type="text/javaScript" defer="defer">
|
||||||
|
<!--
|
||||||
|
function fn_selectList(){
|
||||||
|
location.href = "<c:url value='/target/weakplace/list.do'/>";
|
||||||
|
}
|
||||||
|
|
||||||
|
function fn_save(){
|
||||||
|
frm = document.detailForm;
|
||||||
|
if(!validateWeakPlaceVO(frm)){
|
||||||
|
return;
|
||||||
|
}else{
|
||||||
|
frm.submit();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function changePlace(place1) {
|
||||||
|
var wpNo = $('#hdWpNo_'+place1).val();
|
||||||
|
|
||||||
|
$('#spanWpNo').html(wpNo);
|
||||||
|
$('#wpNo').val(wpNo);
|
||||||
|
}
|
||||||
|
-->
|
||||||
|
</script>
|
||||||
|
|
@ -0,0 +1,156 @@
|
||||||
|
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||||
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||||
|
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
|
||||||
|
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
|
||||||
|
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
||||||
|
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
||||||
|
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
|
||||||
|
<form:form commandName="searchVO" name="searchForm" method="get">
|
||||||
|
<div class="search2">
|
||||||
|
<ul>
|
||||||
|
<li class="margin-left"><label for="place1"><c:out value="구분" /></label></li>
|
||||||
|
<li class="form_search2 margin-left">
|
||||||
|
<form:select path="place1" cssClass="use">
|
||||||
|
<form:option value="" label="전체" />
|
||||||
|
<c:forEach var="result" items="${placeList}" varStatus="status">
|
||||||
|
<form:option value="${result.code2}" label="${result.codenmYak}" />
|
||||||
|
</c:forEach>
|
||||||
|
</form:select>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span class="btn_blue">
|
||||||
|
<a href="javascript:fn_selectList();"><spring:message code="button.goSearch" /></a>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</form:form>
|
||||||
|
<div id="divPrintArea">
|
||||||
|
<div id ="divPrintTitle" style="display: none;margin: 10px 0 10px 0;">외사취약지</div>
|
||||||
|
<table class="tbl_listview" width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||||
|
<caption class="hidden">외사취약지 현황</caption>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<c:forEach var="item" items="${statsPerPlace}" varStatus="status">
|
||||||
|
<th align="center"><c:out value="${item['CODENM_YAK']}" /></th>
|
||||||
|
</c:forEach>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<c:forEach var="item" items="${statsPerPlace}" varStatus="status">
|
||||||
|
<td align="center"><c:out value="${item['CNT']}" /></td>
|
||||||
|
</c:forEach>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<form:form commandName="weakPlaceList" name="listForm" method="get">
|
||||||
|
<input type="hidden" name="idx" />
|
||||||
|
<div class="pageinfo">
|
||||||
|
<ul class="left">
|
||||||
|
<li>< <c:out value="${today}" />현재 ></li>
|
||||||
|
<li>검색결과<em>${fn:length(weakPlaceList)}</em>건</li>
|
||||||
|
</ul>
|
||||||
|
<ul class="right btn-style">
|
||||||
|
<li><a class="btn_print" href="javascript:fn_print();"></a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<!-- List -->
|
||||||
|
<div id="table">
|
||||||
|
<table class="tbl_listview" width="100%" border="1" cellpadding="0" cellspacing="0">
|
||||||
|
<colgroup>
|
||||||
|
<col width="180">
|
||||||
|
<col width="80">
|
||||||
|
<col width="240">
|
||||||
|
<col width="?">
|
||||||
|
<col width="120">
|
||||||
|
</colgroup>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th align="center"><spring:message code="target.wp.place1" /></th>
|
||||||
|
<th align="center"><spring:message code="target.wp.wpNo" /></th>
|
||||||
|
<th align="center"><spring:message code="target.wp.name" /></th>
|
||||||
|
<th align="center"><spring:message code="target.wp.location" /></th>
|
||||||
|
<th align="center"><spring:message code="target.wp.filename1" /></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${fn:length(weakPlaceList) > 0}">
|
||||||
|
<c:forEach var="result" items="${weakPlaceList}" varStatus="status">
|
||||||
|
<tr>
|
||||||
|
<td align="left"><c:out value="${result.place1str}" /></td>
|
||||||
|
<td align="center" ><c:out value="${result.wpNo}" /></td>
|
||||||
|
<td align="left">
|
||||||
|
<a href="/target/weakplace/view.do?place1=<c:out value="${result.place1}" />&wpNo=<c:out value="${result.wpNo}" />">
|
||||||
|
<c:out value="${result.name}" />
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="left"><c:out value="${result.location}" /></td>
|
||||||
|
<td align="center"><c:out value="${result.filename1viewStr}" /></td>
|
||||||
|
</tr>
|
||||||
|
</c:forEach>
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
|
<tr>
|
||||||
|
<td align="center" colspan="8"><spring:message code="msg.nodata" /></td>
|
||||||
|
</tr>
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<!-- /List -->
|
||||||
|
</form:form>
|
||||||
|
</div>
|
||||||
|
<!-- /PrintArea -->
|
||||||
|
<form:form name="menuForm" method="get">
|
||||||
|
<div class="board_buttom">
|
||||||
|
<ul class="btn-style right">
|
||||||
|
<c:if test="${loginUserVO.authAdmin == 1}" >
|
||||||
|
<li><a class="btn_create" href="javascript:fn_addView();"><spring:message code="button.create" /></a></li>
|
||||||
|
</c:if>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- <div id="sysbtn">
|
||||||
|
<ul>
|
||||||
|
<c:if test="${loginUserVO.authAdmin == 1}" >
|
||||||
|
<li><span class="btn_blue_l">
|
||||||
|
<a href="javascript:fn_addView();"><spring:message code="button.create" /></a>
|
||||||
|
<img src="<c:url value='/images/rte/btn_bg_r.gif'/>" style="margin-left: 6px;" alt="<spring:message code="button.create" />" />
|
||||||
|
</span></li>
|
||||||
|
</c:if>
|
||||||
|
<li>
|
||||||
|
<span class="btn_blue_l">
|
||||||
|
<a href="javascript:fn_print();"><spring:message code="button.print" /></a>
|
||||||
|
<img src="<c:url value='/images/rte/btn_bg_r.gif'/>" style="margin-left:6px;" alt="<spring:message code="button.print" />"/>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div> -->
|
||||||
|
</form:form>
|
||||||
|
|
||||||
|
<script type="text/javaScript" defer="defer">
|
||||||
|
<!--
|
||||||
|
/* 글 목록 화면 function */
|
||||||
|
function fn_selectList() {
|
||||||
|
document.searchForm.action = "<c:url value='/target/weakplace/list.do'/>";
|
||||||
|
document.searchForm.submit();
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 글 등록 화면 function */
|
||||||
|
function fn_addView() {
|
||||||
|
document.menuForm.action = "<c:url value='/target/weakplace/add.do'/>";
|
||||||
|
document.menuForm.submit();
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 출력 */
|
||||||
|
function fn_print(){
|
||||||
|
var divPrintTitle = document.getElementById("divPrintTitle");
|
||||||
|
divPrintTitle.style.display = "inline";
|
||||||
|
printDiv($("#divPrintArea").html());
|
||||||
|
divPrintTitle.style.display = "none";
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
</script>
|
||||||
|
|
@ -0,0 +1,126 @@
|
||||||
|
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||||
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||||
|
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
|
||||||
|
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator"%>
|
||||||
|
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
||||||
|
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
||||||
|
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
||||||
|
<% pageContext.setAttribute("newline", "\n"); %>
|
||||||
|
<style type="text/css">
|
||||||
|
.img {
|
||||||
|
max-width: 570px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<div id="divPrintArea">
|
||||||
|
<div id ="divPrintTitle" style="display: none;margin: 10px 0 10px 0;">외사취약지</div>
|
||||||
|
<div id="table">
|
||||||
|
<table class="tbl_add">
|
||||||
|
<colgroup>
|
||||||
|
<col width="150"/>
|
||||||
|
<col width="?"/>
|
||||||
|
</colgroup>
|
||||||
|
<tr>
|
||||||
|
<th><label for="title"><spring:message code="target.wp.wpNoStr" /></label></th>
|
||||||
|
<td><c:out value="${weakPlaceVO.wpNoStr}" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><label for="title"><spring:message code="target.wp.name" /></label></th>
|
||||||
|
<td><c:out value="${weakPlaceVO.name}" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><label for="title"><spring:message code="target.wp.location" /></label></th>
|
||||||
|
<td><c:out value="${weakPlaceVO.location}" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><label for="title"><spring:message code="target.wp.comments" /></label></th>
|
||||||
|
<td><c:out value="${fn:replace( weakPlaceVO.comments, newline, '<br/>')}" escapeXml="false" /></td>
|
||||||
|
</tr>
|
||||||
|
<c:if test="${fn:length(weakPlaceVO.filename1) > 0}">
|
||||||
|
<tr>
|
||||||
|
<th><label for="contents"><spring:message code="target.wp.filename1" /></label></th>
|
||||||
|
<td>
|
||||||
|
<c:if test="${filename1Ext == 'jpg' or filename1Ext == 'bmp' or filename1Ext == 'gif'}">
|
||||||
|
<img src="<c:url value='/target/weakplace/download.do'>
|
||||||
|
<c:param name="place1" value="${weakPlaceVO.place1}"/>
|
||||||
|
<c:param name="wpNo" value="${weakPlaceVO.wpNo}"/>
|
||||||
|
<c:param name="seq" value="1"/>
|
||||||
|
</c:url>" alt="<spring:message code='target.wp.filename1' />" class="img" /><br />
|
||||||
|
</c:if>
|
||||||
|
<a href="<c:url value='/target/weakplace/download.do'>
|
||||||
|
<c:param name="place1" value="${weakPlaceVO.place1}"/>
|
||||||
|
<c:param name="wpNo" value="${weakPlaceVO.wpNo}"/>
|
||||||
|
<c:param name="seq" value="1"/>
|
||||||
|
</c:url>" target="_blank">
|
||||||
|
<c:out value="${weakPlaceVO.filename1}"/>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</c:if>
|
||||||
|
<c:if test="${fn:length(weakPlaceVO.filename2) > 0}">
|
||||||
|
<tr>
|
||||||
|
<th><label for="contents"><spring:message code="target.wp.filename2" /></label></th>
|
||||||
|
<td>
|
||||||
|
<a href="<c:url value='/target/weakplace/download.do'>
|
||||||
|
<c:param name="place1" value="${weakPlaceVO.place1}"/>
|
||||||
|
<c:param name="wpNo" value="${weakPlaceVO.wpNo}"/>
|
||||||
|
<c:param name="seq" value="2"/>
|
||||||
|
</c:url>" target="_blank">
|
||||||
|
<c:out value="${weakPlaceVO.filename2}"/>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</c:if>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<form:form commandName="weakPlaceVO" name="menuForm" method="post">
|
||||||
|
<form:hidden path="place1" />
|
||||||
|
<form:hidden path="wpNo" />
|
||||||
|
<div class="boardviewinfo">
|
||||||
|
<ul class="right btn-style">
|
||||||
|
<c:if test="${loginUserVO.authAdmin == 1}">
|
||||||
|
<li>
|
||||||
|
<a href="javascript:fn_modify();"><spring:message code="button.goModify" /></a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="javascript:fn_delete();"><spring:message code="button.goDelete" /></a>
|
||||||
|
</li>
|
||||||
|
</c:if>
|
||||||
|
<li>
|
||||||
|
<a href="javascript:fn_print();"><spring:message code="button.print" /></a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="/target/weakplace/list.do"><spring:message code="button.goList" /></a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</form:form>
|
||||||
|
|
||||||
|
|
||||||
|
<script type="text/javascript" defer="defer">
|
||||||
|
<!--
|
||||||
|
/* 수정 화면 function */
|
||||||
|
function fn_modify() {
|
||||||
|
document.menuForm.method = "get";
|
||||||
|
document.menuForm.action = "<c:url value='/target/weakplace/update.do'/>";
|
||||||
|
document.menuForm.submit();
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 삭제 화면 function */
|
||||||
|
function fn_delete() {
|
||||||
|
if (confirm("<spring:message code="confirm.msg.askDel" />")){
|
||||||
|
document.menuForm.method = "post";
|
||||||
|
document.menuForm.action = "<c:url value='/target/weakplace/delete.do'/>";
|
||||||
|
document.menuForm.submit();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 출력 */
|
||||||
|
function fn_print(){
|
||||||
|
var divPrintTitle = document.getElementById("divPrintTitle");
|
||||||
|
divPrintTitle.style.display = "inline";
|
||||||
|
printDiv($("#divPrintArea").html());
|
||||||
|
divPrintTitle.style.display = "none";
|
||||||
|
}
|
||||||
|
-->
|
||||||
|
</script>
|
||||||
Loading…
Reference in New Issue