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

📄 editattachments.jsp

📁 jive3.1.4破解版(非源码)
💻 JSP
字号:
<%--  - $RCSfile: editattachments.jsp,v $  - $Revision: 1.13.2.1 $  - $Date: 2003/10/03 22:11:34 $  -  - Copyright (C) 1999-2003 Jive Software. All rights reserved.  -  - This software is the proprietary information of Jive Software.  Use is subject to license terms.--%><%@ page import="com.jivesoftware.util.ByteFormat,                 com.jivesoftware.forum.*"%><%@ include file="global.jsp" %><%@ taglib uri="webwork" prefix="ww" %><%@ taglib uri="jivetags" prefix="jive" %><%  // Get the action associated with this view:    EditAttachAction action = (EditAttachAction)getAction(request);    // Get the attachment manager    AttachmentManager attachManager = action.getAttachmentManager();    // Get the message being edited:    ForumMessage message = action.getMessage();    ForumThread thread = message.getForumThread();    Forum forum = thread.getForum();    ByteFormat byteFormatter = new ByteFormat();%><jsp:include page="header.jsp" flush="true" /><script language="JavaScript" type="text/javascript" src="utils.js"></script><table cellpadding="0" cellspacing="0" border="0" width="100%"><tr valign="top">    <td width="98%">        <%-- Breadcrumbs (customizable via the admin tool) --%>        <jsp:include page="breadcrumbs.jsp" flush="true" />        <%-- Edit Attachments --%>        <p class="jive-page-title">        <jive:i18n key="editattach.edit_attachments" />        </p>    </td>    <td width="1%"><img src="images/blank.gif" width="10" height="1" border="0"></td>    <td width="1%">        <%@ include file="accountbox.jsp" %>    </td></tr></table><ww:if test="hasErrorMessages == true">    <span class="jive-error-text">    <ww:iterator value="errorMessages">        <ww:property />    </ww:iterator>    </span>    <br><br></ww:if><%  int count = 0;    if (message.getAttachmentCount() == 0) {%>    <%-- There are no files attached to this message. --%>    <jive:i18n key="editattach.no_files_attached_to_message" />    <form action="thread.jspa">    <%  if (action.getThreadID() != -1L) { %>        <input type="hidden" name="threadID" value="<%= action.getThreadID() %>">    <%  } %>    <%  if (action.getMessageID() != -1L) { %>        <input type="hidden" name="messageID" value="<%= action.getMessageID() %>">    <%  } %>    <input type="submit" name="" value="<jive:i18n key="attach.go_back_to_message" />">    </form><%  } else { %>    <p>    <%--        Below is a list of files attached to this message. To remove a file, click the delete        icon next to the filename.    --%>    <jive:i18n key="editattach.description" />    </p>    <div class="jive-edit-attach-list">    <table class="jive-box" cellpadding="3" cellspacing="0" border="0">    <tr>        <th colspan="3">            <%-- Filename --%>            <jive:i18n key="global.filename" />        </th>        <th>            <%-- Size --%>            <jive:i18n key="global.size" />        </th>        <th>            <%-- Delete --%>            <jive:i18n key="global.delete" />        </th>    </tr>    <%  for (Iterator attachments=message.getAttachments(); attachments.hasNext(); ) {            Attachment attachment = (Attachment)attachments.next();            count++;    %>        <tr class="<%= ((count%2)==0 ? "jive-even" : "jive-odd") %>">            <td>                <%= count %>            </td>            <td>                <img src="servlet/JiveServlet?attachImage=true&contentType=<%= attachment.getContentType() %>&attachment=<%= attachment.getID() %>" border="0">            </td>            <td>                <a href="servlet/JiveServlet/download/<%= forum.getID() %>-<%= thread.getID() %>-<%= message.getID() %>-<%= attachment.getID() %>/<%= attachment.getName() %>"                ><%= attachment.getName() %></a>            </td>            <td>                <%= byteFormatter.format(attachment.getSize()) %>            </td>            <td align="center">                <a href="editattach!delete.jspa?forumID=<%= forum.getID() %><%= ((action.getThreadID() != -1L) ? "&threadID="+action.getThreadID() : "") %><%= ((action.getMessageID() != -1L) ? "&messageID="+action.getMessageID() : "") %>&attachID=<%= attachment.getID() %>"                 ><img src="images/delete-16x16.gif" width="16" height="16" border="0"></a>            </td>        </tr>    <%  } %>    </table>    </div><%  } %><%  if (count < attachManager.getMaxAttachmentsPerMessage()) { %>    <br><br>    <%-- Attach more files using the form below. --%>    <jive:i18n key="editattach.attach_more" />    <%-- The maximum size per upload file is: XXX --%>    <jive:i18n key="editattach.max_size_is">        <jive:arg>        <%= byteFormatter.formatKB(attachManager.getMaxAttachmentSize()) %>        </jive:arg>    </jive:i18n>    <form action="editattach!execute.jspa?forumID=<%= forum.getID() %><%= ((action.getThreadID() != -1L) ? "&threadID="+action.getThreadID() : "") %><%= ((action.getMessageID() != -1L) ? "&messageID="+action.getMessageID() : "") %>"         method="post" enctype="multipart/form-data" onsubmit="return isClicked();">    <br>    <table cellpadding="3" cellspacing="0" border="0">    <%  long current = count;        int max = attachManager.getMaxAttachmentsPerMessage();    %>    <%  while (current++ < max) { %>        <tr>            <td><jive:i18n key="attach.file_in_sequence">                    <jive:arg><%= current %></jive:arg>                </jive:i18n></td>            <td>                <input type="file" name="attachFile<%= current %>" size="40">            </td>        </tr>    <%  } %>    </table>    <br>    <%-- Go Back to Message --%>    <input type="submit" name="doCancel" value="<jive:i18n key="attach.go_back_to_message" />">    <%-- Attach Files --%>    <input type="submit" name="doAttach" value="<jive:i18n key="post.attach_files" />">    </form><%  } else { %>    <br>    <form action="thread.jspa">    <%  if (action.getThreadID() != -1L) { %>        <input type="hidden" name="threadID" value="<%= action.getThreadID() %>">    <%  } %>    <%  if (action.getMessageID() != -1L) { %>        <input type="hidden" name="messageID" value="<%= action.getMessageID() %>">    <%  } %>    <%-- Go Back to Message --%>    <input type="submit" name="doCancel" value="<jive:i18n key="attach.go_back_to_message" />">    </form><%  } %><jsp:include page="footer.jsp" flush="true" />

⌨️ 快捷键说明

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