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

📄 attachset.jsp

📁 java论坛
💻 JSP
字号:
<%@ 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" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html:html xhtml="true">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>附件选项</title>
<link href="css/admin.css" rel="stylesheet" type="text/css"/>
</head>

<body>
<p>&nbsp;</p>
<html:form action="/adminAttachSet">
<html:hidden property="action"/>
  <table width="90%"  border="0" align="center" cellpadding="10" cellspacing="0" class="table1">
    <tr>
      <td><table width="100%"  border="0" cellpadding="5" cellspacing="0">
          <tr>
            <td colspan="2"><strong>附件选项</strong></td>
          </tr>
          <tr>
          <td colspan="2">
            <div id="errors"><html:errors/></div>
          </td>
        </tr>
        <tr>
          <td colspan="2">
            <div id="msgs" class="msg3">
              <html:messages id="msg" message="true" property="resultMsg">
              <bean:write name="msg"/>
              </html:messages>
            </div>
          </td>
        </tr>
          <tr>
            <td colspan="2" class="td1"><strong>每帖附件数</strong></td>
          </tr>
          <tr>
            <td width="60%">单个帖子可以包含的附件文件数目。设置为 0 不作限制。</td>
            <td width="40%">
              <html:text property="attachmentNum" styleId="attachmentNum" styleClass="input2" size="40"/>
            </td>
          </tr>
          <tr>
            <td colspan="2" class="td1"><strong>允许删除超过编辑时间的附件</strong></td>
          </tr>
          <tr>
            <td>即使帖子的编辑时间超过了,仍然允许用户删除附件?</td>
            <td>
              <html:radio property="canDelAttachmentOverTime" value="0"/>
              <html:radio property="canDelAttachmentOverTime" value="1"/>
              是</td>
          </tr>
          <tr>
            <td colspan="2" class="td1"><strong>允许用户删除关闭主题中的附件</strong></td>
          </tr>
          <tr>
            <td>允许用户从关闭的主题中删除附件?只有用户拥有编辑帖子的权限时此选项才有效。如果上面的选项设置为“否”那么此选项只在帖子编辑限时到达之前有效。</td>
            <td valign="top">
              <html:radio property="canDelAttachmentClosedPost" value="0"/>
              <html:radio property="canDelAttachmentClosedPost" value="1"/>
              是</td>
          </tr>
          <tr>
            <td colspan="2" class="td1"><strong>允许用户上传得文件类型</strong></td>
          </tr>
          <tr>
            <td valign="top">输入允许用户上传的文件类型的文件后缀,以逗号分开。</td>
            <td valign="top">
              <html:textarea property="attachFileType" cols="40" rows="5" styleClass="textarea1">
              </html:textarea>
            </td>
          </tr>
          <tr>
            <td colspan="2" class="td1"><strong>允许用户上传得文件大小</strong></td>
          </tr>
          <tr>
            <td valign="top">允许用户上传的文件大小,以K为单位。</td>
            <td valign="top">
              <html:text property="attachFileSize" styleId="attachFileSize" styleClass="input2" size="40">
              </html:text>
            </td>
          </tr>
          <tr>
            <td colspan="2" class="td1"><strong>生成图像缩略图</strong></td>
          </tr>
          <tr>
            <td>对用户上传的图片进行缩略,注意在Linux下运行时需要在启动参数中加入:<SPAN class=bt>Djava.awt.headless=true</SPAN></td>
            <td valign="top">
              <html:radio property="reduceAttachImg" value="0"/>
              <html:radio property="reduceAttachImg" value="1"/>
              是</td>
          </tr>
          <tr>
            <td colspan="2" class="td1"><strong>附件图片查看</strong></td>
          </tr>
          <tr>
            <td>如果不允许缩略图生成,此设置不产生效果;如果允许缩略图生成,选择“否”的话,图片附件只显示为图片链接的文字,不显示图片;如果选择“是”,则依次显示所有附件图片。</td>
            <td valign="top">
              <html:radio property="viewAttachImg" value="0"/>
              <html:radio property="viewAttachImg" value="1"/>
            </td>
          </tr>
          <tr>
            <td colspan="2" class="td1"><strong>图像缩略图尺寸</strong></td>
          </tr>
          <tr>
            <td>缩略图最大宽和高。图片将以长边为此数值缩放。</td>
            <td>
              <html:text property="reduceAttachImgSize" styleId="reduceAttachImgSize" styleClass="input2" size="40"/>
            </td>
          </tr>
          <tr>
            <td colspan="2" class="td1"><strong>每行缩略图个数</strong></td>
          </tr>
          <tr>
            <td>帖子里面每行显示缩略图个数。不要超过您设置的每帖最大附件数。</td>
            <td>
              <html:text property="attachImgRow" styleId="attachImgRow" styleClass="input2" size="40"/>
            </td>
          </tr>
          <tr>
            <td colspan="2" class="td1"><strong>生成图像缩略图的图片类型</strong></td>
          </tr>
          <tr>
            <td><p>输入需要进行缩略的图片类型的文件后缀,以逗号分开,注意有些图片类型可能不支持。</p>
            </td>
            <td valign="top">
              <html:text property="attachImgType" styleId="attachImgType" styleClass="input2" size="40"/>
            </td>
          </tr>
          <tr>
            <td colspan="2"><div align="center">
              <html:submit styleClass="button2">保存</html:submit>
            </div></td>
          </tr>
      </table></td>
    </tr>
  </table>
</html:form>
<p>&nbsp;</p>
</body>
</html:html>

⌨️ 快捷键说明

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