news_edit.jsp
资源名称:zyp.rar [点击查看]
上传用户:zdly666
上传日期:2022-08-09
资源大小:6511k
文件大小:4k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
JavaScript
- <%@ 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>
- <%
- if(session.getAttribute("adminname")==null)
- {response.sendRedirect("sorry.jsp");}
- %>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <title>编辑</title>
- <style type="text/css">
- <!--
- @import url("style.css");
- -->
- </style>
- </head>
- <%
- if(session.getAttribute("adminname")==null)
- {response.sendRedirect("sorry.jsp");}
- %>
- <%
- String MessageID=new String(request.getParameter("id").getBytes("ISO-8859-1"));
- String condition="select * from art where art_id='"+MessageID+"'";
- rs=stmt.executeQuery(condition);
- rs.first();
- %>
- <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="news_edit_operate.jsp?id=<%=MessageID%>">
- <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="author" type="text" value="<%=rs.getString("author")%>" size="70" style="border:1px double rgb(187,185,185);font:9pt">
- </td>
- </tr>
- <tr bgcolor="#F5F5F5">
- <td width="117" height="34" align="center" bgcolor="#FFFFFF" class="font0">标题:</td>
- <td width="531" align="center" bgcolor="#FFFFFF">
- <input name="art_headline" size="70" value="<%=rs.getString("art_headline")%>" style="border:1px double rgb(187,185,185);font:9pt"></input>
- </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="art_content" cols="70" rows="5" style="border:1px double rgb(187,185,185);font:9pt"><%=rs.getString("art_content")%></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>