gusucode.com > 爱美尔女性商城源码 1.0源码程序 > admintouch/tel/del.asp
<%if session("bjxadmin")="" then response.Write "<script language='javascript'>alert('网络超时或您还没有登陆!');window.location.href='login.asp';</script>" response.End else if session("flag")>1 then response.Write "<p align=center><font color=red>您没有此项目管理权限!</font></p>" response.End end if end if%> <!--#include file="conn.asp"--> <%Select case Request("x") case "a" set rs = conn.execute("select user_name from BJX_telorder where t_id in (select t_id from BJX_telorder_goods where t_t_id="&Request("id")&")") user_name=rs("user_name") rs.close if user_name=request.cookies("bjx")("shjianame") then conn.execute("Delete telorder_goods where t_t_id="&Request("id")&"") Response.redirect "add2.asp?id="&session("id")&"" else Response.Write("对不起,您不能修改该条信息。如有疑问请与网站管理员联系。") end if case "b" set rs = conn.execute("select user_name from BJX_telorder where t_id="&Request("id")&"") user_name=rs("user_name") rs.close if user_name=request.cookies("bjx")("shjianame") then conn.execute("Delete from BJX_telorder where t_id="&Request("id")&" ") Response.redirect "index.asp?page="&Request("page")&"" else Response.Write("对不起,您不能修改该条信息。如有疑问请与网站管理员联系。") end if End Select %>