% '----------------------确定是否有此权限---------------------- dim cls if session("admin")="" then Response.Redirect("index.asp?err=4") else if session("flag")<>"0" then cls = Instr(session("flag"), "partner") if cls <= 0 then %> <% end if end if end if '-----------------------结束----------------------------- %>
| 当前位置: 网站管理中心---代理商管理---返回上一页 | ||
<%
if request("gb")<>"" then
gb=request("gb")
end if
action = request("action")
if request("search") = "ok" then
if request("online") <> "" then
session("online") = request("online")
else
session("online") = ""
end if
else
end if
if action="" then
%>
<% call listPages() else end if '删除产品 if action="del" then delid=replace(request("id"),"'","") call proddel() end if '删除产品 if action="tuijian" then id=replace(request("id"),"'","") call tuijian() end if if action="删除" then delid=replace(request("id")," ","") call proddel() end if if action="readd" then call prodadd() end if if action="newadd" then call prodnew() end if %> |
||
" else conn.execute("delete from techer where id in ("&delid&")") if err.number<>0 then '错误处理 response.write "数据库操作失败:" & err.description err.clear else conn.close set conn=nothing Response.write "
操作失败,没有选择合适参数!点击返回
" end if end if end sub %> <% sub prodadd() reid=request("reid") dim tuijian if request("edit") ="ok" then Set rs=Server.CreateObject("ADODB.Recordset") sql="select * from techer where id="&reid&"" rs.open sql,conn,1,3 if err.number<>0 then '错误处理 response.write "数据库操作失败:" & err.description err.clear else rs("photo")=request("photo") rs("gb")=request("gbL") rs("name")=request("name") rs("adddate")=date() 'rs("place")=request("place") rs("note")=request("note") 'rs("age")=request("age") rs.update rs.close conn.close set rs=nothing set conn=nothing ' Response.Redirect"admin_partner.asp?action=detail&id="&request.form("ProdId") response.Write "" end if else reid=request("reid") Set rs=Server.CreateObject("ADODB.Recordset") sql="select * from techer where id="&reid&"" rs.open sql,conn,1,3 %> 数据表序列ID :<%=rs("id")%>
删除成功!点击返回