📄 newsform.ftl
字号:
<#global html=JspTaglibs["/WEB-INF/tags/struts-html.tld"]>
<#global bean=JspTaglibs["/WEB-INF/tags/struts-bean.tld"]>
<html>
<head>
<title>新闻发布</title>
<link href="style/style.css" rel="stylesheet" type="text/css">
<@bean.page id="request" property="request"/>
<#assign contextPath = request.contextPath/>
</head>
<body>
<table width="780" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="30" align="center">
<img src="images/title.gif">
</td>
</tr>
</table>
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0" style="border:1 solid #CCCCCC;background-color:#F4F4F4 ">
<@html.form method="post" action="/saveNews.do" focus="vo.newsTitle">
<input type="hidden" name="action" value="insertNews">
<tr>
<td colspan="2" style="padding:5px;"><@html.errors/></td>
</tr>
<tr>
<td width="113" height="25" align="right">新闻标题:</td>
<td width="665" height="25"><@html.text property="vo.newsTitle" styleClass="input1"/></td>
</tr>
<tr>
<td height="25" align="right">新闻来源:</td>
<td height="25"><@html.text property="vo.newsFrom" styleClass="input1"/></td>
</tr>
<tr>
<td height="25" align="right">发布人:</td>
<td height="25"><@html.text property="vo.newsAuthor" styleClass="input1"/></td>
</tr>
<tr>
<td height="25" align="right">新闻内容:</td>
<td height="25">
<@html.textarea property="vo.newsContent" cols="80" rows="10"/>
</td>
</tr>
<tr>
<td height="25" align="right">发布日期:</td>
<td height="25"><@html.text property="vo.newsDate" styleClass="input1"/></td>
</tr>
<tr>
<td height="25" align="right"> </td>
<td height="30"><@html.submit value="确 定" styleClass="button1"/> <@html.button value="新闻管理" styleClass="button1" onclick="javascript:location.href='${contextPath}/newsList.do'"/></td>
</tr>
</@html.form>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -