feat:집합교육 데모 기능 추가 건
parent
2ef579ad51
commit
45b6b9feb8
8
list.txt
8
list.txt
|
|
@ -2,7 +2,13 @@ src\main\webapp\WEB-INF\views\home\include\top.jsp
|
||||||
src\main\java\geoinfo\main\main\MainController.java
|
src\main\java\geoinfo\main\main\MainController.java
|
||||||
src\main\java\geoinfo\main\login\LoginController.java
|
src\main\java\geoinfo\main\login\LoginController.java
|
||||||
src\main\webapp\WEB-INF\views\visitEducationApplication\inquiry\visitEducationApplicationInquiry.jsp
|
src\main\webapp\WEB-INF\views\visitEducationApplication\inquiry\visitEducationApplicationInquiry.jsp
|
||||||
|
src\main\webapp\WEB-INF\views\scheduledGroupEducationApplication\inquiry\scheduledGroupEducationApplicationInquiry.jsp
|
||||||
src\main\webapp\WEB-INF\views\home\main.jsp
|
src\main\webapp\WEB-INF\views\home\main.jsp
|
||||||
src\main\webapp\WEB-INF\views\home\include\left_menu.jsp
|
src\main\webapp\WEB-INF\views\home\include\left_menu.jsp
|
||||||
src\main\webapp\com\img\visitEducationApplication\visitEducationApplicationSample.svg
|
src\main\webapp\com\img\visitEducationApplication\visitEducationApplicationSample.svg
|
||||||
src\main\webapp\com\css\common.v2.0.css
|
src\main\webapp\com\css\common.v2.0.css
|
||||||
|
src\main\webapp\WEB-INF\views\home\index.jsp
|
||||||
|
src\main\webapp\com\img\common\bg\main_info_visual_20240905.png
|
||||||
|
src\main\webapp\com\img\common\bg\main_info_visual_20240906.png
|
||||||
|
src\main\webapp\WEB-INF\views\scheduledGroupEducationApplication\inquiry\scheduledGroupEducationApplicationInquiry.jsp
|
||||||
|
src\main\webapp\WEB-INF\views\scheduledGroupEducationApplication\input\scheduledGroupEducationApplicationInput.jsp
|
||||||
|
|
@ -2683,6 +2683,47 @@ public class LoginController {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@RequestMapping(value = "/scheduledGroupEducationApplicationInquiry.do", method = RequestMethod.GET)
|
||||||
|
public ModelAndView scheduledGroupEducationApplicationInquiry(@RequestParam HashMap<String, Object> params, HttpServletRequest request,HttpServletResponse response, ModelMap model) throws Exception {
|
||||||
|
ModelAndView mv = new ModelAndView("scheduledGroupEducationApplication/inquiry/scheduledGroupEducationApplicationInquiry");
|
||||||
|
|
||||||
|
// 로그인 세션이 없을 때
|
||||||
|
if (request.getSession().getAttribute("USERID") == null) {
|
||||||
|
mv.setViewName("index.do?cntyn=0");
|
||||||
|
return mv;
|
||||||
|
}
|
||||||
|
return mv;
|
||||||
|
}
|
||||||
|
|
||||||
|
@RequestMapping(value = "/scheduledGroupEducationApplicationInput.do", method = RequestMethod.GET)
|
||||||
|
public ModelAndView scheduledGroupEducationApplicationInput(@RequestParam HashMap<String, Object> params, HttpServletRequest request,HttpServletResponse response, ModelMap model) throws Exception {
|
||||||
|
ModelAndView mv = new ModelAndView("scheduledGroupEducationApplication/input/scheduledGroupEducationApplicationInput");
|
||||||
|
|
||||||
|
// 로그인 세션이 없을 때
|
||||||
|
if (request.getSession().getAttribute("USERID") == null) {
|
||||||
|
mv.setViewName("index.do?cntyn=0");
|
||||||
|
return mv;
|
||||||
|
}
|
||||||
|
return mv;
|
||||||
|
}
|
||||||
|
|
||||||
|
@RequestMapping(value = "/scheduledGroupEducationApplicationInquiryHistory.do", method = RequestMethod.GET)
|
||||||
|
public ModelAndView scheduledGroupEducationApplicationInquiryHistory(@RequestParam HashMap<String, Object> params, HttpServletRequest request,HttpServletResponse response, ModelMap model) throws Exception {
|
||||||
|
ModelAndView mv = new ModelAndView("scheduledGroupEducationApplication/input/scheduledGroupEducationApplicationInquiryHistory");
|
||||||
|
|
||||||
|
// 로그인 세션이 없을 때
|
||||||
|
if (request.getSession().getAttribute("USERID") == null) {
|
||||||
|
mv.setViewName("index.do?cntyn=0");
|
||||||
|
return mv;
|
||||||
|
}
|
||||||
|
return mv;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@RequestMapping(value = "/visitEducationApplicationInquiry.do", method = RequestMethod.GET)
|
@RequestMapping(value = "/visitEducationApplicationInquiry.do", method = RequestMethod.GET)
|
||||||
public ModelAndView visitEducationApplicationInquiry(@RequestParam HashMap<String, Object> params, HttpServletRequest request,HttpServletResponse response, ModelMap model) throws Exception {
|
public ModelAndView visitEducationApplicationInquiry(@RequestParam HashMap<String, Object> params, HttpServletRequest request,HttpServletResponse response, ModelMap model) throws Exception {
|
||||||
ModelAndView mv = new ModelAndView("visitEducationApplication/inquiry/visitEducationApplicationInquiry");
|
ModelAndView mv = new ModelAndView("visitEducationApplication/inquiry/visitEducationApplicationInquiry");
|
||||||
|
|
@ -2694,5 +2735,30 @@ public class LoginController {
|
||||||
}
|
}
|
||||||
return mv;
|
return mv;
|
||||||
}
|
}
|
||||||
|
@RequestMapping(value = "/visitEducationApplicationInput.do", method = RequestMethod.GET)
|
||||||
|
public ModelAndView visitEducationApplicationInput(@RequestParam HashMap<String, Object> params, HttpServletRequest request,HttpServletResponse response, ModelMap model) throws Exception {
|
||||||
|
ModelAndView mv = new ModelAndView("scheduledGroupEducationApplication/input/visitEducationApplicationInput");
|
||||||
|
|
||||||
|
// 로그인 세션이 없을 때
|
||||||
|
if (request.getSession().getAttribute("USERID") == null) {
|
||||||
|
mv.setViewName("index.do?cntyn=0");
|
||||||
|
return mv;
|
||||||
|
}
|
||||||
|
return mv;
|
||||||
|
}
|
||||||
|
|
||||||
|
@RequestMapping(value = "/visitEducationApplicationInquiryProject.do", method = RequestMethod.GET)
|
||||||
|
public ModelAndView visitEducationApplicationInquiryProject(@RequestParam HashMap<String, Object> params, HttpServletRequest request,HttpServletResponse response, ModelMap model) throws Exception {
|
||||||
|
ModelAndView mv = new ModelAndView("scheduledGroupEducationApplication/inquiry/visitEducationApplicationInquiryProject");
|
||||||
|
|
||||||
|
// 로그인 세션이 없을 때
|
||||||
|
if (request.getSession().getAttribute("USERID") == null) {
|
||||||
|
mv.setViewName("index.do?cntyn=0");
|
||||||
|
return mv;
|
||||||
|
}
|
||||||
|
return mv;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -486,10 +486,30 @@ public class MainController
|
||||||
userId = request.getSession().getAttribute("USERID").toString();
|
userId = request.getSession().getAttribute("USERID").toString();
|
||||||
eGovUrl = "jusandoNew.do";
|
eGovUrl = "jusandoNew.do";
|
||||||
mv.setViewName("home/main.jsp?url=/body/mypage/jusandoNew");
|
mv.setViewName("home/main.jsp?url=/body/mypage/jusandoNew");
|
||||||
|
} else if (url.equals("scheduledGroupEducationApplication")) {
|
||||||
|
userId = request.getSession().getAttribute("USERID").toString();
|
||||||
|
eGovUrl = "scheduledGroupEducationApplicationInquiry.do";
|
||||||
|
mv.setViewName("home/main.jsp?url=/scheduledGroupEducationApplication/inquiry/scheduledGroupEducationApplicationInquiry");
|
||||||
|
} else if (url.equals("scheduledGroupEducationApplicationInput")) {
|
||||||
|
userId = request.getSession().getAttribute("USERID").toString();
|
||||||
|
eGovUrl = "scheduledGroupEducationApplicationInput.do";
|
||||||
|
mv.setViewName("home/main.jsp?url=/scheduledGroupEducationApplication/input/scheduledGroupEducationApplicationInput");
|
||||||
|
} else if (url.equals("scheduledGroupEducationApplicationInquiryHistory")) {
|
||||||
|
userId = request.getSession().getAttribute("USERID").toString();
|
||||||
|
eGovUrl = "scheduledGroupEducationApplicationInquiryHistory.do";
|
||||||
|
mv.setViewName("home/main.jsp?url=/scheduledGroupEducationApplication/inquiry/scheduledGroupEducationApplicationInquiryHistory");
|
||||||
} else if (url.equals("visitEducationApplication")) {
|
} else if (url.equals("visitEducationApplication")) {
|
||||||
userId = request.getSession().getAttribute("USERID").toString();
|
userId = request.getSession().getAttribute("USERID").toString();
|
||||||
eGovUrl = "visitEducationApplicationInquiry.do";
|
eGovUrl = "visitEducationApplicationInquiry.do";
|
||||||
mv.setViewName("home/main.jsp?url=/visitEducationApplication/inquiry/visitEducationApplicationInquiry");
|
mv.setViewName("home/main.jsp?url=/visitEducationApplication/inquiry/visitEducationApplicationInquiry");
|
||||||
|
} else if (url.equals("visitEducationApplicationInput")) {
|
||||||
|
userId = request.getSession().getAttribute("USERID").toString();
|
||||||
|
eGovUrl = "visitEducationApplicationInput.do";
|
||||||
|
mv.setViewName("home/main.jsp?url=/visitEducationApplication/input/visitEducationApplicationInput");
|
||||||
|
} else if (url.equals("visitEducationApplicationInquiryProject")) {
|
||||||
|
userId = request.getSession().getAttribute("USERID").toString();
|
||||||
|
eGovUrl = "scheduledGroupEducationApplicationInquiryHistory.do";
|
||||||
|
mv.setViewName("home/main.jsp?url=/visitEducationApplication/inquiry/visitEducationApplicationInquiryProject");
|
||||||
}
|
}
|
||||||
|
|
||||||
mv.addObject("userid", request.getSession().getAttribute("USERID"));
|
mv.addObject("userid", request.getSession().getAttribute("USERID"));
|
||||||
|
|
|
||||||
|
|
@ -326,15 +326,36 @@
|
||||||
<div class="flexslider-visual-wrapper ">
|
<div class="flexslider-visual-wrapper ">
|
||||||
<div id="flexsliderVisual" class="flexslider-visual">
|
<div id="flexsliderVisual" class="flexslider-visual">
|
||||||
<ul class="slides">
|
<ul class="slides">
|
||||||
<li>
|
<c:choose>
|
||||||
<!-- onclick="javascript:fileDownload('방문교육_신청서.hwp','DB_Study.hwp');" -->
|
<c:when test="${isLogin == true}">
|
||||||
<img src="../com/img/common/bg/main_info_visual_20230522.png" alt="건설 시추정보 DB 사용자 방문교육 신청 안내" usemap="#study">
|
<c:set var="cls" value="${cls}" />
|
||||||
<map name="study" id="study" />
|
<c:if test="${cls == 0}">
|
||||||
<area shape="rect" coords="300, 250, 555, 295" onclick="javascript:fileDownload('방문교육_신청서.zip','DB_Study.zip');" style="cursor:pointer;"/>
|
<li>
|
||||||
</li>
|
<img src="../com/img/common/bg/main_info_visual_20240906.png?v=20240906" alt="건설 시추정보 DB 사용자 방문교육 신청 안내" usemap="#study">
|
||||||
<li>
|
<map name="study" id="study" />
|
||||||
<img src="../com/img/common/bg/main_info_visual_20230530.png" alt="지하정보활용지원센터 콜센터">
|
<area shape="rect" coords="300, 250, 555, 295" onClick="gourl('scheduledGroupEducationApplication')" style="cursor:pointer;"/>
|
||||||
</li>
|
</li>
|
||||||
|
</c:if>
|
||||||
|
<c:if test="${cls == 1}">
|
||||||
|
<li>
|
||||||
|
<img src="../com/img/common/bg/main_info_visual_20240905.png?v=20240906" alt="건설 시추정보 DB 사용자 방문교육 신청 안내" usemap="#study">
|
||||||
|
<map name="study" id="study" />
|
||||||
|
<area shape="rect" coords="300, 250, 555, 295" onClick="gourl('visitEducationApplication')" style="cursor:pointer;"/>
|
||||||
|
</li>
|
||||||
|
</c:if>
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
|
<li>
|
||||||
|
<!-- onclick="javascript:fileDownload('방문교육_신청서.hwp','DB_Study.hwp');" -->
|
||||||
|
<img src="../com/img/common/bg/main_info_visual_20230522.png" alt="건설 시추정보 DB 사용자 방문교육 신청 안내" usemap="#study">
|
||||||
|
<map name="study" id="study" />
|
||||||
|
<area shape="rect" coords="300, 250, 555, 295" onclick="javascript:fileDownload('방문교육_신청서.zip','DB_Study.zip');" style="cursor:pointer;"/>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<img src="../com/img/common/bg/main_info_visual_20230530.png" alt="지하정보활용지원센터 콜센터">
|
||||||
|
</li>
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,64 @@
|
||||||
|
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||||
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||||
|
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
|
||||||
|
<c:if test="${'2' == cls}">
|
||||||
|
<header>
|
||||||
|
<!-- 네비게이션 시작 -->
|
||||||
|
<nav class="navbar navbar-default bootsnav navbar-fixed-top">
|
||||||
|
<div class="nav-header-bg"></div>
|
||||||
|
<div class="nav-header-line"></div>
|
||||||
|
<div class="nav-header-container">
|
||||||
|
<div class="nav-header-inner">
|
||||||
|
<!-- 글로벌 시작 -->
|
||||||
|
<div class="navbar-global-wrapper">
|
||||||
|
<!-- 로고 시작 -->
|
||||||
|
<div class="logo-wrapper">
|
||||||
|
<a href="index.do?cntyn=0" target="_self" onfocus="this.blur()" title="국토지반정보 포털시스템" class="logo">
|
||||||
|
<img src="${pageContext.request.contextPath}/com/img/common/header/logo_v2.png" class="logo-dark" alt="국토지반정보 포털시스템 로고">
|
||||||
|
</a>
|
||||||
|
<span class="page-system-title">프로젝트 등록</span>
|
||||||
|
</div>
|
||||||
|
<!-- 로고 끝 -->
|
||||||
|
<!-- 글로벌 링크 시작 -->
|
||||||
|
<div class="global-link-wrapper">
|
||||||
|
<ul>
|
||||||
|
<!-- 로그인시 시작 -->
|
||||||
|
<li>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${cls != 1}">
|
||||||
|
<span class="username-zone"><span class="username">${userName}(${userId})</span>님이 로그인하셨습니다.</span>
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
|
<span class="username-zone"><span class="username">${companyName}(${userId})</span>님이 로그인하셨습니다.</span>
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="/logout.do?location=left" onFocus='this.blur()' class="btn top-btn-member logout-btn">로그아웃</a>
|
||||||
|
</li>
|
||||||
|
<!-- 로그인시 끝 -->
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<!-- 글로벌 링크 끝 -->
|
||||||
|
</div>
|
||||||
|
<!-- 글로벌 끝 -->
|
||||||
|
<!-- 메뉴 시작 -->
|
||||||
|
<div class="navbar-collapse-wrapper">
|
||||||
|
<div class="navbar-collapse collapse">
|
||||||
|
<ul id="accordion" class="nav navbar-nav">
|
||||||
|
<!-- 1뎁스 메뉴 시작 -->
|
||||||
|
<li id="projectList" class="dropdown simple-dropdown">
|
||||||
|
<a href="/drilling/inquiry.do" data-target="navbar-nav-webManage">건설현장 관리</a>
|
||||||
|
</li>
|
||||||
|
<!-- 1뎁스 메뉴 끝 -->
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<!-- 메뉴 끝 -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
<!-- 네비게이션 끝 -->
|
||||||
|
</header>
|
||||||
|
</c:if>
|
||||||
|
|
@ -0,0 +1,86 @@
|
||||||
|
<%@ page language="java" contentType="text/html; charset=utf-8" %>
|
||||||
|
<%@ page language="java" import="Kisinfo.Check.IPINClient" %>
|
||||||
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||||
|
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
||||||
|
<script type="text/javascript" >
|
||||||
|
function doSave(){
|
||||||
|
var name = document.jusangdoForm.name.value;
|
||||||
|
var data = document.jusangdoForm.data.value;
|
||||||
|
if(confirm('주상도를 만드시겠습니까?')) {
|
||||||
|
var jusangdo = window.open("/ClipReport4/export/exportForPDF_Jusangdo_Server.jsp?name=" +name + "&data=" +data, "jusangdo", "directories=no,toolbar=no");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function doSave2(){
|
||||||
|
var name = document.jusangdoForm.name.value;
|
||||||
|
var data = document.jusangdoForm.data.value;
|
||||||
|
if(confirm('주상도를 만드시겠습니까?')) {
|
||||||
|
var jusangdo = window.open("/ClipReport4/export/exportForPDF_Jusangdo_Server2.jsp?name=" +name + "&data=" +data, "jusangdo", "directories=no,toolbar=no");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<form name="jusangdoForm" method="post">
|
||||||
|
<!-- 그리드 시작 -->
|
||||||
|
<div class="contents-row visit-education-application">
|
||||||
|
<h2> 집합 교육 신청 </h2>
|
||||||
|
<br />
|
||||||
|
<table id="table-main" class="table table-bordered" summary="주상도 만들기">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td class="th-head">기관명 <span class="textR">*</span></td>
|
||||||
|
<td class="t-left" colspan="5">
|
||||||
|
<input id="name" name="name" type="text" class="input" size="50" maxlength="40">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="th-head">부서 <span class="textR">*</span></td>
|
||||||
|
<td class="t-left" colspan="5">
|
||||||
|
<input id="name" name="name" type="text" class="input" size="50" maxlength="40">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="th-head">직급 <span class="textR">*</span></td>
|
||||||
|
<td class="t-left" colspan="5">
|
||||||
|
<input id="name" name="name" type="text" class="input" size="50" maxlength="40">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="th-head">성명 <span class="textR">*</span></td>
|
||||||
|
<td class="t-left" colspan="5">
|
||||||
|
<input id="name" name="name" type="text" class="input" size="50" maxlength="40">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="th-head">연락처 <span class="textR">*</span></td>
|
||||||
|
<td class="t-left" colspan="5">
|
||||||
|
<input id="name" name="name" type="text" class="input" size="50" maxlength="40">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="th-head">이메일 <span class="textR">*</span></td>
|
||||||
|
<td class="t-left" colspan="5">
|
||||||
|
<input id="name" name="name" type="text" class="input" size="50" maxlength="40">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="th-head">비고 <span class="textR">*</span></td>
|
||||||
|
<td class="t-left" colspan="5">
|
||||||
|
<input id="name" name="name" type="text" class="input" size="50" maxlength="40">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<!-- 그리드 끝 -->
|
||||||
|
|
||||||
|
<!-- 버튼그룹 시작 -->
|
||||||
|
<div class="table-bottom-control">
|
||||||
|
<div class="form-inline f-right">
|
||||||
|
<div class="form-group">
|
||||||
|
<button type="button" class="btn btn-primary" onClick="alert('신청되었습니다.'); gourl('scheduledGroupEducationApplication');">신청</button>
|
||||||
|
<button type="button" class="btn dark" onClick="gourl('scheduledGroupEducationApplication')">취소</button>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- 버튼그룹 끝 -->
|
||||||
|
</form>
|
||||||
|
|
@ -0,0 +1,86 @@
|
||||||
|
<%@ page language="java" contentType="text/html; charset=utf-8" %>
|
||||||
|
<%@ page language="java" import="Kisinfo.Check.IPINClient" %>
|
||||||
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||||
|
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
||||||
|
<script type="text/javascript" >
|
||||||
|
function doSave(){
|
||||||
|
var name = document.jusangdoForm.name.value;
|
||||||
|
var data = document.jusangdoForm.data.value;
|
||||||
|
if(confirm('주상도를 만드시겠습니까?')) {
|
||||||
|
var jusangdo = window.open("/ClipReport4/export/exportForPDF_Jusangdo_Server.jsp?name=" +name + "&data=" +data, "jusangdo", "directories=no,toolbar=no");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function doSave2(){
|
||||||
|
var name = document.jusangdoForm.name.value;
|
||||||
|
var data = document.jusangdoForm.data.value;
|
||||||
|
if(confirm('주상도를 만드시겠습니까?')) {
|
||||||
|
var jusangdo = window.open("/ClipReport4/export/exportForPDF_Jusangdo_Server2.jsp?name=" +name + "&data=" +data, "jusangdo", "directories=no,toolbar=no");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
table {
|
||||||
|
border-collapse: collapse; /* 셀 간격 없애기 */
|
||||||
|
width: 100%;
|
||||||
|
max-width: 600px; /* 최대 너비 설정 */
|
||||||
|
margin: 20px auto; /* 가운데 정렬 */
|
||||||
|
font-family: Arial, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
th, td {
|
||||||
|
text-align: left;
|
||||||
|
padding: 12px;
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
th {
|
||||||
|
background-color: #f2f2f2;
|
||||||
|
}
|
||||||
|
|
||||||
|
tr:nth-child(even) {
|
||||||
|
background-color: #f9f9f9; /* 짝수 행 배경색 */
|
||||||
|
}
|
||||||
|
|
||||||
|
tr:hover {
|
||||||
|
background-color: #f5f5f5; /* 호버 효과 */
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<form name="jusangdoForm" method="post">
|
||||||
|
<!-- 그리드 시작 -->
|
||||||
|
<div class="contents-row visit-education-application">
|
||||||
|
<div>
|
||||||
|
<table>
|
||||||
|
<tr>
|
||||||
|
<th>순번</th>
|
||||||
|
<th>교육 일시</th>
|
||||||
|
<th>위치</th>
|
||||||
|
<th>신청</th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>1</td>
|
||||||
|
<td>2024-09-15 10:00 ~ 12:00</td>
|
||||||
|
<td>대전광역시청 3층 대강당</td>
|
||||||
|
<td>
|
||||||
|
<div class="form-group">
|
||||||
|
<button type="button" class="btn btn-primary" onClick="gourl('scheduledGroupEducationApplicationInput')">신청 하기</button>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>2</td>
|
||||||
|
<td>2024-09-20 13:00 ~ 17:00</td>
|
||||||
|
<td>일산서구청 4층 대강당</td>
|
||||||
|
<td>
|
||||||
|
<div class="form-group">
|
||||||
|
<button type="button" class="btn btn-primary" onClick="gourl('scheduledGroupEducationApplicationInput')">신청 하기</button>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- 그리드 끝 -->
|
||||||
|
|
||||||
|
</form>
|
||||||
|
|
@ -0,0 +1,326 @@
|
||||||
|
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||||
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||||
|
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
|
||||||
|
|
||||||
|
|
||||||
|
<%
|
||||||
|
|
||||||
|
|
||||||
|
if (request.getSession().getAttribute("USERID") == null) {
|
||||||
|
|
||||||
|
%>
|
||||||
|
<script>alert('로그인후 이용하실 수 있습니다.');window.location.href='/index.do';</script>
|
||||||
|
<%
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
%>
|
||||||
|
<%
|
||||||
|
|
||||||
|
if (request.getSession().getAttribute("CLS") == null || "2".equals(request.getSession().getAttribute("CLS") ) == false ) {
|
||||||
|
|
||||||
|
%>
|
||||||
|
<script>alert('발주 기관 회원만 이용가능합니다.');window.location.href='/index.do';</script>
|
||||||
|
<%
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
%>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<%@ include file="/include/inc_head_2021_new.jsp" %>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- header start-->
|
||||||
|
<c:import url="/drilling/common/includeTopMenu.do" charEncoding="UTF-8" />
|
||||||
|
<!-- header end-->
|
||||||
|
|
||||||
|
<!-- javascript start-->
|
||||||
|
<script type="text/javascript">
|
||||||
|
|
||||||
|
let xhr;
|
||||||
|
if(window.XMLHttpRequest) {
|
||||||
|
xhr = new XMLHttpRequest();
|
||||||
|
} else {
|
||||||
|
// IE5, IE6 일때
|
||||||
|
xhr = new ActiveXObject("Microsoft.XMLHTTP");
|
||||||
|
}
|
||||||
|
|
||||||
|
function trim(str) {
|
||||||
|
str = String(str);
|
||||||
|
return str.replace(/^\s+|\s+$/g, '');
|
||||||
|
}
|
||||||
|
|
||||||
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
|
|
||||||
|
document.getElementById('btn-search').addEventListener('click', function() {
|
||||||
|
|
||||||
|
|
||||||
|
const pagingEle = document.getElementById('paging');
|
||||||
|
const activeLinks = pagingEle.querySelectorAll('li.is-active a');
|
||||||
|
|
||||||
|
|
||||||
|
const constTag = trim( document.getElementById('const-tag').value );
|
||||||
|
const constName = trim( document.getElementById('const-name').value );
|
||||||
|
const constStartDate = trim( document.getElementById('const-start-date').value );
|
||||||
|
const constEndDate = trim( document.getElementById('const-end-date').value );
|
||||||
|
|
||||||
|
|
||||||
|
const constStateCode = trim( document.getElementById('const-state-code').value );
|
||||||
|
const constCompanyDept = trim( document.getElementById('company-dept').value );
|
||||||
|
const constCompanyAdmin = trim( document.getElementById('company-admin').value );
|
||||||
|
const constCompanyTel = trim( document.getElementById('company-tel').value );
|
||||||
|
|
||||||
|
|
||||||
|
const nCount = Number(pagingEle.getAttribute('data-ncount'));
|
||||||
|
const nPage = Number(pagingEle.getAttribute('data-npage'));
|
||||||
|
|
||||||
|
xhr.open('GET', '/drilling/inquiry/list.do?' +
|
||||||
|
'constTag='+ constTag +
|
||||||
|
'&' +'constName='+ constName +
|
||||||
|
'&' +'constStartDate='+ constStartDate +
|
||||||
|
'&' +'constEndDate='+ constEndDate +
|
||||||
|
'&' +'constStateCode='+ constStateCode +
|
||||||
|
'&' +'constCompanyDept='+ constCompanyDept +
|
||||||
|
'&' +'constCompanyAdmin='+ constCompanyAdmin +
|
||||||
|
'&' +'constCompanyTel='+ constCompanyTel +
|
||||||
|
'&' +'nPage='+ nPage +
|
||||||
|
'&' +'nCount='+ nCount,
|
||||||
|
true);
|
||||||
|
xhr.setRequestHeader('Content-type', 'application/json');
|
||||||
|
|
||||||
|
xhr.onreadystatechange = function() {
|
||||||
|
if (xhr.readyState === 4 && xhr.status === 200) {
|
||||||
|
// 요청 성공 시 처리
|
||||||
|
console.log('%o', xhr.responseText);
|
||||||
|
const obj = JSON.parse(xhr.responseText);
|
||||||
|
var dataListEle = document.getElementById('data-list');
|
||||||
|
dataListEle.innerHTML = '';
|
||||||
|
|
||||||
|
|
||||||
|
var content = '';
|
||||||
|
|
||||||
|
for( idx in obj.datas ) {
|
||||||
|
const constStartDate = obj.datas[idx].constStartDate == null ? '알 수 없음' : obj.datas[idx].constStartDate;
|
||||||
|
const constEndDate = obj.datas[idx].constEndDate == null ? '알 수 없음' : obj.datas[idx].constEndDate;
|
||||||
|
const masterCompanyDept = obj.datas[idx].masterCompanyDept == null ? '-' : obj.datas[idx].masterCompanyDept;
|
||||||
|
const masterCompanyAdmin = obj.datas[idx].masterCompanyAdmin == null ? '-' : obj.datas[idx].masterCompanyAdmin;
|
||||||
|
const masterCompanyTel = obj.datas[idx].masterCompanyTel == null ? '-' : obj.datas[idx].masterCompanyTel;
|
||||||
|
const coinstCompanyDept = obj.datas[idx].coinstCompanyDept == null ? '-' : obj.datas[idx].coinstCompanyDept;
|
||||||
|
const constCompanyAdmin = obj.datas[idx].constCompanyAdmin == null ? '-' : obj.datas[idx].constCompanyAdmin;
|
||||||
|
const constCompanyTel = obj.datas[idx].constCompanyTel == null ? '-' : obj.datas[idx].constCompanyTel;
|
||||||
|
content +=
|
||||||
|
`
|
||||||
|
<tr>
|
||||||
|
<td>` + (obj.count - idx - (nCount * (nPage - 1))) + `</td>
|
||||||
|
<td style="text-align: left; text-indent: 10px;">` + obj.datas[idx].constName + `</td>
|
||||||
|
<td>` + obj.datas[idx].projectStateCodeName + `</td>
|
||||||
|
<td>` + constStartDate + ` ~ ` + constEndDate + `</td>
|
||||||
|
<td>` + obj.datas[idx].constStateCodeName + `</td>
|
||||||
|
<td>` + masterCompanyDept + `</td>
|
||||||
|
<td>` + masterCompanyAdmin + `</td>
|
||||||
|
<td>` + masterCompanyTel + `</td>
|
||||||
|
<td>` + coinstCompanyDept + `</td>
|
||||||
|
<td>` + constCompanyAdmin + `</td>
|
||||||
|
<td>` + constCompanyTel + `</td>
|
||||||
|
</tr>
|
||||||
|
`;
|
||||||
|
}
|
||||||
|
dataListEle.innerHTML = content;
|
||||||
|
|
||||||
|
document.getElementById('count').innerHTML = obj.count;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
let pagingEleHTML = `
|
||||||
|
<ul>
|
||||||
|
<li><a href="#"><img src="/com/img/common/icon/ico_chevron.svg" alt="Chevron-prev" class="page-prev"></a></li>
|
||||||
|
`;
|
||||||
|
|
||||||
|
for( let i = 1; i<Math.floor(obj.count / nCount)+2; i++ ) {
|
||||||
|
if( 10 < i ) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if( i === nPage ) {
|
||||||
|
pagingEleHTML += `<li data-npage="` + i + `" class="page-button is-active"><a href="#">` + i + `</a></li>`;
|
||||||
|
} else {
|
||||||
|
pagingEleHTML += `<li data-npage="` + i + `" class="page-button" ><a href="#">` + i + `</a></li>`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
pagingEleHTML += `
|
||||||
|
<li><a href="#"><img src="/com/img/common/icon/ico_chevron.svg" alt="Chevron-next" class="page-next"></a></li>
|
||||||
|
</ul>
|
||||||
|
`;
|
||||||
|
pagingEle.innerHTML = pagingEleHTML;
|
||||||
|
|
||||||
|
|
||||||
|
// 모든 .page-button 요소 가져오기
|
||||||
|
const pageButtons = document.querySelectorAll('.page-button');
|
||||||
|
|
||||||
|
// 각 버튼에 클릭 이벤트 리스너 추가
|
||||||
|
pageButtons.forEach(button => {
|
||||||
|
button.addEventListener('click', () => {
|
||||||
|
// 클릭된 버튼의 내용 (페이지 번호 등) 가져오기
|
||||||
|
const pageNumber = button.getAttribute('data-npage');
|
||||||
|
|
||||||
|
// 페이지 이동 등 원하는 동작 수행
|
||||||
|
console.log(`페이지 ` + pageNumber + `로 이동합니다.`);
|
||||||
|
pagingEle.setAttribute('data-npage', pageNumber);
|
||||||
|
document.getElementById('btn-search').click();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
} else if (xhr.readyState === 4) {
|
||||||
|
// 요청 실패 시 처리
|
||||||
|
console.error('요청 실패:', xhr.status);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
xhr.send();
|
||||||
|
});
|
||||||
|
|
||||||
|
// 초기 테이블 추가 트리거
|
||||||
|
document.getElementById('btn-search').click();
|
||||||
|
|
||||||
|
|
||||||
|
document.getElementById('const-name').addEventListener('keydown', function(event) {
|
||||||
|
if (event.key === 'Enter') {
|
||||||
|
event.preventDefault(); // 폼 제출 방지
|
||||||
|
document.getElementById('btn-search').click();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
document.getElementById('company-dept').addEventListener('keydown', function(event) {
|
||||||
|
if (event.key === 'Enter') {
|
||||||
|
event.preventDefault(); // 폼 제출 방지
|
||||||
|
document.getElementById('btn-search').click();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
document.getElementById('company-admin').addEventListener('keydown', function(event) {
|
||||||
|
if (event.key === 'Enter') {
|
||||||
|
event.preventDefault(); // 폼 제출 방지
|
||||||
|
document.getElementById('btn-search').click();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
document.getElementById('company-tel').addEventListener('keydown', function(event) {
|
||||||
|
if (event.key === 'Enter') {
|
||||||
|
event.preventDefault(); // 폼 제출 방지
|
||||||
|
document.getElementById('btn-search').click();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
</script>
|
||||||
|
<!-- javascript end-->
|
||||||
|
|
||||||
|
<!-- 페이지 컨테이너 시작 -->
|
||||||
|
<section class="page-container">
|
||||||
|
<div class="page-content-wrapper drilling inquiry">
|
||||||
|
<!-- 서브메뉴 시작 -->
|
||||||
|
<div class="page-sidebar-wrapper">
|
||||||
|
<div class="page-sidebar">
|
||||||
|
<div class="treeview-project-name">
|
||||||
|
<p class="project-title">건설현장 관리</p>
|
||||||
|
<p class="project-value value-is-active">프로젝트 조회</p>
|
||||||
|
<p class="project-value"><a href="/drilling/inquiry.do">건설현장 조회</a></p>
|
||||||
|
<p class="project-value"><a href="/drilling/input.do">건설현장 입력</a></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- 서브메뉴 끝 -->
|
||||||
|
|
||||||
|
<!-- 콘텐츠 시작 -->
|
||||||
|
<div class="page-content">
|
||||||
|
<div class="page-content-inner">
|
||||||
|
<!-- 카테고리 시작 -->
|
||||||
|
<div class="category-wrapper">
|
||||||
|
<ul class="page-category">
|
||||||
|
<li class="category-item"></li>
|
||||||
|
<li class="category-item">프로젝트 조회</li>
|
||||||
|
</ul>
|
||||||
|
<a href="#" class="btn btn-help">도움말</a>
|
||||||
|
</div>
|
||||||
|
<!-- 카테고리 끝 -->
|
||||||
|
<h1 class="page-title-1depth">프로젝트 조회</h1>
|
||||||
|
<!-- 내용 시작 -->
|
||||||
|
<div class="content-wrapper">
|
||||||
|
<div class="content1">
|
||||||
|
<div class="page-top-search">
|
||||||
|
<form class="form-inline">
|
||||||
|
<label class="input-label-display">검색</label>
|
||||||
|
<input type="hidden" id="const-tag" name="const-tag" value="P" >
|
||||||
|
<input type="search" id="const-name" name="const-name" class="input" placeholder="프로젝트명" title="" value="">
|
||||||
|
<input type="date" id="const-start-date" name="const-start-date" >
|
||||||
|
<span>~</span>
|
||||||
|
<input type="date" id="const-end-date" name="const-end-date" >
|
||||||
|
<input type="hidden" id="const-state-code" name="const-end-date">
|
||||||
|
</form>
|
||||||
|
<form class="form-inline-row">
|
||||||
|
<input type="text" id="company-dept" name="company-dept" class="input input-1" placeholder="담당부서,건설사명" title="" value="">
|
||||||
|
<input type="text" id="company-admin" name="company-admin" class="input input-2" placeholder="담당자" title="" value="">
|
||||||
|
<input type="text" id="company-tel" name="company-tel" class="input input-3" placeholder="담당 연락처" title="" value="">
|
||||||
|
<button type="button" id="btn-search" class="btn btn-search">
|
||||||
|
<span>조회하기</span>
|
||||||
|
</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<div class="table-info-group">Total: <span id="count">-</span>건</div>
|
||||||
|
<div class="table-wrap">
|
||||||
|
<table>
|
||||||
|
<colgroup>
|
||||||
|
<col style="width: 3%;">
|
||||||
|
<col style="width: 27%;">
|
||||||
|
<col style="width: 5%;">
|
||||||
|
<col style="width: 10%;">
|
||||||
|
<col style="width: 10%;">
|
||||||
|
<col style="width: 13%;">
|
||||||
|
<col style="width: 5%;">
|
||||||
|
<col style="width: 7%;">
|
||||||
|
<col style="width: 8%;">
|
||||||
|
<col style="width: 5%;">
|
||||||
|
<col style="width: 7%;">
|
||||||
|
</colgroup>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th rowspan="2">연번</th>
|
||||||
|
<th rowspan="2">사업명</th>
|
||||||
|
<th rowspan="2">입력상태</th>
|
||||||
|
<th colspan="2">사업내용</th>
|
||||||
|
<th colspan="3">발주기관현황</th>
|
||||||
|
<th colspan="3">건설사현황</th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>사업기간</th>
|
||||||
|
<th>사업단계 <br>(설계 시공 준공 유지관리)</th>
|
||||||
|
<th>담당부서</th>
|
||||||
|
<th>담당자</th>
|
||||||
|
<th>담당연락처</th>
|
||||||
|
<th>건설사명</th>
|
||||||
|
<th>담당자</th>
|
||||||
|
<th>담당연락처</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody id="data-list">
|
||||||
|
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<div id="paging" class="paging" data-npage="1" data-ncount="10">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- 내용 끝 -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- 콘텐츠 끝 -->
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<!-- 페이지 컨테이너 끝 -->
|
||||||
|
|
||||||
|
<div id="calenderDiv" class="trViewOff" style="position:absolute;"></div>
|
||||||
|
|
||||||
|
<%@ include file="/include/inc_footer_2021_new.jsp" %>
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 223 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 761 KiB |
Loading…
Reference in New Issue