📄 addattachment.jsp
字号:
<%--
- $Header: /cvsroot/fiyuforum/fiyuforum/srcweb/fiyuplugin/fiyuforum/admin/addcategory.jsp,v 1.22 2003/10/19 09:41:34 imanic Exp $
- $Author: 飞鱼
- $Revision: 1.22 $
- $Date: 2003/02/01 09:41:34 $
- http://www.hnedu.net/fiyu
--%>
<%@ page contentType="text/html;charset=utf-8" %>
<%@ page errorPage="fatalerror.jsp"%>
<%@ page import="fiyucore.util.ParamUtil" %>
<%@ page import="fiyucore.util.StringUtil" %>
<%@ page import="fiyuforum.db.*" %>
<%@ page import="fiyuforum.MyUtil" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%@ include file="inc_common.jsp"%>
<html >
<head>
<title>fiyuForum - 附加档案</title>
<%@ include file="/fiyuplugin/fiyuforum/meta.jsp"%>
</head>
<link href="<%=contextPath%>/fiyuplugin/fiyuforum/css/style.css" rel="stylesheet" type="text/css">
<script language="JavaScript1.2" src="<%=contextPath%>/fiyuplugin/fiyuforum/js/vietuni.js" type="text/javascript"></script>
<body leftmargin="0" topmargin="0">
<%@ include file="header.jsp"%>
<br/>
<%
PostBean postBean = (PostBean)request.getAttribute("PostBean");
ForumCache forumCache = ForumCache.getInstance();
int forumID_int = postBean.getForumID();
String forumID = String.valueOf(forumID_int);
String forumName = forumCache.getBean(forumID_int).getForumName();
//String postID = String.valueOf(ParamUtil.getParameterInt(request, "post"));
%>
<table width="95%" align="center">
<tr class="nav">
<td><img src="<%=contextPath%>/fiyuplugin/fiyuforum/images/nav.gif"></td>
<td width="100%" nowrap> <a class="nav" href="index"><%=fiyuForumConfig.getWebName()%></a> »
<a class="nav" href="listforums">列出所有讨论区</a> » 讨论区: <a class="nav" href="listthreads?forum=<%=forumID%>">
<%=forumName%>
</a> » 附加文件</td>
</tr>
</table>
<br/>
<form action="addattachmentprocess" method="post" enctype="multipart/form-data">
<input type="hidden" name="offset" value="<%=ParamUtil.getParameter(request, "offset")%>">
<input type="hidden" name="PostID" value="<%=postBean.getPostID()%>">
<table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center">
<tr class="theader">
<td colspan="2">请选择一个文件加到这篇文章中</td>
</tr>
<tr class="trow1">
<td valign="top">文章标题</td>
<td><%=postBean.getPostTopic()%></td>
</tr>
<tr class="trow2">
<td valign="top">文章内容</td>
<td><%=MyUtil.filter(StringUtil.getShorterString(postBean.getPostBody()), false/*html*/, true/*emotion*/, false/*fiyuCode*/, false/*newLine*/, false/*URL*/)%></td>
</tr>
<tr class="trow1">
<td valign="top">请选择一个附加文件</td>
<td><input type="file" name="AttachFilename" size="50"></td>
</tr>
<tr class="trow2">
<td valign="top">附加文件描述</td>
<td><textarea cols="60" rows="10" name="AttachDesc" onkeyup="initTyper(this);"></textarea></td>
</tr>
<tr class="trow1">
<td valign="top">添加附件选择</td>
<td><input type="checkbox" name="AttachMore" value="yes" class="noborder">
我想要添加附件</td>
</tr>
<td class="trowfinal" colspan="2" align="center">
<input type="button" value="添加" onclick="disabled=true; submit();" class="mainoption">
<input type="reset" value="重设" class="liteoption">
</td>
</tr>
</table>
</form>
<br/>
<%@ include file="footer.jsp"%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -