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
File name
Commit message
Commit date
<%
/**
* @Class Name : EgovHpcmRegist.jsp
* @Description : EgovHpcmRegist 화면
* @Modification Information
* @
* @ 수정일 수정자 수정내용
* @ ------- -------- ---------------------------
* @ 2009.02.01 박정규 최초 생성
* 2016.06.13 김연호 표준프레임워크 v3.6 개선
*
* @author 공통서비스팀
* @since 2009.02.01
* @version 1.0
* @see
*
*/
%>
<%@ 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="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="ec" uri="/WEB-INF/tld/ecnet_tld.tld"%>
<!DOCTYPE html>
<html lang="ko">
<head>
<title>팝업창관리 관리</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<script type="text/javascript" src="<c:url value='/js/EgovMultiFile.js'/>"></script>
<script type="text/javaScript" language="javascript">
var uploadFileCount = 0;
function chkCustomType(val){
if(val == '01'){
uploadFileCount = "0";
}else if(val == '02'){
uploadFileCount = "1";
}else if(val == '03'){
uploadFileCount = "3";
}else if(val == '04'){
uploadFileCount = "3";
}
$("input[name=limitcount]").val(uploadFileCount);
$('.limitcount_li').text(uploadFileCount);
}
function goList(){
var form = document.searchVO;
form.submit();
/* location.href = "/uss/ion/custom/selectMjonMsgCustomList.do"; */
}
/* 등록 */
function fn_insert(){
var frm = document.writeForm;
if(frm.customPhoneNo.value == ''){
alert("연락처는 필수입니다.");
return;
}
if(frm.customRequest.value == ''){
alert("요청사항은 필수입니다.");
return;
}
var data = new FormData(frm);
_fileForm2.forEach(function(obj, idx) {
if (obj) data.append("file"+idx, obj.fileObj);
});
$.ajax({
type: "POST",
enctype: 'multipart/form-data',
url: "/uss/ion/msg/insertMsgCustomInfoAjax.do",
data: data,
dataType:'json',
async: false,
processData: false,
contentType: false,
cache: false,
//timeout: 600000,
success: function (returnData, status) {
if(status == 'success'){
alert("저장 되었습니다.");
goList();
} else if(status== 'fail'){
alert("저장에 실패하였습니다. !!");
}
},
error: function (e) { alert("저장에 실패하였습니다."); console.log("ERROR : ", e); }
});
}
</script>
</head>
<body>
<form name="writeForm" id="writeForm" method="post">
<div class="contWrap">
<div class="pageTitle">
<div class="pageIcon"><img src="/pb/img/pageTitIcon4.png" alt=""></div>
<h2 class="titType1 c_222222 fwBold">맞춤제작 이미지 (수정)</h2>
<p class="tType6 c_999999">맞춤제작 이미지를 생성/수정 할 수 있습니다.</p>
</div>
<div class="pageCont">
<table class="tbType2">
<colgroup>
<col style="width: 20%">
<col style="width: 80%">
</colgroup>
<tbody>
<tr>
<th>아이디</th>
<td colspan="3">
<input type="text" name="userId" value="${mjonMsgCustomVO.userId}" title="아이디" maxlength="100" />
</td>
</tr>
<tr>
<th>제작비용</th>
<td colspan="3">
<ec:radio codeId="ITN030" name="customType" id="customType" script="onchange=chkCustomType(this.value)" selectedValue="01" />
</td>
</tr>
<tr>
<th><span class="reqArea">연락처</span></th>
<td colspan="3">
<input type="text" name="customPhoneNo" value="${mjonMsgCustomVO.customPhoneNo}" title="연락처" maxlength="100" />
</td>
</tr>
<tr>
<th><span class="reqArea">요청사항</span></th>
<td colspan="3">
<input type="text" name="customRequest" value="${mjonMsgCustomVO.customRequest}" title="요청사항" maxlength="100" />
</td>
</tr>
<tr>
<th>파일 첨부</th>
<td class="upload_area">
<input type="hidden" name="limitcount" value="" />
<div class="file_upload_box no_img_box fileWrap">
<table>
<colgroup>
<col style="width: 60%">
<col style="width: 10%">
<col style="width: 20%">
<col style="width: 10%">
</colgroup>
<thead>
<tr>
<th>파일명</th>
<th>크기</th>
<th>등록일시</th>
<th>삭제</th>
</tr>
</thead>
</table>
</div>
<div class="fileWrap fileAfter file_list_div">
<table>
<colgroup>
<col style="width: 50%">
<col style="width: 20%">
<col style="width: 20%">
<col style="width: 10%">
</colgroup>
<thead>
<tr>
<th>파일명</th>
<th>크기</th>
<th>등록일시</th>
<th>삭제</th>
</tr>
</thead>
<tbody id="tbody_fiielist">
</tbody>
</table>
</div>
<div class="fileInfo file_list_div">
<ul class="inline">
<li>
<p>최대 <span class="c_e40000 fwBold limitcount_li">1</span>개 | <span class="c_e40000 fwBold upload_number">50MB</span>제한</p>
</li>
<li>
<p><span class="c_456ded fwBold totalfileCount">1</span>개 | <span class="c_456ded fwBold totalfileSize">72.01KB</span></p>
</li>
</ul>
</div>
<div class="uploadBtm">
<input type="file" name="file_temp" id="file_temp" class="uploadFile">
</div>
</td>
</tr>
</tbody>
</table>
<div class="btnWrap">
<input type="button" class="btnType1 bg_888888" value="목 록" onclick="goList(); return false;">
<input type="button" class="btnType1" value="저 장" onclick="fn_insert(); return false;">
</div>
</div>
</div>
</form>
<form name="searchVO" id="searchVO" method="post" action="/uss/ion/custom/selectMjonMsgCustomList.do">
<input type="hidden" name="searchSortCnd" value="<c:out value="${searchVO.searchSortCnd}" />"/>
<input type="hidden" name="searchSortOrd" value="<c:out value="${searchVO.searchSortOrd}" />"/>
<input type="hidden" name="searchCondition" value="<c:out value='${searchVO.searchCondition}'/>"/>
<input type="hidden" name="searchKeyword" value="<c:out value='${searchVO.searchKeyword}'/>"/>
<input type="hidden" name="pageUnit" value="<c:out value='${searchVO.pageUnit}'/>"/>
<input type="hidden" name="PageIndex" value="<c:out value='${searchVO.pageIndex}' default='1' /> "/>
</form>
</body>
</html>