📄 head_articleform.jsp~37~
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.List" %>
<html>
<head>
<title>
head_articleForm
</title>
</head>
<script language="javascript" type="text/javascript" src="JS/ArticleAdd.js"></script>
<jsp:useBean id="operation" scope="session" class="OperationDB.operation">
</jsp:useBean>
<jsp:useBean id="Chinese" scope="page" class="Tool.Chinese">
</jsp:useBean>
<jsp:useBean id="p" scope="session" class="Tool.MyPagination">
</jsp:useBean>
<body bgcolor="#ffffff">
<%
ActionForm.ConsumerActionForm caf=(ActionForm.ConsumerActionForm)session.getAttribute("form");
String id=request.getParameter("id");
ActionForm.articleActionForm af=operation.findArticle2(Integer.valueOf(id));
String str=(String)request.getParameter("Page");
int Page=1;
List l=null;
if(str==null){
l=operation.findRestore(Integer.valueOf(af.getId()));
int pagesize=3;
l=p.getInitPage(l,Page,pagesize);
}
else{
Page=p.getPage(str);
l=p.getAppointPage(Page);
}
%>
<%
ArrayList list=operation.findArticle(Integer.valueOf(id));
for(int i=0;i<list.size();i++){
ActionForm.articleActionForm aaf=(ActionForm.articleActionForm)list.get(i);
%>
<%
out.println("<p align=left> <img src=myimage/icon.gif width=10 height=10 alt=''> "+aaf.getTitle()+"</p>");
%>
<table width="390" border="1" align="center" cellpadding="1" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#fece62">
<tr>
<td valign="top" bgcolor="#FFFFFF"> <%=aaf.getContent()%></td>
</tr>
</table>
<table width="373" border="0" align="center">
<tr>
<td align="right"> <%=aaf.getPhTime()%>| 阅读(<%=aaf.getNumber()%>) | 回复(<%=operation.findRestore(Integer.valueOf(aaf.getId())).size()%>)</td>
</tr>
</table>
<%}%>
<table width="373" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="36" align="right"><div align="center"><a href="main.jsp"><img src="myimage/back.gif" width="51" height="20" alt=""></a></div></td>
</tr>
</table>
<%
if(p.getRecordSize()>0){
for(int i=0;i<l.size();i++){
ActionForm.restoreActionForm raf=(ActionForm.restoreActionForm)l.get(i);
String recontent=java.net.URLDecoder.decode(raf.getReContent(), "utf-8");
%>
<table width="390" border="1" align="center" cellpadding="1" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#9A9EC5">
<tr>
<td width="50" bgcolor="#FFFFFF">题目:</td>
<td width="335" bgcolor="#FFFFFF"><%=raf.getReTitle()%></td>
</tr>
<tr>
<td bgcolor="#FFFFFF">内容:</td>
<td bgcolor="#FFFFFF"><%=recontent%></td>
</tr>
<tr>
<td colspan="2" bgcolor="#FFFFFF"><div align="right">回复人:<%=operation.findName(Integer.valueOf(raf.getReAccount()))%></div></td>
</tr>
</table>
<%}
out.print(p.printCtrl(Page,id));
}%>
<form name="form" method="post" action="addrestoreAction.do?sign=9" onSubmit="return addrestore()">
<table width="390" border="1" align="center" cellpadding="1" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#000000">
<tr>
<td width="88" bgcolor="#FFFFFF">回复主题:
</td>
<td width="183" bgcolor="#FFFFFF"><input name="reTitle" type="text" class="inputinput" size="26"></td>
</tr>
<tr>
<td height="139" bgcolor="#FFFFFF">回复内容:</td>
<td bgcolor="#FFFFFF"><textarea name="reContent" rows="10" class="inputinput" cols="28"></textarea></td>
</tr>
<tr>
<td bgcolor="#FFFFFF">回 复 人:</td>
<td bgcolor="#FFFFFF"><input name="articleId" type="hidden" size="26" value="<%=af.getId()%>"><input name="accountId" type="hidden" size="26" value="<%=caf.getId()%>"><%=caf.getName()%></td>
</tr>
</table>
<table width="284" border="0" align="center">
<tr>
<td>
<div align="center">
<input type="image" class="inputinputinput" src="myimage/save.gif">
<a href=""><img src="myimage/reset.gif" width="51" height="20" alt="" /></a></div></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -