This commit is contained in:
myname 2025-09-26 18:03:19 +09:00
commit 963e0d60ac
20 changed files with 512 additions and 317 deletions

34
pom.xml
View File

@ -28,28 +28,8 @@
<repositories>
<repository>
<id>mvn2</id>
<url>https://repo1.maven.org/maven2/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>egovframe</id>
<url>https://www.egovframe.go.kr/maven/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>egovframe2</id>
<url>http://maven.egovframe.kr:8080/maven/</url>
<id>maven-public</id>
<url>http://nexus.iten.co.kr:9999/repository/maven-public/</url>
<releases>
<enabled>true</enabled>
</releases>
@ -57,16 +37,6 @@
<enabled>false</enabled>
</snapshots>
</repository>
<!-- <repository>
<id>cubrid.release.repository</id>
<url>http://maven.cubrid.org/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository> -->
</repositories>
<dependencies>

View File

@ -44,11 +44,6 @@ adr.changedate.appChgCelnum=휴대전화
<arg0 key="ve.instrdetail.addrDetail" /> <!-- message-common 에서 설정한 값을 사용한다. -->
</field>
<!-- 거주지 -->
<field property="rsdne" depends="required"> <!-- VO 의 컬럼값과 맞춰야 한다. -->
<arg0 key="ve.instrdetail.rsdne" /> <!-- message-common 에서 설정한 값을 사용한다. -->
</field>
<!-- 생년월일 -->
<field property="dBirth" depends="required"> <!-- VO 의 컬럼값과 맞춰야 한다. -->
<arg0 key="ve.instrdetail.dBirth" /> <!-- message-common 에서 설정한 값을 사용한다. -->

View File

@ -407,18 +407,6 @@
<td colspan="3" style="position: relative;">
<label for="instrNm" class="label">강사명</label>
<input type="text" name="instrNm" id="instrNm" size="25" value="<c:out value='${info.instrNm}'/>" maxLength="20" placeholder="홍길동">
<div class="put_photo">
<div class="put_photo_in">
<div class="put_photo_box">
<c:if test="${empty info.phtAtchFileId}">
<img src="${pageContext.request.contextPath}/visitEdu/usr/publish/images/content/img_add.png" alt="이미지를 넣어주세요">
</c:if>
<c:if test="${not empty info.phtAtchFileId}">
<img id="instrPhoto" class="id_pic" alt="${info.instrNm} 사진" src='<c:url value='/uss/ion/pwm/getImage.do'/>?atchFileId=<c:out value="${info.phtAtchFileId}"/>' />
</c:if>
</div>
</div>
</div>
</td>
</tr>
<tr>
@ -468,17 +456,6 @@
</div>
</td>
</tr>
<tr>
<th scope="row">
<p>거주지</p>
</th>
<td colspan="3">
<input type="text" title="거주지" size="25" placeholder="ex) 경기(군포시 용포동)" readonly="readonly"
value="<c:out value='${info.rsdne}'/>" maxLength="20" name="rsdne" id="rsdne">
<button type="button" class="btn_type06" data-tooltip="sub26_pop01" onclick="fncAreaList();return false;">선택</button>
<input type="hidden" name="rsdneId" id="rsdneId" value=""/><!-- 거주지ID -->
</td>
</tr>
<tr>
<th scope="row">
<p>생년월일</p>

View File

@ -183,7 +183,6 @@
<table>
<colgroup>
<col style="width: 10%">
<col style="width: 20%">
<col style="width: 15%">
<col style="width: 14%">
<col style="width: 14%">
@ -193,7 +192,6 @@
<thead>
<tr>
<th>이름</th>
<th>거주지</th>
<th>소속</th>
<th>직위</th>
<th>위촉년도</th>
@ -207,9 +205,6 @@
<td>
<c:out value="${list.instrNm}"/>
</td>
<td>
<c:out value="${list.rsdne}"/>
</td>
<td>
<c:out value="${list.blng}"/>
</td>

View File

@ -161,7 +161,7 @@ $( document ).ready(function(){
$.ajax({
type: "POST",
enctype: 'multipart/form-data',
url: "${pageContext.request.contextPath}/ve/oprtn/cmdTrgtEdu/instrInfo/instrAplctRegAjax.do",
url: "${pageContext.request.contextPath}/ve/oprtn/instr/adultVisitEdu/instrInfo/instrAplctRegAjax.do",
data: data,
dataType:'json',
async: false,
@ -190,7 +190,7 @@ $( document ).ready(function(){
function fncGoList(){
var createForm = document.createForm;
createForm.action = "<c:url value='/ve/oprtn/cmdTrgtEdu/instrInfo/instrAplctMngList.do'/>";
createForm.action = "<c:url value='/ve/oprtn/instr/adultVisitEdu/instrInfo/instrAplctMngList.do'/>";
createForm.submit();
}
@ -205,72 +205,6 @@ $( document ).ready(function(){
}
function fncAreaList(paramObj) {
if(paramObj == undefined || paramObj == ''){
paramObj = {
pageIndex : 1,
searchKeyword : "",
searchCondition : "",
pageUnit : 5,
formId : "createForm"
};
}
// 학교 리스트 팝업 호출
commonPopLayeropen(
//"/web/ve/aplct/cpyrgExprnClsrm/scholInfo/popup/scholPopList.do"
"${pageContext.request.contextPath}/web/ve/cmdTrgtEdu/instrInfo/popup/rsdncPopList.do"
, 690
, 538
, paramObj
, "N"
, "rsdncPop"
);
/*
// 이전신청데이터 팝업 호출..
commonPopLayeropen(
"/web/kccadr/adjst/popup/adjstReqRegistPopList.do"
, 500
, 600
, paramObj
, "N"
, "adjstHostoryPop"
);
*/
}
function callBackAreaPop(areaData){
if(emptyObject(areaData)){
alert("오류가 발생하였습니다. 관리자에게 문의해주세요 [ERR-AREA-POP]")
return false;
}
$("#rsdneId").val(areaData.postId);
$("#rsdne").val(areaData.oneDepthNm+"("+areaData.twoDepthNm+" "+areaData.threeDepthNm+")");
console.log(areaData);
}
function fncRsdnePopup() { //거주지 팝업
/* document.createForm.action = "<c:url value='/ve/oprtn/cmdTrgtEdu/popup/instrRsdnePopup.do'/>";
window.open("#", "_rsdnePopup", "scrollbars = no, top=100px, left=100px, height=450px, width=450px");
document.createForm.target = "_rsdnePopup";
document.createForm.formId.value = "createForm";
document.createForm.submit(); */
commonPopWindowopenForm("${pageContext.request.contextPath}/ve/oprtn/instr/tngrVisitEdu/popup/instrRsdnePopup.do", "750", "660", "rsdnePopup", $('#createForm'));
}
function fncPhotoPopup() {
var pop = document.createForm;
commonPopWindowopenForm("${pageContext.request.contextPath}/ve/oprtn/cmdTrgtEdu/popup/instrAplctPhotoPopup.do", "750", "660", "fncPhotoPopup", $('#createForm'));
}
</script>
</head>
@ -332,14 +266,6 @@ $( document ).ready(function(){
</th>
<td colspan="3" style="position: relative;">
<input type="text" name="instrNm"/>
<div class="put_photo">
<div class="put_photo_in">
<div class="put_photo_box">
<img src="${pageContext.request.contextPath}/visitEdu/usr/publish/images/content/img_add.png" alt="이미지를 넣어주세요">
</div>
<!-- <button type="button" class="btnType01" onclick="fncPhotoPopup(); return false;">사진등록</button> -->
</div>
</div>
</td>
</tr>
<tr>
@ -389,18 +315,6 @@ $( document ).ready(function(){
</div>
</td>
</tr>
<tr>
<th scope="row">
<p>거주지</p>
</th>
<td colspan="3">
<input type="text" title="거주지" size="25" placeholder="ex) 경기(군포시 용포동)" readonly="readonly"
value="<c:out value='${info.rsdne}'/>" maxLength="20" name="rsdne" id="rsdne">
<button
type="button" class="btnType01 btn_type01" data-tooltip="sub26_pop01" onclick="fncRsdnePopup();return false;">선택</button>
<input type="hidden" name="rsdneId" id="rsdneId" value=""/><!-- 거주지ID -->
</td>
</tr>
<tr>
<th scope="row">
<p>생년월일</p>

View File

@ -487,12 +487,6 @@ function getYears(getYear){
<c:out value='${info.addr}' />&nbsp;<c:out value='${info.addrDetail}' />
</td>
</tr>
<tr>
<th scope="row">
<p>거주지</p>
</th>
<td colspan="3"><c:out value='${info.rsdne}' /></td>
</tr>
<tr>
<th scope="row">
<p>생년월일</p>
@ -694,18 +688,6 @@ function getYears(getYear){
</div>
</td>
</tr>
<tr>
<th scope="row">
<p>거주지</p>
</th>
<td colspan="3">
<input type="text" title="거주지" size="25" placeholder="ex) 경기(군포시 용포동)" readonly="readonly"
value="<c:out value='${info.rsdne}'/>" maxLength="20" name="rsdne" id="rsdne">
<button
type="button" class="btnType01 btn_type06" data-tooltip="sub26_pop01" onclick="fncRsdnePopup();return false;">선택</button>
<input type="hidden" name="rsdneId" id="rsdneId" value=""/><!-- 거주지ID -->
</td>
</tr>
<tr>
<th scope="row">
<p>생년월일</p>

View File

@ -234,7 +234,6 @@
<col style="width: 5%">
<col style="width: 10%;">
<col style="width: 9%;">
<col style="width: 16%">
<col style="width: auto;">
<col style="width: 12%;">
<%-- <col style="width: 12%;"> --%>
@ -246,7 +245,6 @@
<th><input type="checkbox" name="checkAll" id="checkAll" onclick="chkAll(this);" /><label for="checkAll"></label></th>
<th scope="col">이름</th>
<th scope="col">구분</th>
<th scope="col">거주지</th>
<th scope="col">강의 가능지역</th>
<th scope="col">연락처</th>
<!-- <th scope="col">주 5일여부</th> -->
@ -268,9 +266,6 @@
<ve:code codeId="VE0018" code="${list.apptDiv}"/>
</td>
<td onclick="fncGoDetail('<c:out value="${list.userId}"/>', '<c:out value="${list.instrDiv}"/>' , '<c:out value="${list.instrDetailOrd}"/>', '<c:out value="${list.rqstCnt}"/>');" style="cursor:pointer;">
<c:out value="${list.rsdne}"/>
</td>
<td>
<c:choose>
<c:when test="${list.lctrAreaCnt eq '0'}">

View File

@ -50,7 +50,7 @@
prcsDivChk(prcsDiv);
$(".btn_type01").on('click', function(){
$("#filebutton").on('click', function(){
$("#file_temp").click();
});

View File

@ -407,18 +407,6 @@
<td colspan="3" style="position: relative;">
<label for="instrNm" class="label">강사명</label>
<input type="text" name="instrNm" id="instrNm" size="25" value="<c:out value='${info.instrNm}'/>" maxLength="20" placeholder="홍길동">
<div class="put_photo">
<div class="put_photo_in">
<div class="put_photo_box">
<c:if test="${empty info.phtAtchFileId}">
<img src="${pageContext.request.contextPath}/visitEdu/usr/publish/images/content/img_add.png" alt="이미지를 넣어주세요">
</c:if>
<c:if test="${not empty info.phtAtchFileId}">
<img id="instrPhoto" class="id_pic" alt="${info.instrNm} 사진" src='<c:url value='/uss/ion/pwm/getImage.do'/>?atchFileId=<c:out value="${info.phtAtchFileId}"/>' />
</c:if>
</div>
</div>
</div>
</td>
</tr>
<tr>
@ -468,17 +456,6 @@
</div>
</td>
</tr>
<tr>
<th scope="row">
<p>거주지</p>
</th>
<td colspan="3">
<input type="text" title="거주지" size="25" placeholder="ex) 경기(군포시 용포동)" readonly="readonly"
value="<c:out value='${info.rsdne}'/>" maxLength="20" name="rsdne" id="rsdne">
<button type="button" class="btn_type01" data-tooltip="sub26_pop01" onclick="fncAreaList();return false;">선택</button>
<input type="hidden" name="rsdneId" id="rsdneId" value=""/><!-- 거주지ID -->
</td>
</tr>
<tr>
<th scope="row">
<p>생년월일</p>

View File

@ -183,7 +183,6 @@
<table>
<colgroup>
<col style="width: 10%">
<col style="width: 20%">
<col style="width: 15%">
<col style="width: 14%">
<col style="width: 14%">
@ -193,7 +192,6 @@
<thead>
<tr>
<th>이름</th>
<th>거주지</th>
<th>소속</th>
<th>직위</th>
<th>위촉년도</th>
@ -207,9 +205,6 @@
<td>
<c:out value="${list.instrNm}"/>
</td>
<td>
<c:out value="${list.rsdne}"/>
</td>
<td>
<c:out value="${list.blng}"/>
</td>

View File

@ -255,22 +255,6 @@ $( document ).ready(function(){
console.log(areaData);
}
function fncRsdnePopup() { //거주지 팝업
/* document.createForm.action = "<c:url value='/ve/oprtn/cmdTrgtEdu/popup/instrRsdnePopup.do'/>";
window.open("#", "_rsdnePopup", "scrollbars = no, top=100px, left=100px, height=450px, width=450px");
document.createForm.target = "_rsdnePopup";
document.createForm.formId.value = "createForm";
document.createForm.submit(); */
commonPopWindowopenForm("${pageContext.request.contextPath}/ve/oprtn/instr/tngrVisitEdu/popup/instrRsdnePopup.do", "750", "660", "rsdnePopup", $('#createForm'));
}
function fncPhotoPopup() {
var pop = document.createForm;
commonPopWindowopenForm("${pageContext.request.contextPath}/ve/oprtn/cmdTrgtEdu/popup/instrAplctPhotoPopup.do", "750", "660", "fncPhotoPopup", $('#createForm'));
}
</script>
</head>
@ -332,14 +316,6 @@ $( document ).ready(function(){
</th>
<td colspan="3" style="position: relative;">
<input type="text" name="instrNm"/>
<div class="put_photo">
<div class="put_photo_in">
<div class="put_photo_box">
<img src="${pageContext.request.contextPath}/visitEdu/usr/publish/images/content/img_add.png" alt="이미지를 넣어주세요">
</div>
<!-- <button type="button" class="btnType01" onclick="fncPhotoPopup(); return false;">사진등록</button> -->
</div>
</div>
</td>
</tr>
<tr>
@ -389,18 +365,6 @@ $( document ).ready(function(){
</div>
</td>
</tr>
<tr>
<th scope="row">
<p>거주지</p>
</th>
<td colspan="3">
<input type="text" title="거주지" size="25" placeholder="ex) 경기(군포시 용포동)" readonly="readonly"
value="<c:out value='${info.rsdne}'/>" maxLength="20" name="rsdne" id="rsdne">
<button
type="button" class="btnType01 btn_type01" data-tooltip="sub26_pop01" onclick="fncRsdnePopup();return false;">선택</button>
<input type="hidden" name="rsdneId" id="rsdneId" value=""/><!-- 거주지ID -->
</td>
</tr>
<tr>
<th scope="row">
<p>생년월일</p>

View File

@ -487,12 +487,6 @@ function getYears(getYear){
<c:out value='${info.addr}' />&nbsp;<c:out value='${info.addrDetail}' />
</td>
</tr>
<tr>
<th scope="row">
<p>거주지</p>
</th>
<td colspan="3"><c:out value='${info.rsdne}' /></td>
</tr>
<tr>
<th scope="row">
<p>생년월일</p>
@ -694,18 +688,6 @@ function getYears(getYear){
</div>
</td>
</tr>
<tr>
<th scope="row">
<p>거주지</p>
</th>
<td colspan="3">
<input type="text" title="거주지" size="25" placeholder="ex) 경기(군포시 용포동)" readonly="readonly"
value="<c:out value='${info.rsdne}'/>" maxLength="20" name="rsdne" id="rsdne">
<button
type="button" class="btnType01 btn_type01" data-tooltip="sub26_pop01" onclick="fncRsdnePopup();return false;">선택</button>
<input type="hidden" name="rsdneId" id="rsdneId" value=""/><!-- 거주지ID -->
</td>
</tr>
<tr>
<th scope="row">
<p>생년월일</p>

View File

@ -234,7 +234,6 @@
<col style="width: 5%">
<col style="width: 10%;">
<col style="width: 9%;">
<col style="width: 16%">
<col style="width: auto;">
<col style="width: 12%;">
<%-- <col style="width: 12%;"> --%>
@ -246,7 +245,6 @@
<th><input type="checkbox" name="checkAll" id="checkAll" onclick="chkAll(this);" /><label for="checkAll"></label></th>
<th scope="col">이름</th>
<th scope="col">구분</th>
<th scope="col">거주지</th>
<th scope="col">강의 가능지역</th>
<th scope="col">연락처</th>
<!-- <th scope="col">주 5일여부</th> -->
@ -268,9 +266,6 @@
<ve:code codeId="VE0018" code="${list.apptDiv}"/>
</td>
<td onclick="fncGoDetail('<c:out value="${list.userId}"/>', '<c:out value="${list.instrDiv}"/>' , '<c:out value="${list.instrDetailOrd}"/>', '<c:out value="${list.rqstCnt}"/>');" style="cursor:pointer;">
<c:out value="${list.rsdne}"/>
</td>
<td>
<c:choose>
<c:when test="${list.lctrAreaCnt eq '0'}">

View File

@ -50,7 +50,7 @@
prcsDivChk(prcsDiv);
$(".btn_type01").on('click', function(){
$("#filebutton").on('click', function(){
$("#file_temp").click();
});

View File

@ -50,7 +50,7 @@
prcsDivChk(prcsDiv);
$(".btn_type01").on('click', function(){
$("#filebutton").on('click', function(){
$("#file_temp").click();
});

View File

@ -407,18 +407,6 @@
<td colspan="3" style="position: relative;">
<label for="instrNm" class="label">강사명</label>
<input type="text" name="instrNm" id="instrNm" size="25" value="<c:out value='${info.instrNm}'/>" maxLength="20" placeholder="홍길동">
<div class="put_photo">
<div class="put_photo_in">
<div class="put_photo_box">
<c:if test="${empty info.phtAtchFileId}">
<img src="${pageContext.request.contextPath}/visitEdu/usr/publish/images/content/img_add.png" alt="이미지를 넣어주세요">
</c:if>
<c:if test="${not empty info.phtAtchFileId}">
<img id="instrPhoto" class="id_pic" alt="${info.instrNm} 사진" src='<c:url value='/uss/ion/pwm/getImage.do'/>?atchFileId=<c:out value="${info.phtAtchFileId}"/>' />
</c:if>
</div>
</div>
</div>
</td>
</tr>
<tr>
@ -468,17 +456,6 @@
</div>
</td>
</tr>
<tr>
<th scope="row">
<p>거주지</p>
</th>
<td colspan="3">
<input type="text" title="거주지" size="25" placeholder="ex) 경기(군포시 용포동)" readonly="readonly"
value="<c:out value='${info.rsdne}'/>" maxLength="20" name="rsdne" id="rsdne">
<button type="button" class="btn_type01" data-tooltip="sub26_pop01" onclick="fncAreaList();return false;">선택</button>
<input type="hidden" name="rsdneId" id="rsdneId" value=""/><!-- 거주지ID -->
</td>
</tr>
<tr>
<th scope="row">
<p>생년월일</p>

View File

@ -183,7 +183,6 @@
<table>
<colgroup>
<col style="width: 10%">
<col style="width: 20%">
<col style="width: 15%">
<col style="width: 14%">
<col style="width: 14%">
@ -193,7 +192,6 @@
<thead>
<tr>
<th>이름</th>
<th>거주지</th>
<th>소속</th>
<th>직위</th>
<th>위촉년도</th>
@ -207,9 +205,6 @@
<td>
<c:out value="${list.instrNm}"/>
</td>
<td>
<c:out value="${list.rsdne}"/>
</td>
<td>
<c:out value="${list.blng}"/>
</td>

View File

@ -0,0 +1,505 @@
<%--
Class Name : instrAplctReg.jsp
Description : 담당자 상세 및 업데이트 화면
Modification Information
수정일 수정자 수정내용
------- -------- ---------------------------
2021.08.09 김봉호 최초 생성
author : 김봉호
since : 2021.08.09
--%>
<%@ 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="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<%@ taglib prefix="double-submit" uri="http://www.egovframe.go.kr/tags/double-submit/jsp" %>
<%@ taglib prefix="un" uri="http://jakarta.apache.org/taglibs/unstandard-1.0" %>
<%@ taglib prefix="ve" uri="/WEB-INF/tlds/kcc_tld.tld"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Language" content="ko" >
<title>강사 정보 등록</title>
<style>
input:disabled {
background-color: #f9f9f9 !important;
}
input:read-only {
background-color: #f9f9f9 !important;
}
</style>
<!-- for validator #2 -->
<script type="text/javascript" src="<c:url value="/validator.do"/>"></script>
<validator:javascript formName="vEInstrDetailVO" staticJavascript="false" xhtml="true" cdata="false" />
<!-- for validator #2 -->
<script type="text/javaScript" language="javascript">
$( document ).ready(function(){
$(".put_photo_box").on("DOMSubtreeModified", function(){
$("#instrPhoto").attr("alt", "${info.instrNm}"+" 사진");
});
//현재년도
var date = new Date();
var year = date.getFullYear();
//생년월일, 위촉년도 selectbox
getYears(year);
//파일첨부버튼
$(".btn_add_file").on('click', function(){
$("#photo_file_temp").click();
});
});
//생년월일, 위촉년도 뿌려주기
function getYears(getYear){
var startY = Number(getYear)- 99;
var endY = Number(getYear);
for(var y=endY; y>=startY; y--){
$("#apptYr").append("<option value='" + y + "'>" + y + "</option>");
$("#dBirth1").append("<option value='" + y + "'>" + y + "</option>");
}
for(var m=1; m<=12; m++){
$("#dBirth2").append("<option value='" + m + "'>" + m + "</option>");
}
for(var d=1; d<=31; d++){
$("#dBirth3").append("<option value='" + d + "'>" + d + "</option>");
}
}
function fncSave(){
//핸드폰번호 하이푼 추가
var phoneAll = document.getElementById("phone1").value + "-"+ document.getElementById("phone2").value + "-"+ document.getElementById("phone3").value;
//핸드폰번호 하이푼 추가 X
// var phoneAll = document.getElementById("phone1").value + document.getElementById("phone2").value + document.getElementById("phone3").value;
$("#phone").val(phoneAll)
//이메일 합치기
var emailAll = document.getElementById("email1").value + "@"+ document.getElementById("email2").value ;
$("#email").val(emailAll)
//생년월일합치기, 8자리 맞추기
var dBirth1 = $("#dBirth1 option:selected").val()
var dBirth2 = $("#dBirth2 option:selected").val()
var dBirth3 = $("#dBirth3 option:selected").val()
if(dBirth2.length == 1){
dBirth2 = "0"+dBirth2;
}
if(dBirth3.length == 1){
dBirth3 = "0"+dBirth3;
}
var dBirthAll = dBirth1 + dBirth2 + dBirth3
$("#dBirth").val(dBirthAll)
/* var dBirthAll = document.getElementById("dBirth1").value + document.getElementById("dBirth2").value + document.getElementById("dBirth3").value
$("#dBirth").val(dBirthAll) */
/*
<!-- for validator #3 -->
*/
if (!validateVEInstrDetailVO(document.createForm)) return;
/*
<!-- for validator #3 -->
*/
/* value에 기본적으로 - 또는 @ 들어가서 필수 값 체크 따로 */
if($("#phone1").val() == '' || $("#phone2").val() == '' || $("#phone3").val() == ''){
alert("연락처는 필수입니다.");
return false;
}
if($("#email1").val() == '' || $("#email2").val() == ''){
alert("이메일은 필수입니다.");
return false;
}
/* 청소년 강사와 다른 성인 강사 항목. 공통 validator에 없음 */
if($("#finalSchol").val() == ''){
alert("최종학교는 필수입니다.");
return false;
}
if($("#mjr").val() == ''){
alert("전공는 필수입니다.");
return false;
}
/* var ment = "";
if(type == 'I'){
$("#sbmtYn").val("N");
ment = "저장";
}
//등록요청
if(type == 'S'){
$("#sbmtYn").val("N");
$("#aprvlCd").val("10");
ment = "등록 요청";
} */
// $("#mode").val(type);
if($("#prfsnFld").val().length > 1000){
alert("전문분야는 1000자 까지만 가능합니다.("+$("#prfsnFld").val().length+")");
return false;
}
var data = new FormData(document.getElementById("createForm"));
_fileForm2.forEach(function(obj, idx) {
if (obj) data.append("file"+idx, obj.fileObj);
});
if(confirm("강사정보 등록을 하시겠습니까?")){
$.ajax({
type: "POST",
enctype: 'multipart/form-data',
url: "${pageContext.request.contextPath}/ve/oprtn/preventEdu/instrInfo/instrAplctRegAjax.do",
data: data,
dataType:'json',
async: false,
processData: false,
contentType: false,
cache: false,
success: function (returnData, status) {
if(status == 'success'){
alert("등록 되었습니다.");
fncGoList(); //현재 메인화면 이동
} else if(status== 'fail'){
alert("등록에 실패하였습니다.");
}
},
error: function (e) { alert("등록에 실패하였습니다."); console.log("ERROR : ", e); }
});
}
}
function fncCancle(){
if(confirm("강사등록 신청을 취소하시겠습니까?")){
fncGoList();
}
}
function fncGoList(){
var createForm = document.createForm;
createForm.action = "<c:url value='/ve/oprtn/preventEdu/instrInfo/instrAplctMngList.do'/>";
createForm.submit();
}
function emailChange(email){
if(email.value != ""){
document.getElementById("email2").readOnly = true;
}else{
document.getElementById("email2").readOnly = false;
}
document.getElementById("email2").value = email.value;
}
function fncAreaList(paramObj) {
if(paramObj == undefined || paramObj == ''){
paramObj = {
pageIndex : 1,
searchKeyword : "",
searchCondition : "",
pageUnit : 5,
formId : "createForm"
};
}
// 학교 리스트 팝업 호출
commonPopLayeropen(
//"/web/ve/aplct/cpyrgExprnClsrm/scholInfo/popup/scholPopList.do"
"${pageContext.request.contextPath}/web/ve/preventEdu/instrInfo/popup/rsdncPopList.do"
, 690
, 538
, paramObj
, "N"
, "rsdncPop"
);
/*
// 이전신청데이터 팝업 호출..
commonPopLayeropen(
"/web/kccadr/adjst/popup/adjstReqRegistPopList.do"
, 500
, 600
, paramObj
, "N"
, "adjstHostoryPop"
);
*/
}
function callBackAreaPop(areaData){
if(emptyObject(areaData)){
alert("오류가 발생하였습니다. 관리자에게 문의해주세요 [ERR-AREA-POP]")
return false;
}
$("#rsdneId").val(areaData.postId);
$("#rsdne").val(areaData.oneDepthNm+"("+areaData.twoDepthNm+" "+areaData.threeDepthNm+")");
console.log(areaData);
}
</script>
</head>
<body>
<%-- <form id="pop" name="pop" method="post">
<input type="hidden" name="userId" id="userId" value="<c:out value='${info.userId}'/>"/> <!-- 사용자 아이디 -->
<input type="hidden" name="instrDiv" id="instrDiv" value="<c:out value='${info.instrDiv}'/>"/> <!-- 강사구분 -->
<input type="hidden" name="instrDetailOrd" id="instrDetailOrd" value="<c:out value='${info.instrDetailOrd}'/>"/> <!-- 강사구분 -->`
<input type="hidden" name="aprvlCd" id="aprvlCd" value=""/> <!-- 승인코드 -->
</form> --%>
<form:form id="createForm" name="createForm" commandName="vEInstrDetailVO" method="post" >
<input type="hidden" name="pageIndex" value="<c:out value='${vEInstrDetailVO.pageIndex}'/>"/>
<input type="hidden" name="searchStartDt" value="<c:out value="${vEInstrDetailVO.searchStartDt}" />" />
<input type="hidden" name="searchEndDt" value="<c:out value="${vEInstrDetailVO.searchEndDt}" />" />
<input type="hidden" name="searchKeyword" value="<c:out value="${vEInstrDetailVO.searchKeyword}" />" />
<input type="hidden" name="userId" id="userId" value="<c:out value='${info.userId}'/>"/> <!-- 사용자 아이디 -->
<input type="hidden" name="instrDiv" id="instrDiv" value="<c:out value='${info.instrDiv}'/>"/> <!-- 강사구분 -->
<input type="hidden" name="instrDetailOrd" id="instrDetailOrd" value="<c:out value='${info.instrDetailOrd}'/>"/> <!-- 강사구분 -->
<input type="hidden" name="aprvlCd" id="aprvlCd" value=""/> <!-- 승인코드 -->
<input type="hidden" name="aprvlCn" id="aprvlCn" value="<c:out value='${info.instrDiv}'/>"/> <!-- 승인내용(반려사유) -->
<input type="hidden" name="rqstType" id="rqstType" value=""/> <!-- 요청유형 -->
<input type="hidden" name="phone" id="phone" value=""/> <!-- 연락처 -->
<input type="hidden" name="email" id="email" value=""/> <!-- 이메일 -->
<input type="hidden" name="dBirth" id="dBirth" value=""/> <!-- 생년월일 -->
<input type="hidden" name="formId" id="formId" value=""/>
<!-- cont -->
<div class="cont_wrap">
<div class="box">
<!-- cont_tit -->
<div class="cont_tit">
<h2>강사 정보 등록</h2>
<ul class="cont_nav">
<li class="home"><a href="/"><i></i></a></li>
<li>
<p>강사신청관리</p>
</li>
<li><span class="cur_nav">강사 정보 등록</span></li>
</ul>
</div>
<!-- //cont_tit -->
<div class="cont">
<div class="tb_tit01">
<p>강사 정보</p>
</div>
<div class="tb_type02">
<table>
<colgroup>
<col style="width: 210px;">
<col style="width: auto;">
<col style="width: 210px;">
<col style="width: auto;">
</colgroup>
<tbody>
<tr>
<th scope="row">
<p>강사명</p>
</th>
<td colspan="3" style="position: relative;">
<input type="text" name="instrNm"/>
</td>
</tr>
<tr>
<th scope="row">
<p>연락처(핸드폰)</p>
</th>
<td class="input_phone" colspan="3">
<label for="phone" class="label">연락처(핸드폰)</label>
<input type="text" title="휴대폰 앞자리" id="phone1" placeholder="" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');" maxLength="4">
-
<input type="text" title="휴대폰 중간자리" id="phone2" placeholder="" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');" maxLength="4">
-
<input type="text" title="휴대폰 마지막자리" id="phone3" placeholder="" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');" maxLength="4">
</td>
</tr>
<tr>
<th scope="row">
<p>e-mail</p>
</th>
<td class="input_mail" colspan="3">
<label for="email" class="label">e-mail</label>
<input type="text" id="email1" size="20" title="이메일 주소 입력" placeholder="">
@
<input type="text" id="email2" size="20" title="이메일 직접 입력" placeholder="">
<label for="emailSelect" class="label">이메일 선택</label>
<select name="emailSelect" id="emailSelect" class="selType1 sel_type1" onchange="emailChange(this)">
<option value="">직접입력</option>
<option value="naver.com">naver.com</option>
<option value="daum.net">daum.net</option>
<option value="gmail.com">gmail.com</option>
</select>
</td>
</tr>
<tr class="input_adress">
<th scope="row">
<p>주소</p>
</th>
<td colspan="3">
<label for="post" class="label">우편번호 입력</label>
<input type="text" size="20" name="post" id="post" class="adr_input" style="background-color: #eee;" value="<c:out value='${info.post}'/>" readonly>
<button class="btnType01 btn_adr_search btn_type08" onclick="fn_postCode(this); return false;">우편번호 검색</button>
<div class="detail_address">
<label for="addr" class="label">주소 입력</label>
<input type="text" size="60" name="addr" id="addr" class="searchResultAddr" value="<c:out value='${info.addr}'/>" readonly>
<label for="addrDetail" class="label">나머지 주소 입력</label>
<input type="text" size="20" name="addrDetail" id="addrDetail" class="usrInsertAddr" value="<c:out value='${info.addrDetail}'/>" maxLength="100" placeholder="나머지 주소">
</div>
</td>
</tr>
<tr>
<th scope="row">
<p>생년월일</p>
</th>
<td colspan="3">
<label for="dBirth1" class="label">생년월일 년입력</label>
<select name="dBirth1" id="dBirth1" class="sel_type1">
</select>
<label for="dBirth2" class="label">생년월일 월입력</label>
<select name="dBirth2" id="dBirth2" class="sel_type1">
</select>
<label for="dBirth3" class="label">생년월일 일입력</label>
<select name="dBirth3" id="dBirth3" class="sel_type1">
</td>
</tr>
<!--
<tr>
<th scope="row">
<p>최종학교</p>
</th>
<td>
<label for="finalSchol" class="label">최종학교</label>
<input type="text" name="finalSchol" id="finalSchol" size="20" maxLength="20">
</td>
<th scope="row">
<p>전공</p>
</th>
<td>
<label for="mjr" class="label">전공</label>
<input type="text" name="mjr" id="mjr" size="20" maxlength="20" placeholder="" value="<c:out value='${info.mjr}'/>">
</td>
</tr>
-->
<tr>
<th scope="row">
<p>소속</p>
</th>
<td>
<label for="finalSchol" class="label">소속</label>
<input type="text" name="blng" id="blng" size="20" value="<c:out value='${info.blng}'/>" maxLength="20">
</td>
<th scope="row">
<p>직위</p>
</th>
<td>
<label for="mjr" class="label">직위</label>
<input type="text" name="pstn" id="pstn" size="20" maxlength="20" placeholder="" value="<c:out value='${info.pstn}'/>">
</td>
</tr>
<tr>
<th scope="row">
<p>위촉년도</p>
</th>
<td>
<label for="apptYr" class="label">위촉년도 선택</label>
<select name="apptYr" id="apptYr" class="sel_type1">
</select>
</td>
<th scope="row">
<p>구분</p>
</th>
<td>
<label for="apptDiv" class="label">구분 선택</label>
<ve:select codeId="VE0018" name="divCd" id="divCd" css="class='sel_type1'" />
</td>
</tr>
<tr>
<th scope="row">
<p class="req_text"><span>필수입력 항목</span>*</p>
<p>전문분야</p>
</th>
<td colspan="3">
<label for="mnLctrCn" class="label">주요강의내용</label>
<textarea name="prfsnFld" id="prfsnFld" placeholder="ex)예문
- SW코딩, 사물인터넷,인공지능,인성, 비젼, 캠프, 인터넷중독, 가족치료, 저작권 개론 등"><c:out value='${info.prfsnFld}'/></textarea>
</td>
</tr>
<!-- <tr>
<th scope="row">
<p>위촉구분</p>
</th>
<td colspan="3">
<label for="apptYr" class="label">위촉구분 선택</label>
<ve:select codeId="VE0002" name="apptDiv" id="apptDiv" css="class='sel_type1'" />
</td>
</tr>
<tr>
<th scope="row">
<p>활동경력</p>
</th>
<td colspan="3">
<label for="actvtCarer" class="label">활동경력</label>
<textarea name="actvtCarer" id="actvtCarer" rows="6" placeholder="예문
- 한국지식재산보호원 저작권청년강사 위촉
- 국내 초·중·고등학교 및 기관 약 600회 이상 저작권 강의
- 국내 초·중·고등학교 및 기관 약 600회 이상 저작권 강의
- 국내 초·중·고등학교 및 기관 약 600회 이상 저작권 강의"></textarea>
</td>
</tr>
<tr>
<th scope="row">
<p>주요강의내용</p>
</th>
<td colspan="3">
<label for="mnLctrCn" class="label">주요강의내용</label>
<textarea name="mnLctrCn" id="mnLctrCn" rows="6" placeholder="예문
<강의 주제>
○ 저작권에 대하여 알 수 있다.
<강의 목차>
1) 저작물에 대한 이해
2) 저작권에 대한 이해
3) 저작권 침해 유형"></textarea>
</td>
</tr>
-->
</tbody>
</table>
</div>
<div class="btn_wrap btn_layout01">
<div class="btn_left">
</div>
<div class="btn_center">
</div>
<div class="btn_right">
<button type="button" class="btn_type02" onclick="fncSave(); return false;">등록</button>
<button type="button" class="btn_type03" onclick="fncCancle(); return false;">취소</button>
</div>
</div>
</div>
</div>
</div>
</form:form>
<!-- //cont -->
</body>
</html>

View File

@ -487,12 +487,6 @@ function getYears(getYear){
<c:out value='${info.addr}' />&nbsp;<c:out value='${info.addrDetail}' />
</td>
</tr>
<tr>
<th scope="row">
<p>거주지</p>
</th>
<td colspan="3"><c:out value='${info.rsdne}' /></td>
</tr>
<tr>
<th scope="row">
<p>생년월일</p>
@ -694,18 +688,6 @@ function getYears(getYear){
</div>
</td>
</tr>
<tr>
<th scope="row">
<p>거주지</p>
</th>
<td colspan="3">
<input type="text" title="거주지" size="25" placeholder="ex) 경기(군포시 용포동)" readonly="readonly"
value="<c:out value='${info.rsdne}'/>" maxLength="20" name="rsdne" id="rsdne">
<button
type="button" class="btnType01 btn_type01" data-tooltip="sub26_pop01" onclick="fncRsdnePopup();return false;">선택</button>
<input type="hidden" name="rsdneId" id="rsdneId" value=""/><!-- 거주지ID -->
</td>
</tr>
<tr>
<th scope="row">
<p>생년월일</p>

View File

@ -234,7 +234,6 @@
<col style="width: 5%">
<col style="width: 10%;">
<col style="width: 9%;">
<col style="width: 16%">
<col style="width: auto;">
<col style="width: 12%;">
<%-- <col style="width: 12%;"> --%>
@ -246,7 +245,6 @@
<th><input type="checkbox" name="checkAll" id="checkAll" onclick="chkAll(this);" /><label for="checkAll"></label></th>
<th scope="col">이름</th>
<th scope="col">구분</th>
<th scope="col">거주지</th>
<th scope="col">강의 가능지역</th>
<th scope="col">연락처</th>
<!-- <th scope="col">주 5일여부</th> -->
@ -268,9 +266,6 @@
<ve:code codeId="VE0018" code="${list.apptDiv}"/>
</td>
<td onclick="fncGoDetail('<c:out value="${list.userId}"/>', '<c:out value="${list.instrDiv}"/>' , '<c:out value="${list.instrDetailOrd}"/>', '<c:out value="${list.rqstCnt}"/>');" style="cursor:pointer;">
<c:out value="${list.rsdne}"/>
</td>
<td>
<c:choose>
<c:when test="${list.lctrAreaCnt eq '0'}">