<!--#include virtual="/inc/conn.asp"-->
<!--#include virtual="/inc/sitecon.asp"-->
<!--#include virtual="/inc/chkuser.asp"-->
<%
if trim(SafeRequest("mcode"))<>"" then
call chkmcode(trim(SafeRequest("mi")),trim(SafeRequest("mcode")),trim(SafeRequest("yurl")),trim(SafeRequest("mp"))) 
end if
call logname("1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,99")

if cint(getuserydip(request.Cookies("aynameid")))=1 then
call chkip()
end if
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=webname%>-商家后台</title>
<link href="/Template/Template4/css/css.css" rel="stylesheet" type="text/css">
<SCRIPT src="/Template/Template4/js/jquery-1.7.1.min.js" type=text/javascript></SCRIPT>
<SCRIPT src="/Template/Template4/js/gg.js" type=text/javascript></SCRIPT>

<!--[if lte IE 6]>
<style type="text/css">
body { behavior:url("css/csshover.htc"); }
</style>
<![endif]-->
</head>
<body>

<%

if request.Cookies("aynameid")="" then 
response.Redirect "/index/log?err=01"
response.End()
end if

sub iszizhu()
sql="select top 1 * from ayzizhu where zyzizhuisok=1 and ayzizhuuid="&trim(request.Cookies("aynameid"))&"" 
rs.open sql,conn,1,3
if not(rs.bof and rs.eof) then
	if DateDiff("d",rs("ayzizhudate"),now())>3 then
	rs.delete
	call PopErr2("您的请求已过时效，可以联系管理员重新申请！","index")
	end if
response.Redirect("aotoedit")
response.end
end if
rs.close
end sub

function cbname(url) 
cbname=false
if Ubound(split(trim(Request.ServerVariables("URL")),url))>0 then cbname=true
end Function

sub toptz
sql="select top 6 * from aytongzhi where t1=1 and aytongzhikejian=0 order by aytongzhisx,aytongzhiid desc" 
rs.open sql,conn,1,1
if rs.bof and rs.eof then
rs.close
response.Write("暂无最新信息")
else
do while not rs.eof%>
<a href="/notice/<%=trim(rs("suijiid"))%>" target="_blank" style="<%=rs("aytongzhibtys")%>">
<%if len(trim(rs("aytongzhibiao")))>100 then
response.Write left(rs("aytongzhibiao"),100)&"……"
else
response.Write rs("aytongzhibiao")
end if%></a>
<%rs.movenext 
loop
rs.close
end if
end sub

'紧急通知
sql="select top 5 * from aytongzhi where t7=1 and aytongzhikejian=0 order by aytongzhisx,aytongzhiid desc" 
rs.open sql,conn,1,1
if not(rs.bof and rs.eof) then%>
<DIV class=noticet>
<DIV class=noticeBox>
<%do while not rs.eof%>
<a href="/notice/<%=trim(rs("suijiid"))%>" target="_blank" style="<%=rs("aytongzhibtys")%>">
<%if len(trim(rs("aytongzhibiao")))>66 then
response.Write left(rs("aytongzhibiao"),66)&"……"
else
response.Write rs("aytongzhibiao")
end if%></a>
<%rs.movenext 
loop%>
</DIV>
<A class=close_noticet></A></DIV>
<%
end if
rs.close


url1=""
if request.Cookies("yurl")<>"" then 
yurl=request.Cookies("yurl")
url1=request.Cookies("yurl")&"user/"
urlold1=request.Cookies("yurl")&"userold/"
else
yurl=weburl
end if
%> 

<SCRIPT src="/Template/Template4/js/Library.js" type=text/javascript></SCRIPT>
<SCRIPT src="/Template/Template4/js/index.js" type=text/javascript></SCRIPT>

<div id="top" >
<div class="top"  style="width:1200px;"> 
<div style="float:left;"><A href="<%=weburl%>" target="_top"><IMG src="<%=weblogo%>" alt=爱卡支付 title=爱卡支付></A></div>
<div style="float:right;"> 
<%if request.Cookies("aynameid")<>"" then

sql="select aynameid,ayyue from ayname where aynameid="&request.Cookies("aynameid")&"" 
rs.open sql,conn,1,1
if rs.bof and rs.eof then call PopErr2("账号不存在，或已被删除！","/index/exit")
%>
<a href="<%=request.Cookies("yurl")%>/user/index" target="_top">返回新版</a> |
<%if wapurl<>"" then
wapurl=replace(wapurl,"https://"," ")
wapurl=replace(wapurl,"http://"," ")
wapurl=replace(wapurl,"/"," ")
%>
手机站:<%=wapurl%> | 
<%end if%>
<%
set rsnum=conn.execute("select count(*) as num from aytongzhi where t4=1 and aytongzhiuser="&clng(request.Cookies("aynameid"))&" and aytongzhidu=0")
messnum=rsnum("num")
%>
<a href="<%=request.Cookies("yurl")%>/userold/mess">站内信箱(<%=messnum%>)</a> |
商家：<%=trim(request.Cookies("aytrueuser"))%> |
<!--
专属客服QQ:<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=<%=allfuwuqq%>&site=qq&menu=yes"><%=allfuwuqq%></a> |
-->

<a href="<%=request.Cookies("yurl")%>/userold/index" target="_top">会员中心</a> |
<a href="/index/exit" target="_top">安全退出</a> |
	<%if request.Cookies("admindaiguan")="yes" then%>
	&nbsp;<A href="qxdaiguan.asp?act=quxiao"><strong>[取消代管]</strong></A>
	<%end if%>
<%rs.close
else%>
<a href="<%=request.Cookies("yurl")%>/index/log" target="_top" >商户登录</a> | 
<a href="<%=request.Cookies("yurl")%>/index/reg" target="_top" >商户注册</a> |
<a href="<%=request.Cookies("yurl")%>/chaxun" target="_blank" >订单查询</a>
<%end if%>
</div>
</div>
</div>

<DIV class=navbox>
<DIV class=globalnav>

<!-- 一级分类 -->
<A id="o_1" href="<%=urlold1%>index" target="_top"><SPAN>商家中心</SPAN></A>

<A id="o_10" href="<%=urlold1%>jiesuan_list" target="_top"><SPAN>结算账号</SPAN></A>

<%if pichost<>"/" then%>
<A id="o_2" href="<%=pichost%>userold/goodlist?act=all&mi=<%=request.Cookies("aynameid")%>&mcode=<%=request.Cookies("aysignmd5")%>&yurl=<%=yurl%>&mp=<%=request.Cookies("useripd")%>" target="_top"><SPAN>卡密商品</SPAN> </A>
<%else%>
<A id="o_2" href="<%=urlold1%>goodlist?act=all" target="_top"><SPAN>商品管理</SPAN> </A>
<%end if%>

<A id="o_4" href="<%=urlold1%>mydingdan" target="_top"><SPAN>订单管理</SPAN> </A>

<%if pichost<>"/" then%>
<A id="o_5" href="<%=pichost%>userold/tousu?mi=<%=request.Cookies("aynameid")%>&mcode=<%=request.Cookies("aysignmd5")%>&yurl=<%=yurl%>&mp=<%=request.Cookies("useripd")%>" target="_top"><SPAN>投诉举报</SPAN> </A>
<%else%>
<A id="o_5" href="<%=urlold1%>tousu" target="_top"><SPAN>投诉列表</SPAN> </A>
<%end if%>

<A id="o_6" href="<%=urlold1%>vip" target="_top"><SPAN>增值服务</SPAN></A>
<A id="o_7" href="<%=urlold1%>mess" target="_top"><SPAN>商家助手</SPAN> </A>
<A id="o_8" href="<%=urlold1%>gongdan" target="_top"><SPAN>工单服务</SPAN> </A>
<A id="o_9" href="<%=urlold1%>duihuannew" target="_top"><SPAN>兑换中心</SPAN> </A>
</DIV>
<!-- 一级分类 结束 -->




