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

📄 listtie.jsp

📁 jsp bbs + servlet jiu shizhe xie le
💻 JSP
字号:
<%@ page language="java" contentType="text/html; charset=GBK"
    pageEncoding="GBK"%>
<%@ page import="java.util.*" import="bbs.ahut.javabean.*" %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>帖子信息</title>

<script type="text/javascript">
 	function huitie(){
		with(document.forms.form1){
			if((context.value).replace(/\s/g,"")==""){
				alert("请填写内容!");
				return;
			}else{
				submit();
			}
		}
	}
 </script>
</head>
<body bgcolor="#f3feed">

	<%
       List<TieBean> listTie=(List)request.getAttribute("listTie"); 
	   Iterator<TieBean> it=listTie.iterator();
	   if(it.hasNext()){
		   TieBean tie=(TieBean)it.next();
	%>
	       <table width="700"  bgcolor="#9fceb4"><tr height="5"><td><strong><font size="4"><%=tie.getTitle()%></font></strong><br></td></tr></table>
		   <table width=700" border="1"  bgcolor="#f2f2f2">
				<tr>
					<td width="100"><table><tr><td>用户:<%=tie.getUserno()%></td></tr><tr><td>昵称:<%=tie.getUsername() %></td></tr><tr><td>发表时间:<%=tie.getCreateTime() %></td></tr></table></td>
					<td><%=tie.getContext()%></td>
				</tr>
	       </table>
	       <table width="700"  bgcolor="#bccaa4"><tr height="5"><td></td></tr></table>
	<%}
	   while(it.hasNext()){
	   TieBean tie=(TieBean)it.next();
	%>		
			<table width="700" border="1" bgcolor="#f0f2fd">
				<tr>
					<td width="100"><table><tr><td><font size="2">用户:<%=tie.getUsername() %></font></td></tr><tr><td><font size="2">发表时间:<%=tie.getCreateTime() %></font></td></tr></table></td>
					<td><%=tie.getContext()%></td>
				</tr>
		    </table>
		    <table width="700"  bgcolor="#c0c0c0">
			     <tr height="5">
			     	<td></td>
			     </tr>
		     </table>
    <%}%>
    <HR style="width: 100%;height: 3px;margin: 10 0 10 0;"><font color="#008000" ><strong>
    </strong><strong>快速回复</strong></font>
    
     <form action="huiTie" method="post" name="form1">
	     <jsp:useBean id="user" class="bbs.ahut.javabean.UserBean" scope="session"/>
		 <input type="hidden" name="userno" value="<jsp:getProperty name="user" property="userno" />">
		 <input type="hidden" name="username" value="<jsp:getProperty name="user" property="username" />">
	     <input type="hidden" name="id" value="<%=request.getAttribute("id")%>">
	     <table width="700" bgcolor="#d3f5be">
		     <tr>
		        	<td>回复内容</td>
		        	<td> <textarea name="context" rows="5" cols="60"></textarea>  </td>
		     </tr>
	     </table>
	     <table width="700" bgcolor="#d0d3af">
			<tr>
			   <td align="center"><input type="button" value="发表" onclick="huitie()" style="background-color: rgb(128, 255, 128);"></td>
			   <td align="left"><input type="reset" value="重写" style="background-color: rgb(128, 255, 128);"></td>			
			</tr>
		  </table>
	  </form>
</body>
</html>

⌨️ 快捷键说明

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