📄 list.jsp
字号:
<%@ page contentType="text/html;charset=GB2312" %>
<%@ page import="cn.com.aheadsoft.recordset.InformInfoRecordSet" %>
<%@ page import="cn.com.aheadsoft.util.StringFormat" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link rel="stylesheet" type="text/css" href="/krm/jsp/css/css.css">
<title>公告列表</title>
<script>
<!--
function atDelete() {
return confirm("您确定要删除吗?");
}
function openWin(url) {
window.open(url,'','toolbar=no,location=no,menubar=no,resizable=1,scrolling=no ,left=0,top=0,width=800,height=600');
}
-->
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr class="trA">
<td > 您的位置:通讯管理 >> 公告板 >> <font class="fontcolor">公告列表</font></td>
</tr>
<tr height="8">
<td>
</td>
</tr>
<tr>
<td align="center">
<table border="0" width="98%" align="center" class="collapse">
<tr>
<td class="tdA" colspan="9" align="center"><div align="left">公告列表</div></td>
</tr>
<tr>
<td width="10%" class="tdB" align="center" >序号</td>
<td width="30%" class="tdB" align="center" >标题</td>
<td width="15%" class="tdB" align="center" >类别</td>
<td width="15%" class="tdB" align="center" >发布部门</td>
<td width="20%" class="tdB" align="center" >发布时间</td>
<td width="10%" class="tdB" align="center" >状态</td>
</tr>
<%
int number=1;
InformInfoRecordSet recordset = (InformInfoRecordSet)request.getAttribute("inform");
//session.removeAttribute("inform");
if(recordset != null && recordset.size() > 0) {
// int num = 1;
while(recordset.next()) {
%>
<tr <%
if(number%2==0){
%> class="bgcolor"<%}%>>
<td width="10%" class="common" align="center"><%= number %></td>
<td width="30%" class="common" align="left" >
<a href="javascript:openWin('/krm/servlet/InformInfoServlet?status=q&module=v&II_ID=<%= recordset.getII_ID() %>')"><%= StringFormat.Source2GB(recordset.getII_Title()) %></a>
</td>
<td width="15%" class="common" align="center" ><%= StringFormat.Source2GB(recordset.getIT_Title()) %></td>
<td width="15%" class="common" align="center" ><%= StringFormat.Source2GB(recordset.getII_Sender()) %></td>
<td width="20%" class="common" align="center" ><%= StringFormat.Source2GB(recordset.getII_Date()) %></td>
<td width="10%" class="common" align="center" ><FONT color=red><div align="center"><font color=red>未阅读</font></div></FONT></td>
</tr>
<%
number++;
}
}
%>
<%
InformInfoRecordSet recordset1 = (InformInfoRecordSet)request.getAttribute("informed");
//session.removeAttribute("informed");
if(recordset1 != null && recordset1.size() > 0) {
int num = 1;
while(recordset1.next()) {
%>
<tr <%
if((num+number)%2!=0){
%> class="bgcolor"<%}%>>
<td width="10%" class="common" align="center" ><%= num %></td>
<td width="30%" class="common" align="left" >
<a href="javascript:openWin('/krm/servlet/InformInfoServlet?status=q&module=v&II_ID=<%= recordset1.getII_ID() %>')"><%= StringFormat.Source2GB(recordset1.getII_Title()) %></a>
</td>
<td width="15%" class="common" align="center" ><%= StringFormat.Source2GB(recordset1.getIT_Title()) %></td>
<td width="15%" class="common" align="center" ><%= StringFormat.Source2GB(recordset1.getII_Sender()) %></td>
<td width="20%" class="common" align="center" ><%= StringFormat.Source2GB(recordset1.getII_Date()) %></td>
<td width="10%" class="common" align="center" >已阅读</td>
</tr>
<%
num++;
}
}
%>
<tr><td colspan="6" class="tdC"> </td> </tr>
</table>
</form>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -