<!--#include virtual="/incs/config.asp" -->
<%
gid=SafeRequest("gid")
gid_l3=left(gid,3)
pid=SafeRequest("pid")
module=trim(SafeRequest("module"))
buyurl=""

querystrings=request.servervariables("query_string")
gid=trim(gid)
select case gid '对于特殊编号先作处理 
case "clslst"
buyurl="/master/sysmng/prc_mng/prc_lst.asp?cid="&pid
case "prclst"
buyurl="/master/sysmng/prc_mng/prc_edt.asp?c_cls="&pid
case "pdtlst"
buyurl="/master/sysmng/pdt_mng/pdt_edt.asp?gid="&pid
case "memlst"
buyurl="/master/memmng/mem_dtl.asp?uid="&pid
case "fnclst"
buyurl="/master/fncmng/fnc_edt.asp?fid="&pid
case "pwrlst"
buyurl="/master/sysmng/pwr_mng/pwr_edt.asp?pwid="&pid
case "pdttpe"
buyurl="/master/sysmng/pdt_mng/pdt_tpe.asp"
case "pdtcls"
buyurl="/master/sysmng/pdt_mng/pdt_cls.asp?ptid="&pid
case "svrtpe"
buyurl="/master/sysmng/pdt_mng/svr_tpe.asp"
case "svrpol"
buyurl="/master/sysmng/pdt_mng/svr_edt.asp?spid="&pid
case "pwrmem"
buyurl="/master/sysmng/pwr_mng/pwr_mem.asp?k_tpe=pwr&k_wrds="&pid
case "disusr"
buyurl="/master/sysmng/sys_mng/usr_lst.asp"
case "disftp"
buyurl="/master/sysmng/sys_mng/ftp_lst.asp"
case "disdme"
buyurl="/master/sysmng/sys_mng/dme_lst.asp"
case "emlmod"
buyurl="/master/sysmng/snd_mng/snd_edt.asp?msid="&pid
case "emlsnd"
buyurl="/master/sysmng/snd_mng/snd_rnw.asp"
case "artlst"
buyurl="/master/artmng/art_edt.asp?nid="&pid
case "nwslst"
buyurl="/master/artmng/nws_edt.asp?nid="&pid
case "paymde"
buyurl="/master/sysmng/plt_mng/pay_idx.asp"
case "pltcfg"
buyurl="/master/sysmng/plt_mng/index.asp"
case "pltdns"
buyurl="/master/sysmng/plt_mng/plt_dns.asp"
case "wrdlst"
buyurl="/master/artmng/wrd_idx.asp?wid="&pid
case "svrplc"
buyurl="/master/sysmng/pdt_mng/svr_plc.asp"
case "invlst"
buyurl="/master/fncmng/inv_edt.asp?iid="&pid
case "othcfg"
buyurl="/master/sysmng/pdt_mng/pdt_diy.asp?ptid="&pid
end select

if buyurl<>"" then
response.redirect buyurl
else
if  module="odradd" then
module=3'如果指定module=odradd，则表示管理员手工输入订单
elseif chk_int(pid)=false  and pid="" then
module=1'没有指定产品编号，则转向购买表单,如：hst_frm.asp
else
module=2'指定了产品编号，则转向产品首页，如：hst_idx.asp
if pid="0" then
call errorpage(-2,"对不起，该记录不存在！")
end if
end if


conn.open constr
query="select * from v_pdtlst where g_prd='"&gid&"'"
rs.open query,conn,1,1
if rs.eof then
call errorpage(-2,"对不起，该产品不存在！(01)")
end if
g_tag=lcase(trim(rs("g_tag")))
rs.close
if module=3 then
select case g_tag
case "dme"
buyurl="/master/odradd/dme_add/dme_frm.asp?"&querystrings
case "dmc"
buyurl="/master/odradd/dme_add/dmc_frm.asp?"&querystrings
case "dmh"
buyurl="/master/odradd/dme_add/dmc_frm.asp?"&querystrings
case "dmt"
buyurl="/master/odradd/dme_add/dmt_frm.asp?"&querystrings
case "dmi"
buyurl="/master/odradd/dme_add/dme_frm.asp?"&querystrings
case "cn"
buyurl="/master/odradd/dme_add/dme_frm.asp?"&querystrings
case "cc"
buyurl="/master/odradd/dme_add/dme_frm.asp?"&querystrings
case "tv"
buyurl="/master/odradd/dme_add/dme_frm.asp?"&querystrings
case "biz"
buyurl="/master/odradd/dme_add/dme_frm.asp?"&querystrings
case "info"
buyurl="/master/odradd/dme_add/dme_frm.asp?"&querystrings
case "hst"
buyurl="/master/odradd/hst_add/hst_frm.asp?"&querystrings
case "ftp"
buyurl="/master/odradd/ftp_add/ftp_frm.asp?"&querystrings
case "platform"
buyurl="/master/odradd/hst_add/hst_frm.asp?"&querystrings
case "eml"
buyurl="/master/odradd/eml_add/eml_frm.asp?"&querystrings
case "sql"
buyurl="/master/odradd/sql_add/sql_frm.asp?"&querystrings
case "adv"
buyurl="/master/odradd/adv_add/adv_frm.asp?"&querystrings
case "dsn"
buyurl="/master/odradd/dsn_add/dsn_frm.asp?"&querystrings
case "svrhir"
buyurl="/master/odradd/svr_add/svr_frm.asp?"&querystrings
case "svrtuo"
buyurl="/master/odradd/svr_add/svr_frm.asp?"&querystrings
case "set"
buyurl="/master/odradd/set_add/set_frm.asp?"&querystrings
case "ot1"
buyurl="/master/odradd/ot1_add/ot1_frm.asp?"&querystrings
case "ot2"
buyurl="/master/odradd/ot2_add/ot2_frm.asp?"&querystrings
case "ot3"
buyurl="/master/odradd/ot3_add/ot3_frm.asp?"&querystrings
case "ot4"
buyurl="/master/odradd/ot4_add/ot4_frm.asp?"&querystrings
case "ot5"
buyurl="/master/odradd/ot5_add/ot5_frm.asp?"&querystrings
case else
call errorpage(-2,"对不起，该产品不存在！(02)")
end select

end if

if module=1 then
select case g_tag
case "dme"
buyurl="/master/pdtbuy/dme_buy/whois_dme.asp?"&querystrings
case "dmc"
buyurl="/master/pdtbuy/dme_buy/whois_dmc.asp?"&querystrings
case "dmh"
buyurl="/master/pdtbuy/dme_buy/whois_dmh.asp?"&querystrings
case "dmt"
buyurl="/master/pdtbuy/dme_buy/whois_dmt.asp?"&querystrings
case "dmi"
buyurl="/master/pdtbuy/dme_buy/whois_dmi.asp?"&querystrings
case "cn"
buyurl="/master/pdtbuy/dme_buy/whois_cn.asp?"&querystrings
case "cc"
buyurl="/master/pdtbuy/dme_buy/whois_cc.asp?"&querystrings
case "tv"
buyurl="/master/pdtbuy/dme_buy/whois_tv.asp?"&querystrings
case "biz"
buyurl="/master/pdtbuy/dme_buy/whois_biz.asp?"&querystrings
case "info"
buyurl="/master/pdtbuy/dme_buy/whois_info.asp?"&querystrings
case "hst"
buyurl="/master/pdtbuy/hst_buy/hst_frm.asp?"&querystrings
case "platform"
buyurl="/master/pdtbuy/hst_buy/hst_frm.asp?"&querystrings
case "ftp"
buyurl="/master/pdtbuy/ftp_buy/ftp_frm.asp?"&querystrings
case "eml"
buyurl="/master/pdtbuy/eml_buy/eml_frm.asp?"&querystrings
case "sql"
buyurl="/master/pdtbuy/sql_buy/sql_frm.asp?"&querystrings
case "adv"
buyurl="/master/pdtbuy/adv_buy/adv_frm.asp?"&querystrings
case "dsn"
buyurl="/master/pdtbuy/dsn_buy/dsn_frm.asp?"&querystrings
case "svrhir"
buyurl="/master/pdtbuy/svr_buy/svr_frm.asp?"&querystrings
case "svrtuo"
buyurl="/master/pdtbuy/svr_buy/svr_frm.asp?"&querystrings
case "set"
buyurl="/master/pdtbuy/set_buy/set_frm.asp?"&querystrings
case "ot1"
buyurl="/master/pdtbuy/ot1_buy/ot1_frm.asp?"&querystrings
case "ot2"
buyurl="/master/pdtbuy/ot2_buy/ot2_frm.asp?"&querystrings
case "ot3"
buyurl="/master/pdtbuy/ot3_buy/ot3_frm.asp?"&querystrings
case "ot4"
buyurl="/master/pdtbuy/ot4_buy/ot4_frm.asp?"&querystrings
case "ot5"
buyurl="/master/pdtbuy/ot5_buy/ot5_frm.asp?"&querystrings
case else
call errorpage(-2,"对不起，该产品不存在！(02)")
end select

end if

if module=2 then
select case g_tag
case "dme"
buyurl="/master/pdtmng/dme_mng/dme_idx.asp?dnme="&pid
case "dmc"
buyurl="/master/pdtmng/dmc_mng/dmc_idx.asp?dnme="&pid
case "dmh"
buyurl="/master/pdtmng/dmc_mng/dmc_idx.asp?dnme="&pid
case "dmt"
buyurl="/master/pdtmng/dmt_mng/dmt_idx.asp?dnme="&pid
case "dmi"
buyurl="/master/pdtmng/dme_mng/dme_idx.asp?dnme="&pid
case "cn"
buyurl="/master/pdtmng/dme_mng/dme_idx.asp?dnme="&pid
case "cc"
buyurl="/master/pdtmng/dme_mng/dme_idx.asp?dnme="&pid
case "tv"
buyurl="/master/pdtmng/dme_mng/dme_idx.asp?dnme="&pid
case "biz"
buyurl="/master/pdtmng/dme_mng/dme_idx.asp?dnme="&pid
case "info"
buyurl="/master/pdtmng/dme_mng/dme_idx.asp?dnme="&pid
case "dmd"
buyurl="/master/pdtmng/dme_mng/dme_idx.asp?dnme="&pid
case "dmcnd"
buyurl="/master/pdtmng/dme_mng/dme_idx.asp?dnme="&pid
case "hst"
buyurl="/master/pdtmng/hst_mng/hst_idx.asp?hnme="&pid
case "hcns"
buyurl="/master/pdtmng/hst_mng/hst_idx.asp?hnme="&pid
case "hsze"
buyurl="/master/pdtmng/hst_mng/hst_idx.asp?hnme="&pid
case "platform"
buyurl="/master/pdtmng/hst_mng/hst_idx.asp?hnme="&pid
case "ftp"
buyurl="/master/pdtmng/ftp_mng/ftp_idx.asp?fnme="&pid
case "fsze"
buyurl="/master/pdtmng/ftp_mng/ftp_idx.asp?fnme="&pid
case "fcns"
buyurl="/master/pdtmng/ftp_mng/ftp_idx.asp?fnme="&pid
case "eml"
buyurl="/master/pdtmng/eml_mng/eml_idx.asp?mnme="&pid
case "mcns"
buyurl="/master/pdtmng/eml_mng/eml_idx.asp?mnme="&pid
case "msze"
buyurl="/master/pdtmng/eml_mng/eml_idx.asp?mnme="&pid
case "sql"
buyurl="/master/pdtmng/sql_mng/sql_idx.asp?sqnme="&pid
case "adv"
buyurl="/master/pdtmng/adv_mng/adv_idx.asp?vnme="&pid
case "dsn"
buyurl="/master/pdtmng/dsn_mng/dsn_idx.asp?knme="&pid
case "svrtuo"
buyurl="/master/pdtmng/svr_mng/svr_idx.asp?snme="&pid
case "svrhir"
buyurl="/master/pdtmng/svr_mng/svr_idx.asp?snme="&pid
case "set"
buyurl="/master/pdtmng/set_mng/set_idx.asp?snme="&pid
case "ot1"
buyurl="/master/pdtmng/ot1_mng/ot1_idx.asp?snme="&pid
case "ot2"
buyurl="/master/pdtmng/ot2_mng/ot2_idx.asp?snme="&pid
case "ot3"
buyurl="/master/pdtmng/ot3_mng/ot3_idx.asp?snme="&pid
case "ot4"
buyurl="/master/pdtmng/ot4_mng/ot4_idx.asp?snme="&pid
case "ot5"
buyurl="/master/pdtmng/ot5_mng/ot5_idx.asp?snme="&pid
case else
call errorpage(-2,"对不起，该产品不存在！(03)")
end select
end if

end if
response.redirect buyurl
%>