📄 904d63941932001d139f992bfca89756
字号:
<%@ page language="java" pageEncoding="gb2312"%>
<%@ include file="/commons/taglibs.jsp"%>
<script language="javascript" src="js/calendar.js"></script>
<html>
<head>
<title>My JSP 'clientList.jsp' starting page</title>
<%@ include file="/commons/meta.jsp"%>
<script language=javascript>
function add(){
window.location="${ctx}/announcement.do?p=edit";
}
</script>
</head>
<body class="bodycolor" topmargin="5">
<table class="title1">
<tr>
<td class="Big"><img src="${ctx }/images/notify_new.gif" align="absmiddle">
<span class="big3"> 公告列表</span>
<br>
</td>
</tr>
</table>
<br>
<div align="left">
<fieldset style="width:95%;padding-bottom:5px;">
<legend class="small" align=left>
<b>快捷操作</b>
</legend>
<html:form action="announcement.do?p=list" method="post">
<table cellspacing="1" class="small" align="left" cellpadding="3">
<tr>
<td nowrap class="TableData">
公告名称:
</td>
<td nowrap class="TableData">
<input type="text" name="postTitle" size="20"
maxlength="100" value="" />
</td>
<td nowrap class="TableData">
发布时间:
</td>
<td nowrap class="TableData">
<input type="text" name="beginTime" readonly="readonly" size="20"
maxlength="100" value="" />
<img src="${ctx }/images/calendar.gif" ondblClick="setday(beginTime)">
</td>
<td nowrap class="TableData">
有效日期:
</td>
<td nowrap class="TableData">
<input type="text" name="endTime" size="20"
maxlength="100" value="" />
<img src="${ctx }/images/calendar.gif" ondblClick="setday(endTime)">
</td>
</tr>
<tr>
<td nowrap class="TableData">
发布人:
</td>
<td nowrap class="TableData">
<html:select property="userId">
<html:option value="--请选择--"></html:option>
<html:options collection="users" property="id"
labelProperty="userName" />
</html:select>
</td>
</tr>
<tr align="center">
<td nowrap class="TableData" colspan="2">
<input value="快速查询" type="submit" class="SmallButton"
title="模糊查询" name="button" />
<input value="添加公告" type="button" onclick="javascript:add();"
class="SmallButton" title="公告资料导入" name="button" />
</td>
</tr>
</table>
</html:form>
</fieldset>
</div>
<br>
<br>
<%@ include file="/commons/messages.jsp"%>
<table class="tablestyle1">
<c:if test="${empty announcements}">
<%@ include file="/utility/noData.jsp"%>
</c:if>
<c:if test="${!empty announcements}">
<tr class="TableHeader">
<td align="center" width="5%">选择</td>
<td align="center" width="20%">公告标题</td>
<td align="center" width="25%">公告内容</td>
<td align="center" width="10%">开始时间</td>
<td align="center" width="10%">结束时间</td>
<td align="center" width="10%">发布人</td>
<td align="center" width="5%">发布</td>
<td align="center" width="15%">操作</td>
</tr>
<c:forEach items="${announcements}" var="item">
<tr class=TableLine1>
<td nowrap align="center">
<input type="checkbox" name="announcement_select" value="1">
</td>
<td nowrap align="center">
${item.postTitle}
</td>
<td nowrap align="center">
${item.postContent}
</td>
<td nowrap align="center">
${item.beginTime}
</td>
<td nowrap align="center">
${item.endTime}
</td>
<td nowrap align="center">
${item.user.userName}
</td>
<td nowrap align="center">
<c:if test="${item.status==1}">
是
</c:if>
<c:if test="${item.status==2}">
否
</c:if>
</td>
<td nowrap align="center">
<a href="${ctx}/announcement.do?p=edit&id=${item.id}">编辑</a>
<a href="${ctx}/announcement.do?p=delete&id=${item.id}"onClick="{if(confirm('确定要删除该公告吗?')){return true;}return false;}">删除</a>
</td>
</tr>
</c:forEach>
<tr>
<pager:pager value="pager" url="announcement.do"
pagerStr="pagerstruts" />
</tr>
</c:if>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -