- 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源码
shiSet.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
- dim id,shengid,shiid,shiorder,shiname,shino,i
- id=request("id")
- if request("action")="update" then
- for i=1 to request.form("shiid").count
- shiid=replace(request.form("shiid")(i),"'","")
- shengid=replace(request.form("shengid")(i),"'","")
- shiorder=replace(request.form("shiorder")(i),"'","")
- shiname=replace(request.form("shiname")(i),"'","")
- shino=replace(request.form("shino")(i),"'","")
- if replace(request.form("shiorder")(i),"'","")="" then
- %>
- <script language=javascript>
- history.back()
- alert("请填写市的显示排序!")
- </script>
- <%
- Response.End
- end if
- conn.execute("update city set shengid="&shengid&",shiorder="&shiorder&",shiname='"&shiname&"',shino='"&shino&"' where id="&shiid)
- next
- conn.close
- set conn=nothing
- response.write "<script language=javascript>alert('市设置成功!');window.location.href='shimanage.asp';</script>"
- end if
- if request("action")="add" then
- shengid=request.form("shengid")
- shino=request.form("shino")
- shiname=trim(request("shiname"))
- shiorder=request.form("shiorder")
- If shiname="" Then
- response.write "市名称不能为空!请<a href=javascript:history.go(-1)>返回重新填写</a>!"
- response.end
- end if
- If shino="" Then
- response.write "市编号名称不能为空!请<a href=javascript:history.go(-1)>返回重新填写</a>!"
- response.end
- end if
- If shiorder="" Then
- response.write "排序不能为空!请<a href=javascript:history.go(-1)>返回重新填写</a>!"
- response.end
- end if
- Set rs = Server.CreateObject("ADODB.Recordset")
- rs.open "select * from city",conn,1,3
- rs.addnew
- rs("shiname")=shiname
- rs("shengid")=shengid
- rs("shino")=shino
- rs("shiorder")=shiorder
- rs.update
- rs.close
- set rs=nothing
- conn.close
- set conn=nothing
- response.write "<script language=javascript>alert('市添加成功!');window.location.href='shimanage.asp';</script>"
- end if
- %>