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

📄 forumonetopic.jsp

📁 用于BBS交流的网站
💻 JSP
字号:
<%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
<%@page import="com.andrew.elements.Article"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%! 
long rootid;
List<Article> articles;
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<jsp:useBean id="user" class="com.andrew.elements.SimpleUser" scope="application"/>
<jsp:useBean id="db" class="com.andrew.db.DB" scope="page"/>
<% 
rootid = Long.parseLong(request.getParameter("rootid"));
articles = db.getOneTopics(rootid);
%>
<html>
  <head>
    <base href="<%=basePath%>"> 
    
    <title>注册结果显示</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
    <style type="text/css">
<!--
.STYLE1 {font-size: 10px}
.STYLE2 {color: #FFFFFF}
-->
    </style>
</head>
  
  <body>
  	<center>
  	  <table width="800" cellpadding="2" cellspacing="2" bordercolor="#666666" bgcolor="#999999">
        <tr>
          <td height="998"><table width="100%" align="center" cellpadding="2" cellspacing="0" bordercolor="#666666" bgcolor="#666666">
            <tr>
              <td width="68%">&nbsp;</td>
              <td width="32%"><form name="form1" method="post" action="dealLogin.jsp">
                <table width="100%" cellpadding="2" cellspacing="2" bordercolor="#666666" bgcolor="#666666">
                  <tr>
                    <td width="23%">用户名:</td>
                    <td width="77%"><input name="username" type="text" id="username" size="16" maxlength="16"></td>
                  </tr>
                  <tr>
                    <td>密&nbsp;&nbsp;码:</td>
                    <td><input name="password" type="password" id="password" size="16" maxlength="16">
					<a href="resumePasswd.jsp" target="_blank" class="STYLE1">忘记密码?</a>					</td>
                  </tr>
                  <tr>
                    <td><input type="submit" name="submit" value="提交"></td>
                    <td><input type="button" name="register" value="注册" onClick="document.location.href='register.jsp'"></td>
                  </tr>
                </table>
                            </form>
              </td>
            </tr>
          </table>
            <table width="800" cellpadding="2" cellspacing="2" bgcolor="#333333">
              <tr>
                <td><table width="100%" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="13%" align="center"><a href="index.jsp"><span class="STYLE2">首页</span></a></td>
                    <td width="1%"></td>
                    <td width="14%" align="center"><a href="#"><span class="STYLE2">自选风格</span></a></td>
                    <td width="1%"></td>
                    <td width="14%" align="center"><a href="languages/languagesIndex.jsp"><span class="STYLE2">编程语言</span></a></td>
                    <td width="1%"></td>
                    <td width="14%" align="center"><a href="digital/digitalIndex.jsp"><span class="STYLE2">数字资源</span></a></td>
                    <td width="1%"></td>
                    <td width="14%" align="center"><a href="download/downloadIndex.jsp"><span class="STYLE2">软件下载</span></a></td>
                    <td width="1%"></td>
                    <td width="13%" align="center"><a href="vipControl.jsp?username=<%=user.getUserName() %>"><span class="STYLE2">我的主页</span></a></td>
                    <td width="1%" align="center">&nbsp;</td>
                    <td width="12%" align="center"><a href="forum/forumIndex.jsp"><span class="STYLE2">论坛</span></a></td>
                  </tr>
                </table></td>
              </tr>
            </table>
            <br>
            <table width="800" height="800" align="center" cellpadding="2" cellspacing="2" bgcolor="#666666">
              <tr>
                <td width="554" valign="top"><table width="800" align="center" cellpadding="2" cellspacing="2">
                  <tr>
                    <td height="272"><table width="100%" height="277" border="1" cellpadding="2" cellspacing="2" bordercolor="#333333">                     
                      <% 
                 		for(Iterator<Article> iteroter = articles.iterator();iteroter.hasNext();) {
					  		Article article = (Article)iteroter.next();
					 		//String prefix = "";
					 		//for (int i = 0; i < article.getGrade(); i++) {
					 		//	prefix = prefix + "----";
					 		//}
                	 %> 
                      <tr>
                        <td width="20%" rowspan="3">作者:<%=article.getUsername() %></td>
                        <td width="46%" height="30">主题:<%=article.getTitle() %></td>
                        <td width="34%">发表时间:<%=article.getPublishdate() %></td>
                      </tr>
                      <tr>
                        <td height="201" colspan="2" valign="top">内容:<%=article.getContent() %></td>
                      </tr>
                      <tr>
                        <td height="38"><a href="forum/article.jsp?type=reply&id=<%=article.getId() %>&rootid=<%=article.getRootid() %>&leaf=<%=article.isLeaf() %>">回复</a></td>
                        <td><a href="forum/article.jsp?type=topic">发主贴</a></td>
                      </tr>
                      
                     <% 
                     	}
                     %> 
                    </table></td>
                  </tr>
                  <tr>
                    <td>&nbsp;</td>
                  </tr>
                </table></td>
              </tr>
            </table>
            <br>
            <br>
            <table width="800" cellpadding="2" cellspacing="2" bgcolor="#333333">
              <tr>
                <td><hr></td>
              </tr>
              <tr>
                <td height="17"><CENTER>
                  <p>&copy;2008 Software Engineering In GongShang- <A href="http://www.miibeian.gov.cn/" target="_blank">ICP证合字B2-20070111号</A></p>
                </CENTER>
                </td>
              </tr>
            </table></td>
        </tr>
      </table>
  	
    </center>
  </body>
</html>

⌨️ 快捷键说明

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