alertinfo.jsp
来自「Java的框架」· JSP 代码 · 共 162 行
JSP
162 行
<%@ include file="/common/taglibs.jsp"%>
<head>
<title><fmt:message key="alertProfile.title"/></title>
<content tag="heading"><fmt:message key="alertProfile.heading"/></content>
<script language="javascript">
function deleteAlert(alertId)
{
if(confirmDelete('Alert'))
document.location.href="<c:url value='/deleteAlert.action'/>?id=" + alertId;
}
</script>
</head>
<div class="separator"></div>
<spring:bind path="alert.*">
<c:if test="${not empty status.errorMessages}">
<div class="error">
<c:forEach var="error" items="${status.errorMessages}">
<img src="<c:url value="/images/iconWarning.gif"/>"
alt="<fmt:message key="icon.warning"/>" class="icon" />
<c:out value="${error}" escapeXml="false"/><br />
</c:forEach>
</div>
</c:if>
</spring:bind>
<table class="detail">
<c:set var="pageButtons">
<tr>
<td></td>
<td class="buttonBar">
<authz:authorize ifAllGranted="alertAdmin">
<!-- <button type="button" style="margin-right: 5px" onclick="location.href='<c:url value="/deleteAlert.action"/>?id=<c:out value="${alert.id}"/>'"> -->
<button type="button" style="margin-right: 5px" onclick="javascript:deleteAlert('<c:out value="${alert.id}"/>')">
<fmt:message key="button.delete"/>
</button>
</authz:authorize>
<button type="button" style="margin-right: 5px" onclick="location.href='<c:url value="/listAlert.action" />'">
<fmt:message key="button.cancel"/>
</button>
</td>
</tr>
</c:set>
<tr>
<th>
<label for="<fmt:message key="alert.subject"/>"><fmt:message key="alert.subject"/>:</label>
</th>
<td>
<spring:bind path="alert.subject">
<c:out value="${status.value}"/>
</spring:bind>
</td>
</tr>
<tr>
<th>
<label for="<fmt:message key="alert.text"/>"><fmt:message key="alert.text"/>:</label>
</th>
<td>
<spring:bind path="alert.text">
<c:out value="${status.value}"/>
</spring:bind>
</td>
</tr>
<tr>
<th>
<mcaps:label key="alert.type"/>
</th>
<td>
<spring:bind path="alert.type">
<c:out value="${status.value}"/>
</spring:bind>
</td>
</tr>
<%-- Print out buttons - defined at top of form --%>
<%-- This is so you can put them at the top and the bottom if you like --%>
<c:out value="${pageButtons}" escapeXml="false" />
</table>
<div class="separator"></div>
<h3>Targeted User List</h3>
<display:table name="${alert.alertUsers}" cellspacing="0" cellpadding="0" requestURI="" defaultsort="1" id="alertUsers" pagesize="${pageSize}" class="list alertUsers" export="true" style="width:80%;">
<%-- Table columns --%>
<display:column property="username" sortable="true" headerClass="sortable" style="width:30%;" url="/viewAlertUser.action?" paramId="id" paramProperty="id" titleKey="alert.alertUser.username" />
<display:column sortable="true" style="width:15%;" titleKey="alert.alertUser.send">
<c:choose>
<c:when test="${alertUsers.send}">
Yes
</c:when>
<c:otherwise>
No
</c:otherwise>
</c:choose>
</display:column>
<display:column sortable="true" style="width:20%;" titleKey="alert.alertUser.sendDate">
<c:choose>
<c:when test="${not empty alertUsers.sendDate}">
<fmt:formatDate value="${alertUsers.sendDate}" pattern="dd MM yyyy HH:mm:ss"/>
</c:when>
<c:otherwise>
N/A
</c:otherwise>
</c:choose>
</display:column>
<display:column sortable="true" style="width:15%;" titleKey="alert.alertUser.acknowledge">
<c:choose>
<c:when test="${alertUsers.acknowledge}">
Yes
</c:when>
<c:otherwise>
No
</c:otherwise>
</c:choose>
</display:column>
<display:column sortable="true" style="width:20%;" titleKey="alert.alertUser.acknowledgeDate" >
<c:choose>
<c:when test="${not empty alertUsers.acknowledgeDate}">
<fmt:formatDate value="${alertUsers.sendDate}" pattern="dd MM yyyy HH:mm:ss"/>
</c:when>
<c:otherwise>
N/A
</c:otherwise>
</c:choose>
</display:column>
<display:setProperty name="paging.banner.item_name" value="alert user"/>
<display:setProperty name="paging.banner.items_name" value="alert users"/>
<display:setProperty name="export.excel.filename" value="Alert User List.xls"/>
<display:setProperty name="export.csv.filename" value="Alert User List.csv"/>
<display:setProperty name="export.pdf.filename" value="Alert User List.pdf"/>
</display:table>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?