📄 modifyhelp.jsp
字号:
<%@ page language="java" contentType="text/html; charset=gb2312"
pageEncoding="GB2312"%>
<%@page import="java.sql.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<jsp:useBean id="help" scope="page" class="edu.HelpBean" />
<title>修改帮助</title>
<style type="text/css">
<!--
.STYLE1 {
font-size: 12px;
font-weight: bold;
}
-->
</style>
</head>
<script language="javascript">
<!--
function usercheck(){
var title,content;
title=document.form1.title.value;
content=document.form1.content.value;
if(title==""){
alert("标题不能为空!");
return false;}
if(content==""){
alert("内容不能为空!");
return false;}
}
//-->
</script>
<body>
<%
int id=0;
String title="",content="";
String sort="";
try{
sort=session.getAttribute("sort").toString();
}catch(NullPointerException e){}
if(!sort.equals("admin"))
response.sendRedirect("error_ad.jsp");
try{
id =Integer.valueOf(request.getParameter("id")).intValue();
}catch(NumberFormatException e){}
ResultSet rs=help.getHelp(id);
if(rs.next()){
title=rs.getString("title");
content=rs.getString("content");
}
%>
<form name="form1" method="post" action="Servlethelp"><input
name="action" type="hidden" id="action" value="update"> <input
name="id" type="hidden" id="id" value="<%=id %>">
<table width="750" border="0" align="center">
<tr>
<td>
<div align="right" class="STYLE1">标题:</div>
</td>
<td><label> <input name="title" type="text" id="title"
size="60" maxlength="60" value="<%=title %>"> </label></td>
</tr>
<tr>
<td>
<div align="right" class="STYLE1">内容:</div>
</td>
<td width="650" height="350"><input type="hidden" name="content"
value='<%=content%>' /> <iframe id="eWebEditor1"
src="editor/eWebEditor.jsp?id=content&style=standard"
frameborder="0" scrolling="no" width="650" height="350"> </iframe></td>
</tr>
<tr>
<td> </td>
<td><label> <input type="submit" name="Submit"
onClick="return usercheck()" value="提交"> <input type="reset"
name="Submit2" value="重置"> </label></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -