Merge branch 'JIWOO'

This commit is contained in:
JIWOO 2024-11-11 17:47:06 +09:00
commit dca9cc9be5
13 changed files with 1494 additions and 292 deletions

View File

@ -16,6 +16,8 @@ import seed.com.gtm.seedfile.SeedFileService;
import seed.com.gtm.util.Criteria;
import seed.com.gtm.util.PageMaker;
import seed.com.user.counsel.CounselService;
import seed.common.service.InnorixFileService;
import seed.utils.FairnetUtils;
import seed.utils.SeedUtils;
@Controller
@ -30,6 +32,9 @@ public class OnlineCounselController {
@Autowired
private CounselService service2;
@Autowired
private InnorixFileService innorixFileService;
public void setSessionMessageRemove(HttpSession session){
session.removeAttribute("url");
session.removeAttribute("message");
@ -71,6 +76,16 @@ public class OnlineCounselController {
model.addAttribute("memberList", memberList);
model.addAttribute("fileList", fileService.fileList(paramMap));
//이노릭스 수정화면 파일 넘겨주기
String innorixFileListInfoStr = "";
try {
innorixFileListInfoStr = FairnetUtils.innorixFileListInfo(fileService.fileList(paramMap));
}catch(Exception e){
System.out.println("이노릭스 에러");
}
model.addAttribute("innorixFileListInfoStr", innorixFileListInfoStr);
return "/seed/_extra/gtm/onlineCounsel/view";
}
@ -105,6 +120,17 @@ public class OnlineCounselController {
fileService.fileInsert(paramMap, request, session);
//이노릭스 대용량 업로드
String innorixFileListStr = (String) paramMap.get("innorixFileListVO");
if(!"".equals(innorixFileListStr)) {
try {
paramMap.put("innorixDataIdx", paramMap.get("dataIdx"));
innorixFileService.innorixExtraFileInsert(innorixFileListStr, paramMap);
}catch(Exception e) {
System.out.println("이노릭스에러");
}
}
map.put("message", "common.message.reg");
map.put("url", "/gtm/case/onlineCounsel/list.do");
@ -149,6 +175,21 @@ public class OnlineCounselController {
"&searchDate4=" + searchDate4 + "&searchDate5=" + searchDate5 + "&searchDate6=" + searchDate6 + "&searchApp=" + searchApp + "&searchMa=" + searchMa + "&searchTitle=" + searchTitle +
"&searchType=" + searchType + "&searchState=" + searchState + "&fileFuncType=" + fileFuncType);
fileService.fileDel(paramMap);
//이노릭스 대용량 업로드
String innorixFileListStr = (String) paramMap.get("innorixFileListVO");
if(!"".equals(innorixFileListStr)) {
try {
String counselSeqTemp = counselSeq;
int innorixDataIdx = Integer.parseInt(counselSeqTemp);
paramMap.put("innorixDataIdx", innorixDataIdx);
innorixFileService.innorixExtraFileInsert(innorixFileListStr, paramMap);
}catch(Exception e) {
System.out.println("이노릭스에러");
}
}
return "/_common/jsp/message";
}
@ -251,6 +292,15 @@ public class OnlineCounselController {
paramMap.put("fileFuncType", SeedUtils.setReplaceNull(paramMap.get("fileFuncType2")));
model.addAttribute("fileList2", fileService.fileList(paramMap));
//이노릭스 수정화면 파일 넘겨주기
String innorixFileListInfoStr = "";
try {
innorixFileListInfoStr = FairnetUtils.innorixFileListInfo(fileService.fileList(paramMap));
}catch(Exception e){
System.out.println("이노릭스 에러");
}
model.addAttribute("innorixFileListInfoStr", innorixFileListInfoStr);
return "/seed/_extra/gtm/onlineCounsel/lawView";
}
@ -262,6 +312,7 @@ public class OnlineCounselController {
model.addAttribute("memberList", memberList);
return "/seed/_extra/gtm/onlineCounsel/lawWrite";
}
@ -282,6 +333,17 @@ public class OnlineCounselController {
map.put("message", "common.message.reg");
map.put("url", "/gtm/case/onlineCounsel/lawList.do");
//이노릭스 대용량 업로드
String innorixFileListStr = (String) paramMap.get("innorixFileListVO");
if(!"".equals(innorixFileListStr)) {
try {
paramMap.put("innorixDataIdx", paramMap.get("dataIdx"));
innorixFileService.innorixExtraFileInsert(innorixFileListStr, paramMap);
}catch(Exception e) {
System.out.println("이노릭스에러");
}
}
return "/_common/jsp/message";
}
@ -327,6 +389,19 @@ public class OnlineCounselController {
"&searchDate4=" + searchDate4 + "&searchDate5=" + searchDate5 + "&searchDate6=" + searchDate6 + "&searchApp=" + searchApp + "&searchMa=" + searchMa + "&searchTitle=" + searchTitle +
"&searchType=" + searchType + "&searchState=" + searchState + "&fileFuncType=" + fileFuncType + "&fileFuncType2=" + fileFuncType2);
//이노릭스 대용량 업로드
String innorixFileListStr = (String) paramMap.get("innorixFileListVO");
if(!"".equals(innorixFileListStr)) {
try {
String counselSeqTemp = counselSeq;
int innorixDataIdx = Integer.parseInt(counselSeqTemp);
paramMap.put("innorixDataIdx", innorixDataIdx);
innorixFileService.innorixExtraFileInsert(innorixFileListStr, paramMap);
}catch(Exception e) {
System.out.println("이노릭스에러");
}
}
return "/_common/jsp/message";
}

View File

@ -16,7 +16,9 @@ import org.springframework.web.bind.annotation.RequestParam;
import seed.com.gtm.seedfile.SeedFileService;
import seed.com.gtm.util.PageMaker;
import seed.common.service.InnorixFileService;
import seed.com.gtm.util.Criteria;
import seed.utils.FairnetUtils;
import seed.utils.SeedDbUtilsSupport;
@Controller
@ -28,6 +30,9 @@ public class ExamBoardController {
@Autowired
private SeedFileService fileService;
@Autowired
private InnorixFileService innorixFileService;
public void setSessionMessageRemove(HttpSession session){
session.removeAttribute("url");
session.removeAttribute("message");
@ -58,6 +63,17 @@ public class ExamBoardController {
paramMap.put("dataIdx", paramMap.get("seq"));
fileService.fileInsert(paramMap, request, session);
//이노릭스 대용량 업로드
String innorixFileListStr = (String) paramMap.get("innorixFileListVO");
if(!"".equals(innorixFileListStr)) {
try {
paramMap.put("innorixDataIdx", paramMap.get("dataIdx"));
innorixFileService.innorixExtraFileInsert(innorixFileListStr, paramMap);
}catch(Exception e) {
System.out.println("이노릭스에러");
}
}
map.put("message", "common.message.reg");
map.put("url", "/gtm/case/exam/"+boardIdx+"/list.do");
@ -159,6 +175,15 @@ public class ExamBoardController {
model.addAttribute("fileList", fileList);
model.addAttribute("fileListSize", fileList.size());
//이노릭스 수정화면 파일 넘겨주기
String innorixFileListInfoStr = "";
try {
innorixFileListInfoStr = FairnetUtils.innorixFileListInfo(fileList);
}catch(Exception e){
System.out.println("이노릭스 에러");
}
model.addAttribute("innorixFileListInfoStr", innorixFileListInfoStr);
return "/seed/_extra/gtm/exam/edit";
}
@ -179,6 +204,19 @@ public class ExamBoardController {
"&fileFuncType=" + paramMap.get("fileFuncType")
);
//이노릭스 대용량 업로드
String innorixFileListStr = (String) paramMap.get("innorixFileListVO");
if(!"".equals(innorixFileListStr)) {
try {
String bbsNoStr = (String)paramMap.get("examNo");
int innorixDataIdx = Integer.parseInt(bbsNoStr);
paramMap.put("innorixDataIdx", innorixDataIdx);
innorixFileService.innorixExtraFileInsert(innorixFileListStr, paramMap);
}catch(Exception e) {
System.out.println("이노릭스에러");
}
}
return "/_common/jsp/message";
}

View File

@ -16,6 +16,8 @@ import org.springframework.web.bind.annotation.RequestParam;
import seed.com.gtm.seedfile.SeedFileService;
import seed.com.gtm.util.Criteria;
import seed.com.gtm.util.PageMaker;
import seed.common.service.InnorixFileService;
import seed.utils.FairnetUtils;
@Controller
@RequestMapping("/gtm/case")
@ -26,6 +28,9 @@ public class TeamBoardController {
@Autowired
private SeedFileService fileService;
@Autowired
private InnorixFileService innorixFileService;
@RequestMapping(value="/team/board/write.do", method=RequestMethod.GET)
public String teamWrite(ModelMap model, @RequestParam Map<String,Object> paramMap){
return "/seed/_extra/gtm/team/write";
@ -44,6 +49,17 @@ public class TeamBoardController {
paramMap.put("dataIdx", paramMap.get("seq"));
fileService.fileInsert(paramMap, request, session);
//이노릭스 대용량 업로드
String innorixFileListStr = (String) paramMap.get("innorixFileListVO");
if(!"".equals(innorixFileListStr)) {
try {
paramMap.put("innorixDataIdx", paramMap.get("dataIdx"));
innorixFileService.innorixExtraFileInsert(innorixFileListStr, paramMap);
}catch(Exception e) {
System.out.println("이노릭스에러");
}
}
map.put("message", "common.message.reg");
map.put("url", "/gtm/case/team/board/list.do");
@ -94,6 +110,15 @@ public class TeamBoardController {
model.addAttribute("fileList", fileList);
model.addAttribute("fileListSize", fileList.size());
//이노릭스 수정화면 파일 넘겨주기
String innorixFileListInfoStr = "";
try {
innorixFileListInfoStr = FairnetUtils.innorixFileListInfo(fileList);
}catch(Exception e){
System.out.println("이노릭스 에러");
}
model.addAttribute("innorixFileListInfoStr", innorixFileListInfoStr);
return "/seed/_extra/gtm/team/edit";
}
@ -112,6 +137,19 @@ public class TeamBoardController {
"&fileFuncType=" + paramMap.get("fileFuncType")
);
//이노릭스 대용량 업로드
String innorixFileListStr = (String) paramMap.get("innorixFileListVO");
if(!"".equals(innorixFileListStr)) {
try {
String dataIdx = (String)paramMap.get("dataIdx");
int innorixDataIdx = Integer.parseInt(dataIdx);
paramMap.put("innorixDataIdx", innorixDataIdx);
innorixFileService.innorixExtraFileInsert(innorixFileListStr, paramMap);
}catch(Exception e) {
System.out.println("이노릭스에러");
}
}
return "/_common/jsp/message";
}

View File

@ -60,6 +60,7 @@
${bbsView.BBS_REG_NM}
</div>
</div>
<!-- innorix 대용량 업로드 솔루션 -->
<div class="bbs-view-item">
<p class="item-title">첨부자료</p>
<div class="item-box">
@ -235,22 +236,6 @@
// 파일 삭제 이벤트
control.on('removeFiles', function (p) {
fn_deleteCallBackInnorix(p[0].dataIdx)
/* if (removeFlag == true) {
// 삭제된 파일정보 배열에 담기
for (var i = 0; i < p.length; i++ ) {
var fileObj = new Object();
if (p[i].transferType == "download")
{
fileObj.downloadUrl = p[i].downloadUrl;
fileObj.printFileName = p[i].printFileName;
fileObj.fileSize = p[i].fileSize;
delFileArr.push(fileObj);
deleteArr(downFileArr, "printFileName", p[i].printFileName);
}
}
}
removeFlag = true; */
});
});

View File

@ -1,259 +1,379 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!doctype html>
<html lang="ko">
<head>
<title>정보 관리</title>
<link href='/css/space.css' rel='stylesheet' type='text/css'/>
<link href='/css/seed.contents.css' rel='stylesheet' type='text/css'/>
<link href='/css/seed.mediaquery.css' rel='styleGsheet' type='text/css'/>
<link href='/site/ntcc/css/gtmCustom.css' rel='stylesheet' type='text/css'/>
<script src="/editor/webnote.js"></script>
</head>
<body>
<div class="page-title-wrap clear">
<div class="page-title-inner">
<h3 class="page-title">분쟁조정 사례(${menuName})</h3>
<div class="tooltipBox type01">
<button type="button" class="page-tip">페이지안내</button>
<div class="tooltipText">
<p>분쟁조정 사례(${menuName})를 수정 할 수 있는 페이지 입니다.</p>
</div>
</div>
</div>
</div>
<form:form name="frm" id="frm" action="" method="post">
<input type="hidden" name="boardIdxx" id="boardIdxx" value="">
<input type="hidden" name="medBig" id="medBig" value="">
</form:form>
<form:form name="writeFrm" id="writeFrm" action="/gtm/case/exam/${boardIdx}/edit.do" method="post">
<input type="hidden" name="examNo" value="${param.examNo}">
<input type="hidden" name="searchType" value="${param.searchType}">
<input type="hidden" name="searchTilte" value="${param.searchTilte}">
<input type="hidden" name="page" id="page" value="${param.page}">
<input type="hidden" name="medBig2" id="medBig2" value="">
<input type="hidden" name="medSmall2" id="medSmall2" value="">
<input type="hidden" name="examType" id="examType" value="">
<fieldset>
<div class="bbs-view-layout">
<div class="bbs-view-item">
<p class="item-title">제목</p>
<div class="item-box">
<input type="text" name="examSubj" id="examSubj" maxlength="250" value="${bbsView.EXAM_SUBJ}">
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">작성자</p>
<div class="item-box">
${memberName}
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">첨부자료</p>
<div class="item-box">
<div class="temp-file-area">
<label for="upFile" class="btn btn_text btn_36 blue_border temp-file-button" style="display:flex;justify-content:center;align-items:center;">첨부파일</label>
</div>
<ul class="upFileHtml" id="upFileHtml">
<c:forEach items="${fileList}" var="list" varStatus="status">
<li id="fileUploadP${status.count}" class="bbsFileHtml">
<img src="/img/user/bbs/icon_file.gif" alt="gif">&nbsp;&nbsp;<span>${list.EXTRA_FILE_NAME}</span>
<a href="javascript:;" onclick="javascript:jf_delete_file('${status.count}', '${list.EXTRA_FILE_SIZE}');" class="del ml7"><img src="/img/user/bbs/btn_file_del.png" alt="삭제"></a>
<input type="hidden" name="fileIdx" value="${list.EXTRA_FILE_IDX}" class="fileIdxClass"/>
</li>
</c:forEach>
</ul>
<input type="hidden" name="fileFuncType" value="exam" />
<input type="hidden" name="uploadFileCnt" value="${fileListSize}" id="uploadFileCntId" />
<input type="hidden" name="deleteFileData" value="" id="deleteFileDataId" />
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">사건 유형 및 분류 선택</p>
<div class="item-box">
<select name="examTypeSell" id="examTypeSell" class="sel_default">
</select>
<span> / </span>
<!-- <select name="mediationBigType" id="mediationBigType" class="sch-select" onchange="mediationSmall()"> -->
<select name="mediationBigType" id="mediationBigType" class="sch-select">
<option value="">대분류 선택</option>
<option value="big1" >불성립</option>
<option value="big2" >성립</option>
<option value="big4" >심의</option>
<option value="big5" >종결</option>
<option value="big3" >중지</option>
</select>
<!-- <span> / </span>
<select name="mediationSmallType" id="mediationSmallType" class="sch-select">
<option value="">소분류 선택</option>
</select> -->
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">사건의 개요</p>
<div class="item-box">
<textarea class="bg_essential " name="editorParam_examCont" id="content" title="내용을 입력하세요" style="width:99%; height:300px;" editor="webnote" tools="deny:images,emoticon,special_chars">${bbsView.EXAM_CONT}</textarea>
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">분쟁사실 및 당사자 주장</p>
<div class="item-box">
<textarea class="bg_essential " name="editorParam_examCont2" id="content" title="내용을 입력하세요" style="width:99%; height:300px;" editor="webnote" tools="deny:images,emoticon,special_chars">${bbsView.EXAM_CONT2}</textarea>
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">검토</p>
<div class="item-box">
<textarea class="bg_essential " name="editorParam_examCont3" id="content" title="내용을 입력하세요" style="width:99%; height:300px;" editor="webnote" tools="deny:images,emoticon,special_chars">${bbsView.EXAM_CONT3}</textarea>
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">조정결과</p>
<div class="item-box">
<textarea class="bg_essential " name="editorParam_examCont4" id="content" title="내용을 입력하세요" style="width:99%; height:300px;" editor="webnote" tools="deny:images,emoticon,special_chars">${bbsView.EXAM_CONT4}</textarea>
</div>
</div>
</div>
<div class="btn_wrap right">
<button type="submit" class="btn btn_text btn_46 blue_fill">저장</button>
<button type="button" onclick="javascript:goList()" class="btn btn_text btn_46 gray_fill">목록</button>
</div>
</fieldset>
</form:form>
<!-- 파일 입시저장을 위한 폼 -->
<form id="fileTempUpFrm" action="/seed/extra/temp/file.do" method="post" enctype="multipart/form-data">
<input type="hidden" name="fileFuncType" value="exam" />
<div class="temp-file-area">
<input type="file" name="upFile" id="upFile" class="essential temp-file-hideen" onchange="fileTempUp();" required title="첨부파일" value="" style="ime-mode: disabled;" >
</div>
</form>
<form name="paramFrm" id="paramFrm" action="/gtm/case/exam/${boardIdx}/list.do" method="get">
<input type="hidden" name="searchType" value="${param.searchType}">
<input type="hidden" name="searchTilte" value="${param.searchTilte}">
<input type="hidden" name="page" id="page" value="${param.page}">
</form>
<script type="text/javascript">
webnote.setConfig({
auto_start: true, //페이지로딩시 페이지에 웹노트 에디터를 자동으로 생성할것인지(true: 자동생성, false: 생성안함)
lang: "ko", //언어셋(lang 디렉토리내에 언어셋.txt 파일이 있어야 함(ex: ko.txt)
base_dir: "/editor", //웹노트 설치디렉토리를 직접 지정
css_url: "/editor/webnote.css", //기본 css 파일을 직접 지정
icon_dir: "/editor/icon", //기본 아이콘 디렉토리를 직접 지정
emoticon_dir: "/editor/emoticon", //기본 이모티콘 디렉토리를 직접 지정
attach_proc: "/common/proc/case/editor/editorFileReg.do", //에디터에 이미지 즉시 업로드를 처리하는 서버스크립트를 직접 지정
delete_proc: "/common/proc/case/editor/editorFileDel.do", //에디터에 즉시 업로드된 이미지 삭제를 처리하는 서버스크립트를 직접 지정(attach_proc 과 같을경우 설정 불필요)
use_blind: true, //팝업메뉴 출력 시 반투명 배경 스크린 사용여부(true:사용(기본), false: 미사용)
allow_dndupload: false, //드래그&드롭을 통한 이미지 파일 업로드 허용 여부
allow_dndresize: false, //드래그&드롭을 통한 에디터 사이즈(높이) 조절 허용 여부
//fonts: ["굴림체","궁서체"], //선택할 수 있는 폰트종류를 직접 정의
//fontsizes: ["9pt","10pt"], //선택할 수 있는 폰트사이즈를 직접 정의(단위포함)
lineheights: ["120%","150%","180%"], //선택할 수 있는 줄간격을 직접 정의(단위포함)
//emoticons: ["Nerd"], //선택할 수 있는 이모티콘들을 직접 정의(png파일은 확장자 생략 가능하며, 그외에는 확장자까지 입력 : PNG, GIF, JPG 만 가능)
//specialchars: ["§","☆"], //선택할 수 있는 특수문자를 직접 정의
code_highlight: true,
fade_popup: true, //팝업 열리기/닫히기 시 fade in/out 기능 적용 여부(사용pc 사용이 낮은경우 false로 )
attach_list_view: false
});
$(window).load(function(){
$("#idx_toolbar_webnote_content_imagecenter").hide();
$("#idx_toolbarcontainer_webnote_content img").each(function(index, item) {
if($(item).attr("class") != "webnote_seperator"){
var event = $(item).attr("onclick");
$(item).wrap("<a href='javascript:;' onclick="+event+">");
$(item).attr("onclick", "");
}
});
});
$(document).ready(function(){
loadexamGubun();
var medBiglist = $("#mediationBigType option");
for(var i = 0; i < medBiglist.size(); i++){
if(medBiglist[i].text == '${bbsView.EXAM_RESULT1}'){
$(medBiglist[i]).attr("selected", true);
}
}
$("#writeFrm").submit(function(){
if($("#examSubj").val().trim() == ""){
alert("제목을 입력해 주세요.");
$("#examSubj").focus();
return false;
}
/* if($("#regMberNm").val().trim() == ""){
alert("작성자를 입력해 주세요.");
$("#regMberNm").focus();
return false;
} */
/* if($("#content").val() == ""){
alert("내용을 입력해 주세요.");
$("#content").focus();
return false;
} */
$("#examType").val($("#examTypeSell option:selected").text());
$("#medBig2").val($("#mediationBigType option:selected").text());
});
});
function goList(){
$("#paramFrm").submit();
}
function loadexamGubun(){
var url = "";
$("#type").val("L");
$("#boardIdxx").val(${boardIdx});
var param = jQuery('#frm').serialize();
url = "/user/case/Exam/ajax/BBsInfo.do";
XHR2(url, param, function(r){
var html2 = "";
if(r.data.length != 0){
$("#examTypeSell").empty();
$.each(r.data, function(k,v){
if(v.value == '${bbsView.EXAM_TYPE}'){
html2 += '<option name=search value='+v.value+' selected>'+v.value+'</option>';
}else{
html2 += '<option name=search value='+v.value+'>'+v.value+'</option>';
}
})
$("#examTypeSell").append(html2);
}
})
}
</script>
<script src="/js/jquery.form.js"></script>
<script src="/js/seedFileUtil.js"></script>
</body>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<!doctype html>
<html lang="ko">
<head>
<title>정보 관리</title>
<link href='/css/space.css' rel='stylesheet' type='text/css'/>
<link href='/css/seed.contents.css' rel='stylesheet' type='text/css'/>
<link href='/css/seed.mediaquery.css' rel='styleGsheet' type='text/css'/>
<link href='/site/ntcc/css/gtmCustom.css' rel='stylesheet' type='text/css'/>
<script src="/editor/webnote.js"></script>
<!-- 대용량 파일 업로드 솔루션 -->
<spring:eval expression="@property['Globals.Innorix.License']" var="license"/>
<script src="<c:url value='/js/kccadr/innorixCommon.js' />"></script>
<script src="<c:url value='/innorix/innorix_${license}.js' />"></script>
<link rel="stylesheet" href="<c:url value='/innorix/innorix.css'/>" type="text/css">
</head>
<body>
<div class="page-title-wrap clear">
<div class="page-title-inner">
<h3 class="page-title">분쟁조정 사례(${menuName})</h3>
<div class="tooltipBox type01">
<button type="button" class="page-tip">페이지안내</button>
<div class="tooltipText">
<p>분쟁조정 사례(${menuName})를 수정 할 수 있는 페이지 입니다.</p>
</div>
</div>
</div>
</div>
<form:form name="frm" id="frm" action="" method="post">
<input type="hidden" name="boardIdxx" id="boardIdxx" value="">
<input type="hidden" name="medBig" id="medBig" value="">
</form:form>
<form:form name="writeFrm" id="writeFrm" action="/gtm/case/exam/${boardIdx}/edit.do" method="post">
<input type="hidden" name="examNo" value="${param.examNo}">
<input type="hidden" name="searchType" value="${param.searchType}">
<input type="hidden" name="searchTilte" value="${param.searchTilte}">
<input type="hidden" name="page" id="page" value="${param.page}">
<input type="hidden" name="medBig2" id="medBig2" value="">
<input type="hidden" name="medSmall2" id="medSmall2" value="">
<input type="hidden" name="examType" id="examType" value="">
<fieldset>
<div class="bbs-view-layout">
<div class="bbs-view-item">
<p class="item-title">제목</p>
<div class="item-box">
<input type="text" name="examSubj" id="examSubj" maxlength="250" value="${bbsView.EXAM_SUBJ}">
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">작성자</p>
<div class="item-box">
${memberName}
</div>
</div>
<!-- innorix 대용량 업로드 솔루션 -->
<div class="bbs-view-item">
<p class="item-title">첨부자료</p>
<div class="item-box">
<div class="temp-file-area">
<!-- 단일 파일 업로드 -->
<input type="button" value="첨부파일" class="btn btn_text btn_36 blue_border temp-file-button" onclick="control.openFileDialogSingle();"/>
<!-- 멀티 파일 업로드 -->
<!-- <input type="button" value="첨부파일" class="btn btn_text btn_36 blue_border temp-file-button" onclick="control.openFileDialog();"/> -->
</div>
<!-- 첨부파일 업로드 목록 및 드래그&드랍 영역 -->
<div id="fileControl"></div><br/>
<input type="hidden" name="fileFuncType" value="exam" />
<input type="hidden" name="innorixFileListVO" value="" />
<input type="hidden" name="uploadFileCnt" value="${fileListSize}" id="uploadFileCntId" />
<input type="hidden" name="deleteFileData" value="" id="deleteFileDataId" />
</div>
</div>
<%-- <div class="bbs-view-item">
<p class="item-title">첨부자료</p>
<div class="item-box">
<div class="temp-file-area">
<label for="upFile" class="btn btn_text btn_36 blue_border temp-file-button" style="display:flex;justify-content:center;align-items:center;">첨부파일</label>
</div>
<ul class="upFileHtml" id="upFileHtml">
<c:forEach items="${fileList}" var="list" varStatus="status">
<li id="fileUploadP${status.count}" class="bbsFileHtml">
<img src="/img/user/bbs/icon_file.gif" alt="gif">&nbsp;&nbsp;<span>${list.EXTRA_FILE_NAME}</span>
<a href="javascript:;" onclick="javascript:jf_delete_file('${status.count}', '${list.EXTRA_FILE_SIZE}');" class="del ml7"><img src="/img/user/bbs/btn_file_del.png" alt="삭제"></a>
<input type="hidden" name="fileIdx" value="${list.EXTRA_FILE_IDX}" class="fileIdxClass"/>
</li>
</c:forEach>
</ul>
<input type="hidden" name="fileFuncType" value="exam" />
<input type="hidden" name="uploadFileCnt" value="${fileListSize}" id="uploadFileCntId" />
<input type="hidden" name="deleteFileData" value="" id="deleteFileDataId" />
</div>
</div> --%>
<div class="bbs-view-item">
<p class="item-title">사건 유형 및 분류 선택</p>
<div class="item-box">
<select name="examTypeSell" id="examTypeSell" class="sel_default">
</select>
<span> / </span>
<!-- <select name="mediationBigType" id="mediationBigType" class="sch-select" onchange="mediationSmall()"> -->
<select name="mediationBigType" id="mediationBigType" class="sch-select">
<option value="">대분류 선택</option>
<option value="big1" >불성립</option>
<option value="big2" >성립</option>
<option value="big4" >심의</option>
<option value="big5" >종결</option>
<option value="big3" >중지</option>
</select>
<!-- <span> / </span>
<select name="mediationSmallType" id="mediationSmallType" class="sch-select">
<option value="">소분류 선택</option>
</select> -->
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">사건의 개요</p>
<div class="item-box">
<textarea class="bg_essential " name="editorParam_examCont" id="content" title="내용을 입력하세요" style="width:99%; height:300px;" editor="webnote" tools="deny:images,emoticon,special_chars">${bbsView.EXAM_CONT}</textarea>
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">분쟁사실 및 당사자 주장</p>
<div class="item-box">
<textarea class="bg_essential " name="editorParam_examCont2" id="content" title="내용을 입력하세요" style="width:99%; height:300px;" editor="webnote" tools="deny:images,emoticon,special_chars">${bbsView.EXAM_CONT2}</textarea>
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">검토</p>
<div class="item-box">
<textarea class="bg_essential " name="editorParam_examCont3" id="content" title="내용을 입력하세요" style="width:99%; height:300px;" editor="webnote" tools="deny:images,emoticon,special_chars">${bbsView.EXAM_CONT3}</textarea>
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">조정결과</p>
<div class="item-box">
<textarea class="bg_essential " name="editorParam_examCont4" id="content" title="내용을 입력하세요" style="width:99%; height:300px;" editor="webnote" tools="deny:images,emoticon,special_chars">${bbsView.EXAM_CONT4}</textarea>
</div>
</div>
</div>
<div class="btn_wrap right">
<button type="submit" class="btn btn_text btn_46 blue_fill" style="display:none;">저장</button>
<button type="button" class="btn btn_text btn_46 blue_fill" onclick="innorixUpload();">저장</button>
<button type="button" onclick="javascript:goList()" class="btn btn_text btn_46 gray_fill">목록</button>
</div>
</fieldset>
</form:form>
<!-- 파일 입시저장을 위한 폼 -->
<form id="fileTempUpFrm" action="/seed/extra/temp/file.do" method="post" enctype="multipart/form-data">
<input type="hidden" name="fileFuncType" value="exam" />
<div class="temp-file-area">
<input type="file" name="upFile" id="upFile" class="essential temp-file-hideen" onchange="fileTempUp();" required title="첨부파일" value="" style="ime-mode: disabled;" >
</div>
</form>
<form name="paramFrm" id="paramFrm" action="/gtm/case/exam/${boardIdx}/list.do" method="get">
<input type="hidden" name="searchType" value="${param.searchType}">
<input type="hidden" name="searchTilte" value="${param.searchTilte}">
<input type="hidden" name="page" id="page" value="${param.page}">
</form>
<script type="text/javascript">
webnote.setConfig({
auto_start: true, //페이지로딩시 페이지에 웹노트 에디터를 자동으로 생성할것인지(true: 자동생성, false: 생성안함)
lang: "ko", //언어셋(lang 디렉토리내에 언어셋.txt 파일이 있어야 함(ex: ko.txt)
base_dir: "/editor", //웹노트 설치디렉토리를 직접 지정
css_url: "/editor/webnote.css", //기본 css 파일을 직접 지정
icon_dir: "/editor/icon", //기본 아이콘 디렉토리를 직접 지정
emoticon_dir: "/editor/emoticon", //기본 이모티콘 디렉토리를 직접 지정
attach_proc: "/common/proc/case/editor/editorFileReg.do", //에디터에 이미지 즉시 업로드를 처리하는 서버스크립트를 직접 지정
delete_proc: "/common/proc/case/editor/editorFileDel.do", //에디터에 즉시 업로드된 이미지 삭제를 처리하는 서버스크립트를 직접 지정(attach_proc 과 같을경우 설정 불필요)
use_blind: true, //팝업메뉴 출력 시 반투명 배경 스크린 사용여부(true:사용(기본), false: 미사용)
allow_dndupload: false, //드래그&드롭을 통한 이미지 파일 업로드 허용 여부
allow_dndresize: false, //드래그&드롭을 통한 에디터 사이즈(높이) 조절 허용 여부
//fonts: ["굴림체","궁서체"], //선택할 수 있는 폰트종류를 직접 정의
//fontsizes: ["9pt","10pt"], //선택할 수 있는 폰트사이즈를 직접 정의(단위포함)
lineheights: ["120%","150%","180%"], //선택할 수 있는 줄간격을 직접 정의(단위포함)
//emoticons: ["Nerd"], //선택할 수 있는 이모티콘들을 직접 정의(png파일은 확장자 생략 가능하며, 그외에는 확장자까지 입력 : PNG, GIF, JPG 만 가능)
//specialchars: ["§","☆"], //선택할 수 있는 특수문자를 직접 정의
code_highlight: true,
fade_popup: true, //팝업 열리기/닫히기 시 fade in/out 기능 적용 여부(사용pc 사용이 낮은경우 false로 )
attach_list_view: false
});
/* innorix-1
첨부파일 업로드 경로 전역 변수 선언
*/
var directory = "";
var fileList = "";
$(window).load(function(){
$("#idx_toolbar_webnote_content_imagecenter").hide();
$("#idx_toolbarcontainer_webnote_content img").each(function(index, item) {
if($(item).attr("class") != "webnote_seperator"){
var event = $(item).attr("onclick");
$(item).wrap("<a href='javascript:;' onclick="+event+">");
$(item).attr("onclick", "");
}
});
});
$(document).ready(function(){
loadexamGubun();
var medBiglist = $("#mediationBigType option");
for(var i = 0; i < medBiglist.size(); i++){
if(medBiglist[i].text == '${bbsView.EXAM_RESULT1}'){
$(medBiglist[i]).attr("selected", true);
}
}
$("#writeFrm").submit(function(){
if($("#examSubj").val().trim() == ""){
alert("제목을 입력해 주세요.");
$("#examSubj").focus();
return false;
}
/* if($("#regMberNm").val().trim() == ""){
alert("작성자를 입력해 주세요.");
$("#regMberNm").focus();
return false;
} */
/* if($("#content").val() == ""){
alert("내용을 입력해 주세요.");
$("#content").focus();
return false;
} */
$("#examType").val($("#examTypeSell option:selected").text());
$("#medBig2").val($("#mediationBigType option:selected").text());
});
/* 이노릭스 대용량 업로드 솔루션 */
/* innorix-2
첨부파일 업로드 경로 설정
fileFuncType와 세션의 siteId등의 정보를 이용해 업로드 경로 설정
*/
var fileFuncType = $("#fileTempUpFrm").find("input[name='fileFuncType']").val();
var url = "<c:url value='/seed/innorix/getRealFileDirectoryAjax.do'/>"
getFileDirectory(fileFuncType, url, function(result){
directory = result;
});
/* innorix-3
이노릭스 업로드 컨트롤 생성
control 객체는 innorixCommon.js에서 생성
*/
control = innorix.create({
el: '#fileControl', // 컨트롤 출력 HTML 객체 ID
transferMode: 'both', // 업로드, 다운로드 혼합사용
agent : false,
installUrl: "<c:url value='/innorix/install/install.html'/>", // Agent 설치 페이지
uploadUrl: "<c:url value='/innorix/exam/seedUpload.jsp'/>", // 업로드 URL
allowExtension : ["txt","jpeg","jpg","png","gif","bmp","mp3","mp4","hwp","doc","docx","xls","xlsx","ppt","pptx","pdf","zip","alz"]
});
var downFileArr =${innorixFileListInfoStr};
/* innorix-5
이노릭스 업로드 완료 후
콜백 함수로 파일 정보 전달
*/
control.on('uploadComplete', function (p) {
console.log('uploadComplete : ', p);
fn_callBackInnorix(p.files); // 파일 정보 DB isnert function
});
// 파일전송 컨트롤 로딩 완료
control.on('loadComplete', function (p) {
resetFileArr = downFileArr; // 다운로드 정보 초기화 정보 생성
resetFileArr = resetFileArr.slice(0); // 배열 깊은 복사
control.presetDownloadFiles(resetFileArr); // 다운로드 파일 추가
});
// 파일 삭제 이벤트
control.on('removeFiles', function (p) {
fn_deleteCallBackInnorix(p[0].dataIdx)
});
});
/* innorix-4
이노릭스 업로드 시작
첨부파일이 있을 시 업로드 후 게시글 수정
첨부파일이 없을 시 바로 게시글 수정
*/
function innorixUpload(){
if(control.getUploadFiles().length > 0){
var postObj = new Object();
postObj.directory = directory;
control.setPostData(postObj);
control.upload(); // 업로드 시작
}else{
$("button[type='submit']").click();
}
}
/* innorix-6
게시글 등록 처리
첨부파일 정보 DB 등록 및 게시글 등록 처리
*/
function fn_callBackInnorix(data){
$("input[name='innorixFileListVO']").val(JSON.stringify(data));
$("button[type='submit']").click();
}
function fn_deleteCallBackInnorix(dataIdx){
var deleteFileData = $("#deleteFileDataId").val();
if(deleteFileData != ""){
deleteFileData = deleteFileData+","+dataIdx
}else{
deleteFileData = dataIdx
}
$("#deleteFileDataId").val(deleteFileData);
}
function goList(){
$("#paramFrm").submit();
}
function loadexamGubun(){
var url = "";
$("#type").val("L");
$("#boardIdxx").val(${boardIdx});
var param = jQuery('#frm').serialize();
url = "/user/case/Exam/ajax/BBsInfo.do";
XHR2(url, param, function(r){
var html2 = "";
if(r.data.length != 0){
$("#examTypeSell").empty();
$.each(r.data, function(k,v){
if(v.value == '${bbsView.EXAM_TYPE}'){
html2 += '<option name=search value='+v.value+' selected>'+v.value+'</option>';
}else{
html2 += '<option name=search value='+v.value+'>'+v.value+'</option>';
}
})
$("#examTypeSell").append(html2);
}
})
}
</script>
<script src="/js/jquery.form.js"></script>
<script src="/js/seedFileUtil.js"></script>
</body>
</html>

View File

@ -1,6 +1,7 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<!doctype html>
<html lang="ko">
@ -11,6 +12,12 @@
<link href='/css/seed.mediaquery.css' rel='styleGsheet' type='text/css'/>
<link href='/site/ntcc/css/gtmCustom.css' rel='stylesheet' type='text/css'/>
<!-- 대용량 파일 업로드 솔루션 -->
<spring:eval expression="@property['Globals.Innorix.License']" var="license"/>
<script src="<c:url value='/js/kccadr/innorixCommon.js' />"></script>
<script src="<c:url value='/innorix/innorix_${license}.js' />"></script>
<link rel="stylesheet" href="<c:url value='/innorix/innorix.css'/>" type="text/css">
<script src="/editor/webnote.js"></script>
</head>
@ -47,7 +54,24 @@
${memberName}
</div>
</div>
<!-- innorix 대용량 업로드 솔루션 -->
<div class="bbs-view-item">
<p class="item-title">첨부자료</p>
<div class="item-box">
<div class="temp-file-area">
<!-- 단일 파일 업로드 -->
<input type="button" value="첨부파일" class="btn btn_text btn_36 blue_border temp-file-button" onclick="control.openFileDialogSingle();"/>
<!-- 멀티 파일 업로드 -->
<!-- <input type="button" value="첨부파일" class="btn btn_text btn_36 blue_border temp-file-button" onclick="control.openFileDialog();"/> -->
</div>
<!-- 첨부파일 업로드 목록 및 드래그&드랍 영역 -->
<div id="fileControl"></div><br/>
<input type="hidden" name="fileFuncType" value="exam" />
<input type="hidden" name="innorixFileListVO" value="" />
</div>
</div>
<!-- <div class="bbs-view-item">
<p class="item-title">첨부자료</p>
<div class="item-box">
<div class="temp-file-area">
@ -60,7 +84,7 @@
<input type="hidden" name="uploadFileCnt" value="0" id="uploadFileCntId" />
<input type="hidden" name="deleteFileData" value="" id="deleteFileDataId" />
</div>
</div>
</div> -->
<div class="bbs-view-item">
<p class="item-title">사건 유형 및 분류 선택</p>
<div class="item-box">
@ -114,7 +138,8 @@
<input type="hidden" name="medSmall2" id="medSmall2" value="">
<input type="hidden" name="examType" id="examType" value="">
<div class="btn_wrap right">
<button type="submit" class="btn btn_text btn_46 blue_fill">저장</button>
<button type="submit" class="btn btn_text btn_46 blue_fill" style="display:none;">저장</button>
<button type="button" class="btn btn_text btn_46 blue_fill" onclick="innorixUpload();">저장</button>
<button type="button" onclick="javascript:goList()" class="btn btn_text btn_46 gray_fill">목록</button>
</div>
</fieldset>
@ -159,6 +184,10 @@
attach_list_view: false
});
/* innorix-1
첨부파일 업로드 경로 전역 변수 선언
*/
var directory = "";
$(window).load(function(){
$("#idx_toolbar_webnote_content_imagecenter").hide();
@ -199,8 +228,77 @@
return false;
} */
});
/* innorix-2
첨부파일 업로드 경로 설정
fileFuncType와 세션의 siteId등의 정보를 이용해 업로드 경로 설정
*/
var fileFuncType = $("#fileTempUpFrm").find("input[name='fileFuncType']").val();
var url = "<c:url value='/seed/innorix/getRealFileDirectoryAjax.do'/>"
getFileDirectory(fileFuncType, url, function(result){
directory = result;
});
/* innorix-3
이노릭스 업로드 컨트롤 생성
control 객체는 innorixCommon.js에서 생성
*/
control = innorix.create({
el: '#fileControl', // 컨트롤 출력 HTML 객체 ID
transferMode: 'both', // 업로드, 다운로드 혼합사용
agent : false,
installUrl: "<c:url value='/innorix/install/install.html'/>", // Agent 설치 페이지
uploadUrl: "<c:url value='/innorix/exam/seedUpload.jsp'/>", // 업로드 URL
allowExtension : ["txt","jpeg","jpg","png","gif","bmp","mp3","mp4","hwp","doc","docx","xls","xlsx","ppt","pptx","pdf","zip","alz"]
});
// 업로드 완료 후 temp 파일 저장 - 사용X
//control.on('afterAddFiles', function (p) {
//console.log('afterAddFiles : ', p);
//var postObj = new Object();
//postObj.directory = directory;
//control.setPostData(postObj);
//control.upload(); // 업로드 시작
/* $("#fileTempUpFrm").submit(); */
/* fn_callBackInnorix(p.files); // 파일 정보 DB isnert function */
//});
/* innorix-5
이노릭스 업로드 완료 후
콜백 함수로 파일 정보 전달
*/
control.on('uploadComplete', function (p) {
console.log('uploadComplete : ', p);
fn_callBackInnorix(p.files); // 파일 정보 DB isnert function
});
});
/* innorix-4
이노릭스 업로드 시작
첨부파일이 있을 시 업로드 후 게시글 작성
첨부파일이 없을 시 바로 게시글 작성
*/
function innorixUpload(){
if(control.getUploadFiles().length > 0){
var postObj = new Object();
postObj.directory = directory;
control.setPostData(postObj);
control.upload(); // 업로드 시작 */
}else{
$("button[type='submit']").click();
}
}
/* innorix-6
게시글 등록 처리
첨부파일 정보 DB 등록 및 게시글 등록 처리
*/
function fn_callBackInnorix(data){
$("input[name='innorixFileListVO']").val(JSON.stringify(data));
$("button[type='submit']").click();
}
function goList(){
$("#paramFrm").submit();

View File

@ -0,0 +1,239 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!doctype html>
<html lang="ko">
<head>
<title>정보 관리</title>
<link href='/css/space.css' rel='stylesheet' type='text/css'/>
<link href='/css/seed.contents.css' rel='stylesheet' type='text/css'/>
<link href='/css/seed.mediaquery.css' rel='styleGsheet' type='text/css'/>
<link href='/site/ntcc/css/gtmCustom.css' rel='stylesheet' type='text/css'/>
<script src="/editor/webnote.js"></script>
</head>
<body>
<div class="page-title-wrap clear">
<div class="page-title-inner">
<h3 class="page-title">분쟁조정 사례(${menuName})</h3>
<div class="tooltipBox type01">
<button type="button" class="page-tip">페이지안내</button>
<div class="tooltipText">
<p>분쟁조정 사례(${menuName})를 작성 할 수 있는 페이지 입니다.</p>
</div>
</div>
</div>
</div>
<form:form name="frm" id="frm" action="" method="post">
<input type="hidden" name="boardIdxx" id="boardIdxx" value="">
<input type="hidden" name="medBig" id="medBig" value="">
</form:form>
<%-- <form:form name="writeFrm" id="writeFrm" action="${pageType}/${siteIdx}/${boardIdx}/write.do" method="post"> --%>
<form:form name="writeFrm" id="writeFrm" action="/gtm/case/exam/${boardIdx}/write.do" method="post">
<fieldset>
<div class="bbs-view-layout">
<div class="bbs-view-item">
<p class="item-title">제목</p>
<div class="item-box">
<input type="text" name="examSubj" id="examSubj" maxlength="250">
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">작성자</p>
<div class="item-box">
${memberName}
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">첨부자료</p>
<div class="item-box">
<div class="temp-file-area">
<label for="upFile" class="btn btn_text btn_36 blue_border temp-file-button" style="display:flex;justify-content:center;align-items:center;">첨부파일</label>
</div>
<ul class="upFileHtml" id="upFileHtml">
</ul>
<input type="hidden" name="fileFuncType" value="exam" />
<input type="hidden" name="uploadFileCnt" value="0" id="uploadFileCntId" />
<input type="hidden" name="deleteFileData" value="" id="deleteFileDataId" />
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">사건 유형 및 분류 선택</p>
<div class="item-box">
<select name="examTypeSell" id="examTypeSell" class="sel_default">
</select>
<span> / </span>
<select name="mediationBigType" id="mediationBigType" class="sch-select" onchange="mediationSmall()">
<option value="">대분류 선택</option>
<option value="big1" >불성립</option>
<option value="big2" >성립</option>
<option value="big4" >심의</option>
<option value="big5" >종결</option>
<option value="big3" >중지</option>
</select>
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">사건의 개요</p>
<div class="item-box">
<textarea class="bg_essential " name="editorParam_examCont" id="content" title="내용을 입력하세요" style="width:99%; height:300px;" editor="webnote" tools="deny:images,emoticon,special_chars">
</textarea>
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">분쟁사실 및 당사자 주장</p>
<div class="item-box">
<textarea class="bg_essential " name="editorParam_examCont2" id="content" title="내용을 입력하세요" style="width:99%; height:300px;" editor="webnote" tools="deny:images,emoticon,special_chars">
</textarea>
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">검토</p>
<div class="item-box">
<textarea class="bg_essential " name="editorParam_examCont3" id="content" title="내용을 입력하세요" style="width:99%; height:300px;" editor="webnote" tools="deny:images,emoticon,special_chars">
</textarea>
</div>
</div>
<div class="bbs-view-item">
<p class="item-title">조정결과</p>
<div class="item-box">
<textarea class="bg_essential " name="editorParam_examCont4" id="content" title="내용을 입력하세요" style="width:99%; height:300px;" editor="webnote" tools="deny:images,emoticon,special_chars">
</textarea>
</div>
</div>
</div>
<input type="hidden" name="medBig2" id="medBig2" value="">
<input type="hidden" name="medSmall2" id="medSmall2" value="">
<input type="hidden" name="examType" id="examType" value="">
<div class="btn_wrap right">
<button type="submit" class="btn btn_text btn_46 blue_fill">저장</button>
<button type="button" onclick="javascript:goList()" class="btn btn_text btn_46 gray_fill">목록</button>
</div>
</fieldset>
</form:form>
<!-- 파일 입시저장을 위한 폼 -->
<form id="fileTempUpFrm" action="/seed/extra/temp/file.do" method="post" enctype="multipart/form-data">
<input type="hidden" name="fileFuncType" value="exam" />
<div class="temp-file-area">
<input type="file" name="upFile" id="upFile" class="essential temp-file-hideen" onchange="fileTempUp();" required title="첨부파일" value="" style="ime-mode: disabled;" >
</div>
</form>
<form name="paramFrm" id="paramFrm" action="/gtm/case/exam/${boardIdx}/list.do" method="get">
<input type="hidden" name="searchType" value="${param.searchType}">
<input type="hidden" name="searchTilte" value="${param.searchTilte}">
<input type="hidden" name="page" id="page" value="${param.page}">
</form>
<%-- <form:form name="frm" id="frm" action="" method="post">
<input type="hidden" name="medBig" id="medBig" value="">
</form:form> --%>
<script type="text/javascript">
webnote.setConfig({
auto_start: true, //페이지로딩시 페이지에 웹노트 에디터를 자동으로 생성할것인지(true: 자동생성, false: 생성안함)
lang: "UTF-8", //언어셋(lang 디렉토리내에 언어셋.txt 파일이 있어야 함(ex: ko.txt)
base_dir: "/editor", //웹노트 설치디렉토리를 직접 지정
css_url: "/editor/webnote.css", //기본 css 파일을 직접 지정
icon_dir: "/editor/icon", //기본 아이콘 디렉토리를 직접 지정
emoticon_dir: "/editor/emoticon", //기본 이모티콘 디렉토리를 직접 지정
attach_proc: "/common/proc/case/editor/editorFileReg.do", //에디터에 이미지 즉시 업로드를 처리하는 서버스크립트를 직접 지정
delete_proc: "/common/proc/case/editor/editorFileDel.do", //에디터에 즉시 업로드된 이미지 삭제를 처리하는 서버스크립트를 직접 지정(attach_proc 과 같을경우 설정 불필요)
use_blind: true, //팝업메뉴 출력 시 반투명 배경 스크린 사용여부(true:사용(기본), false: 미사용)
allow_dndupload: false, //드래그&드롭을 통한 이미지 파일 업로드 허용 여부
allow_dndresize: false, //드래그&드롭을 통한 에디터 사이즈(높이) 조절 허용 여부
//fonts: ["굴림체","궁서체"], //선택할 수 있는 폰트종류를 직접 정의
//fontsizes: ["9pt","10pt"], //선택할 수 있는 폰트사이즈를 직접 정의(단위포함)
lineheights: ["120%","150%","180%"], //선택할 수 있는 줄간격을 직접 정의(단위포함)
//emoticons: ["Nerd"], //선택할 수 있는 이모티콘들을 직접 정의(png파일은 확장자 생략 가능하며, 그외에는 확장자까지 입력 : PNG, GIF, JPG 만 가능)
//specialchars: ["§","☆"], //선택할 수 있는 특수문자를 직접 정의
code_highlight: true,
fade_popup: true, //팝업 열리기/닫히기 시 fade in/out 기능 적용 여부(사용pc 사용이 낮은경우 false로 )
attach_list_view: false
});
$(window).load(function(){
$("#idx_toolbar_webnote_content_imagecenter").hide();
$("#idx_toolbarcontainer_webnote_content img").each(function(index, item) {
if($(item).attr("class") != "webnote_seperator"){
var event = $(item).attr("onclick");
$(item).wrap("<a href='javascript:;' onclick="+event+">");
$(item).attr("onclick", "");
}
});
});
$(document).ready(function(){
loadexamGubun();
$("#writeFrm").submit(function(){
if($("#examSubj").val().trim() == ""){
alert("제목을 입력해 주세요.");
$("#examSubj").focus();
return false;
}
$("#examType").val($("#examTypeSell option:selected").text());
$("#medBig2").val($("#mediationBigType option:selected").text());
$("#medSmall2").val($("#mediationSmallType option:selected").text());
/* if($("#regMberNm").val().trim() == ""){
alert("작성자를 입력해 주세요.");
$("#regMberNm").focus();
return false;
} */
/* if($("#content").val() == ""){
alert("내용을 입력해 주세요.");
$("#content").focus();
return false;
} */
});
});
function goList(){
$("#paramFrm").submit();
}
function loadexamGubun(){
var url = "";
$("#type").val("L");
$("#boardIdxx").val(${boardIdx});
var param = jQuery('#frm').serialize();
url = "/user/case/Exam/ajax/BBsInfo.do";
XHR2(url, param, function(r){
var html2 = "";
if(r.data.length != 0){
$("#examTypeSell").empty();
$.each(r.data, function(k,v){
html2 += '<option name=search value='+v.value+'>'+v.value+'</option>';
})
$("#examTypeSell").append(html2);
}
})
}
</script>
<script src="/js/jquery.form.js"></script>
<script src="/js/seedFileUtil.js"></script>
</body>
</html>

View File

@ -1,6 +1,7 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<!doctype html>
<html lang="ko">
<head>
@ -9,6 +10,13 @@
<link href='/css/seed.contents.css' rel='stylesheet' type='text/css'/>
<link href='/css/seed.mediaquery.css' rel='styleGsheet' type='text/css'/>
<link href='/site/ntcc/css/gtmCustom.css' rel='stylesheet' type='text/css'/>
<!-- 대용량 파일 업로드 솔루션 -->
<spring:eval expression="@property['Globals.Innorix.License']" var="license"/>
<script src="<c:url value='/js/kccadr/innorixCommon.js' />"></script>
<script src="<c:url value='/innorix/innorix_${license}.js' />"></script>
<link rel="stylesheet" href="<c:url value='/innorix/innorix.css'/>" type="text/css">
</head>
<body>
@ -212,9 +220,25 @@
</select>
</div>
</div>
<!-- innorix 대용량 업로드 솔루션 -->
<div class="bbs-view-item">
<p class="item-title">상담기록카드</p>
<div class="item-box">
<div class="temp-file-area">
<!-- 단일 파일 업로드 -->
<input type="button" value="첨부파일" class="btn btn_text btn_36 blue_border temp-file-button" onclick="control.openFileDialogSingle();"/>
<!-- 멀티 파일 업로드 -->
<!-- <input type="button" value="첨부파일" class="btn btn_text btn_36 blue_border temp-file-button" onclick="control.openFileDialog();"/> -->
</div>
<!-- 첨부파일 업로드 목록 및 드래그&드랍 영역 -->
<div id="fileControl"></div><br/>
<input type="hidden" name="fileFuncType" value="lawCard" />
<input type="hidden" name="innorixFileListVO" value="" />
<input type="hidden" name="uploadFileCnt" value="${fileListSize}" id="uploadFileCntId" />
<input type="hidden" name="deleteFileData" value="" id="deleteFileDataId" />
</div>
<%-- <div class="item-box">
<div class="temp-file-area">
<label for="upFile" style='display:flex;justify-content:center;align-items:center;' class="btn btn_text btn_36 blue_border temp-file-button">첨부파일</label>
</div>
@ -231,7 +255,7 @@
<input type="hidden" name="fileFuncType" value="lawCard" />
<input type="hidden" name="uploadFileCnt" value="${fileListSize}" id="uploadFileCntId" />
<input type="hidden" name="deleteFileData" value="" id="deleteFileDataId" />
</div>
</div> --%>
</div>
</div>
</fieldset>
@ -251,7 +275,8 @@
<c:if test="${data.counselState eq '01'}">
<button type="button" class="btn btn_text btn_46 blue_border violet mb10" onclick="goChange()">상담변경</button>
</c:if>
<button type="submit" class="btn btn_text btn_46 blue_fill violet mb10">등록</button>
<button type="submit" class="btn btn_text btn_46 blue_fill violet mb10" style="display:none;">등록</button>
<button type="button" class="btn btn_text btn_46 blue_fill violet mb10" onclick="innorixUpload();">등록</button>
</c:if>
<button type="button" class="btn btn_text btn_46 gray_fill lightgray mb10" onclick="goList()">목록</button>
<!-- <button type="button" class="btn-normal lightgray mb10" onclick="PrintElem(document.getElementById('printBox'));">인쇄</button> -->
@ -338,6 +363,12 @@
return true;
}
/* innorix-1
첨부파일 업로드 경로 전역 변수 선언
*/
var directory = "";
var fileList = "";
$(document).ready(function(){
caseGubunCombo();
counselAppTypeCombo();
@ -379,8 +410,95 @@
$(optionList[i]).attr("selected", true);
}
}
/* 이노릭스 대용량 업로드 솔루션 */
/* innorix-2
첨부파일 업로드 경로 설정
fileFuncType와 세션의 siteId등의 정보를 이용해 업로드 경로 설정
*/
var fileFuncType = $("#fileTempUpFrm").find("input[name='fileFuncType']").val();
var url = "<c:url value='/seed/innorix/getRealFileDirectoryAjax.do'/>"
getFileDirectory(fileFuncType, url, function(result){
directory = result;
});
/* innorix-3
이노릭스 업로드 컨트롤 생성
control 객체는 innorixCommon.js에서 생성
*/
control = innorix.create({
el: '#fileControl', // 컨트롤 출력 HTML 객체 ID
transferMode: 'both', // 업로드, 다운로드 혼합사용
agent : false,
installUrl: "<c:url value='/innorix/install/install.html'/>", // Agent 설치 페이지
uploadUrl: "<c:url value='/innorix/exam/seedUpload.jsp'/>", // 업로드 URL
allowExtension : ["txt","jpeg","jpg","png","gif","bmp","mp3","mp4","hwp","doc","docx","xls","xlsx","ppt","pptx","pdf","zip","alz"]
});
var downFileArr =${innorixFileListInfoStr};
/* innorix-5
이노릭스 업로드 완료 후
콜백 함수로 파일 정보 전달
*/
control.on('uploadComplete', function (p) {
console.log('uploadComplete : ', p);
fn_callBackInnorix(p.files); // 파일 정보 DB isnert function
});
// 파일전송 컨트롤 로딩 완료
control.on('loadComplete', function (p) {
resetFileArr = downFileArr; // 다운로드 정보 초기화 정보 생성
resetFileArr = resetFileArr.slice(0); // 배열 깊은 복사
control.presetDownloadFiles(resetFileArr); // 다운로드 파일 추가
});
// 파일 삭제 이벤트
control.on('removeFiles', function (p) {
fn_deleteCallBackInnorix(p[0].dataIdx)
});
});
/* innorix-4
이노릭스 업로드 시작
첨부파일이 있을 시 업로드 후 게시글 수정
첨부파일이 없을 시 바로 게시글 수정
*/
function innorixUpload(){
if(control.getUploadFiles().length > 0){
var postObj = new Object();
postObj.directory = directory;
control.setPostData(postObj);
control.upload(); // 업로드 시작
}else{
$("button[type='submit']").click();
}
}
/* innorix-6
게시글 등록 처리
첨부파일 정보 DB 등록 및 게시글 등록 처리
*/
function fn_callBackInnorix(data){
$("input[name='innorixFileListVO']").val(JSON.stringify(data));
$("button[type='submit']").click();
}
function fn_deleteCallBackInnorix(dataIdx){
var deleteFileData = $("#deleteFileDataId").val();
if(deleteFileData != ""){
deleteFileData = deleteFileData+","+dataIdx
}else{
deleteFileData = dataIdx
}
$("#deleteFileDataId").val(deleteFileData);
}
//상담분야
function caseGubunCombo(){
var url = "";

View File

@ -1,6 +1,7 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<!doctype html>
<html lang="ko">
<head>
@ -9,6 +10,13 @@
<link href='/css/seed.contents.css' rel='stylesheet' type='text/css'/>
<link href='/css/seed.mediaquery.css' rel='styleGsheet' type='text/css'/>
<link href='/site/ntcc/css/gtmCustom.css' rel='stylesheet' type='text/css'/>
<!-- 대용량 파일 업로드 솔루션 -->
<spring:eval expression="@property['Globals.Innorix.License']" var="license"/>
<script src="<c:url value='/js/kccadr/innorixCommon.js' />"></script>
<script src="<c:url value='/innorix/innorix_${license}.js' />"></script>
<link rel="stylesheet" href="<c:url value='/innorix/innorix.css'/>" type="text/css">
</head>
<body>
@ -132,32 +140,47 @@
</select>
</div>
</div>
<!-- innorix 대용량 업로드 솔루션 -->
<div class="bbs-view-item">
<p class="item-title">상담기록카드</p>
<div class="item-box">
<div class="temp-file-area">
<!-- 단일 파일 업로드 -->
<input type="button" value="첨부파일" class="btn btn_text btn_36 blue_border temp-file-button" onclick="control.openFileDialogSingle();"/>
<!-- 멀티 파일 업로드 -->
<!-- <input type="button" value="첨부파일" class="btn btn_text btn_36 blue_border temp-file-button" onclick="control.openFileDialog();"/> -->
</div>
<!-- 첨부파일 업로드 목록 및 드래그&드랍 영역 -->
<div id="fileControl"></div><br/>
<input type="hidden" name="fileFuncType" value="lawCard" />
<input type="hidden" name="innorixFileListVO" value="" />
</div>
<%-- <div class="item-box">
<div class="temp-file-area">
<label for="upFile" class="btn btn_text blue_border btn_36 temp-file-button" style="display:flex;justify-content:center;align-items:center;">첨부파일</label>
</div>
<ul class="upFileHtml" id="upFileHtml">
<%-- <c:forEach items="${fileList2}" var="list" varStatus="status">
<c:forEach items="${fileList2}" var="list" varStatus="status">
<li id="fileUploadP${status.count}" class="bbsFileHtml">
<img src="/img/user/bbs/icon_file.gif" alt="gif">&nbsp;&nbsp;
<a href="/seed/extra/down/file.do?dataIdx=${list.EXTRA_FILE_IDX}&funcType=${list.EXTRA_FUNC_TYPE}&pathKey1=${siteIdx}">${list.EXTRA_FILE_NAME}</a>
<a href="javascript:;" onclick="javascript:jf_delete_file('${status.count}', '${list.EXTRA_FILE_SIZE}');" class="del ml7"><img src="/img/user/bbs/btn_file_del.png" alt="삭제"></a>
<input type="hidden" name="fileIdx" value="${list.EXTRA_FILE_IDX}" class="fileIdxClass"/>
</li>
</c:forEach> --%>
</c:forEach>
</ul>
<input type="hidden" name="fileFuncType" value="lawCard" />
<input type="hidden" name="uploadFileCnt" value="${fileListSize}" id="uploadFileCntId" />
<input type="hidden" name="deleteFileData" value="" id="deleteFileDataId" />
</div>
</div> --%>
</div>
</div>
</fieldset>
<br>
<div class="btn_wrap right">
<button type="submit" class="btn btn_text btn_46 blue_fill btn-normal violet mb10">등록</button>
<button type="submit" class="btn btn_text btn_46 blue_fill btn-normal violet mb10" style="display:none;">등록</button>
<button type="button" class="btn btn_text btn_46 blue_fill btn-normal violet mb10" onclick="innorixUpload();">등록</button>
<button type="button" class="btn btn_text btn_46 gray_fill btn-normal lightgray mb10" onclick="goList()">목록</button>
</div>
</form:form>
@ -172,6 +195,12 @@
</form>
<script type="text/javascript">
/* innorix-1
첨부파일 업로드 경로 전역 변수 선언
*/
var directory = "";
function goList(){
location.href = "/gtm/case/onlineCounsel/lawList.do";
}
@ -249,8 +278,66 @@
$(optionList[i]).attr("selected", true);
}
}
/* 이노릭스 대용량 업로드 솔루션 */
/* innorix-2
첨부파일 업로드 경로 설정
fileFuncType와 세션의 siteId등의 정보를 이용해 업로드 경로 설정
*/
var fileFuncType = $("#fileTempUpFrm").find("input[name='fileFuncType']").val();
var url = "<c:url value='/seed/innorix/getRealFileDirectoryAjax.do'/>"
getFileDirectory(fileFuncType, url, function(result){
directory = result;
});
/* innorix-3
이노릭스 업로드 컨트롤 생성
control 객체는 innorixCommon.js에서 생성
*/
control = innorix.create({
el: '#fileControl', // 컨트롤 출력 HTML 객체 ID
transferMode: 'both', // 업로드, 다운로드 혼합사용
agent : false,
installUrl: "<c:url value='/innorix/install/install.html'/>", // Agent 설치 페이지
uploadUrl: "<c:url value='/innorix/exam/seedUpload.jsp'/>", // 업로드 URL
allowExtension : ["txt","jpeg","jpg","png","gif","bmp","mp3","mp4","hwp","doc","docx","xls","xlsx","ppt","pptx","pdf","zip","alz"]
});
/* innorix-5
이노릭스 업로드 완료 후
콜백 함수로 파일 정보 전달
*/
control.on('uploadComplete', function (p) {
console.log('uploadComplete : ', p);
fn_callBackInnorix(p.files); // 파일 정보 DB isnert function
});
});
/* innorix-4
이노릭스 업로드 시작
첨부파일이 있을 시 업로드 후 게시글 작성
첨부파일이 없을 시 바로 게시글 작성
*/
function innorixUpload(){
if(control.getUploadFiles().length > 0){
var postObj = new Object();
postObj.directory = directory;
control.setPostData(postObj);
control.upload(); // 업로드 시작 */
}else{
$("button[type='submit']").click();
}
}
/* innorix-6
게시글 등록 처리
첨부파일 정보 DB 등록 및 게시글 등록 처리
*/
function fn_callBackInnorix(data){
$("input[name='innorixFileListVO']").val(JSON.stringify(data));
$("button[type='submit']").click();
}
//상담분야
function caseGubunCombo(){
var url = "";

View File

@ -2,6 +2,7 @@
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<!doctype html>
<html lang="ko">
<head>
@ -10,6 +11,12 @@
<link href='/css/seed.contents.css' rel='stylesheet' type='text/css'/>
<link href='/css/seed.mediaquery.css' rel='styleGsheet' type='text/css'/>
<link href='/site/ntcc/css/gtmCustom.css' rel='stylesheet' type='text/css'/>
<!-- 대용량 파일 업로드 솔루션 -->
<spring:eval expression="@property['Globals.Innorix.License']" var="license"/>
<script src="<c:url value='/js/kccadr/innorixCommon.js' />"></script>
<script src="<c:url value='/innorix/innorix_${license}.js' />"></script>
<link rel="stylesheet" href="<c:url value='/innorix/innorix.css'/>" type="text/css">
</head>
<body>
@ -100,15 +107,31 @@
</div>
</div>
<!-- innorix 대용량 업로드 솔루션 -->
<div class="bbs-view-item">
<p class="item-title">첨부파일</p>
<div class="item-box">
<div class="temp-file-area">
<!-- 단일 파일 업로드 -->
<input type="button" value="첨부파일" class="btn btn_text btn_36 blue_border temp-file-button" onclick="control.openFileDialogSingle();"/>
<!-- 멀티 파일 업로드 -->
<!-- <input type="button" value="첨부파일" class="btn btn_text btn_36 blue_border temp-file-button" onclick="control.openFileDialog();"/> -->
</div>
<!-- 첨부파일 업로드 목록 및 드래그&드랍 영역 -->
<div id="fileControl"></div><br/>
<input type="hidden" name="fileFuncType" value="online" />
<input type="hidden" name="innorixFileListVO" value="" />
<input type="hidden" name="uploadFileCnt" value="${fileListSize}" id="uploadFileCntId" />
<input type="hidden" name="deleteFileData" value="" id="deleteFileDataId" />
</div>
<%-- <div class="item-box">
<c:forEach items="${fileList}" var="list" varStatus="status">
<div style="margin-top:10px">
<img src="/img/user/bbs/icon_file.gif" alt="gif">&nbsp;&nbsp;<a href="/seed/extra/down/file.do?dataIdx=${list.EXTRA_FILE_IDX}&funcType=${list.EXTRA_FUNC_TYPE}&pathKey1=${siteIdx}">${list.EXTRA_FILE_NAME}</a>
</div>
</c:forEach>
</div>
</div> --%>
</div>
<div class="bbs-view-item">
@ -251,7 +274,8 @@
<c:if test="${data.counselState eq '01'}">
<button type="button" class="btn btn_text btn_46 blue_border" onclick="goChange()">상담변경</button>
</c:if>
<button type="submit" class="btn btn_text btn_46 blue_fill">등록</button>
<button type="submit" class="btn btn_text btn_46 blue_fill" style="display:none;">등록</button>
<button type="button" class="btn btn_text btn_46 blue_fill" onclick="innorixUpload();">등록</button>
</c:if>
<button type="button" class="btn btn_text btn_46 gray_fill" onclick="goList()">목록</button>
</div>
@ -275,6 +299,13 @@
<input type="hidden" name="searchState" id="searchState" value="${param.searchState}">
</form>
<script type="text/javascript">
/* innorix-1
첨부파일 업로드 경로 전역 변수 선언
*/
var directory = "";
var fileList = "";
function goList(){
$("#moveFrm").attr("action", "/gtm/case/onlineCounsel/list.do");
$("#moveFrm").submit();
@ -357,8 +388,90 @@
$("#amPmBox").text(text);
/* innorix-2
첨부파일 업로드 경로 설정
fileFuncType와 세션의 siteId등의 정보를 이용해 업로드 경로 설정
*/
var fileFuncType = $("input[name='fileFuncType']").val();
var url = "<c:url value='/seed/innorix/getRealFileDirectoryAjax.do'/>"
getFileDirectory(fileFuncType, url, function(result){
directory = result;
});
/* innorix-3
이노릭스 업로드 컨트롤 생성
control 객체는 innorixCommon.js에서 생성
*/
control = innorix.create({
el: '#fileControl', // 컨트롤 출력 HTML 객체 ID
transferMode: 'both', // 업로드, 다운로드 혼합사용
agent : false,
installUrl: "<c:url value='/innorix/install/install.html'/>", // Agent 설치 페이지
uploadUrl: "<c:url value='/innorix/exam/seedUpload.jsp'/>", // 업로드 URL
allowExtension : ["txt","jpeg","jpg","png","gif","bmp","mp3","mp4","hwp","doc","docx","xls","xlsx","ppt","pptx","pdf","zip","alz"]
});
var downFileArr =${innorixFileListInfoStr};
/* innorix-5
이노릭스 업로드 완료 후
콜백 함수로 파일 정보 전달
*/
control.on('uploadComplete', function (p) {
console.log('uploadComplete : ', p);
fn_callBackInnorix(p.files); // 파일 정보 DB isnert function
});
// 파일전송 컨트롤 로딩 완료
control.on('loadComplete', function (p) {
resetFileArr = downFileArr; // 다운로드 정보 초기화 정보 생성
resetFileArr = resetFileArr.slice(0); // 배열 깊은 복사
control.presetDownloadFiles(resetFileArr); // 다운로드 파일 추가
});
// 파일 삭제 이벤트
control.on('removeFiles', function (p) {
fn_deleteCallBackInnorix(p[0].dataIdx)
});
});
/* innorix-4
이노릭스 업로드 시작
첨부파일이 있을 시 업로드 후 게시글 수정
첨부파일이 없을 시 바로 게시글 수정
*/
function innorixUpload(){
if(control.getUploadFiles().length > 0){
var postObj = new Object();
postObj.directory = directory;
control.setPostData(postObj);
control.upload(); // 업로드 시작
}else{
$("button[type='submit']").click();
}
}
/* innorix-6
게시글 등록 처리
첨부파일 정보 DB 등록 및 게시글 등록 처리
*/
function fn_callBackInnorix(data){
$("input[name='innorixFileListVO']").val(JSON.stringify(data));
$("button[type='submit']").click();
}
function fn_deleteCallBackInnorix(dataIdx){
var deleteFileData = $("#deleteFileDataId").val();
if(deleteFileData != ""){
deleteFileData = deleteFileData+","+dataIdx
}else{
deleteFileData = dataIdx
}
$("#deleteFileDataId").val(deleteFileData);
}
//상담분야
function caseGubunCombo(){
var url = "";

View File

@ -2,6 +2,7 @@
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<!doctype html>
<html lang="ko">
<head>
@ -10,6 +11,13 @@
<link href='/css/seed.contents.css' rel='stylesheet' type='text/css'/>
<link href='/css/seed.mediaquery.css' rel='styleGsheet' type='text/css'/>
<link href='/site/ntcc/css/gtmCustom.css' rel='stylesheet' type='text/css'/>
<!-- 대용량 파일 업로드 솔루션 -->
<spring:eval expression="@property['Globals.Innorix.License']" var="license"/>
<script src="<c:url value='/js/kccadr/innorixCommon.js' />"></script>
<script src="<c:url value='/innorix/innorix_${license}.js' />"></script>
<link rel="stylesheet" href="<c:url value='/innorix/innorix.css'/>" type="text/css">
</head>
<body>
@ -63,9 +71,26 @@
</div>
</div>
<!-- innorix 대용량 업로드 솔루션 -->
<div class="bbs-view-item">
<p class="item-title">첨부파일</p>
<div class="item-box">
<div class="item-box">
<div class="temp-file-area">
<!-- 단일 파일 업로드 -->
<input type="button" value="첨부파일" class="btn btn_text btn_36 blue_border temp-file-button" onclick="control.openFileDialogSingle();"/>
<!-- 멀티 파일 업로드 -->
<!-- <input type="button" value="첨부파일" class="btn btn_text btn_36 blue_border temp-file-button" onclick="control.openFileDialog();"/> -->
</div>
<!-- 첨부파일 업로드 목록 및 드래그&드랍 영역 -->
<div id="fileControl"></div><br/>
<input type="hidden" name="fileFuncType" value="online" />
<input type="hidden" name="innorixFileListVO" value="" />
<input type="hidden" name="uploadFileCnt" value="0" id="uploadFileCntId" />
<input type="hidden" name="deleteFileData" value="" id="deleteFileDataId" />
</div>
<!-- <div class="item-box">
<div class="temp-file-area">
<label for="upFile" class="btn btn_text btn_36 blue_border temp-file-button" style="display:flex;justify-content:center;align-items:center;">첨부파일</label>
</div>
@ -75,7 +100,7 @@
<input type="hidden" name="fileFuncType" value="online" />
<input type="hidden" name="uploadFileCnt" value="0" id="uploadFileCntId" />
<input type="hidden" name="deleteFileData" value="" id="deleteFileDataId" />
</div>
</div> -->
</div>
<div class="bbs-view-item">
<p class="item-title">이메일</p>
@ -187,7 +212,8 @@
</fieldset>
<div class="btn_wrap right">
<button type="submit" class="btn btn_text btn_46 blue_fill">등록</button>
<button type="submit" class="btn btn_text btn_46 blue_fill" style="display:none;">등록</button>
<button type="button" class="btn btn_text btn_46 blue_fill" onclick="innorixUpload();">등록</button>
<button type="button" class="btn btn_text btn_46 gray_fill" onclick="goList()">목록</button>
</div>
</form:form>
@ -218,6 +244,11 @@
location.href="/gtm/case/onlineCounsel/list.do";
}
/* innorix-1
첨부파일 업로드 경로 전역 변수 선언
*/
var directory = "";
$(document).ready(function(){
@ -273,8 +304,66 @@
counselAppTypeCombo();
counselResertGubunCombo();
counselRouteCombo();
/* innorix-2
첨부파일 업로드 경로 설정
fileFuncType와 세션의 siteId등의 정보를 이용해 업로드 경로 설정
*/
var fileFuncType = $("#fileTempUpFrm").find("input[name='fileFuncType']").val();
var url = "<c:url value='/seed/innorix/getRealFileDirectoryAjax.do'/>"
getFileDirectory(fileFuncType, url, function(result){
directory = result;
});
/* innorix-3
이노릭스 업로드 컨트롤 생성
control 객체는 innorixCommon.js에서 생성
*/
control = innorix.create({
el: '#fileControl', // 컨트롤 출력 HTML 객체 ID
transferMode: 'both', // 업로드, 다운로드 혼합사용
agent : false,
installUrl: "<c:url value='/innorix/install/install.html'/>", // Agent 설치 페이지
uploadUrl: "<c:url value='/innorix/exam/seedUpload.jsp'/>", // 업로드 URL
allowExtension : ["txt","jpeg","jpg","png","gif","bmp","mp3","mp4","hwp","doc","docx","xls","xlsx","ppt","pptx","pdf","zip","alz"]
});
/* innorix-5
이노릭스 업로드 완료 후
콜백 함수로 파일 정보 전달
*/
control.on('uploadComplete', function (p) {
console.log('uploadComplete : ', p);
fn_callBackInnorix(p.files); // 파일 정보 DB isnert function
});
});
/* innorix-4
이노릭스 업로드 시작
첨부파일이 있을 시 업로드 후 게시글 작성
첨부파일이 없을 시 바로 게시글 작성
*/
function innorixUpload(){
if(control.getUploadFiles().length > 0){
var postObj = new Object();
postObj.directory = directory;
control.setPostData(postObj);
control.upload(); // 업로드 시작 */
}else{
$("button[type='submit']").click();
}
}
/* innorix-6
게시글 등록 처리
첨부파일 정보 DB 등록 및 게시글 등록 처리
*/
function fn_callBackInnorix(data){
$("input[name='innorixFileListVO']").val(JSON.stringify(data));
$("button[type='submit']").click();
}
//상담분야
function caseGubunCombo(){
var url = "";

View File

@ -1,6 +1,7 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<!doctype html>
<html lang="ko">
<head>
@ -10,6 +11,12 @@
<link href='/css/seed.mediaquery.css' rel='styleGsheet' type='text/css'/>
<link href='/site/ntcc/css/gtmCustom.css' rel='stylesheet' type='text/css'/>
<!-- 대용량 파일 업로드 솔루션 -->
<spring:eval expression="@property['Globals.Innorix.License']" var="license"/>
<script src="<c:url value='/js/kccadr/innorixCommon.js' />"></script>
<script src="<c:url value='/innorix/innorix_${license}.js' />"></script>
<link rel="stylesheet" href="<c:url value='/innorix/innorix.css'/>" type="text/css">
<script src="/editor/webnote.js"></script>
</head>
@ -46,9 +53,25 @@
${memberName}
</div>
</div>
<!-- innorix 대용량 업로드 솔루션 -->
<div class="bbs-view-item">
<p class="item-title">첨부자료</p>
<div class="item-box">
<div class="temp-file-area">
<!-- 단일 파일 업로드 -->
<input type="button" value="첨부파일" class="btn btn_text btn_36 blue_border temp-file-button" onclick="control.openFileDialogSingle();"/>
<!-- 멀티 파일 업로드 -->
<!-- <input type="button" value="첨부파일" class="btn btn_text btn_36 blue_border temp-file-button" onclick="control.openFileDialog();"/> -->
</div>
<!-- 첨부파일 업로드 목록 및 드래그&드랍 영역 -->
<div id="fileControl"></div><br/>
<input type="hidden" name="fileFuncType" value="team" />
<input type="hidden" name="innorixFileListVO" value="" />
<input type="hidden" name="uploadFileCnt" value="${fileListSize}" id="uploadFileCntId" />
<input type="hidden" name="deleteFileData" value="" id="deleteFileDataId" />
</div>
<%-- <div class="item-box">
<div class="temp-file-area">
<label for="upFile" class="btn btn_text btn_36 blue_border temp-file-button" style="display:flex;justify-content:center;align-items:center;">첨부파일</label>
</div>
@ -64,7 +87,7 @@
<input type="hidden" name="fileFuncType" value="team" />
<input type="hidden" name="uploadFileCnt" value="${fileListSize}" id="uploadFileCntId" />
<input type="hidden" name="deleteFileData" value="" id="deleteFileDataId" />
</div>
</div> --%>
</div>
<div class="bbs-view-item">
<p class="item-title">내용</p>
@ -75,7 +98,8 @@
</div>
<div class="btn_wrap right">
<button type="submit" class="btn btn_text btn_46 blue_fill btn-normal violet">저장</button>
<button type="submit" class="btn btn_text btn_46 blue_fill btn-normal violet" style="display:none;">저장</button>
<button type="button" class="btn btn_text btn_46 blue_fill btn-normal violet" onclick="innorixUpload();">저장</button>
<a href="javascript:goList()" class="btn btn_text btn_46 gray_fill btn-normal lightgray" style="display:flex;justify-content:center;align-items:center;">목록</a>
</div>
</fieldset>
@ -116,7 +140,14 @@
fade_popup: true, //팝업 열리기/닫히기 시 fade in/out 기능 적용 여부(사용pc 사용이 낮은경우 false로 )
attach_list_view: false
});
/* innorix-1
첨부파일 업로드 경로 전역 변수 선언
*/
var directory = "";
var fileList = "";
$(window).load(function(){
$("#idx_toolbar_webnote_content_imagecenter").hide();
@ -150,8 +181,93 @@
return false;
} */
});
/* 이노릭스 대용량 업로드 솔루션 */
/* innorix-2
첨부파일 업로드 경로 설정
fileFuncType와 세션의 siteId등의 정보를 이용해 업로드 경로 설정
*/
var fileFuncType = $("#fileTempUpFrm").find("input[name='fileFuncType']").val();
var url = "<c:url value='/seed/innorix/getRealFileDirectoryAjax.do'/>"
getFileDirectory(fileFuncType, url, function(result){
directory = result;
});
/* innorix-3
이노릭스 업로드 컨트롤 생성
control 객체는 innorixCommon.js에서 생성
*/
control = innorix.create({
el: '#fileControl', // 컨트롤 출력 HTML 객체 ID
transferMode: 'both', // 업로드, 다운로드 혼합사용
agent : false,
installUrl: "<c:url value='/innorix/install/install.html'/>", // Agent 설치 페이지
uploadUrl: "<c:url value='/innorix/exam/seedUpload.jsp'/>", // 업로드 URL
allowExtension : ["txt","jpeg","jpg","png","gif","bmp","mp3","mp4","hwp","doc","docx","xls","xlsx","ppt","pptx","pdf","zip","alz"]
});
var downFileArr =${innorixFileListInfoStr};
/* innorix-5
이노릭스 업로드 완료 후
콜백 함수로 파일 정보 전달
*/
control.on('uploadComplete', function (p) {
console.log('uploadComplete : ', p);
fn_callBackInnorix(p.files); // 파일 정보 DB isnert function
});
// 파일전송 컨트롤 로딩 완료
control.on('loadComplete', function (p) {
resetFileArr = downFileArr; // 다운로드 정보 초기화 정보 생성
resetFileArr = resetFileArr.slice(0); // 배열 깊은 복사
control.presetDownloadFiles(resetFileArr); // 다운로드 파일 추가
});
// 파일 삭제 이벤트
control.on('removeFiles', function (p) {
fn_deleteCallBackInnorix(p[0].dataIdx)
});
});
/* innorix-4
이노릭스 업로드 시작
첨부파일이 있을 시 업로드 후 게시글 수정
첨부파일이 없을 시 바로 게시글 수정
*/
function innorixUpload(){
if(control.getUploadFiles().length > 0){
var postObj = new Object();
postObj.directory = directory;
control.setPostData(postObj);
control.upload(); // 업로드 시작
}else{
$("button[type='submit']").click();
}
}
/* innorix-6
게시글 등록 처리
첨부파일 정보 DB 등록 및 게시글 등록 처리
*/
function fn_callBackInnorix(data){
$("input[name='innorixFileListVO']").val(JSON.stringify(data));
$("button[type='submit']").click();
}
function fn_deleteCallBackInnorix(dataIdx){
var deleteFileData = $("#deleteFileDataId").val();
if(deleteFileData != ""){
deleteFileData = deleteFileData+","+dataIdx
}else{
deleteFileData = dataIdx
}
$("#deleteFileDataId").val(deleteFileData);
}
function goList(){
$("#paramFrm").submit();
}

View File

@ -1,6 +1,7 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<!doctype html>
<html lang="ko">
<head>
@ -10,6 +11,12 @@
<link href='/css/seed.mediaquery.css' rel='styleGsheet' type='text/css'/>
<link href='/site/ntcc/css/gtmCustom.css' rel='stylesheet' type='text/css'/>
<!-- 대용량 파일 업로드 솔루션 -->
<spring:eval expression="@property['Globals.Innorix.License']" var="license"/>
<script src="<c:url value='/js/kccadr/innorixCommon.js' />"></script>
<script src="<c:url value='/innorix/innorix_${license}.js' />"></script>
<link rel="stylesheet" href="<c:url value='/innorix/innorix.css'/>" type="text/css">
<script src="/editor/webnote.js"></script>
</head>
<body>
@ -84,9 +91,24 @@
${memberName}
</div>
</div>
<!-- innorix 대용량 업로드 솔루션 -->
<div class="bbs-view-item">
<p class="item-title">첨부자료</p>
<div class="item-box">
<div class="temp-file-area">
<!-- 단일 파일 업로드 -->
<input type="button" value="첨부파일" class="btn btn_text btn_36 blue_border temp-file-button" onclick="control.openFileDialogSingle();"/>
<!-- 멀티 파일 업로드 -->
<!-- <input type="button" value="첨부파일" class="btn btn_text btn_36 blue_border temp-file-button" onclick="control.openFileDialog();"/> -->
</div>
<!-- 첨부파일 업로드 목록 및 드래그&드랍 영역 -->
<div id="fileControl"></div><br/>
<input type="hidden" name="fileFuncType" value="team" />
<input type="hidden" name="innorixFileListVO" value="" />
</div>
<!-- <div class="item-box">
<div class="temp-file-area">
<label for="upFile" class="btn btn_text btn_36 blue_border temp-file-button" style="display:flex;justify-content:center;align-items:center;">첨부파일</label>
</div>
@ -96,7 +118,7 @@
<input type="hidden" name="fileFuncType" value="team" />
<input type="hidden" name="uploadFileCnt" value="0" id="uploadFileCntId" />
<input type="hidden" name="deleteFileData" value="" id="deleteFileDataId" />
</div>
</div> -->
</div>
<div class="bbs-view-item">
<p class="item-title">내용</p>
@ -106,7 +128,8 @@
</div>
</div>
<div class="btn_wrap right">
<button type="submit" class="btn btn_text btn_46 blue_fill">저장</button>
<button type="submit" class="btn btn_text btn_46 blue_fill" style="display:none;">저장</button>
<button type="button" class="btn btn_text btn_46 blue_fill" onclick="innorixUpload();">저장</button>
<button type="button" onclick="javascript:goList()" class="btn btn_text btn_46 gray_fill">목록</button>
</div>
</fieldset>
@ -149,6 +172,11 @@
});
/* innorix-1
첨부파일 업로드 경로 전역 변수 선언
*/
var directory = "";
$(window).load(function(){
$("#idx_toolbar_webnote_content_imagecenter").hide();
@ -181,8 +209,66 @@
return false;
} */
});
/* innorix-2
첨부파일 업로드 경로 설정
fileFuncType와 세션의 siteId등의 정보를 이용해 업로드 경로 설정
*/
var fileFuncType = $("#fileTempUpFrm").find("input[name='fileFuncType']").val();
var url = "<c:url value='/seed/innorix/getRealFileDirectoryAjax.do'/>"
getFileDirectory(fileFuncType, url, function(result){
directory = result;
});
/* innorix-3
이노릭스 업로드 컨트롤 생성
control 객체는 innorixCommon.js에서 생성
*/
control = innorix.create({
el: '#fileControl', // 컨트롤 출력 HTML 객체 ID
transferMode: 'both', // 업로드, 다운로드 혼합사용
agent : false,
installUrl: "<c:url value='/innorix/install/install.html'/>", // Agent 설치 페이지
uploadUrl: "<c:url value='/innorix/exam/seedUpload.jsp'/>", // 업로드 URL
allowExtension : ["txt","jpeg","jpg","png","gif","bmp","mp3","mp4","hwp","doc","docx","xls","xlsx","ppt","pptx","pdf","zip","alz"]
});
/* innorix-5
이노릭스 업로드 완료 후
콜백 함수로 파일 정보 전달
*/
control.on('uploadComplete', function (p) {
console.log('uploadComplete : ', p);
fn_callBackInnorix(p.files); // 파일 정보 DB isnert function
});
});
/* innorix-4
이노릭스 업로드 시작
첨부파일이 있을 시 업로드 후 게시글 작성
첨부파일이 없을 시 바로 게시글 작성
*/
function innorixUpload(){
if(control.getUploadFiles().length > 0){
var postObj = new Object();
postObj.directory = directory;
control.setPostData(postObj);
control.upload(); // 업로드 시작 */
}else{
$("button[type='submit']").click();
}
}
/* innorix-6
게시글 등록 처리
첨부파일 정보 DB 등록 및 게시글 등록 처리
*/
function fn_callBackInnorix(data){
$("input[name='innorixFileListVO']").val(JSON.stringify(data));
$("button[type='submit']").click();
}
function goList(){
$("#paramFrm").submit();
}