?? updatenews.jsp
字號:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="java.util.List"%>
<%@ page import="com.actionForm.NewsForm"%><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<jsp:useBean id="chinese" scope="request" class="com.tool.Chinese"/>
<jsp:useBean id="sortDao" scope="request" class="com.dao.SortDao"/>
<%@ page import="com.actionForm.SortForm"%>
<jsp:useBean id="time" scope="request" class="com.tool.TimeShow"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>宇晨網(wǎng)絡(luò)新聞中心后臺</title>
</head>
<%
String bigSort=chinese.toChinese(request.getParameter("bigSort"));
NewsForm form=(NewsForm)request.getAttribute("form");
%>
<body><div align="center">
<jsp:include page="../bTop.jsp"/>
<table width="800" height="465" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="196" rowspan="2" valign="top"><jsp:include page="../bleft.jsp"/></td>
<td width="604" height="57" background="bImage/place.jpg" >
<table width="600" height="56" cellpadding="0" cellspacing="0">
<tr>
<td> 當(dāng)前位置提示 >> <%=bigSort%> >> 修改新聞</td>
</tr>
<tr>
<td> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="400" align="center" valign="top" background="bImage/big.jpg"><table width="601" border="0" cellpadding="0" cellspacing="0" background="bImage/placeNext.jpg">
<tr>
<td height="21" > </td>
<td>修改新聞信息</td>
</tr>
</table> <br> <html:form action="newsAction.do?method=updateNewsAction" onsubmit="return checkEmpty(newsForm)">
<table width="415" border="1" cellpadding="0" cellspacing="0">
<tr>
<td width="75" height="30" align="center">新聞標(biāo)題</td>
<td width="334">
<input name="title" value="<%=form.getTitle()%>" size="50"/></td>
</tr>
<tr>
<td height="30" align="center">詳細(xì)類別</td>
<td>
<select name="sortId">
<%
List list=sortDao.selectSort(bigSort);
for(int i=0;i<list.size();i++){
SortForm sortForm=(SortForm)list.get(i);
%>
<option value="<%=String.valueOf(sortForm.getId())%>" <%if(sortForm.getId()==form.getSortId()){%> selected<%}%> style="background:#00FFFF"><%=sortForm.getSmallSort()%></option>
<%}%>
</select>
</td>
</tr>
<tr>
<td height="252" align="center" valign="top"><br>
新聞內(nèi)容</td>
<td>
<textarea cols="42" rows="14" name="content" ><%=form.getContent()%></textarea></td>
</tr>
<tr>
<td height="30" align="center">修改時間</td>
<td> <%=time.cuttentMonthDate()%><html:hidden property="createTime" value="<%=time.cuttentMonthDate()%>"/> <html:hidden property="bigSort" value="<%=form.getBigSort()%>"/><html:hidden property="id" value="<%=String.valueOf(form.getId())%>"/> </td>
</tr>
</table>
<br>
<html:submit>修改</html:submit> <html:reset>清除 </html:reset> <html:button property="back" onclick="javascript:history.go(-1);">返回</html:button>
</html:form></td>
</tr>
</table>
</div>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -