- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
editinform.asp
资源名称:shop2.rar [点击查看]
上传用户:btntkt
上传日期:2021-04-16
资源大小:5296k
文件大小:2k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
DOS
- <!--#include file="conn.asp"-->
- <%if session("admin")="" then
- response.Write "<script language='javascript'>alert('网络超时或您还没有登陆!');window.location.href='login.asp';</script>"
- response.End
- end if
- function changechr(str)
- changechr=replace(replace(replace(replace(str,"<","<"),">",">"),chr(13),"<br>")," "," ")
- changechr=replace(changechr,"'",""")
- changechr=replace(changechr,mid(" "" ",2,1),""")
- end function
- newsid=request("newsid")
- Content=Request.Form("Content")
- aa="http://"&Request.ServerVariables("server_name")&Request.ServerVariables("path_info")
- aa= mid(aa,1,len(aa)-22)
- content=replace(content,aa,"")
- session("content")=content
- if Content="" then
- %>
- <script language=javascript>
- history.back()
- alert("请输入文章内容!")
- </script>
- <%
- Response.End
- end if
- title=request.form("title")
- if title="" then
- %>
- <script language=javascript>
- history.back()
- alert("请填写文章标题!")
- </script>
- <%
- Response.End
- end if
- if len(title)>100 then
- %>
- <script language=javascript>
- history.back()
- alert("文章标题过长!")
- </script>
- <%
- Response.End
- end if
- title=changechr(trim(request.form("title")))
- if title_color="0" then
- title_color="#003399"
- end if
- title_size=Request.Form("title_size")
- if title_size="0" then
- title_size="5"
- end if
- title_type=Request.Form("title_type")
- if title_type="0" then
- title_type="b"
- end if
- title_face=Request.Form("title_face")
- if title_face="0" then
- title_face="楷体_GB2312"
- end if
- set rs=server.createobject("adodb.recordset")
- sql="select * FROM inform where NewsID=" & NewsID
- rs.open sql,conn,1,3
- rs("title")=title
- rs("content")=content
- rs("UpdateTime")=now()
- rs("titletype")=title_type
- rs("titlesize")=title_size
- rs("titlecolor")=title_color
- rs("titleface")=title_face
- rs("newstype")=request.form("anclassid")
- rs.update
- rs.Close
- set rs=nothing
- session("content")=""
- conn.close
- set conn=nothing
- %>
- <script language="javascript">
- window.alert("文章修改成功!");
- window.location.href="<%=request("linkaddress")%>";
- </script>