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 : AddrAgencyModify.jsp
* @Description : AddrAgencyModify 화면
* @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">
$( document ).ready(function(){
<c:if test="${!empty mjPhoneMemberVO.phmId}">
$('.no_modi').find('input').prop('readonly', true);
$('.userId').find('input').prop('readonly', true);
/* $('.contWrap').find('textarea').prop('readonly', true); */
/* $('select[name=agentCode] option').not(":selected").attr("disabled", "disabled"); */
</c:if>
<c:if test="${empty mjPhoneMemberVO.phmId}">
$('.no_modi').remove();
//문자 바이트수 계산하기
var ibyte = 0;
$('textarea[name=smsTxt]').keyup(function(e){
ibyte = calByte.getByteLength($(this).val());
if(ibyte > 200){
alert("내용은 200Byte를 넣을수 없습니다.");
$('textarea[name=smsTxt]').val(calByte.cutByteLength($(this).val(), 200));
$('.byte').find('span').html(calByte.getByteLength($('textarea[name=smsTxt]').val()));
return false ;
}else{
$('.byte').find('span').html( ibyte) ;
}
});//문자 바이트수 계산하기 끝
</c:if>
});
/* 글 저장 function */
function goWebSave1(){ //method_parm :관리자로그 메소드에서 사용.(파일업로드 부분 공통으로 사용하여, 페이지 구분을 위해)
if(!confirm("주소록 대행 등록을 하시겠습니까?")) {
return;
}
var url = "/uss/ion/addragency/updateAddrAgencyAjax.do";
var data = new FormData(document.writeForm == undefined ? document.board : document.writeForm);
_fileForm2.forEach(function(obj, idx) {
if (obj) data.append("file0", obj.fileObj);
});
$.ajax({
type: "POST",
enctype: 'multipart/form-data',
url: url,
data: data,
dataType:'json',
async: false,
processData: false,
contentType: false,
cache: false,
//timeout: 600000,
success: function (returnData, status) {
//alert(returnData.message);
if(status == 'success'){ // status 확인 필요한가. 석세스 안뜨면 에러 가지 않나
if("success"==returnData.result){
alert("수정 되었습니다.");
location.href="/uss/ion/addragency/selectAddrAgencyList.do";
}else{
alert(returnData.message);
return;
}
} else if(status== 'fail'){
alert("저장에 실패하였습니다. !!");
}
},
error: function (request,status,error) {
alert("저장에 실패하였습니다.");
console.log("ERROR : ", e);
}
});
}
function fnSelectMber(mberId) {
document.memForm.mberId.value = mberId;
window.open("about:blank", 'popupSelectMber', 'width=900, height=1800, top=100, left=100, fullscreen=no, menubar=no, status=no, toolbar=no, titlebar=yes, location=no, scrollbar=no');
document.memForm.action = "<c:url value='/uss/umt/user/EgovGnrlselectedUserView.do'/>";
document.memForm.target = "popupSelectMber";
document.memForm.submit();
}
</script>
</head>
<body>
<form name="writeForm" id="writeForm" method="post">
<input type="hidden" name="addrAgencyId" value="${AddrAgencyVO.addrAgencyId}" />
<input type="hidden" name="addrGrpNm" value="${AddrAgencyVO.addrGrpNm}" />
<input type="hidden" name="registerId" value="${AddrAgencyVO.registerId}" />
<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 class="userId">
<th>아이디</th>
<td colspan="3"><a href="#" onclick="javascript:fnSelectMber('<c:out value="${AddrAgencyVO.registerId}"/>'); return false;">${AddrAgencyVO.registerId}</a>
<%-- <input type="text" name="registerId" value="${AddrAgencyVO.registerId}" title="아이디" maxlength="100" /> --%>
</td>
</tr>
<tr class="userId">
<th>주소록 종류</th>
<td colspan="3">
<c:choose>
<c:when test="${AddrAgencyVO.type eq 'F'}">
팩스 주소록
</c:when>
<c:otherwise>
문자 주소록
</c:otherwise>
</c:choose>
</td>
</tr>
<tr class="userId">
<th>신규 그룹명</th>
<td colspan="3">${AddrAgencyVO.addrGrpNm}
<%-- <input type="text" name="registerId" value="${AddrAgencyVO.addrGrpNm}" title="아이디" maxlength="100" /> --%>
</td>
</tr>
<tr class="userId">
<th>휴대폰 번호</th>
<td colspan="3">${AddrAgencyVO.addrPhoneNo}
<%-- <input type="text" name="registerId" value="${AddrAgencyVO.addrPhoneNo}" title="아이디" maxlength="100" /> --%>
</td>
</tr>
<tr class="userId">
<th>주소록 파일</th>
<!--
<td colspan="3">${AddrAgencyVO.atchFileId}
<%-- <input type="text" name="registerId" value="${AddrAgencyVO.atchFileId}" title="아이디" maxlength="100" /> --%>
</td>
-->
<td colspan="3">
<c:if test="${AddrAgencyVO.atchFileId ne ''}">
<c:import url="/cmm/fms/selectAddrAgencyFileInfs.do" charEncoding="utf-8">
<c:param name="param_atchFileId" value="${AddrAgencyVO.atchFileId}" />
</c:import>
</c:if>
</td>
</tr>
<tr class="userId">
<th>요청사항</th>
<td colspan="3">${AddrAgencyVO.requestTxt}
<%-- <input type="text" name="registerId" value="${AddrAgencyVO.requestTxt}" title="아이디" maxlength="100" /> --%>
</td>
</tr>
<tr>
<th>처리상태</th>
<td colspan="3">
<ec:code codeId="ITN043" code="${AddrAgencyVO.processStatus}" />
</td>
</tr>
<tr>
<th>처리일자<br/>(처리상태변경일자)</th>
<td colspan="3">
${AddrAgencyVO.processDe}
</td>
</tr>
<!--
<tr>
<th>삭제여부</th>
<td colspan="3">
<ec:select codeId="ITN023" name="delFlag" id="delFlag" css="class='select'" selectedValue="${AddrAgencyVO.delFlag}" />
</td>
</tr>
-->
<tr>
<th>등록일자</th>
<td colspan="3">
${AddrAgencyVO.registPnttm}
</td>
</tr>
<%--
<c:if test="${AddrAgencyVO.processStatus ne 'E'}">
<tr>
<th><span class="reqArea">대리 등록 파일 첨부</span></th>
<td class="upload_area">
<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: 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>
<tbody id="tbody_fiielist">
<c:forEach var="fileList" items="${fileList}" varStatus="status">
<tr class="item_${fileList.fmsImageFile}_${fileList.fileSn} uploaded_obj">
<input type="hidden" name="fileSize" class="item_file_size" value="${fileList.fileSize}">
<td class="file_name">
<img src="/direct/img/upload_hwp_img.png" alt="" />
<span class="file_name_text">${fileList.orignlFileNm}</span>
</td>
<td>
<span class="file_size_text" value="<c:out value="${fileList.fileSize}"/>"></span>
</td>
<td>
<c:out value="${fileList.regdt}"/>
</td>
<td>
<input type="button" class="delBtn" onclick="delAtchFile('${fileList.fmsImageFile}', '${fileList.fileSn}'); return false;">
</td>
</tr>
</c:forEach>
</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>
</td>
</tr>
</c:if>
--%>
</tbody>
</table>
<div class="btnWrap">
<input type="button" class="btnType1 bg_888888" value="목 록" onclick='location.href="/uss/ion/addragency/selectAddrAgencyList.do";'>
<c:if test="${AddrAgencyVO.processStatus ne 'E'}">
<%--<input type="button" class="btnType1" value="대리등록" onclick="goWebSave1(); return false;">--%>
<div style="float: left; color: red; margin-top: 10px;">* 회원상세 > 로그인 > 주소록대량등록 기능 활용 등록처리후 "등록완료" 버튼 실행</div>
<input type="button" class="btnType1" value="등록완료" onclick="goWebSave1(); return false;">
</c:if>
</div>
</div>
</div>
</form>
<form name="memForm" id="memForm" method="post">
<input name="mberId" type="hidden" />
</form>
</body>
</html>