📄 bginforupdatafor.jsp
字号:
<%@ page language="java" import="com.model.entity.NewsInfo"
pageEncoding="UTF-8"%>
<%
NewsInfo newsInfo = (NewsInfo) request.getAttribute("queryNews");
%>
<%
if (session.getAttribute("userInfo") == null) {
response.sendRedirect(request.getContextPath() + "/login.jsp");
}
%>
<html>
<head>
<style type="text/css">
td img {display: block;}body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-image: url(jsp/images/bei.gif);
}
.bai25 {
font-family: "宋体";
font-size: 12px;
line-height: 25px;
font-weight: bold;
color: #FFFFFF;
}
</style>
<!--Fireworks 8 Dreamweaver 8 target. Created Wed Sep 05 13:51:49 GMT+0800 2007-->
<link href="<%=request.getContextPath()%>/jsp/css/css.css"
rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
a:link {
color: #666666;
text-decoration: none;
}
a:visited {
color: #666699;
text-decoration: none;
}
a:hover {
color: #003399;
text-decoration: none;
}
a:active {
color: #FF0000;
text-decoration: none;
}
-->
</style>
<script language="javascript">
function init(){
eWebEditor1.setHTML('<%=(newsInfo.getContent()==null)?"没有内容":newsInfo.getContent().getSubString(1,(int)newsInfo.getContent().length())%>');
}
function subchk() {
if(document.all("title").value==""){
alert("标题不能为空!");
document.all("title").focus();
return;
}
document.aa.content.value = eWebEditor1.getHTML();
document.aa.submit();
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body onload="init();">
<table width="500 border="0" align="center" cellpadding="0" cellspacing="0" >
<tr>
<jsp:include flush="true" page="../include/backTop.jsp" />
</tr>
<tr>
<td height="1000" colspan="2" align="center" valign="top" bgcolor="#FFFFFF">
<table height="500" width="780" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<form name="aa" action="<%=request.getContextPath() %>/inforup.do?newsId=<%=newsInfo.getNewsId() %>" method="post">
<input type="hidden" name="newsId"value="<%=newsInfo.getNewsId()%>" />
<input type="hidden" name="content"value="" />
<tr>
<td>
<tr>
<td height="26" align="right" valign="center" class="css"><div align="right">浏览者:</div></td>
<td colspan="3" valign="center" class="css" align="left"><p>
<select name="newrole" style='width: 160'>
<%
if ("0".equals(newsInfo.getNewsRole())) {
%>
<option value="0" selected="selected">
所有用户
</option>
<%
}else{
%>
<option value="0" >
所有用户
</option>
<%
}
%>
<%
if ("1".equals(newsInfo.getNewsRole())) {
%>
<option value="1" selected="selected">
中心城市
</option>
<%
}else{
%>
<option value="1" >
中心城市
</option>
<%
}
%>
<%
if ("7".equals(newsInfo.getNewsRole())) {
%>
<option value="7" selected="selected">
省(区、市)用户
</option>
<%
}else{
%>
<option value="7" >
省(区、市)用户
</option>
<%
}
%>
</select>
</p></td>
</tr>
<tr>
<td height="26" align="right" valign="center" class="css"><div align="right">标题:</div></td>
<td colspan="3" valign="center" class="css"><div align="left">
<input name="title" type="text" id="title"value="<%=newsInfo.getTitle()%>" />
</div></td>
</tr>
<tr>
<td align="right" valign="top" class="css"><div align="right">内容:</div></td>
<td colspan="3" valign="top" class="css" align="left">
<INPUT type="hidden" name="content1" value="">
<IFRAME ID="eWebEditor1" src="<%=request.getContextPath() %>/eWebEditor.jsp?id=content1&style=standard" frameborder="0" scrolling="no" width="650" height="350"></IFRAME>
</td>
</tr>
<tr align="middle">
<td height="30" colspan="4" class="css"><input name="button" type="button" class="unnamed5" onClick="javascript:history.go(-1)" value=" 返 回 " />
<input class="unnamed5" type="button" value=" 上 传 " name="Submit" onClick="subchk();"/>
</td>
</tr>
</form>
<tr>
<jsp:include flush="true" page="../include/foot.jsp" />
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -