You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
121 lines
4.1 KiB
121 lines
4.1 KiB
<%@ page language="java" import="java.util.*" contentType="text/html;charset=gb2312"%>
|
|
<jsp:useBean id="sn" scope="page" class="com.bean.SystemBean" />
|
|
<jsp:useBean id="ab" scope="page" class="com.bean.AfficheBean" />
|
|
<%
|
|
String path = request.getContextPath();
|
|
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
|
String dir=sn.getDir();
|
|
%>
|
|
<HTML><HEAD><TITLE>后台操作区</TITLE>
|
|
<LINK href="<%=basePath %><%=dir %>/images/Admin_Style.css" type=text/css rel=stylesheet>
|
|
<LINK href="<%=basePath %><%=dir %>/images/style.css" type=text/css rel=stylesheet>
|
|
<SCRIPT language=JavaScript src="<%=basePath %><%=dir %>/images/Common.js"></SCRIPT>
|
|
<STYLE type=text/css>
|
|
BODY {
|
|
MARGIN-LEFT: 0px; BACKGROUND-COLOR: #ffffff
|
|
}
|
|
.STYLE1 {color: #ECE9D8}
|
|
</STYLE>
|
|
</HEAD>
|
|
<script language="javascript" >
|
|
function del()
|
|
{
|
|
pageform.submit();
|
|
}
|
|
</script>
|
|
|
|
<%
|
|
String message = (String)request.getAttribute("message");
|
|
if(message == null){
|
|
message = "";
|
|
}
|
|
if (!message.trim().equals("")){
|
|
out.println("<script language='javascript'>");
|
|
out.println("alert('"+message+"');");
|
|
out.println("</script>");
|
|
}
|
|
request.removeAttribute("message");
|
|
%>
|
|
<%
|
|
String username=(String)session.getAttribute("user");
|
|
if(username==null){
|
|
response.sendRedirect(path+"/error.jsp");
|
|
}
|
|
else{
|
|
|
|
%>
|
|
<BODY oncontextmenu="return false;" onselectstart="return false;" leftMargin=0
|
|
background=<%=basePath %><%=dir %>/images/MainBg.gif topMargin=0 scroll=no
|
|
marginheight="0" marginwidth="0">
|
|
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
|
|
<TBODY>
|
|
<TR>
|
|
<TD align="left" vAlign=top ><form action="<%=basePath %>Affiche.do?method=delaffiche" method="post" name="pageform">
|
|
<table width='100%' cellspacing='1' cellpadding='3' bgcolor='#CCCCCC' class="tablewidth">
|
|
<tr class="head">
|
|
<td width="5%" align="center">ID </td>
|
|
<td align="center">标题</td>
|
|
<td align="center">发布时间</td>
|
|
<td align="center">发布人</td>
|
|
<td align="center">是否显示</td>
|
|
<td align="center">选择</td>
|
|
</tr>
|
|
<%
|
|
List pagelist3=ab.getAllAfficheManage();
|
|
%>
|
|
<script type="text/JavaScript">
|
|
function allch()
|
|
{
|
|
for(i=0;i<<%=pagelist3.size()%>;i++)
|
|
{
|
|
document.pageform.checkit(i).checked=document.pageform.checkall.checked;
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<%
|
|
if(!pagelist3.isEmpty()){
|
|
for(int i=0;i<pagelist3.size();i++){
|
|
List pagelist2 =(ArrayList)pagelist3.get(i);
|
|
%>
|
|
<tr class="trA" onMouseOver="this.className='trB'" onMouseOut="this.className='trA'">
|
|
<td width='5%' align="center" style="border-bottom:1px dotted #ccc;"><%=i+1 %></td><input type="hidden" name="id<%=i %>" value="<%=pagelist2.get(0).toString()%>" >
|
|
<td align="center" bgcolor="#FFFFFF" style="border-bottom:1px dotted #ccc;"><a href="<%=basePath %><%=dir %>/affiche/edit.jsp?method=editAffiche&id=<%=pagelist2.get(0).toString()%>" ><%=pagelist2.get(1).toString() %></a> </td>
|
|
<td align="center" bgcolor="#FFFFFF" style="border-bottom:1px dotted #ccc;"><%=pagelist2.get(2).toString() %></td>
|
|
<td align="center" bgcolor="#FFFFFF" style="border-bottom:1px dotted #ccc;"><%=pagelist2.get(3).toString() %></td>
|
|
<td align="center" bgcolor="#FFFFFF" style="border-bottom:1px dotted #ccc;"><a href="<%=basePath %>Affiche.do?method=hideAffiche&id=<%=pagelist2.get(0).toString()%>"><%=Integer.parseInt(pagelist2.get(4).toString())==1?"显示":"隐藏" %></a></td>
|
|
<td align="center" bgcolor="#FFFFFF" style="border-bottom:1px dotted #ccc;"><input type="checkbox" name="checkit" value="<%=pagelist2.get(0).toString()%>"></td>
|
|
</tr>
|
|
|
|
<%
|
|
}}
|
|
%>
|
|
<TR align="right" >
|
|
<TD colspan="6" id=map>
|
|
<input type="checkbox" name="checkall" onClick="allch()" > 全选
|
|
</TD>
|
|
</TR>
|
|
|
|
|
|
</TABLE></form>
|
|
</td>
|
|
</tr>
|
|
<TR>
|
|
<TD align="center" vAlign=top >
|
|
<TABLE align="center" vAlign=top width="100%" border=0 align="center" cellPadding=3 cellSpacing=1>
|
|
<TBODY>
|
|
<TR align="center" class=head>
|
|
<TD >
|
|
<input type="button" name="button" value="删除" onClick="del()" >
|
|
</TD>
|
|
</TR>
|
|
</TBODY>
|
|
</TABLE>
|
|
</TD>
|
|
</TR>
|
|
</TBODY>
|
|
</TABLE>
|
|
</BODY>
|
|
<%} %>
|
|
</HTML>
|