<DIV class=subnav>

<!-- 管理中心 开始  -->
<div id="t_1" style="display:none">
<A id="s_1_1" href="<%=urlold1%>index" style="cursor:pointer" target="_top"><SPAN>后台首页</SPAN></A> 
<SPAN class=line>|</SPAN><A id="s_1_2" href="<%=urlold1%>myname" style="cursor:pointer" target="_top"><SPAN>商家信息</SPAN></A> 
<SPAN class=line>|</SPAN><A id="s_1_3" href="<%=urlold1%>anquan" style="cursor:pointer" target="_top"><SPAN>安全中心</SPAN></A> 
<!--
<SPAN class=line>|</SPAN><A id="s_1_4" href="<%'=urlold1%>yinjian" style="cursor:pointer" target="_top"><SPAN>我的引荐</SPAN></A> 
-->
<SPAN class=line>|</SPAN><A id="s_1_5" href="<%=urlold1%>userdaili" style="cursor:pointer" target="_top"><SPAN>代理系统</SPAN></A> 
<SPAN class=line>|</SPAN><A id="s_1_6" href="<%=urlold1%>renzheng" style="cursor:pointer" target="_top"><SPAN>认证中心</SPAN></A>
<SPAN class=line>|</SPAN><A id="s_1_8" href="<%=urlold1%>tuisong" style="cursor:pointer" target="_top"><SPAN>推送设置</SPAN></A>
<SPAN class=line>|</SPAN><A id="s_1_9" href="<%=urlold1%>mylink" style="cursor:pointer" target="_top"><SPAN>店铺链接</SPAN></A>
<SPAN class=line>|</SPAN><A id="s_1_10" href="<%=urlold1%>nobuylist" style="cursor:pointer" target="_top"><SPAN>封禁买家</SPAN></A>
<SPAN class=line>|</SPAN><A id="s_1_11" href="<%=urlold1%>dlshouquan" style="cursor:pointer" target="_top"><SPAN>登录授权</SPAN></A>
<SPAN class=line>|</SPAN><A id="s_1_12" href="<%=urlold1%>chong" style="cursor:pointer" target="_top"><SPAN>在线充值</SPAN></A>

<SPAN class=line>|</SPAN><A id="s_1_13" href="<%=urlold1%>tixian" style="cursor:pointer" target="_top"><SPAN>申请提现</SPAN></A>

<SPAN class=line>|</SPAN><A id="s_1_14" href="<%=urlold1%>kuaijielog" style="cursor:pointer" target="_top"><SPAN>快捷登录</SPAN></A>
<SPAN class=line>|</SPAN><A id="s_1_7" href="<%=urlold1%>gongzhonghao" style="cursor:pointer;color:#F00" target="_top"><SPAN>关注公众号</SPAN></A>
</div>

<!-- 结算设置 开始  -->
<div id="t_10" style="display:none">
<A id="s_10_1" href="<%=urlold1%>jiesuan_list" style="cursor:pointer" target="_top"><SPAN>结算账号</SPAN></A> 
</div>


<!-- 商品管理  -->
<div id="t_2" style="display:none">
<A id="s_2_1" href="<%=urlold1%>fenlei" style="cursor:pointer" target="_top"><SPAN>商品分类</SPAN></A> 
<%if pichost<>"/" then%>
<SPAN class=line>|</SPAN><A id="s_2_2" href="<%=pichost%>userold/goodlist?act=all&mi=<%=request.Cookies("aynameid")%>&mcode=<%=request.Cookies("aysignmd5")%>&yurl=<%=yurl%>&mp=<%=request.Cookies("useripd")%>" style="cursor:pointer" target="_top"><SPAN>商品列表</SPAN></A> 
<SPAN class=line>|</SPAN><A id="s_2_3" href="<%=pichost%>userold/goodadd?mi=<%=request.Cookies("aynameid")%>&mcode=<%=request.Cookies("aysignmd5")%>&yurl=<%=yurl%>&mp=<%=request.Cookies("useripd")%>" style="cursor:pointer" target="_top"><SPAN>添加商品</SPAN></A> 
<SPAN class=line>|</SPAN><A id="s_2_4" href="<%=pichost%>userold/kaadd?mi=<%=request.Cookies("aynameid")%>&mcode=<%=request.Cookies("aysignmd5")%>&yurl=<%=yurl%>&mp=<%=request.Cookies("useripd")%>" style="cursor:pointer" target="_top"><SPAN>添加卡密</SPAN></A> 
<SPAN class=line>|</SPAN><A id="s_2_5" href="<%=pichost%>userold/kucunka?mi=<%=request.Cookies("aynameid")%>&mcode=<%=request.Cookies("aysignmd5")%>&yurl=<%=yurl%>&mp=<%=request.Cookies("useripd")%>" style="cursor:pointer" target="_top"><SPAN>库存卡密</SPAN></A> 
<SPAN class=line>|</SPAN><A id="s_2_6" href="<%=pichost%>userold/feika?mi=<%=request.Cookies("aynameid")%>&mcode=<%=request.Cookies("aysignmd5")%>&yurl=<%=yurl%>&mp=<%=request.Cookies("useripd")%>" style="cursor:pointer" target="_top"><SPAN>最近卖出</SPAN></A> 
<%else%>
<SPAN class=line>|</SPAN><A id="s_2_2" href="<%=urlold1%>goodlist?act=all" style="cursor:pointer" target="_top"><SPAN>商品列表</SPAN></A> 
<SPAN class=line>|</SPAN><A id="s_2_3" href="<%=urlold1%>goodadd" style="cursor:pointer" target="_top"><SPAN>添加商品</SPAN></A> 
<SPAN class=line>|</SPAN><A id="s_2_4" href="<%=urlold1%>kaadd" style="cursor:pointer" target="_top"><SPAN>添加卡密</SPAN></A> 
<SPAN class=line>|</SPAN><A id="s_2_5" href="<%=urlold1%>kucunka" style="cursor:pointer" target="_top"><SPAN>库存卡密</SPAN></A>
<SPAN class=line>|</SPAN><A id="s_2_6" href="<%=urlold1%>feika" style="cursor:pointer" target="_top"><SPAN>最近卖出</SPAN></A>
<%end if%>
</div>

<!-- 交易管理  -->
<div id="t_4" style="display:none">
<A id="s_4_2" href="<%=urlold1%>mydingdan" style="cursor:pointer" target="_top"><SPAN>订单交易查询</SPAN></A> 
<SPAN class=line>|</SPAN><A id="s_4_3" href="<%=urlold1%>mycaiwu" style="cursor:pointer" target="_top"><SPAN>财务流水查询</SPAN></A> 
<%
rs.open "select ayjiesuanms,aynameid from ayname where aynameid="&clng(request.Cookies("aynameid"))&"" ,conn,1,1
ayjiesuanms=rs("ayjiesuanms")
rs.close

if cint(ayjiesuanms)=5 then%>
<SPAN class=line>|</SPAN><A id="s_4_7" href="<%=urlold1%>tixian" style="cursor:pointer" target="_top"><SPAN>申请提现</SPAN></A> 
<%end if%>
<SPAN class=line>|</SPAN><A id="s_4_8" href="<%=urlold1%>jiesuan" style="cursor:pointer" target="_top"><SPAN>提现结算记录</SPAN></A> 

</div>


<!-- 投诉举报  -->
<div id="t_5" style="display:none">
<%if pichost<>"/" then%>
<A id="s_5_1" href="<%=pichost%>userold/tousu?mi=<%=request.Cookies("aynameid")%>&mcode=<%=request.Cookies("aysignmd5")%>&yurl=<%=yurl%>&mp=<%=request.Cookies("useripd")%>" style="cursor:pointer" target="_top"><SPAN>投诉管理</SPAN></A> 
<%else%>
<A id="s_5_1" href="<%=urlold1%>tousu" style="cursor:pointer" target="_top"><SPAN>投诉列表</SPAN></A> 
<%end if%>

