📄 a_editlist.jsp
字号:
<%@ page language="java" pageEncoding="GBK"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<html>
<head>
<style type="text/css">
.tableHead{ /*表头*/
font-size:12px;
font-weight:bold;
height:20pt;
background:url(img/bg.bmp);
text-align:buttom;
}
.myTable{
border:#00A8FF 1px solid;
border-collapse:collapse;
/*padding:0px 0px 0px 0px;*/
}
.myTable TD{
border:#00A8FF 1px solid;
font-family:"宋体";
font-size:10pt;
/*height:22px;*/
padding:0px 0px 0px 0px;
}
.text{
font-family:"宋体";
font-size:10pt;
/*height:22px;*/
padding:0px 0px 0px 0px;
width:200px;
height:22px;
}
</style>
</head>
<body>
<form name="form1" method="post" action="${pageContext.request.contextPath}/affiche.do?method=editlist">
<table width="100%" border="1" class="myTable">
<tr class="tableHead">
<td align="center" colspan="2">
公告查询
</td>
</tr>
<tr>
<td>
公告标题:
</td>
<td>
<input type="text" name="atitle" size="50" />
</td>
</tr>
<tr>
<td>
发布时间:
</td>
<td>
<input class="plain" name="begin" value="" size="15" maxlength="25" readonly />
<a href="javascript:void(0)" onclick="if(self.gfPop)gfPop.fPopCalendar(document.form1.begin);return false;"> <img name="popcal" align="absmiddle" src="${pageContext.request.contextPath}/Img_file/calbtn.gif" width="34" height="22" border="0" alt="" /></a>
至
<input class="plain" name="end" value="" size="15" maxlength="25" readonly />
<a href="javascript:void(0)" onclick="if(self.gfPop)gfPop.fPopCalendar(document.form1.end);return false;"> <img name="popcal" align="absmiddle" src="${pageContext.request.contextPath}/Img_file/calbtn.gif" width="34" height="22" border="0" alt="" /></a>
<iframe width=174 height=189 name="gToday:normal:agenda.js" id="gToday:normal:agenda.js" src="${pageContext.request.contextPath}/date/ipopeng.htm" scrolling="no" frameborder="0"
style="visibility:visible; z-index:999; position:absolute; top:-500px; left:-500px;">
</iframe>
</td>
</tr>
<tr>
<td>
</td>
<td>
<input type="submit" name="submit" value="查询" />
<input type="reset" name="reset" value="重置" />
</td>
</tr>
</table>
</form>
<table width="100%" class="myTable" border="1">
<tr class="tableHead">
<td width="80%" height="45" align="center">
公 告 管 理
</td>
<td width="20%">
<a href="${pageContext.request.contextPath}/Jsp_file/affiche/a_edit.jsp">发布公告</a>
</td>
</tr>
<tr>
<td colspan="2">
<table width="100%" border=1>
<tr>
<td align="center">
公告标题
</td>
<td align="center">
发布时间
</td>
<td align="center">
有效时间
</td>
<td align="center">
状态
</td>
<td align="center">
操作
</td>
</tr>
<logic:present name="apage" scope="request">
<logic:present name="apage" property="list" scope="request">
<logic:empty name="apage" property="list" scope="request">
<tr>
<td colspan="5">
<font color="red">暂时没有公告信息</font>
</td>
</tr>
</logic:empty>
</logic:present>
</logic:present>
<logic:present name="apage" scope="request">
<logic:present name="apage" property="list" scope="request">
<logic:notEmpty name="apage" property="list" scope="request">
<logic:iterate id="aff" name="apage" property="list" scope="request">
<tr>
<td>
<a href="${pageContext.request.contextPath}/affiche.do?method=show&id=${aff.aid}" title="点击查看详细信息">${aff.atitle}</a>
</td>
<td align="center">
${aff.asendTime}
</td>
<td align="center">
${aff.arealTime}
</td>
<td align="center">
<logic:equal name="aff" property="astate" value="0">未审核</logic:equal>
<logic:equal name="aff" property="astate" value="1">审核通过</logic:equal>
<logic:equal name="aff" property="astate" value="-1">审核不通过</logic:equal>
</td>
<td align="center">
<logic:equal name="aff" property="astate" value="0">
<a href="${pageContext.request.contextPath}/affiche.do?method=update&id=${aff.aid}">修改</a> | <a href="${pageContext.request.contextPath}/affiche.do?method=delete&id=${aff.aid}">删除</a>
</logic:equal>
<logic:equal name="aff" property="astate" value="-1">
<a href="${pageContext.request.contextPath}/affiche.do?method=update&id=${aff.aid}">修改</a> | <a href="${pageContext.request.contextPath}/affiche.do?method=delete&id=${aff.aid}">删除</a>
</logic:equal>
<logic:equal name="aff" property="astate" value="1">
</logic:equal>
</td>
</tr>
</logic:iterate>
</logic:notEmpty>
</logic:present>
</logic:present>
</table>
</td>
</tr>
</table>
<table width=100%>
<tr>
<td>
<div align="right" style="font-size: 12">
${apage.pageBar}
</div>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -