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 : EgovQustnrTmplatManageModify.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="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<c:set var="ImgUrl" value="/images/egovframework/com/uss/olp/qtm/"/>
<!DOCTYPE html>
<html>
<head>
<title>설문템플릿 수정</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="content-language" content="ko">
<link rel="stylesheet" href="<c:url value='/'/>css/common.css" type="text/css" >
<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">
/* ********************************************************
* 초기화
******************************************************** */
function fn_egov_init_QustnrTmplatManage(){
document.getElementById("qestnrTmplatTy").value = "${resultList[0].qestnrTmplatTy}";
document.getElementById("qestnrTmplatCours").value = "${resultList[0].qestnrTmplatCours}";
}
/* ********************************************************
* 목록 으로 가기
******************************************************** */
function fn_egov_list_QustnrTmplatManage(){
location.href = "<c:url value='/uss/olp/qtm/EgovQustnrTmplatManageList.do'/>";
}
/* ********************************************************
* 저장처리화면
******************************************************** */
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 onLoad="fn_egov_init_QustnrTmplatManage();">
<!-- 자바스크립트 경고 태그 -->
<noscript class="noScriptTitle">자바스크립트를 지원하지 않는 브라우저에서는 일부 기능을 사용하실 수 없습니다.</noscript>
<div id="content">
<!-- 현재위치 네비게이션 시작 -->
<div id="cur_loc">
<div id="cur_loc_align">
<ul>
<li>HOME</li>
<li>></li>
<li>포털서비스관리</li>
<li>></li>
<li>설문관리</li>
<li>></li>
<li><strong>설문템플릿</strong></li>
</ul>
</div>
</div>
<div id="content_field"><!--contents start-->
<!-- 상단타이틀 -->
<form:form commandName="qustnrTmplatManageVO" name="qustnrTmplatManageVO" action="${pageContext.request.contextPath}/uss/olp/qtm/EgovQustnrTmplatManageModifyActor.do" method="post" enctype="multipart/form-data">
<!-- sub title start -->
<div><h2>설문템플릿 수정</h2></div>
<!-- sub title end -->
<!--detail area start -->
<div class="search_service">
<div class="default_tablestyle">
<table summary="설문템플릿 수정정보를 제공한다.">
<caption>설문템플릿 수정정보</caption>
<tr>
<td class="td_width"><label for="qestnrTmplatTy">템플릿유형</label>
<img src="<c:url value='/'/>images/required.gif" alt="필수항목" title="필수항목" width="15" height="15"/></td>
<td class="td_content">
<form:input path="qestnrTmplatTy" size="70" cssClass="txaIpt" title="템플릿유형 입력"/>
<form:errors path="qestnrTmplatTy"/>
</td>
</tr>
<tr>
<td class="td_width"><label for="qestnrTmplatImage">템플릿유형</label></td>
<td class="td_content">
<c:if test="${resultList[0].qestnrTmplatImagepathnm ne null}">
<c:if test="${resultList[0].qestnrTmplatImagepathnm ne ''}">
<img src="${pageContext.request.contextPath}/uss/olp/qtm/EgovQustnrTmplatManageImg.do?qestnrTmplatId=${resultList[0].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="템플릿유형이미지 첨부" />
<br/><font color="red">가로:65px 세로:50px 포멧:JPGE 형식으로로 업로드 해주세요</font>
</td>
</tr>
<tr>
<td class="td_width"><label for="qestnrTmplatCn">템플릿설명</label>
<img src="<c:url value='/'/>images/required.gif" alt="필수항목" title="필수항목" width="15" height="15"/>
</td>
<td class="td_content">
<textarea id="qestnrTmplatCn" name="qestnrTmplatCn" class="textarea" cols="75" rows="8" title="템플릿설명" style="width:99%;">${resultList[0].qestnrTmplatCn}</textarea>
<form:errors path="qestnrTmplatCn"/>
</td>
</tr>
<tr>
<td class="td_width"><label for="qestnrTmplatCours">템플릿파일(경로)</label>
<img src="<c:url value='/'/>images/required.gif" alt="필수항목" title="필수항목" width="15" height="15"/>
</td>
<td class="td_content">
<form:input path="qestnrTmplatCours" size="70" cssClass="txaIpt" title="템플릿파일 경로 입력"/>
<form:errors path="qestnrTmplatCours"/>
</td>
</tr>
</table>
</div>
</div>
<!--detail area end -->
<!-- 목록/저장버튼 시작-->
<table border="0" cellspacing="0" cellpadding="0" align="center"><tr><td>
<div class="buttons" align="center" style="margin-bottom:100px">
<a href="<c:url value='/uss/olp/qtm/EgovQustnrTmplatManageList.do'/>">목록</a>
<a href="#" onclick="fn_egov_save_QustnrTmplatManage(document.qustnrTmplatManageVO); return false;">저장</a>
</div>
</td></tr></table>
<!-- 목록/저장버튼 끝-->
<input name="qestnrTmplatId" type="hidden" value="${resultList[0].qestnrTmplatId} ">
<input name="cmd" type="hidden" value="<c:out value='save'/>">
</form:form>
</div><!-- contents end -->
</body>
</html>