bbsTopicAdmin.jsp
上传用户:jishiqi_cj
上传日期:2022-08-08
资源大小:24765k
文件大小:2k
源码类别:

Java编程

开发平台:

Java

  1. <html>
  2. <head>
  3. </head>
  4. <%@ page contentType="text/html;charset=GBK" language="java" %>
  5. <%@ page import = "StudyBbs.*" %>
  6. <%@ page import = "java.util.*" %>
  7. <%
  8. Vector v = (Vector)session.getAttribute(Constants.TOPIC_LIST_KEY);
  9. Topic t = null;
  10. if(v != null ){
  11. %>
  12. <body bgcolor="#FFFFFF">
  13. <div align="center">
  14.   <p><font color="#990000" size="+2"><u>网上论坛文章维护中心</u></font> </p>
  15.   <table width="80%" border="0" cellspacing="1" cellpadding="2">
  16.     <tr> 
  17.       <td  bgcolor="#99CCFF"> 
  18.         <div align="center">文章名称</div>
  19.       </td>
  20.       <td  bgcolor="#99CCFF"> 
  21.         <div align="center">作者信息</div>
  22.       </td>
  23.       <td  bgcolor="#99CCFF"> 
  24.         <div align="center">^_^</div>
  25.       </td>
  26.     </tr>
  27.     
  28.     
  29. <%for(int i = 0;i < v.size();i++)
  30.         {  
  31.         t = (Topic)v.get(i);
  32.        %>           
  33.  
  34.     <tr> 
  35.       <td >
  36.         <div align="center"><%=t.getTitle()%></div>
  37.       </td>
  38.       <td ><div align="center"><%=t.getOwner()%></td>
  39.       <td >
  40.         <div align="center"><a href="topicDel.do?topicid=<%=t.getId()%>">删除</a></div>
  41.       </td>
  42.     </tr>
  43.     <tr> 
  44.       <td colspan="4"> 
  45.         <hr width="100%" size="1">
  46.       </td>
  47.     </tr>
  48.     <tr> 
  49.       <td class="text1"> 
  50.         <div align="center"></div>
  51.       </td>
  52.       <td class="text1" colspan="2">&nbsp;</td>
  53.     </tr>
  54.     
  55.     
  56.     
  57.          <% } %>            
  58.     
  59.       <% } %>            
  60.    
  61.    
  62.     
  63.     <tr> 
  64.       <td class="text1" colspan="4" bgcolor="#99CCFF">搜索查询</td>
  65.     </tr>
  66.     <tr>
  67.       <td class="text1" colspan="4">
  68.         <form method="post" action="topicSearch.do">
  69.           <p>   请输入文章名称: 
  70.             <input type="text" name="title" size="15" maxlength="50">
  71.           </p>
  72.           <p>     
  73.             <input type="submit" name="Submit" value="提交">
  74.             <input type="reset" name="Submit2" value="重置">
  75.           </p>
  76.           <p>&nbsp;</p>
  77.         </form>
  78.       </td>
  79.     </tr>
  80.   </table>
  81. </body>
  82. </html>