📄 browse.jsp
字号:
<%@page contentType="text/html; charset=GBK"%>
<%@page import="java.util.*"%>
<%@page import="java.text.*"%>
<%@page import="anni.gbook.*"%>
<%@page import="anni.tools.*"%>
<%@include file="config.jsp" %>
<%@page buffer="1024kb"%>
<%@taglib uri="/tags/struts-bean" prefix="bean"%>
<%@taglib uri="/tags/struts-html" prefix="html"%>
<%@taglib uri="/tags/struts-logic" prefix="logic"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html>
<head>
<title><%=gbname%></title>
<html:base/>
<meta http-equiv=Content-Type content="text/html; charset=GBK">
<LINK href="<%=styleFile%>" rel=stylesheet>
<script language="JavaScript">
function ow(url)
{
window.open(url,'','width=640,height=400,resizable=yes,scrollbars=1,directories=no');
return;
}
</script>
</head>
<body>
<center>
<!-------------------->
<p>
<table cellpadding='4' cellspacing='0' border='0' width='80%' align='center' class="write">
<tr bgcolor="#eeeeef">
<td>
<center><b><%=gbname%>--打<font color=red>*</font>号的必填 </b></center>
<hr size=1 color=gray>
<table border=0 cellpadding=3 cellspacing=2 width="100%" align="center" >
<html:form action="board-add.do?method=add" method="post" onsubmit="return validateBoardForm(this);">
<!--%String token = String.valueOf(System.currentTimeMillis()); session.setAttribute("token",token);%>
<input type="hidden" name="token" value="<%--=token--%>"-->
<tr>
<td width=20%>你的姓名:<font color=red>*</font></td>
<td width=30%><html:text property="name"/></td>
<td width=20%>电子邮件:<font color=red>*</font></td>
<td width=30%><html:text property="email"/></td>
</tr>
<tr>
<td width=20%>主页名称:</td>
<td width=30%><html:text property="pageName"/></td>
<td width=20%>主页地址:</td>
<td width=30%><html:text property="pageUrl" value="http://"/></td>
</tr>
<tr>
<td width=20%>性别:</td>
<TD width=40%><font color="#b50000">男 </font><html:radio property="sex" value="0"/> <font color="#19C108">女</font><html:radio property="sex" value="1"/></td>
<td width=10%>个性头像:</td>
<td width=30%>
<html:select size="1" property="img" onchange="document.images['face'].src=options[selectedIndex].value;">
<%
for(int imgi=1;imgi<=59;imgi++)
{
String s = "Image"+imgi+".gif";
out.println("<option value=images/"+s+">"+s+"</option>");
}
%>
</html:select> <a href="javascript:ow('gb_img.jsp');" title="查看所有头像"><img src="images/Image1.gif" border=0 name="face" width=32 height=32></a>
</td>
</tr>
<tr>
<td>留言内容:<font color=red>*</font><br><font color=#336699>支持JUBB(类似UBB代码),具体支持哪些代码自己试吧</font></td>
<td colspan="3"><!--textarea name="newtext" cols="50" rows="8"></textarea--><html:textarea property="content" cols="50" rows="8"></html:textarea></td>
</tr>
<tr>
<td colspan="4"><div align="center">
<html:submit value="提交"/>
<html:reset property="Submit2" value="重填"/>
</div></td>
</tr></html:form>
</table>
</td>
</tr>
</table>
</p><!-------------------->
<html:javascript formName="boardForm"/>
<logic:iterate id="info" name="all" offset="<%=(String)request.getAttribute("start")%>" length="6">
<table cellpadding="5" cellspacing="1" border="0" width="80%" align="center" class="write" style="TABLE-LAYOUT: fixed; WORD-BREAK: break-all; WORD-WRAP: break-word">
<tr>
<td colspan="4"><p><img src="<bean:write name="info" property="img"/>" border="0" align="left"><bean:write name="info" property="contentFormat" filter="false"/></p></td>
</tr>
<logic:notEmpty name="info" property="reply">
<tr>
<td colspan=4 width="100%">
<table cellspacing=1 cellpadding=3 bgcolor=black width="98%">
<tr bgcolor=#feffef>
<td><p>回复:<br><font color=#9800cc><bean:write name="info" property="reply" filter="false"/></font></p></td>
</tr>
</table>
</td>
</tr>
</logic:notEmpty>
<tr bgcolor="#eeefff" align="center"><td align="left" width="35%">
昵称:<bean:write name="info" property="username" filter="false"/></td>
<Td width="25%"><font color="#7489ff"><bean:write name="info" property="dateFormat"/></font></td>
<Td width="10%"><bean:write name="info" property="homePage" filter="false"/> <bean:write name="info" property="emailMessage" filter="false"/></td>
<td width="30%" bgcolor="#eeeeee"><a href="viewip.jsp?id=<bean:write name="info" property="id"/>" title="查看IP" target="_blank">查看IP</a> <a href="board.do?method=viewReply&id=<bean:write name="info" property="id"/>" title="回复留言">回复</a> <a href="delete.jsp?id=<bean:write name="info" property="id"/>" title="删除留言">删除</a>
</td></tr>
</table>
<table cellspacing=0 cellpadding=0 width=100% height=10><tr><td></td></tr></table>
</logic:iterate>
<table cellspacing=1 cellpadding=3 width=80% height=30 bgcolor="black"><Tr bgcolor="#eeeeff"><Td>
<bean:size id="sum" name="all" scope="request"/>
<bean:define id="num" value="<%=String.valueOf((sum.intValue()+5)/6)%>"/>
<logic:greaterThan name="num" value="1">
共有留言<font color=red><bean:write name="sum"/></font>条,共有<font color=red><bean:write name="num"/></font>页
<!---->
<%int len = new Integer(num).intValue();
int curr = new Integer((String)request.getAttribute("currentPage")).intValue();
for(int pgi = 1; pgi <= len; pgi++){
if(pgi==curr+1){%>
<font color=gray>第<%=pgi%>页</font>
<%}else{%>
<a href=board.do?method=browse¤tPage=<%=pgi-1%> title=第<%=pgi%>页>第<%=pgi%>页</a>
<%}}%>
<!---->
</logic:greaterThan>
<logic:lessEqual name="num" value="1">
当前只有<font color=red>1</font>页,共<font color=red><%=sum%></font>条留言
</logic:lessEqual>
</td></tr></table>
<p><%@include file="copyright.jsp"%></p>
</center>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -