📄 edit.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@ include file="conn.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>编辑</title>
<style type="text/css">
<!--
@import url("style.css");
-->
</style>
</head>
<%
/*
巧悟留言板1.0版(JSP)
程序设计:Jorwoo
QQ:513768
E-Mail:jorwoo@eyou.com
网站:http://jorwoo.yeah.net
*/
if(session.getAttribute("adminname")==null)
{response.sendRedirect("sorry.jsp");}
%>
<%
String idz = new String(request.getParameter("id").getBytes("iso-8859-1"));
int id = Integer.parseInt(idz);
String condition="select * from message where id="+id;
rs=stmt.executeQuery(condition);
rs.next();
%>
<body background="img/beijing.gif">
<br>
<table width="650" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td>
<form name="form1" method="POST" action="operate_e.jsp?id=<%=rs.getInt("id")%>">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tittle3">
<tr>
<td width="12%"><img src="img/top1.gif" width="81" height="22"></td>
<td width="86%" background="img/top2.gif"> </td>
<td width="2%"><img src="img/top3.gif" width="47" height="22"></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tittle0">
<tr bgcolor="#FFFFFF">
<td width="117" height="30" align="center" bgcolor="#F5F5F5" class="font0">姓名:</td>
<td width="531" align="center" bgcolor="#F5F5F5">
<input name="name" type="text" value="<%=rs.getString("name")%>" size="70" style="border:1px double rgb(187,185,185);font:9pt">
</td>
</tr>
<tr bgcolor="#F5F5F5">
<td width="117" height="80" align="center" bgcolor="#FFFFFF" class="font0">留言:</td>
<td width="531" align="center" bgcolor="#FFFFFF">
<textarea name="content" cols="70" rows="5" style="border:1px double rgb(187,185,185);font:9pt"><%=rs.getString("content")%></textarea>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="117" height="80" align="center" bgcolor="#F5F5F5" class="font0">回复:</td>
<td width="531" align="center" bgcolor="#F5F5F5">
<textarea name="recontent" cols="70" rows="5" style="border:1px double rgb(187,185,185);font:9pt"><%=rs.getString("recontent")%></textarea>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="40" colspan="2" align="center">
<input type="submit" name="Submit" value="提交" style="border:1 solid #BBB9B9;background:#ffffff" class="button">
<input type="reset" name="Submit2" value="取消" style="border:1 solid #BBB9B9;background:#ffffff" class="button">
</td>
</tr>
<tr valign="top">
</tr>
</table>
<table border="0" width="650" cellspacing="0" cellpadding="0" height="7" align="center">
<tr>
<td width="2%" align="center"><img src="img/end1.gif" width="12" height="14"></td>
<td width="89%" align="center" background="img/end2.gif"></td>
<td width="9%" align="center"><img src="img/end3.gif" width="65" height="14"></td>
</tr>
</table>
</form></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -