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

📄 admindatetimeformatset.jsp

📁 一个jsp写的bbs
💻 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" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<!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" />
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/comm.js"></script>
<script type="text/javascript" src="js/jsMsg.jsp"></script>
<script language="JavaScript" type="text/javascript">
<!--

function adminDateTimeFormatSetAction() {
  changeStyle("resultMegs","msg2");
  $('resultMegs').innerHTML = adminDataSubmit;
  var url = getActionMappingURL("/adminDateTimeFormatSet");
  var pars = "action=save&dateShowType="+$('dateShowType').value+"&defaultTimeZone="+encodeURIComponent($('defaultTimeZone').value)
  +"&timeFormat="+encodeURIComponent($('timeFormat').value)+"&forumDateTimeFormat="+encodeURIComponent($('forumDateTimeFormat').value)
  +"&postDateTimeFormat="+encodeURIComponent($('postDateTimeFormat').value)+"&otherDateTimeFormat="+encodeURIComponent($('otherDateTimeFormat').value)
  +"&regDateTimeFormat="+encodeURIComponent($('regDateTimeFormat').value)+"&birthDateTimeFormat="+encodeURIComponent($('birthDateTimeFormat').value);
  //var oBBSXml = new BBSXml();
  //oBBSXml.PostUrlXml(url, data, showResult);
  var myAjax = new Ajax.Request(url, {method: 'post', parameters: pars, onComplete: showResult});
}

function showResult(res) {
  resXML = res.responseXML;
  var codeid = getResponseXMLMsgsCodeid(resXML);
  if (codeid == "0") {
    changeStyle("resultMegs","msg3");
  }
  else {
    changeStyle("resultMegs","errormsg");
  }
  $('resultMegs').innerHTML = getResponseXMLMsgsMessage(resXML);
}
//-->
</script>
</head>

<body>
<p>&nbsp;</p>
<html:form action="/adminDateTimeFormatSet">
<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="resultMegs"></div>
        </td>
      </tr>
      </table>
      <div id="info">
      <table width="100%"  border="0" cellpadding="5" cellspacing="0">

      <tr>
        <td colspan="2" class="td1"><strong>日期显示选项</strong></td>
      </tr>
      <tr>
        <td width="60%">此选项控制整个论坛的日期显示<br>
          “标准”选项使用下面定义的日期时间格式。<br>
          “昨天/今天”选项将会把昨天和今天的日期显示为“昨天”或“今天”。</td>
        <td width="40%" valign="top">
          <html:select property="dateShowType" styleId="dateShowType" styleClass="select1">
            <html:options collection="dateShowTypeValues" property="value" labelProperty="label"/>
          </html:select>
        </td>
      </tr>
      <tr>
        <td colspan="2" class="td1"><strong>默认时区设置</strong></td>
      </tr>
      <tr>
        <td>游客和新用户的默认时区时间显示。</td>
        <td>
          <html:select property="defaultTimeZone" styleId="defaultTimeZone" styleClass="select1">
            <html:options collection="timeZoneValues" property="value" labelProperty="label"/>
          </html:select>
        </td>
      </tr>
      <tr>
        <td colspan="2" class="td1"><strong>时间格式</strong></td>
      </tr>
      <tr>
        <td>在选择非标准日期选项情况下的时间格式</td>
        <td>
          <html:text property="timeFormat" styleClass="input2" styleId="timeFormat" size="40"></html:text>
        </td>
      </tr>
      <tr>
        <td colspan="2" class="td1"><strong>帖子列表中日期时间格式</strong></td>
      </tr>
      <tr>
        <td>标准情况下帖子列表中显示的日期时间格式。</td>
        <td>
          <html:text property="forumDateTimeFormat" styleId="forumDateTimeFormat" styleClass="input2" size="40"></html:text>
        </td>
      </tr>
      <tr>
        <td colspan="2" class="td1"><strong>帖子内容日期时间格式</strong></td>
      </tr>
      <tr>
        <td>显示帖子正文中的日期时间格式。</td>
        <td>
          <html:text property="postDateTimeFormat" styleId="postDateTimeFormat" styleClass="input2" size="40">
          </html:text>
        </td>
      </tr>
      <tr>
        <td colspan="2" class="td1"><strong>其余日期时间格式</strong></td>
      </tr>
      <tr>
        <td>在其余地方显示日期时间的格式。</td>
        <td>
          <html:text property="otherDateTimeFormat" styleId="otherDateTimeFormat" styleClass="input2" size="40">
          </html:text>
        </td>
      </tr>
      <tr>
        <td colspan="2" class="td1"><strong>注册日期格式</strong></td>
      </tr>
      <tr>
        <td>在用户帖子中显示。主题左边,用户名下面,显示用户注册的时间格式。</td>
        <td>
          <html:text property="regDateTimeFormat" styleId="regDateTimeFormat" styleClass="input2" size="40">
          </html:text>
        </td>
      </tr>
      <tr>
        <td colspan="2" class="td1"><strong>出生日期的格式</strong></td>
      </tr>
      <tr>
        <td>在个人资料里面指定年份的出生日期显示格式。</td>
        <td>
          <html:text property="birthDateTimeFormat" styleId="birthDateTimeFormat" styleClass="input2" size="40">
          </html:text>
        </td>
      </tr>
      <tr>
        <td colspan="2">
          <div align="center">
            <html:button property="Submit" onclick="adminDateTimeFormatSetAction();" styleClass="button2">保存</html:button>
          </div>
        </td>
      </tr>
    </table>
    </div>
   </td>
  </tr>
</table>
</html:form>
<p>&nbsp;</p>
</body>
</html:html>

⌨️ 快捷键说明

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