📄 updatenews.jsp
字号:
<%@ page language="java" import="java.util.*,org.news.pojo.*"
pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%@ page import="org.users.pojo.*"%>
<%
List newsTypeList = (List) application.getAttribute("newsTypeList");
%>
<html>
<head>
<title>发布信息</title>
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
color: #000000;
}
body {
background-color: #CCCCCC;
}
.STYLE3 {
color: #006600
}
.STYLE4 {
font-weight: bold;
font-size: xx-large;
color: #003300;
}
a {
font-size: 12px;
color: #880066;
}
a:link {
text-decoration: none;
color: #000000;
}
a:visited {
text-decoration: none;
color: #000000;
}
a:hover {
text-decoration: none;
color: #FF00FF;
}
a:active {
text-decoration: none;
color: #9900FF;
}
.STYLE5 {
color: #000000
}
-->
</style>
</head>
<body bgColor=#ecf1f9>
<div>
<div align="center">
</div>
<h1 align="center">
<font color="#7060cc">新闻修改</font>
</h1>
</div>
<%News newss = (News)request.getAttribute("newss"); %>
<form method="post" action="/newscontent/newsListRight.do?state=update">
<table width="600" border="0" bgcolor="#ecf1f9" align="center">
<tbody>
<tr>
<td align="right" width="15%">
新闻标题:
</td>
<td>
<input type="text" maxlength="400" name="title" size=60 value="<%=newss.getTitle() %>">
</td>
</tr>
<tr>
<td align="right" width="15%">
新闻内容:
</td>
<td>
<textarea cols="52" rows="10" name="content" size=60><%=newss.getContent() %></textarea>
</td>
</tr>
<tr>
<td align="right" width="15%">
新闻作者:
</td>
<td>
<input readonly="readonly" type="text" name="author" value="<%=((Users)session.getAttribute("Users")).getUsername() %>">
</td>
</tr>
<tr>
<td align="right" width="15%">
关键字:
</td>
<td>
<input type="text" name="keyword" value="<%=newss.getKeyword() %>">
</td>
</tr>
<tr>
<td align="right" width="15%">
新闻类别:
</td>
<td>
<select name="typeId">
<option value="">--请选择--</option>
<%
for (Iterator it = newsTypeList.iterator(); it.hasNext();) {
NewsType newsType = (NewsType)it.next();
%>
<option value="<%=newsType.getId()%>">
<%=newsType.getName()%>
</option>
<%
}
%>
</select>
</td>
</tr>
<tr>
<td align="center" colspan="2">
<input type="hidden" name="addTime" value="<%=newss.getAddTime() %>"/>
<input type="hidden" name="newsId" value="<%=newss.getId() %>"/>
<input type="submit" name="submit" value="修改">
<input type="reset" name="reset" value="重添">
<html:link action="/newsManager?jspId=2"><font size="5">返回</font></html:link>
</td>
</tr>
</tbody>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -