attachfiles.jsp

来自「一个jsp写的bbs」· JSP 代码 · 共 29 行

JSP
29
字号
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<bean:define id="pid" name="postForm" property="id"></bean:define>
<bean:define id="bid" name="postForm" property="bid"></bean:define>
<form id="attachForm<%=pid%>" name="attachForm<%=pid%>" method="post" action="">
  <input name="id" type="hidden" value="<%=pid%>" />
  <input name="bid" type="hidden" value="<%=bid%>" />
  <table width="100%" border="0" cellpadding="3" cellspacing="0">
    <logic:iterate id="af" name="attachFiles" scope="request" type="java.lang.String" indexId="i">
    <tr>
      <td width="5%">
        <div align="center">
          <input type="checkbox" name="attachFileName<%=pid%>" value="<%=af%>" />
        </div>
      </td>
      <td width="95%">附件[<%=(i.intValue()+1)%>]:<%=af%></td>
    </tr>
    </logic:iterate>
    <tr>
      <td colspan="2">
        <input type="button" name="Submit" value="删除" onclick="delAttachFile('<%=bid%>','<%=pid%>');" class="button1" />
        <input type="button" name="CloseAttchFile" value="关闭" onclick="closeShowUpfilePage('<%=pid%>');" class="button1" />
      </td>
    </tr>
  </table>
</form>

⌨️ 快捷键说明

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