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 : SocialModify.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"%>
<%
response.setHeader("Cache-Control","no-store");
response.setHeader("Pragma","no-cache");
response.setDateHeader("Expires",0);
if (request.getProtocol().equals("HTTP/1.1")) response.setHeader("Cache-Control", "no-cache");
%>
<c:set var="ImgUrl" value="${pageContext.request.contextPath}/images/egovframework/com/cmm/" />
<c:set var="CssUrl" value="${pageContext.request.contextPath}/css/egovframework/com/" />
<c:set var="JsUrl" value="${pageContext.request.contextPath}/js/egovframework/com/uss/ion/pwm/"/>
<!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?ver=1'/>"></script>
<script type="text/javaScript" language="javascript">
/* 임시파일 삭제버튼 클릭시 */
function delete_item(obj, fileIdx){
if(!confirm("삭제하시겠습니까?")){
return false;
}
$(obj).closest("tr").remove();
_fileForm2.forEach(function(fobj, idx) {
if (fobj.name == ("file_" + fileIdx)) _fileForm2[idx] = "";
});
drawUploadArea();
$('.td_txt_exist > img').attr('src', '/images/no_img.jpg') ;
}
/* pagination 페이지 링크 function */
function goList(){
document.searchForm.submit();
}
/* 등록시 값 확인 */
function fn_checkForm(flag) {
frm = document.writeForm;
if(frm.pozNm.value=="") {
alert($("#codeName").val()+" 제목을 입력해 주십시오");
frm.pozNm.focus();
return false;
}
var regexp = /^[0-9]*$/
if( !regexp.test(frm.sort.value) ) {
alert("노출순서에는 숫자만 입력하세요");
frm.sort.focus();
return false;
}
if(flag==1)
if(frm.file_1.value==""){
alert("이미지를 추가해 주십시오");
return false;
}
return true;
}
/* 글 등록 function */
function fn_popupzone_insert() {
frm = document.writeForm;
frm.action = "<c:url value='/uss/ion/pwm/popupzoneInsert.do'/>";
if(fn_checkForm(1))
frm.submit();
}
/* 배너 삭제 function */
function fn_popupzone_delete() {
var msg;
msg = "해당 "+$("#codeName").val()+"이미지를 삭제하시겠습니까?";
if (confirm(msg)) {
var logParam = "01"==$('form[name=popupzoneVO] input[name=seCd]').val() ? "mainVisual_D" : "popupZoin_D";
frm = document.writeForm;
frm.del.value = frm.pozId.value ;
frm.action = "<c:url value='/uss/ion/pwm/popupzoneListDelete.do'/>?logParam="+logParam;
frm.submit();
}
}
function fn_egov_downFile(atchFileId, fileSn){
window.open("<c:url value='/cmm/fms/FileDown.do?atchFileId="+atchFileId+"&fileSn="+fileSn+"'/>");
}
</script>
<style>
.del_file_btn{border: none;background-color: transparent;background-image: url(/direct/img/upload_delect_img.png);background-repeat: no-repeat;background-position: center center;vertical-align: middle;margin-top: -4px;margin-right: 15px;}
.file_size{color: #0388d2;font-weight: bold;}
.uploaded_obj{width: 100%;}
</style>
</head>
<body>
<form:form commandName="socialVO" name="writeForm" enctype="multipart/form-data" method="post" action="uss/ion/pwm/popupzoneModify.do">
<input type="hidden" name="selectedId" />
<form:input path="socialId" type="hidden" />
<form:input path="del" type="hidden" />
<form:input path="upfile" type="hidden" />
<input type="hidden" name="beSort" value="${socialVO.beSort}" />
<form:input path="socialImageFile" type="hidden" />
<!-- 드래그앤 드롭 파라미터 -->
<input type="hidden" name="menuName" value="social" />
<input type="hidden" name="fmsId" value="${socialVO.socialId}" />
<input type="hidden" name="limitcount" value="1" />
<input type="hidden" name="fileNece" id="fileNece" value="Y" /> <!-- 파일첨부 필수 -->
<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">
<div class="tableWrap">
<p class="right fwMd"><span class="tType4 c_e40000 fwBold">*</span>는 필수입력 항목입니다.</p>
<table class="tbType2">
<colgroup>
<col style="width: 15%">
<col style="width: 85%">
</colgroup>
<tbody>
<tr>
<th><span>원본이미지</span></th>
<td>
<c:if test="${socialVO.socialId == ''}">
<div class="imgBox"></div>
</c:if>
<c:if test="${socialVO.socialId != ''}">
<img alt="${socialVO.socialSj}" onerror="this.src='/images/no_img.jpg'" src='<c:url value='/cmm/fms/getImage.do'/>?atchFileId=<c:out value="${socialVO.socialImageFile}"/>' style="max-width:300px;padding: 10px;" />
</c:if>
</td>
</tr>
<tr>
<th>
<span class="reqArea">
소셜종류
</span>
</th>
<td>
<select name="seCd" id="seCd">
<c:forEach items="${imgCodeList}" var="imgCodeList" varStatus="status">
<option value="${imgCodeList.code}"
${imgCodeList.code eq socialVO.seCd ? 'selected' : ''}>${imgCodeList.codeNm}</option>
</c:forEach>
</select>
</td>
</tr>
<tr>
<th>
<span class="reqArea">
상단타이틀
</span>
</th>
<td>
<form:input path="socialTitle" maxlength="30" />
</td>
</tr>
<tr>
<th>
<span class="reqArea">
제목
</span>
</th>
<td>
<form:input path="socialSj" maxlength="30" />
</td>
</tr>
<tr>
<th>
<span class="reqArea">
내용
</span>
</th>
<td>
<form:textarea path="socialCn" title="" cols="300" rows="3" style="width: 84%;padding: 0 40px 0 15px;"/>
</td>
</tr>
<tr>
<th><span class="reqArea">링크</span></th>
<td>
<form:input path="mlink" maxlength="200" />
</td>
</tr>
<tr>
<th><span class="reqArea">사용여부</span></th>
<td>
<input type="radio" name="useYn" id="useY" value="Y" style="margin-left: 13px; margin-right: 5px;" ${socialVO.useYn eq 'Y' or socialVO.useYn eq '' ? 'checked="checked"' : ''} /><label for="">사용</label>
<input type="radio" name="useYn" id="useN" value="N" style="margin-left: 13px; margin-right: 5px;" ${socialVO.useYn eq 'N' ? 'checked="checked"' : ''} /><label for="">미사용</label>
</td>
</tr>
<tr>
<th><span class="reqArea">타겟</span></th>
<td>
<input type="radio" name="istarget" id="istargetC" value="C" style="margin-left: 13px; margin-right: 5px;" ${socialVO.istarget eq 'C' or empty socialVO.istarget ? 'checked="checked"' : ''} /><label for="">현재창</label>
<input type="radio" name="istarget" id="istargetN" value="N" style="margin-left: 13px; margin-right: 5px;" ${socialVO.istarget eq 'N' ? 'checked="checked"' : ''} /><label for="">새창</label>
</td>
</tr>
<tr>
<th><span class="reqArea">노출순서</span></th>
<td>
<form:input path="sort" maxlength="10" onkeyup="this.value=this.value.replace(/[^-\.0-9]/g,'')"/>
</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 asset_no_use_pro_table" style="display:none">
<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">
<td class="file_name">
<a href="javascript:fn_egov_downFile('${fileList.atchFileId}','${fileList.fileSn}')">
<img src="/direct/img/upload_hwp_img.png" alt="" />
<span class="file_name_text">${fileList.orignlFileNm}</span>
</a>
</td>
<td><span class="file_size_text" value="${fileList.fileMg}"></span></td>
<td>${fileList.creatDt}</td>
<td>
<input type="button" class="delBtn" onclick="delAtchFile('${fileList.atchFileId}', '${fileList.fileSn}'); return false;">
</td>
<input type="hidden" name="fileSize" class="item_file_size" value="${fileList.fileMg}" >
</tr>
</c:forEach>
</tbody>
</table>
</div>
<div class="fileInfo file_list_div">
<ul class="inline">
<li>
<p><span class="c_456ded fwBold totalfileCount">1</span>개 | <span class="c_456ded fwBold totalfileSize">0MB</span></p>
</li>
<li>
<p>최대 <span class="c_e40000 fwBold limitcount_li"></span>개 | <span class="c_e40000 fwBold upload_number">50MB</span>제한</p>
</li>
</ul>
</div>
<div class="uploadBtm">
<input type="file" name="file_temp" id="file_temp" class="uploadFile">
<span class="uploadTtype4">소셜허브 이미지 크기는 </span><span class="uploadTtype4" style="color: red;">289 X 231 </span>입니다.</p>
</div>
</td>
</tr>
<c:if test="${!empty socialVO.pozId}">
<tr>
<th><span class="reqArea">최종수정일</span></th>
<td>
${socialVO.moddt }
</td>
</tr>
<tr>
<th><span class="reqArea">작성자</span></th>
<td>
${socialVO.registerId }
</td>
</tr>
</c:if>
<!-- <tr>
<th><span class="reqArea">트위터 공유테스트</span></th>
<td>
<div class="fb-share-button"
data-href="https://www.gill.or.kr/"
data-layout="button_count" data-size="small">
<a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fdevelopers.facebook.com%2Fdocs%2Fplugins%2F&src=sdkpreparse" class="fb-xfbml-parse-ignore">페애스북 공유하기</a>
</div>
</td>
</tr>
<tr>
<th><span class="reqArea">네이버 공유테스트</span></th>
<td>
<span>
<script type="text/javascript" src="//static.naver.net/blog/share/blog_sharebutton.js?v={0}"></script>
<script type="text/javascript">
new ShareBlog.makeButton({"type": "a"});
</script>
</span>
</td>
</tr> -->
</tbody>
</table>
</div>
<div class="btnWrap right">
<input type="button" class="btnType1 bg_888888" value="목 록" onclick="goList(); return false;" >
<c:if test="${!empty socialVO.pozId }">
<input type="button" class="btnType1 bg_ed4545" value="삭 제" onclick="fn_popupzone_delete(); return false;" >
<input type="button" class="btnType1" value="수 정" onclick="goSave('${socialVO.seCd eq '01' ? 'mainVisual_U' : 'popupZoin_U'}'); return false;">
</c:if>
<c:if test="${empty socialVO.pozId }">
<input type="button" class="btnType1" value="저 장" onclick="goSave('${socialVO.seCd eq '01' ? 'mainVisual_I' : 'popupZoin_I'}'); return false;" >
</c:if>
</div>
</div>
</div>
</form:form>
<form name="searchForm" id="searchForm" method="get" action="<c:url value='/uss/ion/pwm/socialList.do'/>" >
</form>
</body>
</html>