</div>


<!-- 增值服务  -->
<div id="t_6" style="display:none">
<A id="s_6_1" href="<%=urlold1%>vip" style="cursor:pointer" target="_top"><SPAN>增值服务</SPAN></A> 
<SPAN class=line>|</SPAN><A id="s_6_2" href="<%=urlold1%>taocan" style="cursor:pointer" target="_top"><SPAN>商户套餐</SPAN></A>
<SPAN class=line>|</SPAN><A id="s_6_3" href="<%=urlold1%>mytaocanc" style="cursor:pointer" target="_top"><SPAN>我的套餐</SPAN></A>
</div>



<!-- 商家助手  -->
<div id="t_7" style="display:none">
<A id="s_7_1" href="<%=urlold1%>mess" style="cursor:pointer" target="_top"><SPAN>站内信息</SPAN></A>
<SPAN class=line>|</SPAN><A id="s_7_2" href="<%=urlold1%>addyouhui" style="cursor:pointer" target="_top"><SPAN>生成优惠券</SPAN></A>
<SPAN class=line>|</SPAN><A id="s_7_3" href="<%=urlold1%>myyouhui" style="cursor:pointer" target="_top"><SPAN>管理优惠券</SPAN></A>
<SPAN class=line>|</SPAN><A id="s_7_6" href="<%=urlold1%>log" style="cursor:pointer" target="_top"><SPAN>操作日志</SPAN></A>
<SPAN class=line>|</SPAN><A id="s_7_7" href="<%=urlold1%>tongji" style="cursor:pointer" target="_top"><SPAN>账务统计</SPAN></A> 
</div>

<!-- 工单服务  -->
<div id="t_8" style="display:none">
<%if pichost<>"/" then%>
<A id="s_8_1" href="<%=pichost%>userold/gongdan?mi=<%=request.Cookies("aynameid")%>&mcode=<%=request.Cookies("aysignmd5")%>&yurl=<%=yurl%>&mp=<%=request.Cookies("useripd")%>" style="cursor:pointer" target="_top"><SPAN>我的工单</SPAN></A> 
<%else%>
<A id="s_8_1" href="<%=urlold1%>gongdan" style="cursor:pointer" target="_top"><SPAN>我的工单</SPAN></A>
<%end if%>

<%if pichost<>"/" then%>
<SPAN class=line>|</SPAN><A id="s_8_2" href="<%=pichost%>userold/gongdanadd?mi=<%=request.Cookies("aynameid")%>&mcode=<%=request.Cookies("aysignmd5")%>&yurl=<%=yurl%>&mp=<%=request.Cookies("useripd")%>" style="cursor:pointer" target="_top"><SPAN>提交工单</SPAN></A> 
<%else%>
<SPAN class=line>|</SPAN><A id="s_8_2" href="<%=urlold1%>gongdanadd" style="cursor:pointer" target="_top"><SPAN>提交工单</SPAN></A>
<%end if%>


<!-- 商家助手  -->
<div id="t_9" style="display:none">
<A id="s_9_1" href="<%=urlold1%>duihuannew" style="cursor:pointer" target="_top"><SPAN>兑换码-兑换</SPAN></A>
<SPAN class=line>|</SPAN><A id="s_9_2" href="<%=urlold1%>duihuanlist" style="cursor:pointer" target="_top"><SPAN>兑换记录</SPAN></A>
</div>
 


</div>


</DIV>
</DIV>

<DIV style="padding-top:15px;LINE-HEIGHT: 25px;width:1200px; height:120px; MARGIN: auto;"><IMG src="<%=ossurl%>Template/Template5/banner/gongsi.jpg" width="1200" height="120"></DIV>
