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 : FmsFileModify.jsp
Description : 첨부파일 수정 페이지
Modification Information
수정일 수정자 수정내용
------- -------- ---------------------------
2009.09.16 장동한 최초 생성
author : 공통서비스 개발팀 장동한
since : 2009.09.16
Copyright (C) 2009 by MOPAS All right reserved.
--%>
<%@ 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(){
});
/* pagination 페이지 링크 function */
function goList(){
document.searchForm.submit();
}
/* 등록시 값 확인 */
function fn_checkForm(flag) {
frm = document.writeForm;
if(frm.fmsNm.value=="") {
alert("제목을 입력해 주십시오");
frm.fmsNm.focus();
return false;
}
if(frm.content.value=="") {
alert("내용을 입력해 주십시오");
frm.content.focus();
return false;
}
if(flag==1){
if($('.td_txt_exist').find('span').length==0){
alert("첨부파일을 추가해 주십시오");
return false;
}
}
return true;
}
/* 글 등록 function */
function fn_mainzone_insert() {
frm = document.writeForm;
frm.action = "<c:url value='/uss/ion/fms/fmsFileInsert.do'/>";
if(fn_checkForm(1)){
frm.submit();
}
}
/* 배너 삭제 function */
function fn_delete() {
var msg;
msg = "해당 정보를 삭제하시겠습니까?";
if (confirm(msg)) {
frm = document.writeForm;
frm.del.value = frm.fmsId.value ;
frm.action = "<c:url value='/uss/ion/cert/CertSentDelete.do'/>";
frm.submit();
}
}
/* 문서 파일 팝업 */
var fileupladOpener = null;
function fileUploadPopup(){
var docWidth = screen.availWidth;
var docHeight = screen.availHeight;
var scX = window.screenX||window.screenLeft||0;
var scY = window.screenY||window.screenTop||0;
var popupX = scX + (docWidth - 185) / 2;
var popupY = scY + (docHeight - 195) / 2;
fileupladOpener = window.open('', 'fileUploadPopup', "width=185, height=195, left="+popupX+", top="+popupY, "location = no","status= no","toolbars= no");
document.writeForm.method = "post";
//document.writeForm.action = "/uss/itsm/ip/IpFilePopup.do";
document.writeForm.action = "/uss/ion/fms/fmsfileUploadPopup.do";
document.writeForm.target = "fileUploadPopup" ;
document.writeForm.submit();
}
</script>
</head>
<body>
<form name="writeForm" enctype="multipart/form-data" method="post">
<input type="hidden" name="selectedId" />
<input type="hidden" name="del" />
<input type="hidden" name="fmsId" value="${certFileList[0].certId}" />
<input type="hidden" name="certId" value="${certFileList[0].certId}" />
<input type="hidden" name="fmsImageFile" value="${certFileList[0].atchFileId}" /> <!-- 파일업로드 추가 업로드시 사용 -->
<input type="hidden" name="atchFileNece" id="atchFileNece" /> <!-- 첨부파일 필수체크 -->
<input type="hidden" name="menuName" value="certEtc" /> <!-- 파일업로드 구분 url -->
<input type="hidden" name="certType" value="01" /> <!-- 발신번호인증 -->
<!-- 드래그앤 드롭 파라미터 -->
<input type="hidden" name="limitcount" value="50" />
<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><span class="reqArea">아이디</span></th>
<td colspan="3">
<input type="text" name="userId" value="${certFileList[0].userId}" title="userId" maxlength="100" />
</td>
</tr>
<tr>
<th><span class="reqArea">발신번호</span></th>
<td colspan="3">
<input type="text" numberonly name="sentPhoneNumber" value="${certFileList[0].sentPhoneNumber}" title="sentPhoneNumber" maxlength="100" />
</td>
</tr>
<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.atchFileId}_${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="" />
<a href="/cmm/fms/FileDown.do?atchFileId=${fileList.atchFileId}&fileSn=${fileList.fileSn}">
<span class="file_name_text">${fileList.orignlFileNm}</span>
</a>
</td>
<td>
<span class="file_size_text" value="<c:out value="${fileList.fileSize}"/>"></span>
</td>
<td>
<c:out value="${fileList.frstRegistPnttm}"/>
</td>
<td>
<input type="button" class="delBtn" onclick="delAtchFile('${fileList.atchFileId}', '${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>
<tr>
<th class="td_title1"><span class="star_t"></span>최종수정일</th>
<td colspan="3">
${certFileList[0].frstRegistPnttm }
</td>
</tr>
<tr>
<th class="td_title1"><span class="star_t"></span>작성자</th>
<td colspan="3">
${certFileList[0].frstRegisterId }
</td>
</tr>
</tbody>
</table>
<div class="btnWrap">
<input type="button" class="btnType1 bg_888888" value="목 록" onclick="goList(); return false;">
<c:if test="${!empty certFileList}">
<input type="button" class="btnType1" value="삭 제" onclick="fn_delete(); return false;">
<input type="button" class="btnType1" value="수 정" onclick="goSave('certFile_U'); return false;">
</c:if>
<c:if test="${empty certFileList}">
<!-- <input type="button" class="btnType1" value="저 장" onclick="goSave('fmsFile_I'); return false;"> -->
<input type="button" class="btnType1" value="저 장" onclick="goSave('certFile_I'); return false;">
</c:if>
</div>
</div>
</div>
</form>
<form name="searchForm" id="searchForm" method="get" action="<c:url value='/uss/ion/cert/CertSentList.do'/>" >
<input name="searchCondition" type="hidden" value="${searchVO.searchCondition}" />
<input name="searchKeyword" type="hidden" value="${searchVO.searchKeyword}"/>
<input name="pageIndex" type="hidden" value="${searchVO.pageIndex}"/>
<input name="pageUnit" type="hidden" value="${searchVO.pageUnit}"/>
</form>
</body>
</html>