File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
<%--
Class Name : EgovQustnrTmplatManageDetail.jsp
Description : 설문템플릿 상세보기
Modification Information
수정일 수정자 수정내용
------- -------- ---------------------------
2008.03.09 장동한 최초 생성
2011.08.31 JJY 경량환경 버전 생성
author : 공통서비스 개발팀 장동한
since : 2009.03.09
--%>
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<c:set var="ImgUrl" value="/images/egovframework/com/uss/olp/qtm/"/>
<%pageContext.setAttribute("crlf", "\r\n"); %>
<!DOCTYPE html>
<html>
<head>
<title>설문템플릿 상세조회</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="content-language" content="ko">
<script type="text/javascript" src="<c:url value="/validator.do"/>"></script>
<validator:javascript formName="qustnrTmplatManageVO" staticJavascript="false" xhtml="true" cdata="false"/>
<script type="text/javaScript" language="javascript">
$( document ).ready(function() {
fn_egov_init_QustnrTmplatManage();
});
/* ********************************************************
* 초기화
******************************************************** */
function fn_egov_init_QustnrTmplatManage(){
}
/* ********************************************************
* 목록 으로 가기
******************************************************** */
function fn_egov_list_QustnrTmplatManage(){
location.href = "<c:url value='/uss/olp/qtm/EgovQustnrTmplatManageList.do'/>";
}
/* ********************************************************
* 저장처리화면
******************************************************** */
function fn_egov_modify_QustnrTmplatManage(){
var vFrom = document.QustnrTmplatManageForm;
vFrom.cmd.value = '';
vFrom.action = "<c:url value='/uss/olp/qtm/EgovQustnrTmplatManageModify.do'/>";;
vFrom.submit();
}
/* ********************************************************
* 삭제처리
******************************************************** */
function fn_egov_delete_QustnrTmplatManage(){
var vFrom = document.qustnrTmplatManageVO;
if(confirm("삭제시 설문템플릿, 설문항목, 설문문항, 설문응답자관리, 설문조사(설문결과)\n정보가 함께 삭제됩니다!\n\n삭제 하시겠습니까?")){
vFrom.cmd.value = 'del';
vFrom.action = "<c:url value='/uss/olp/qtm/EgovQustnrTmplatManageDetail.do'/>";
vFrom.submit();
}else{
vFrom.cmd.value = '';
}
}
function fnList(){
document.searchForm.submit();
}
/* ********************************************************
* 저장처리화면
******************************************************** */
function fn_egov_save_QustnrTmplatManage(form){
if(confirm("<spring:message code='common.save.msg' />")){
if(!validateQustnrTmplatManageVO(form)){
return;
}else{
form.submit();
}
}
}
/* ********************************************************
* 선택이미지 미리보기
******************************************************** */
function fnImgChange(obj){
if(obj.value != "") {
if(obj.value.search(/(gif)/)!=-1 || obj.value.search(/(jpg)/)!=-1 || obj.value.search(/(bmp)/)!=-1 || obj.value.search(/(GIF)/)!=-1 || obj.value.search(/(JPG)/)!=-1 ){
//document.getElementById("IMG_VIEW").src = obj.value;
}else{
alert('GIF/JPG 형식의 이미지만 업로드 가능합니다!');
obj.select();
document.execCommand('Delete');
obj.focus();
return;
}
}{return;}
}
</script>
<style> .default_tablestyle table{border: 1px solid #dddddd;}</style>
</head>
<body>
<form:form commandName="qustnrTmplatManageVO" name="qustnrTmplatManageVO" action="${pageContext.request.contextPath}/uss/olp/qtm/EgovQustnrTmplatManageModifyActor.do" method="post" enctype="multipart/form-data">
<input name="qestnrTmplatId" type="hidden" value="${qustnrTmplatManageVO.qestnrTmplatId} ">
<input name="cmd" type="hidden" value="<c:out value='save'/>">
<div class="ad_content">
<div class="ad_con_head">
<div class="ad_head_text">
<p class="today_txt">설문템플릿 상세보기</p>
<div class="ad_head_ment">
<p class="today_last_txt"><span id="cnt_cate_list"></span></p>
</div>
</div>
</div>
<div class="ad_subcon">
<div class="main1_div2">
<table class="main1_table">
<tr>
<th class="td_title1"><span class="star_t">*</span>템플릿유형</th>
<td colspan="3">
<form:input path="qestnrTmplatTy" size="70" maxlength="255" cssClass="txaIpt" title="템플릿유형 입력" />
<form:errors path="qestnrTmplatTy"/>
</td>
</tr>
<tr>
<th class="td_title1"><span class="star_t">*</span>템플릿유형</th>
<td colspan="3">
<c:if test="${qustnrTmplatManageVO.qestnrTmplatImagepathnm ne null}">
<c:if test="${qustnrTmplatManageVO.qestnrTmplatImagepathnm ne ''}">
<img src="${pageContext.request.contextPath}/uss/olp/qtm/EgovQustnrTmplatManageImg.do?qestnrTmplatId=${qustnrTmplatManageVO.qestnrTmplatId}" id="IMG_VIEW" name="IMG_VIEW" alt="이미지미리보기" title="이미지미리보기" align="middle">
</c:if>
</c:if>
<input type="file" id="qestnrTmplatImage" name="qestnrTmplatImage" onChange="fnImgChange(this)" title="템플릿유형이미지 첨부" style="height: unset; text-indent: unset;"/>
<br/><font color="red">가로:65px 세로:50px 포멧:JPGE 형식으로로 업로드 해주세요</font>
</td>
</tr>
<tr>
<th class="td_title1"><span class="star_t"></span>템플릿설명</th>
<td colspan="3" class="td_txt_exist">
<textarea id="qestnrTmplatCn" name="qestnrTmplatCn" class="textarea" cols="75" rows="8" title="템플릿설명" style="width:99%;">${qustnrTmplatManageVO.qestnrTmplatCn}</textarea>
<form:errors path="qestnrTmplatCn"/>
</td>
</tr>
<tr>
<th class="td_title1"><span class="star_t"></span>템플릿파일(경로)</th>
<td colspan="3">
<form:input path="qestnrTmplatCours" size="70" cssClass="txaIpt" title="템플릿파일 경로 입력"/>
<form:errors path="qestnrTmplatCours"/>
</td>
</tr>
</table>
</div>
<div class="main1_btn_div">
<button class="main1_btn" onclick="fnList(); return false;" >목 록</button>
<button class="main1_btn main1_delete_btn" id="main1_auth_delete_btn" onclick="fn_egov_delete_QustnrTmplatManage(); return false;" >삭 제 </button>
<button class="main1_btn main1_save_btn" id="main1_save_btn" onclick="fn_egov_save_QustnrTmplatManage(document.forms.qustnrTmplatManageVO); return false;" >수 정 </button>
</div>
</div>
</div>
</form:form>
<form name="searchForm" id="searchForm" method="get" action="<c:url value='/uss/olp/qtm/EgovQustnrTmplatManageList.do'/>" ></form>
</body>
</html>