⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 manage_affiche.jsp

📁 一个完整的门户网站,基于JSP环境下开发的,使用SQL数据库.
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="com.bwm.model.User" %>
<%@ page import="com.bwm.model.Affiche" %>
<%@ page import="com.bwm.core.*" %>
<%@ page import="java.util.*" %>
<%
response.setHeader("Cache-Control","no-cache");
response.setHeader("Cache-Control","no-store");
response.setDateHeader("Expires",0);
response.setHeader("Pragma","no-cache");
if (!Crazyadept.UserIsOK(session,FinalConstants.STATUS_ADMIN)) {    out.println("<script>parent.location.href='../index.jsp';</script>");
    return ;}%>
<html>
<head>
<title>manage_affiche</title>
</head>
<link href="../css/admin.css" rel="stylesheet" type="text/css">
<body> 
<table border="1" align="center" cellpadding="0" cellspacing="0" class="tableBorder2"> 
  <tr align="center"> 
    <td colspan="4" class="TableTitle1" >公告管理</td> 
  </tr> 
  <tr align="center"> 
    <td colspan="3">&nbsp;</td> 
    <td><a href="add_affiche.jsp" target="_self" >添加公告</a></td> 
  </tr> 
  <tr align="center"> 
    <td height="27">公告标题</td> 
    <td>发布时间</td> 
    <td>发布人</td> 
    <td width="30%">修改删除</td> 
  </tr>   <%BasetableFactory bf=BasetableFactory.getInstance();int submit_page=ParamUtils.getIntParameter(request,"page");
        Collection coll=bf.ListAffiche(submit_page,"");if(coll==null||coll.size()<=0){%> 
  <tr align="center"> 
    <td height="27" colspan="4">当前公告记录为空</td> 
  </tr>   <%}else{Iterator it=coll.iterator(); while(it.hasNext()){
        Affiche a=(Affiche)it.next();%> 
  <tr align="center"> 
    <td height="27"><a target="_self" href="info_affiche.jsp?aid=<%=a.getAid()%>"><%=a.getTitle()%></a></td> 
    <td><%=a.getAtime()%></td> 
    <td><%=bf.SearchUser("WHERE uid='"+a.getUid()+"'").getName()%> </td> 
    <td><a href="update_affiche.jsp?action=modify&aid=<%=a.getAid()%>"><img src="../images/modify.gif" border="0"></a>&nbsp;&nbsp;<a href="modify_affiche.jsp?action=del&aid=<%=a.getAid()%>" onClick="javascript:return confirm('你确定删除该公告吗?')"><img src="../images/del.gif" border="0"></a></td> 
  </tr>   <%}%> 
  <tr align="right"> 
    <td height="27" colspan="4"><%=HtmlUtils.table(bf.getRow("affiche"),submit_page,"manage_affiche.jsp")%></td> 
  </tr>   <%}%> 
</table> 
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -