📄 bbsqueshow.jsp
字号:
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="math.login.model.User" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<HTML>
<HEAD><TITLE>答案</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK href="css/iknow.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.2800.1586" name=GENERATOR></HEAD>
<BODY>
<div id="usrbar">
<nobr>
<TABLE align="center" cellSpacing=0 cellPadding=0 width="80%" border=0>
<%Object obj1 = session.getAttribute("USER");%>
<% if (obj1 == null) {%>
<TR align="right">
<TD height="100%" colspan="3" align="right">
<a href="bbslogin.jsp">登录</a> |
<a href="reg/enrol.jsp" target="_blank">注册</a>
</TD>
</TR>
<%} else { %>
<%@ include file="bbsask_bar.jsp"%>
<%} %>
</TABLE>
</nobr>
</div>
<DIV style="MARGIN: 10px 0px 0px" height="90" width="760" align="center">
<TABLE height=90 cellSpacing=0 cellPadding=0 width=760 border=0>
<TBODY>
<TR>
<TD>
<%@ include file="bbsfind_bar.jsp"%>
<html:link action="/bbs/BbsMain.do">主页</html:link> |
<html:link action="/bbs/ask.do">提出问题</html:link> |
<html:link action="/bbs/BbsList.do">所有问题</html:link>
<DIV class=bai>
<logic:notEmpty name="LIST">
<logic:iterate id="list" name="LIST" type="math.bbs.model.BbsList">
<% java.util.HashMap map = new java.util.HashMap();
//p.put("id", String.valueOf(list.getId()));
map.put("childid",String.valueOf(list.getChildid()));
map.put("bbsid",String.valueOf(list.getBbsid()));
map.put("state",String.valueOf(list.getState()));
map.put("fen",String.valueOf(list.getFen()));
pageContext.setAttribute("map", map, PageContext.REQUEST_SCOPE);
%>
<logic:equal name="list" property="ask" value="1">
<DIV class="t3_favor bcg bgg">
<SPAN style="PADDING-RIGHT: 10px; FLOAT: right">
回答一共<bean:write name="coutanswer" scope="request" filter="false" />
条</SPAN>
<SPAN style="PADDING-LEFT: 10px"><CS5 />
<bean:write name="list" property="state"/>
</SPAN>
</DIV>
<DIV class="b3 bcg mb12">
<DIV class=p90>
<DIV class="f14 B wr">
<CQ><bean:write name="list" property="title"/></CQ>
</DIV>
<DIV class=wr>
<SPAN class=red><IMG height=16 src="images/icn_point.gif" width=16 align=absMiddle>
悬赏分:<bean:write name="list" property="fen"/>
</SPAN> -
<SPAN class=gray>提出问题<bean:write name="list" property="date"/>
</SPAN>
</DIV>
<DIV class="wr f14"><CD><bean:write name="list" property="contance"/></CD></DIV>
<DIV class="wr f14"></DIV>
<DIV class="gray wr" align=right>提问者:
<bean:write name="list" property="username"/>
</DIV>
</DIV>
</DIV><!--b3+p90-->
</logic:equal>
<logic:equal name="list" property="nest" value="1">
<DIV class="t3 bcr bgr"><IMG height=22 src="images/icn_best.gif" width=24
align=absMiddle>最佳答案
</DIV>
<DIV class="b3 bcr mb12">
<DIV class=p90>
<DIV class="f14 wr"><CA><bean:write name="list" property="contance"/></CA></DIV>
<DIV class=gray align=right>回答者:<bean:write name="list" property="username"/> -
<bean:write name="list" property="date"/></DIV>
<DIV id=Lg></DIV>
</DIV>
</DIV>
</logic:equal>
<logic:equal name="list" property="ask" value="0">
<logic:equal name="list" property="nest" value="0">
<DIV class="t3 bcg bgg" style="POSITION: relative">答复
<DIV style="FONT-WEIGHT: normal; FONT-SIZE: 12px; RIGHT: 10px; POSITION: absolute; TOP: 4px">
<logic:equal name="list" property="flag" value="1">
<% int id=list.getId();
int chilidid=list.getChildid();
int fen=list.getFen();
%>
<form action="/math/bbs/nest.do" method="post">
<INPUT type="hidden" value="<%=id%>" name="id"/>
<INPUT type="hidden" value="<%=chilidid%>" name="childid"/>
<INPUT type="hidden" value="<%=fen%>" name="fen">
<INPUT type="submit" value="选为最佳答案" name="submit"/>
</form>
</logic:equal>
</DIV>
</DIV>
<DIV class="b3 bcg mb12">
<DIV class="p90 wr">
<DIV class=f14><bean:write name="list" property="contance"/> </DIV>
<DIV class=gray align=right>回答者:<bean:write name="list" property="username"/> -
<bean:write name="list" property="date"/></DIV>
<DIV id=Lg></DIV>
</DIV>
</DIV>
</logic:equal>
</logic:equal>
</logic:iterate>
<DIV class="t3 bcg bgg" style="POSITION: relative">
<bean:write name="pagerHeader" scope="request" filter="false" /><%! String key;%>
</DIV>
</logic:notEmpty>
<!---******** 回答条 ********-->
<%Object obj = session.getAttribute("USER");%>
<% if (obj != null) {%> <html:form action="/bbs/answer.do" method="post">
<html:hidden name="map" property="childid"/>
<html:hidden name="map" property="bbsid"/>
<html:hidden name="map" property="userid"/>
<html:hidden name="map" property="fen"/>
<DIV class=b4g>
<TABLE cellSpacing=0 cellPadding=0 width="90%" border=0>
<TBODY>
<TR vAlign=top>
<TD class=f14 noWrap width="22%">我也来回答:</TD>
<TD width="78%">
<html:textarea style="WIDTH: 97%" rows="10" cols="50" property="contance"></html:textarea>
回答字数在10000字以内.*不能为空.
</TD>
</TR>
</TBODY>
</TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="90%" border=0>
<TBODY>
<TR>
<TD class=f14 width="22%"> </TD>
<TD width="78%">
<html:submit value="提交回答"></html:submit>
</TD>
</TR>
</TBODY>
</TABLE>
</DIV>
</html:form> <%} %>
<DIV id=ft>©2007 math</DIV><IMG style="DISPLAY: none" src="">
</DIV>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -