⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 manage_editzhinews.asp

📁 关于网络渗透技术的详细讲解
💻 ASP
字号:
<!--#include file="admin.asp"-->
<!--#include file="conn.asp"-->
<%if Request.QueryString("no")="eshop" then

id=request("id")
title=request("title")
content=server.htmlencode(Trim(Request("content")))



If title="" Then
response.write "SORRY <br>"
response.write "请输入更新内容的标题"
response.end
end if
If content="" Then
response.write "SORRY <br>"
response.write "内容不能为空"
response.end
end if


Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from zhinews where id="&id
rs.open sql,conn,1,3

rs("title")=title
rs("content")=content
rs.update
rs.close
response.redirect "Manage_zhiNews.asp"
end if
%>
<%
id=request.querystring("id")
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open "Select * From zhinews where id="&id, conn,3,3
%>
<!-- #include file="Inc/Head.asp" -->
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"> 
<tr> <td width="150" align="center" valign="top"> <table width="150" height="100%" border="0" cellpadding="0" cellspacing="0" class="HeaderTdStyle"> 
<tr> <td align="center" valign="top"><table width="100%" height="24" border="0" cellpadding="0" cellspacing="0"> 
<tr> <td align="center">功能菜单</td></tr> </table><TABLE WIDTH="100%" HEIGHT="90%" BORDER="0" CELLPADDING="0" CELLSPACING="0" CLASS="MenuBg"> 
<TR> <TD ALIGN="center" VALIGN="top"><BR> <TABLE WIDTH="90%" BORDER="0" CELLPADDING="0" CELLSPACING="0"> 
<TR> <TD WIDTH="16%"><IMG SRC="/Img/Left_1.gif" WIDTH="28" HEIGHT="11"></TD><TD WIDTH="84%" HEIGHT="20"><FONT COLOR="#FFFF00">新闻管理</FONT></TD></TR> 
</TABLE><TABLE WIDTH="90%" BORDER="0" CELLPADDING="0" CELLSPACING="0"> <TR> <TD WIDTH="34%" HEIGHT="20" ALIGN="right"><IMG SRC="/Img/Left_1_1.gif" WIDTH="29" HEIGHT="16"></TD><TD WIDTH="66%" VALIGN="bottom"><A HREF="Manage_News.asp"><FONT COLOR="#FFFF00">公司新闻管理</FONT></A></TD></TR> 
</TABLE><TABLE WIDTH="90%" BORDER="0" CELLPADDING="0" CELLSPACING="0"> <TR> <TD WIDTH="34%" HEIGHT="20" ALIGN="right"><IMG SRC="/Img/Left_1_1.gif" WIDTH="29" HEIGHT="16"></TD><TD WIDTH="66%" VALIGN="bottom"><A HREF="Manage_NewsAdd.asp"><FONT COLOR="#FFFF00">添加公司新闻</FONT></A></TD></TR> 
</TABLE><TABLE WIDTH="90%" BORDER="0" CELLPADDING="0" CELLSPACING="0"> <TR> <TD WIDTH="34%" HEIGHT="20" ALIGN="right"><IMG SRC="/Img/Left_1_1.gif" WIDTH="29" HEIGHT="16"></TD><TD WIDTH="66%" VALIGN="bottom"><A HREF="Manage_yeNews.asp"><FONT COLOR="#FFFF00">旅游知识管理</FONT></A></TD></TR> 
</TABLE><TABLE WIDTH="90%" BORDER="0" CELLPADDING="0" CELLSPACING="0"> <TR> <TD WIDTH="34%" HEIGHT="10" ALIGN="right"><IMG SRC="/Img/Left_1_1.gif" WIDTH="29" HEIGHT="16"></TD><TD WIDTH="66%" VALIGN="bottom"><A HREF="Manage_yeNewsAdd.asp"><FONT COLOR="#FFFF00">添加旅游知识</FONT></A></TD></TR><TR><TD WIDTH="34%" HEIGHT="36" ALIGN="right"><IMG SRC="/Img/Left_1_1.gif" WIDTH="29" HEIGHT="16"></TD><TD WIDTH="66%" VALIGN="bottom" HEIGHT="36"><A HREF="Manage_zhiNews.asp"><FONT COLOR="#FFFF00">景点介绍管理</FONT></A></TD></TR><TR><TD WIDTH="34%" HEIGHT="20" ALIGN="right"><IMG SRC="/Img/Left_1_1.gif" WIDTH="29" HEIGHT="16"></TD><TD WIDTH="66%" VALIGN="bottom"><A HREF="Manage_zhiNewsAdd.asp"><FONT COLOR="#FFFF00">添加景点介绍</FONT></A></TD></TR> 
</TABLE></TD></TR> </TABLE></td></tr> </table></td><td align="center" valign="top"> 
<br> <strong><br> </strong> <br> <br> <table width="550" border="0" cellspacing="0" cellpadding="0"> 
<tr> <td height="25"> <div align="center"><strong>修改景点介绍<br> <br> </strong></div></td></tr> 
<tr> <form method="post" action="Manage_editzhinews.asp?no=eshop"> <input type=hidden name=id value=<%=id%>> 
<td><div align="center"> <table width="100%" border="0" cellspacing="2" cellpadding="3"> 
<tr> <td width="8%" height="25" bgcolor="#C0C0C0"> <div align="center">标&nbsp;&nbsp;题</div></td><td width="62%" bgcolor="#C0C0C0"><input type="text" name="title" maxlength="30" size="25" value="<%=rs("title")%>"></td></tr> 
<tr> <td height="22" bgcolor="#E3E3E3"> <div align="center">UBB代码</div></td><td bgcolor="#E3E3E3"><script src=../Inc/eshopcode.js></script> 
<!--#include file=../Inc/Ubb.inc --> </td></tr> <tr> <td height="25" bgcolor="#C0C0C0"><div align="center">内&nbsp;&nbsp;容</div></td><td height="25" bgcolor="#C0C0C0"> 
<textarea name="content" cols="57" rows="12"><%if rs("html")=false then
content=replace(rs("content"),"<br>",chr(13))
content=replace(content,"&nbsp;"," ")
else
content=rs("content")
end if
response.write content%></textarea></td></tr> <tr> <td height="25" colspan="2" bgcolor="#E3E3E3"> 
<div align="center"> <input type="submit" value="确定"> &nbsp; <input type="reset" value="从来"> 
</div></td></tr> <tr> <td colspan="2">图片上传</td></tr> <tr> <td colspan="2"><div align="center"> 
<iframe name="ad" frameborder=0 width=100% height=50 scrolling=no src=../uploada.asp></iframe> 
</div></td></tr> </table></div></td></form></tr> </table><br> <br> </td></tr> 
</table><!-- #include file="Inc/Foot.asp" -->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -