📄 newedit.jsp
字号:
<%@ page contentType="text/html; charset=gb2312"%>
<%@ page import="java.sql.* "%>
<jsp:useBean id="newBean" class="MyFly.Bean.newBean" scope="request"/>
<%!
String Zhuan(String str)
{
str=str.replaceAll("&", "&");
str=str.replaceAll("\"", """);
str=str.replaceAll("<", "<");
str=str.replaceAll(">", ">");
return str;
}
%>
<STYLE type=text/css>
BODY {
BACKGROUND: #799ae1; FONT: 9pt 宋体; MARGIN: 0px
}
TABLE {
}
TD {
FONT: 12px 宋体;
border-bottom-color: #CCFFFF;
border-left-style: none;
}
IMG {
BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-RIGHT: 0px; BORDER-TOP: 0px; VERTICAL-ALIGN: bottom
}
A {
COLOR: #000000; FONT: 12px 宋体; TEXT-DECORATION: none
}
A:hover {
COLOR: #428eff; TEXT-DECORATION: underline
}
.sec_menu {
BACKGROUND: #d6dff7; BORDER-BOTTOM: white 1px solid; BORDER-LEFT: white 1px solid; BORDER-RIGHT: white 1px solid; OVERFLOW: hidden
}
.menu_title {
}
.menu_title SPAN {
COLOR: #215dc6; FONT-WEIGHT: bold; LEFT: 8px; POSITION: relative; TOP: 2px
}
.menu_title2 {
}
.menu_title2 SPAN {
COLOR: #428eff; FONT-WEIGHT: bold; LEFT: 8px; POSITION: relative; TOP: 2px
}
.style2 {color: #FF0000}
</STYLE>
<%
String index=request.getParameter("index");
if(newBean.getNew(Integer.parseInt(index)) == false)
{
out.println("<Script language=JavaScript>alert('编辑出错');javascript:history.back();</Script>");
}
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>添加文章</title>
</head>
<body>
<table width="800" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
<form action="newUpdate.jsp?index=<%=newBean.getNewID()%>" method="post" name="addarticle" onSubmit = "">
<tr align="center">
<td height="23" colspan="2">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="79%" height="33" align="center" class="style2">新闻修改</td>
</tr>
</table>
</td>
</tr>
<tr align="center">
<td width="16%" height="32">新闻标题</td>
<td width="84%" align="left"> <input type="text" size="70" name="topic" value=<%=newBean.getTopic()%>></td>
</tr>
<tr align="center">
<td height="195">文章内容</td>
<td align="left">
<input type="hidden" name="content" value="<%=Zhuan(newBean.getContent())%>">
<iframe ID="eWebEditor1" src="../../../eWebEditor.jsp?id=content&style=standard" frameborder="0" scrolling="no" width="650" HEIGHT="350"></iframe>
</tr>
<tr align="center">
<td height="28">出处<br></td>
<td align="left"> <input type="text" size="35" name="origin" value=<%=newBean.getOrigin()%>> </td>
</tr>
<tr align="center">
<td height="28"><br></td>
<td align="left">
<input type="reset" name="Submit" value="重置">
<input type="submit" name="Submit" value="提交">
</td>
</tr>
</form>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -