Files
wace_plm/WebContent/WEB-INF/view/admin/log/mailSendLogList.jsp
chpark da06c4684c Initial commit: WACE PLM with database initialization features
- Add Docker Compose configurations for dev, prod, and standalone environments
- Add database initialization scripts (init-db.sh, init-db-docker.sh)
- Add enhanced start-docker-linux.sh with DB init support
- Add comprehensive database initialization guide
- Support for automatic dbexport.pgsql import on first run
- Include safety checks for production environment
2025-08-29 15:46:08 +09:00

172 lines
5.9 KiB
Plaintext

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="com.pms.common.utils.*"%>
<%@ page import="java.util.*" %>
<%@include file= "/init.jsp" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><%=Constants.SYSTEM_NAME%></title>
<!-- //JSTL 변수선언 -->
<c:set var="totalCount" value="${empty TOTAL_COUNT?0:TOTAL_COUNT}" />
<c:set var="maxPage" value="${empty MAX_PAGE_SIZE?1:MAX_PAGE_SIZE}" />
<c:set var="nPage" value="${empty param.page?1:param.page}" />
<c:set var="pageIndex" value="${(nPage-1)/10}" />
<c:set var="nextPage" value="${empty NEXT_PAGE?1:NEXT_PAGE}" />
<c:set var="prevPage" value="${empty PREV_PAGE?1:PREV_PAGE}" />
<script type="text/javascript">
//체크된 재질 목록의 상태 활성화 및 비활성화 변경
$(function(){
$(document).ready(function(){
fnc_datepick();
});
$("#btnExcel").click(function(){
document.form1.action = "/admin/log/mailSendLogList.do?actionType=excel";
document.form1.submit();
});
$("#btnSearch").click(function(){
fn_search(1);
});
$("input[type=text]").keyup(function(e){
if(e.keyCode == 13){
fn_search(1);
}
});
});
function fn_search(page){
if(fnc_dateFormChk($("#search_fromDate").val(),$("#search_toDate").val())){
if(page != null) document.form1.page.value = page;
document.form1.target="_self";
document.form1.action = "/admin/log/mailSendLogList.do";
document.form1.submit();
}
}
//메일 제목을 통해서 해당 메일의 발송 내용을 확인한다.
function fn_openMailContentsPopUp(objId){
var form = document.form1;
window.open("","sendMailContentsPopUp","width=700,height=500");
form.objId.value = objId;
form.target = "sendMailContentsPopUp";
form.action = "/admin/log/mailContentsPopUp.do";
form.submit();
}
</script>
</head>
<body>
<form name="form1" method="POST">
<section id="commonSection" class="admin1">
<input type="hidden" name="objId" id="objId">
<div class="admin_title">
<h2>메일 발송 로그</h2>
</div>
<div id="adminFormWrap">
<table id="adminForm">
<tbody>
<tr>
<td class="label"><label>발신자</label></td>
<td><input type="text" id="search_senderName" name="search_senderName" value="${param.search_senderName}" maxlength="16"></td>
<td class="label"><label>수신자</label></td>
<td><input type="text" id="search_receiverName" name="search_receiverName" value="${param.search_receiverName}" maxlength="8"></td>
<td class="label"><label>발신일</label></td>
<td colspan="3">
<input type="text" id="search_fromDate" name="search_fromDate" class="date_margin" value="${param.search_fromDate}">
~
<input type="text" id="search_toDate" name="search_toDate" value="${param.search_toDate}"></td>
</tr>
</tbody>
</table>
</div>
<div id="adminBtnWrap">
<input type="button" value="조회" class="btns" id="btnSearch">
<input type="button" value="Excel Download" class="btns" id="btnExcel">
</div>
<div id="adminTableWrap">
<div id="tableWrap">
<table id="adminTable">
<colgroup>
<col width="5%" />
<col width="15%" />
<col width="15%" />
<col width="*%" />
<col width="15%" />
</colgroup>
<tr id="thead">
<td>No</td>
<td>발신자</td>
<td>수신자</td>
<td>제목</td>
<td>발송일</td>
</tr>
<c:choose>
<c:when test="${empty LIST}">
<tr>
<td align="center" colspan="5">조회된 데이터가 없습니다.</td>
</tr>
</c:when>
<c:otherwise>
<c:forEach var="item" items="${LIST}" varStatus="varStatus">
<tr>
<td>${item.RNUM}</td>
<td title="${item.SENDER_DEPT_NAME} ${item.SENDER_USER_NAME}">${item.SENDER_DEPT_NAME} ${item.SENDER_USER_NAME}</td>
<td title="${item.RECEIVER_DEPT_NAME} ${item.RECEIVER_USER_NAME}">${item.RECEIVER_DEPT_NAME} ${item.RECEIVER_USER_NAME}</td>
<td class="align_l"><a href="#" onclick="fn_openMailContentsPopUp('${item.OBJID}');" title="${item.TITLE}" >&nbsp;&nbsp;${item.TITLE}</td>
<td title="${item.LOG_TIME}">${item.LOG_TIME}</td>
</tr>
</c:forEach>
</c:otherwise>
</c:choose>
</table>
</div>
</div>
<div class="pdm_page">
<input type="hidden" name="page" id="page" value="${nPage}">
<c:if test="${!empty LIST}">
<div class="page_pro">
<table>
<tr>
<c:choose>
<c:when test="${nPage > 1}">
<td><a href="javascript:fnc_goPrev('${prevPage}');">prev</a></td>
</c:when>
<c:otherwise>
<td class="no_more_page">prev</td>
</c:otherwise>
</c:choose>
<c:forEach var="v" begin="${nPage>5?nPage-5:1}" end="${nPage>5?nPage+4:10}" step="1" varStatus="status">
<c:if test="${status.index -1 < maxPage}">
<c:choose>
<c:when test="${status.index eq nPage}">
<td><a href="#" class="now_page">${nPage}</a></td>
</c:when>
<c:otherwise>
<td><a href="javascript:fnc_goPage('${status.index}');">${status.index}</a></td>
</c:otherwise>
</c:choose>
</c:if>
</c:forEach>
<c:choose>
<c:when test="${nPage < maxPage}">
<td><a href="javascript:fnc_goNext('${nextPage}');">next</a></td>
</c:when>
<c:otherwise>
<td class="no_more_page">next</td>
</c:otherwise>
</c:choose>
</tr>
</table>
<p id="adminPageCount">총 ${totalCount}건</p>
</div>
</c:if>
</div>
</section>
</form>
</body>
</html>