editnewscomment.ftl

来自「anewssystem新闻发布系统集成使用了spring hibernate f」· FTL 代码 · 共 91 行

FTL
91
字号
<#assign ctx=springMacroRequestContext.getContextPath()>
<#include "/include/taglibs.ftl">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <#include "/include/meta.ftl">
    <TITLE>NewsComment</TITLE>
    <link type="text/css" href="${ctx}/css/admin.css" rel="stylesheet"/>
    <script type="text/javascript" src="${ctx}/inc/validation.jsp"></script>
    <@validator.javascript formName="newsComment" staticJavascript="false"/>
  </head>
  <body>
<div class="pageTitle">NewsComment信息</div>
<#if newsComment??>
  <@m.showError "newsComment.*"/>
</#if>
<#if (newsComment.id)?? && newsComment.id != 0>
  <#assign action="update">
<#else>
  <#assign action="insert">
</#if>
<#include "/include/messages.ftl"/>
<form name="newsComment"
    enctype="multipart/form-data"
    action="${ctx}/newscomment/${action}.htm"
    method="post" onsubmit="return validateNewsComment(this)">
  <@jodd.form beans="newsComment" scopes="request">
      <input type="hidden" name="id">
    <table class="border" width="90%" cellSpacing="0" cellPadding="2" align="center">
    <tr>
      <td class="left" width="20%"><@spring.messageText code="newsComment.news" text="news"/>:</td>
      <td class="right">
        <input type="text" name="news" id="news" size="35">
        <label class="star">*</label>
      </td>
    </tr>
    <tr>
      <td class="left" width="20%"><@spring.messageText code="newsComment.name" text="name"/>:</td>
      <td class="right">
        <input type="text" name="name" id="name" size="35">
        <label class="star">*</label>
      </td>
    </tr>
    <tr>
      <td class="left" width="20%"><@spring.messageText code="newsComment.content" text="content"/>:</td>
      <td class="right">
        <input type="text" name="content" id="content" size="35">
        <label class="star">*</label>
      </td>
    </tr>
    <tr>
      <td class="left" width="20%"><@spring.messageText code="newsComment.username" text="username"/>:</td>
      <td class="right">
        <input type="text" name="username" id="username" size="35">
        <label class="star">*</label>
      </td>
    </tr>
    <tr>
      <td class="left" width="20%"><@spring.messageText code="newsComment.updateDate" text="updateDate"/>:</td>
      <td class="right">
        <input type="text" name="updateDate" id="updateDate" size="35">
        <label class="star">*</label>
      </td>
    </tr>
    <tr>
      <td class="left" width="20%"><@spring.messageText code="newsComment.status" text="status"/>:</td>
      <td class="right">
        <input type="text" name="status" id="status" size="35">
        <label class="star">*</label>
      </td>
    </tr>
    <tr>
      <td class="left" width="20%"><@spring.messageText code="newsComment.ip" text="ip"/>:</td>
      <td class="right">
        <input type="text" name="ip" id="ip" size="35">
        <label class="star">*</label>
      </td>
    </tr>
    <tr>
      <td colspan="2" class="bottom">
        <input type="submit" class="submitButton" value="确定" style="margin-right:60px"/>
        <input type="button" class="submitButton" value="返回" onclick="history.back();"/>
      </td>
    </tr>
  </table>
</@jodd.form>
</form>

  </body>
</html>

⌨️ 快捷键说明

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