<!--#include virtual="/show/adminhead.asp"-->
<!--#include file="adminleft.asp"-->

<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />

<title><%=webname%>-最高权限-会员编辑</title>
<%
call logquanxian("b2",1)
%>

<DIV>

<%
'On error resume next 

act=request.QueryString("act")

if request.QueryString("act")="zhuxiao" then
	zid=request.Form("zid")
	iszhuxiao=request.Form("iszhuxiao")
	
	if zid="" then call PopErr("缺少参数")
	
	if iszhuxiao="" then iszhuxiao=0
	
	if cint(iszhuxiao)=0 then 
	call PopErr("参数不完整或不支持解除注销")
	response.End()
	end if
	 
	if cint(iszhuxiao)=1 then  '注销
	conn.execute "update aygood set iszhuxiao=1 where aygoodsuoyouid="&zid&""
	conn.execute "update aykafenlei set iszhuxiao=1 where aykanamesuoyou="&zid&""
	conn.execute "update ayname set iszhuxiao=1 where aynameid="&zid&""
	end if
	
	'if cint(iszhuxiao)=0 then  '解除注销
	'conn.execute "update aygood set iszhuxiao=0 where aygoodsuoyouid="&zid&""
	'conn.execute "update aykafenlei set iszhuxiao=0 where aykanamesuoyou="&zid&""
	'conn.execute "update ayname set iszhuxiao=0 where aynameid="&zid&""
	'end if
	
	
	call logadd(request.Cookies("aynameid"),"管理-ID注销操作成功"&zid,0,0)
	call PopErr2("修改成功","adminuseredit.asp?id="&zid&"")
end if


if request.QueryString("act")="tongjits" then
uid=request.QueryString("uid")
	set rs2=server.CreateObject("adodb.recordset")
	'set rs3=server.CreateObject("adodb.recordset")
	'set rs4=server.CreateObject("adodb.recordset")
		
		rs2.open "select top 1 aynameid,ddku,tousulv from ayname where aynameid="&uid&"",conn,1,3
		if not(rs2.eof) then
		
			set rsnum=conn.execute("select count(*) as num from "&trim(rs2("ddku"))&" where aydingdanuser="&uid&" and aydingdanzt=1")
			ddsum=rsnum("num")
		
			'rs3.open "select aydingdanuser,aydingdanzt from "&trim(rs2("ddku"))&" where aydingdanuser="&uid&" and aydingdanzt=1",conn,1,1
			'ddsum=rs3.RecordCount
			'rs3.close
			
			set rsnum2=conn.execute("select count(*) as num from ayjubao where ayjubaouid="&uid&" and ayjubaosjid=0")
			tssum=rsnum2("num")
			
			'rs4.open "select ayjubaouid,ayjubaosjid from ayjubao where ayjubaouid="&uid&" and ayjubaosjid=0",conn,1,1
			'tssum=rs4.RecordCount
			'rs4.close
		
			if ccur(tssum)>ccur(ddsum) then 
			tousulv=0
			else
			tousulv=Formatnumber(tssum/ddsum*100,2,true,-1,0)
			end if
			
			rs2("tousulv")=tousulv
			rs2.update

		end if
		rs2.close
		

call PopErr2("统计成功","adminuseredit.asp?id="&uid&"")
	
end if


if act="acwjs" then
call lognamecode()
id=request.QueryString("id")
cwku=request.QueryString("cwku")
sql="select * from "&cwku&" where aycaiwuuser="&clng(id)&" and aycaiwuisjs=0" 
rs.open sql,conn,1,3
if not(rs.bof and rs.eof) then
do while not rs.eof
rs("aycaiwuisjs")=1
rs.movenext 
loop
end if
call logadd(request.Cookies("aynameid"),"管理-清除未结算订单成功"&id,0,0)
call PopErr("处理成功") 
end if

if act="pass" then
call lognamecode()
id=request.QueryString("id")
sql="select * from ayname where aynameid="&clng(id)&"" 
rs.open sql,conn,1,3
if rs.bof and rs.eof then
rs.close
call PopErr("未找到此数据") 
else
rs("aypassword")=md5("123456")
rs.update
rs.close
call logadd(request.Cookies("aynameid"),"管理-密码重置成功"&id,0,0)
call PopErr2("密码修改成功","ik_adminuser.asp")
end if
end if

if act="editok" then
call lognamecode()

if request.QueryString("cid")<>"" then cid=request.QueryString("cid")
if request.Form("cid")<>"" then cid=request.Form("cid")

cid1=request.Form("cid1")

ayjiesuanms=request.Form("ayjiesuanms")

ayjibie=request.Form("ayjibie")
ayusersuo=request.Form("ayusersuo")
ayshenhe=request.Form("ayshenhe")
ayisxiaobao=request.Form("ayisxiaobao")
ayisxiaojin=request.Form("ayisxiaojin")
ayapiyinjian=request.Form("ayapiyinjian")  

ayispay=request.Form("ayispay")
ayisjssuo=request.Form("ayisjssuo")
ayusername=request.Form("ayusername")
ayurlno=request.Form("ayurlno")
istelrz=request.Form("istelrz")
ismailrz=request.Form("ismailrz")
mdulipa=request.Form("mdulipa")

ischengxin=request.Form("ischengxin")
isyaoqing=request.Form("isyaoqing")

isvipid=request.Form("isvipid")
vipdate=request.Form("vipdate")

isbutishi=request.Form("isbutishi")

ayweixinid=request.Form("ayweixinid")
ayweixinpic=request.Form("ayweixinpic")
ayisweixinok=request.Form("ayisweixinok")

kfwxopenid=request.Form("kfwxopenid")
kfqqopenid=request.Form("kfqqopenid")
xblast=request.Form("xblast")

tousutixian=request.Form("tousutixian")
shangjiabao=request.Form("shangjiabao")


ddmaxj=request.Form("ddmaxj")
if ddmaxj="" then ddmaxj=0

issprz=request.Form("issprz")
if issprz="" then issprz=0

isqzsfz=request.Form("isqzsfz")
if isqzsfz="" then isqzsfz=0

if isbutishi="" then isbutishi=0

isjiaji=request.Form("isjiaji")
if isjiaji="" then isjiaji=0

isnoanlink=request.Form("isnoanlink")
if isnoanlink="" then isnoanlink=0

ayaisalipayfz=request.Form("ayaisalipayfz")
if ayaisalipayfz="" then ayaisalipayfz=0

wxopenid=trim(request.Form("wxopenid"))
if wxopenid="" then wxopenid=" "

istixian=request.Form("istixian")
if istixian="" then istixian=1

ayismd5=request.Form("ayismd5")
if ayismd5="" then ayismd5=0

nowxbj=request.Form("nowxbj")

jjmoney=request.Form("jjmoney")
if jjmoney="" then jjmoney=0

ismiaotui=request.Form("ismiaotui")
if ismiaotui="" then ismiaotui=0

isbuylog=request.Form("isbuylog")


if isvipid="" then isvipid=0

if isyaoqing="" then isyaoqing=0

isshangzishou=request.Form("isshangzishou")
zishoudate=request.Form("zishoudate")
iszsali=request.Form("iszsali")
zsali=request.Form("zsali")
iszswei=request.Form("iszswei")
zswei=request.Form("zswei")
iszsqq=request.Form("iszsqq")
zsqq=request.Form("zsqq")

if isshangzishou="" then isshangzishou=0

if iszsali="" then iszsali=0
if iszswei="" then iszswei=0
if iszsqq="" then iszsqq=0


if ischengxin="" then 
ischengxin=0
ayaisalipayfz=0
end if



if istelrz="" then istelrz=0
if ismailrz="" then ismailrz=0
if ayurlno="" then ayurlno=0
if trim(ayusername)="" then call PopErr("用户名不能为空")
if ayisjssuo="" then ayisjssuo=0
if ayispay="" then ayispay=0


if ayisxiaobao="" then 
ayisxiaobao=0
ayaisalipayfz=0
end if

if ayisxiaojin="" then ayisxiaojin=0
if ayusersuo="" then ayusersuo=0
if ayshenhe="" then ayshenhe=0

aytrueuser=request.Form("aytrueuser")
ayqq=request.Form("ayqq")
aytel=request.Form("aytel")
aymail=request.Form("aymail")
ayshenfenzheng=request.Form("ayshenfenzheng")
aypassword=request.Form("aypassword")
aymasterjid=request.Form("aymasterjid")
if aymasterjid="" then aymasterjid=0
if cint(ayjibie)<>9 then
aymasterjid=0
end if



aychengjiao=request.Form("aychengjiao")
if aychengjiao="" then aychengjiao=0
aywebname=request.Form("aywebname")
ayweburl=request.Form("ayweburl")
aygename=request.Form("aygename")

ayanquan=request.Form("ayanquan")
iseditbuy=request.Form("iseditbuy")

isjiekou0=trim(request.Form("isjiekou0"))
isjiekou1=trim(request.Form("isjiekou1"))
isjiekou2=trim(request.Form("isjiekou2"))
isjiekou3=trim(request.Form("isjiekou3"))
isjiekou4=trim(request.Form("isjiekou4"))
isjiekou5=trim(request.Form("isjiekou5"))
if isjiekou0="" then isjiekou0=0
if isjiekou1="" then isjiekou1=0
if isjiekou2="" then isjiekou2=0
if isjiekou3="" then isjiekou3=0
if isjiekou4="" then isjiekou4=0
if isjiekou5="" then isjiekou5=0

isjiekou=isjiekou0&"|"&isjiekou1&"|"&isjiekou2&"|"&isjiekou3&"|"&isjiekou4&"|"&isjiekou5

'手动模式改为自动模式
nowmoshi=request.Form("nowmoshi")
if cint(nowmoshi)=5 and cint(ayjiesuanms)=3 then

sjstr=split(userinip,".")
if len(sjstr(0))=1 then 
sj1="0"&sjstr(0)
else
sj1=mid(sjstr(0),1,1)&mid(sjstr(0),len(sjstr(0)),len(sjstr(0)))
end if
if len(sjstr(1))=1 then 
sj2="0"&sjstr(1)
else
sj2=mid(sjstr(1),1,1)&mid(sjstr(1),len(sjstr(1)),len(sjstr(1)))
end if
sito=sj1&sj2&mid(sjstr(2),len(sjstr(2)),len(sjstr(2)))&mid(sjstr(3),len(sjstr(3)),len(sjstr(3)))
if err.number<>0 then 
sito="090909"
end if

Const stringmodarr = "0123456789"
dim randarr2,randarr3,strlength
strlength = Len(stringmodarr)
Randomize timer
For i = 1 To 6 
randarr2 = randarr2&Mid(stringmodarr,Int(Rnd * strlength + 1),1)  
Next 
suiji = "C1"&Right(("00"&Day(Now())),2)&Right(("00"&second(Now())),2)&sito&randarr2

	rs.open "select * from ayname where aynameid="&clng(cid)&"" ,conn,1,3
	if ccur(rs("ayyue"))>0 then
	tixianyu=rs("ayyue")
	cwku=trim(rs("cwku"))
	rs("ayyue")=0
	'rs("aydongjie")=ccur(rs("aydongjie"))+ccur(tixianyu)
	rs.update
	
			set rsj=server.CreateObject("adodb.recordset")
			rsj.open "select * from "&cwku&"" ,conn,1,3
			rsj.addnew
			rsj("aycaiwuleibie")=9
			rsj("aycailiushui")=suiji
			rsj("aycaiwujine")=tixianyu
			rsj("aycaiwuuser")=clng(cid)
			rsj("aycaiwudate")=now()
			'rsj("aycaiwuusername")=trim(rs("aytrueuser"))


			rsj("aycaiwulastjin")=tixianyu
			rsj("aycaiwuyue")=0
			rsj("aycaiwutxcl")=2
			rsj("aycaiwujsms")=5
			rsj("aycaiwubody")="系统处理"
			rsj("aytxyue")=tixianyu
			rsj.update
			rsj.close
			
			sqlj="select * from "&cwku&" where aycaiwuuser="&clng(cid)&" and aycaiwuisjs=0" 
			rsj.open sqlj,conn,1,3
			if not(rsj.bof and rsj.eof) then
			do while not rsj.eof
			rsj("aycaiwuisjs")=1
			rsj.movenext 
			loop
			end if
			rsj.close
			
	end if
	rs.close

call logadd(request.Cookies("aynameid"),"管理-处理成功"&cid,0,0)
end if


sql="select * from ayname where aynameid="&clng(cid)&"" 
rs.open sql,conn,1,3

'自动模式改为手动模式
if cint(nowmoshi)=3 and cint(ayjiesuanms)=5 then

end if


rs("aychengjiao")=aychengjiao
rs("ayisjssuo")=ayisjssuo
rs("ayusername")=ayusername
rs("aymasterid")=aymasterjid


if aywebname<>"" then 
rs("aywebname")=aywebname
else
rs("aywebname")=" "
end if
if ayweburl<>"" then 
rs("ayweburl")=ayweburl
else
rs("ayweburl")=" "
end if
if aygename<>"" then 
rs("aygename")=aygename
else
rs("aygename")=" "
end if



if ayanquan<>"" then 
rs("ayanquan")=md5(ayanquan)
end if
if trim(mdulipa)<>"" then
rs("mdulipa")=md5(mdulipa)
end if


rs("ayjiesuanms")=cint(ayjiesuanms)

rs("ayjibie")=ayjibie

rs("ayusersuo")=cint(ayusersuo)
rs("ayshenhe")=cint(ayshenhe)
rs("ayisxiaobao")=ayisxiaobao
rs("ayisxiaojin")=ayisxiaojin


if ccur(nowxbj)<>ccur(ayisxiaojin) then rs("xbdate")=now()


rs("ayispay")=ayispay
rs("istelrz")=istelrz
rs("ismailrz")=ismailrz


if aytrueuser<>"" then rs("aytrueuser")=aytrueuser

if ayqq<>"" then 
rs("ayqq")=ayqq
else
rs("ayqq")=null
end if

if aytel<>"" then 
rs("aytel")=aytel
else
rs("aytel")=null
end if

if aymail<>"" then 
rs("aymail")=aymail
else
rs("aymail")=" "
end if

if ayshenfenzheng<>"" then 
rs("ayshenfenzheng")=ayshenfenzheng
else
rs("ayshenfenzheng")=" "
end if


rs("ayurlno")=ayurlno

if ayurlno=1 then 
rs("ayismd5")=0
end if

if aypassword<>"" then rs("aypassword")=md5(aypassword)

rs("ischengxin")=ischengxin
rs("isyaoqing")=isyaoqing


rs("isvipid")=isvipid

if vipdate<>"" then 
rs("vipdate")=vipdate
end if



rs("ayaisalipayfz")=ayaisalipayfz
rs("wxopenid")=wxopenid
rs("isjiekou")=isjiekou
rs("istixian")=istixian
rs("ayismd5")=ayismd5
rs("jjmoney")=jjmoney
rs("isbutishi")=isbutishi
rs("isjiaji")=isjiaji

rs("ayweixinid")=ayweixinid
rs("ayweixinpic")=ayweixinpic
rs("ayisweixinok")=ayisweixinok
rs("isnoanlink")=isnoanlink

if kfwxopenid<>"" then 
rs("kfwxopenid")=kfwxopenid
else
rs("kfwxopenid")=" "
end if
if kfqqopenid<>"" then 
rs("kfqqopenid")=kfqqopenid
else
rs("kfqqopenid")=" "
end if

if xblast<>"" then 
rs("xblast")=xblast
end if

rs("tousutixian")=tousutixian
rs("shangjiabao")=shangjiabao
rs("ismiaotui")=ismiaotui
rs("issprz")=issprz
rs("isqzsfz")=isqzsfz


rs("ddmaxj")=ddmaxj

rs("isshangzishou")=isshangzishou
if trim(zishoudate)<>"" then rs("zishoudate")=zishoudate
rs("iszsali")=iszsali
rs("zsali")=zsali
rs("iszswei")=iszswei
rs("zswei")=zswei
rs("iszsqq")=iszsqq
rs("zsqq")=zsqq
rs("isbuylog")=isbuylog
rs("iseditbuy")=iseditbuy


	rs.update
	rs.close
	call logadd(request.Cookies("aynameid"),"管理-会员信息修改成功"&cid,0,0)
	call PopErr2("修改成功","adminuseredit.asp?id="&cid1&"")



end if


if act="editok2" then
call lognamecode()
cid=request.QueryString("cid")
if request.QueryString("cid")<>"" then cid=request.QueryString("cid")
if request.Form("cid")<>"" then cid=request.Form("cid")
ayyue=request.Form("ayyue")
ayalipayyu=request.Form("ayalipayyu")
aydongjie=request.Form("aydongjie")
ayxiaofei=request.Form("ayxiaofei")
ayjifen=request.Form("ayjifen")
aytxsy=request.Form("ayispay")
ayljjs=request.Form("ayljjs")
yongjin=request.Form("yongjin")
  
	  
if ayyue="" then ayyue=0
if aytxsy="" then aytxsy=0
if ayljjs="" then ayljjs=0
if yongjin="" then yongjin=0

sql="select * from ayname where aynameid="&clng(cid)&"" 
rs.open sql,conn,1,3

if cint(rs("ayjiesuanms"))=3 then
if ccur(rs("ayyue"))>ccur(ayyue) or ccur(rs("ayyue"))<ccur(ayyue) then call PopErr("该商家结算模式不支持修改余额")
if ccur(rs("aydongjie"))>ccur(aydongjie) or ccur(rs("aydongjie"))<ccur(aydongjie) then call PopErr("该商家结算模式不支持修改冻结金额")
if ccur(rs("ayxiaofei"))>ccur(ayxiaofei) or ccur(rs("ayxiaofei"))<ccur(ayxiaofei) then call PopErr("该商家结算模式不支持修改消费金额")
end if

rs("ayyue")=ayyue
rs("ayalipayyu")=ayalipayyu
rs("aydongjie")=aydongjie
rs("ayxiaofei")=ayxiaofei
rs("ayjifen")=clng(ayjifen)
rs("aytxsy")=aytxsy
rs("ayljjs")=ayljjs
rs("yongjin")=yongjin
rs.update
rs.close
'call logadd(request.Cookies("aynameid"),"管理-会员资金修改成功"&id,0,0)
call PopErr2("修改成功","adminuseredit.asp?id="&cid&"")


end if


id =request.QueryString("id")
if id="" then call PopErr("获取参数错误") 
sql="select * from ayname where aynameid="&clng(id)&"" 
rs.open sql,conn,1,1
if rs.bof and rs.eof then 
call PopErr("未找到此数据") 
end if


%>
<DIV id=main1200> 
<%call webleft()%>
<DIV id=main_right>
<DIV id=main_right_content>
<STYLE>.apply_style {
	POSITION: absolute
}
.right_title A {
	LINE-HEIGHT: 27px; WIDTH: 126px; DISPLAY: inline-block; BACKGROUND: url(<%=ossurl%>images/bg22.gif) no-repeat; HEIGHT: 27px
}
.right_title A.current {
	BACKGROUND: url(<%=ossurl%>images/main_right_title_bg.gif) no-repeat; COLOR: #fff; FONT-WEIGHT: bold
}
.table_style_1 TD {
	HEIGHT: 38px
}
.table_style_home_info TD {
	PADDING-BOTTOM: 0px; PADDING-LEFT: 10px; PADDING-RIGHT: 0px; HEIGHT: 30px; PADDING-TOP: 0px
}
</STYLE>
<script>
function openwin(w,h,url)
		{
		var l=(window.screen.width/2)-w/2;
		var t=(window.screen.height/2)-h/2;
		window.open(url,'','width='+w+',height='+h+',top='+t+',left='+l+',menubar=no,toobar=no,scrollbars=yes,resizable=no,status=no,loation=no');
		}
</script>
<SCRIPT language=javascript>
function ShowDialog(url, width, height, optValidate) {
	var arr = showModalDialog(url, window, "dialogWidth:" + width + "px;dialogHeight:" + height + "px;help:no;scroll:no;status:no");
	}
</SCRIPT>
<DIV class=right_titleadmin>&nbsp;&nbsp;会员编辑</DIV>
<DIV class=main>

<form action="?act=editok" method="post" name="form" id="form">
  <table width="1050" border="0" cellpadding="0" cellspacing="0" class="table_style_a1">
    <tr   style="line-height:30px;">
      <td colspan="6">
  &nbsp;&nbsp;常规操作：
        <a href="admindaiguan.asp?aynameid=<%=rs("aynameid")%>&ayusername=<%=trim(rs("ayusername"))%>&ayjibie=<%=rs("ayjibie")%>&aytrueuser=<%=trim(rs("aytrueuser"))%>&password=<%=trim(rs("aypassword"))%>&kamiku=<%=trim(rs("kamiku"))%>&flku=<%=trim(rs("flku"))%>&spku=<%=trim(rs("spku"))%>&ddku=<%=trim(rs("ddku"))%>&cwku=<%=trim(rs("cwku"))%>&rzku=<%=trim(rs("rzku"))%>&aytel=<%=trim(rs("aytel"))%>&aymail=<%=trim(rs("aymail"))%>" target="_blank">代管</a> 
        
        <%if isnull(trim(rs("aygename")))=false and trim(rs("aygename"))<>"" then%>
        <a href="<%=weburl%><%=trim(rs("aygename"))%>" target="_blank">链接</a> 
        <%elseif rs("ayismd5")=1 then%>
        <a href="<%=weburl%><%=trim(rs("aymd5"))%>" target="_blank">链接</a> 
        <%else%>
        <a href="<%=weburl%><%=rs("aynameid")%>" target="_blank">链接</a> 
        <%end if%>
        <%if cint(rs("ayjibie"))=0 then%>
        <a href="adminddmai.asp?uid=<%=rs("aynameid")%>" target="_blank">订单</a> 
        <%else%>
        <a href="ik_admindd.asp?uid=<%=rs("aynameid")%>&ddku=<%=trim(rs("ddku"))%>" target="_blank">订单</a> 
        <%end if%>
        <a href="admincaiwu.asp?uid=<%=rs("aynameid")%>&cwku=<%=trim(rs("cwku"))%>" target="_blank">财务</a> 
        <a href="admincaiwujin.asp?uid=<%=rs("aynameid")%>&fs=ru" target="_blank">入款</a> 
        <a href="admincaiwujin.asp?uid=<%=rs("aynameid")%>&fs=kou" target="_blank">扣款</a> 
        <a href="adminjiesuanjl.asp?uid=<%=rs("aynameid")%>&cwku=<%=trim(rs("cwku"))%>" target="_blank">结算</a> 
        <a href="adminjiesuanjlxx.asp?uid=<%=rs("ayusername")%>" target="_blank">详细结算</a> 
        <a href="adminfenlei.asp?uid=<%=rs("aynameid")%>" target="_blank">商品分类</a> 
        <a href="admingoodlist.asp?uid=<%=rs("aynameid")%>" target="_blank">商品</a> 
        <a href="ik_adminkucunka.asp?uid=<%=rs("aynameid")%>&ku=<%=trim(rs("kamiku"))%>" target="_blank">卡密</a> 
        <a href="adminuserlog.asp?uid=<%=rs("aynameid")%>&rzku=<%=trim(rs("rzku"))%>" target="_blank">日志</a> 
        <a href="adminuserxx.asp?uid=<%=rs("aynameid")%>" target="_blank">详细日志</a> 
        <a href="adminmailqf.asp?sname=<%=rs("aynameid")%>" target="_blank">邮件通知</a> 
        <a href="adminusertongji.asp?id=<%=rs("aynameid")%>" target="_blank">账务统计</a>   
  		<a style="cursor:pointer" title="<%=rs("aybeizhu")%>" onClick="openwin(530,260,'open.asp?u=<%=rs("aynameid")%>&cact=no')">备注信息</a>
  		<a href="adminuserpic.asp?id=<%=rs("aynameid")%>" target="_blank">商品认证</a> 
        <a href="adminuserpicsfz.asp?id=<%=rs("aynameid")%>" target="_blank">实名认证</a> 
        <a href="ik_adminshoukuanma.asp?uid=<%=rs("aynameid")%>" target="_blank">收款码</a> 
        <!--
        [<a style="color:#009900" href="adminuserzy.asp?sum=1&cid=<%=rs("aynameid")%>">ID间转移数据</a>]  [<a style="color:#009900" href="adminuserkazy.asp?cid=<%=rs("aynameid")%>&kuid=<%=trim(rs("kamiku"))%>">卡密库转移</a>]
  		
  <br>
  &nbsp;&nbsp;邮件操作： <a href="adminbuhuo.asp?act=zizhu0&uid=<%=trim(rs("aynameid"))%>&suid=<%=trim(rs("ayusername"))%>&sname=<%=trim(rs("aytrueuser"))%>&aytel=<%=trim(rs("aytel"))%>&aymail=<%=trim(rs("aymail"))%>" target="_blank" style="color: #FF0000" onClick="javascript:return confirm('您确定要通知商户自行修改商户信息吗？');">【发送商家自助修改商户信息邮件】</a>
        <a href="adminbuhuo.asp?act=zizhu1&uid=<%=trim(rs("aynameid"))%>&suid=<%=trim(rs("ayusername"))%>&sname=<%=trim(rs("aytrueuser"))%>&aytel=<%=trim(rs("aytel"))%>&aymail=<%=trim(rs("aymail"))%>" target="_blank" style="color: #FF0000" onClick="javascript:return confirm('您确定要通知商户自行修改结算信息吗？');">【发送商家自助修改结算信息邮件】</a>
        -->
        
      </td>
      </tr>
    <tr style="background-color:#FFF8EE">
      <td align="center"><span style="color: #FF6600"><strong>ID信息</strong></span></td>
      <td align="left">&nbsp;</td>
      <td align="center">&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td align="center">ID：</td>
      <td align="left"><%=rs("aynameid")%><input name="cid" type="hidden" id="cid" value="<%=rs("aynameid")%>"></td>
      <td align="center">商家级别：</td>
      <td>
<select name="ayjibie" id="ayjibie">
      <option value="9" <%if cint(rs("ayjibie"))=9 then response.Write("selected")%>>系统管理员</option>
      <option value="0" <%if cint(rs("ayjibie"))=0 then response.Write("selected")%>>买家</option>
      <option value="5" <%if cint(rs("ayjibie"))=5 then response.Write("selected")%>>正式商家</option>
      <%set rsujb=server.CreateObject("adodb.recordset")
	  rsujb.open "select * from ayujb where (ayujbgid<>5 and ayujbgid<>9) order by ayjbpaixu asc",conn,1,1
	  if not(rsujb.bof and rsujb.eof) then
	  do while not rsujb.eof
	  %>
      <option value="<%=rsujb("ayujbgid")%>" <%if cint(rs("ayjibie"))=cint(rsujb("ayujbgid")) then response.Write("selected")%>><%=trim(rsujb("ayujbname"))%></option>
      <%
	  rsujb.movenext
	  loop
	  end if
	  rsujb.close
	  %>  
      </select>&nbsp;
	  
	  <%if cint(rs("ayjibie"))=9 then 
	  set rspjb=server.CreateObject("adodb.recordset")
	  sqlpjb="select * from aymaster"
	  rspjb.open sqlpjb,conn,1,1
	  if not(rspjb.bof and rspjb.eof) then%>
	  <select name="aymasterjid" id="aymasterjid">
	  		<option value="0">选择平台人员权限</option>
			<option value="9" <%if cint(rs("aymasterid"))=cint(rspjb("aymasterjid")) or cint(rs("aymasterid"))=9 then response.Write("selected")%>>超级管理员</option>
	  		<%
	  do while not rspjb.eof%>
	  <option value="<%=rspjb("aymasterjid")%>" <%if cint(rs("aymasterid"))=cint(rspjb("aymasterjid")) then response.Write("selected")%>><%=rspjb("aymastername")%></option>
	  <%rspjb.movenext
		loop%>
		</select>
	  <%
	  else%>
	  <a href="ik_adminmaster.asp"> 请添加平台管理人员权限</a>
	  <input name="aymasterjid" type="hidden" id="aymasterjid" value="9">
	  <%end if 
	  rspjb.close
	   end if%>
      </td>
      <td align="center">登陆次数：</td>
      <td><%=rs("aylogcishu")%></td>
    </tr>
    <tr>
      <td align="center">用户名：</td>
      <td align="left"><input name="ayusername" type="text" id="ayusername" value="<%=trim(rs("ayusername"))%>"></td>
      <td align="center">密 码：</td>
      <td><input name="aypassword" type="text" id="aypassword"> <a href="?act=pass&id=<%=rs("aynameid")%>">设置为123456</a></td>
      <td align="center">成交笔数：</td>
      <td><input name="aychengjiao" type="text" id="aychengjiao" value="<%=trim(rs("aychengjiao"))%>"></td>
    </tr>
    <tr>
      <td align="center">真实姓名：</td>
      <td align="left"><input name="aytrueuser" type="text" id="aytrueuser" value="<%=trim(rs("aytrueuser"))%>"></td>
      <td align="center">身份证：</td>
      <td><input name="ayshenfenzheng" type="text" id="ayshenfenzheng" value="<%=trim(rs("ayshenfenzheng"))%>"></td>
      <td align="center">投诉率：</td>
      <td><strong>
      <a target="_blank" href="adminjubaou.asp?uid=<%=rs("aynameid")%>">
      <%
	  '投诉记录
		set rslist=server.CreateObject("adodb.recordset")
		sqllist="select ayjubaouid from ayjubao where ayjubaouid="&rs("aynameid")&"" 
		rslist.open sqllist,conn,1,1
		if not(rslist.bof and rslist.eof) then
		response.Write rslist.RecordCount&"投诉/"
		else
		response.Write "0投诉/"
		end if
		rslist.close
		
		response.Write rs("aychengjiao")&"成交/"
	  %>
      <%=Formatnumber(rs("tousulv"),2,true,-1,0)%>% 
      </a>
      <a href="?act=tongjits&uid=<%=rs("aynameid")%>">统计</a></strong>
      </td>
    </tr>
    <tr>
      <td align="center">注册时间：</td>
      <td align="left"><%=rs("aydata")%></td>
      <td align="center">注册IP：</td>
      <td><%=rs("ayip")%></td>
      <td align="center">受邀商户：</td>
      <td><input name="isyaoqing" type="checkbox" id="isyaoqing" value="1"  <%if cint(rs("isyaoqing"))=1 then response.Write("checked")%>> (勾选为受邀商户)</td>
    </tr>
    <tr>
      <td align="center">最后登录时间：</td>
      <td align="left"><%=rs("aylastdata")%></td>
      <td align="center">最后登录IP：</td>
      <td><%=rs("aylastip")%></td>
      <td align="center">免佣金流量：</td>
      <td><input name="jjmoney" type="text" id="jjmoney" value="<%=Formatnumber(rs("jjmoney"),2,true,0,0)%>"></td>
    </tr>
    <tr>
      <td align="center">手机认证：</td>
      <td align="left"><input name="istelrz" type="checkbox" id="istelrz" value="1"  <%if cint(rs("istelrz"))=1 then response.Write("checked")%>>
        (勾选为已验证)</td>
      <td align="center">邮箱认证：</td>
      <td align="left"><input name="ismailrz" type="checkbox" id="ismailrz" value="1"  <%if cint(rs("ismailrz"))=1 then response.Write("checked")%>>
        (勾选为已验证)</td>
      <td align="center">邀请人：</td>
      <td align="left"><input name="yquserid" type="text" id="yquserid" value="<%=rs("yquserid")%>"></td>
    </tr>
     
    <tr>
      <td align="center">VIP：</td>
      <td align="left"><input name="ayisxiaobao" type="checkbox" id="ayisxiaobao" value="1"  <%if cint(rs("ayisxiaobao"))=1 then response.Write("checked")%>> (勾选为已缴纳)</td>
      <td align="center">VIP金额：</td>
      <td><input name="ayisxiaojin" type="text" id="ayisxiaojin" value="<%=Formatnumber(rs("ayisxiaojin"),2,true,-1,0)%>"><input name="nowxbj" type="hidden" id="nowxbj" value="<%=rs("ayisxiaojin")%>"></td>
      <!--
      <td align="center">消保冻结：</td><td><input name="xblast" type="text" id="xblast" value="<%'=rs("xblast")%>">日期</td>
      -->
    </tr>

    <tr>
      <td align="center">商家自收：</td>
      <td align="left"><input name="isshangzishou" type="checkbox" id="isshangzishou" value="1"  <%if cint(rs("isshangzishou"))=1 then response.Write("checked")%>>  <input name="zishoudate" type="text" id="zishoudate" value="<%=rs("zishoudate")%>" size="18">  过期</td>
      <td align="center"><span style="color: #FF6600">尊贵VIP：</span></td>
      <td><input name="isvipid" type="checkbox" id="isvipid" value="1"  <%if cint(rs("isvipid"))=1 then response.Write("checked")%>>  <input name="vipdate" type="text" id="vipdate" value="<%=rs("vipdate")%>" size="18">  过期</td>
      <td align="center"></td>
      <td>
      </td>
    </tr>
    <tr>
      <td align="center">自收支付宝：</td>
      <td colspan="5" align="left"><input name="iszsali" type="checkbox" id="iszsali" value="1"  <%if cint(rs("iszsali"))=1 then response.Write("checked")%>>是否开启&nbsp;&nbsp;二维码地址：<input name="zsali" type="text" id="zsali" value="<%=trim(rs("zsali"))%>" size="85"> 
        <a href="<%=trim(rs("zsali"))%>" target="_blank">查看</a></td>
      </tr>
    <tr>
      <td align="center">自收微信：</td>
      <td colspan="5" align="left"><input name="iszswei" type="checkbox" id="iszswei" value="1"  <%if cint(rs("iszswei"))=1 then response.Write("checked")%>>是否开启&nbsp;&nbsp;二维码地址：<input name="zswei" type="text" id="zswei" value="<%=trim(rs("zswei"))%>" size="85">
      <a href="<%=trim(rs("zswei"))%>" target="_blank">查看</a></td>
      </tr>
    <tr>
      <td align="center">自收QQ：</td>
      <td colspan="5" align="left"><input name="iszsqq" type="checkbox" id="iszsqq" value="1"  <%if cint(rs("iszsqq"))=1 then response.Write("checked")%>>是否开启&nbsp;&nbsp;二维码地址：<input name="zsqq" type="text" id="zsqq" value="<%=trim(rs("zsqq"))%>" size="85">
      <a href="<%=trim(rs("zsqq"))%>" target="_blank">查看</a></td>
      </tr>
    <tr>
      <td colspan="6" align="left">
		&nbsp;&nbsp;卡密库 <%=trim(rs("kamiku"))%> |
      <!--分类库 <%=trim(rs("flku"))%> |
      商品库 <%=trim(rs("spku"))%> | -->
      订单库 <%=trim(rs("ddku"))%> |
      财务库 <%=trim(rs("cwku"))%> |
      日志库 <%=trim(rs("rzku"))%>
      </td>
    </tr>
    <tr>
      <td align="center"></td>
      <td align="left">&nbsp;</td>
      <td align="center">&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    
    <tr style="background-color:#FFF8EE">
      <td align="center"><span style="color: #FF6600"><strong>联系方式</strong></span></td>
      <td align="left">&nbsp;</td>
      <td align="center">&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td align="center">邮箱：</td>
      <td align="left"><input name="aymail" type="text" id="aymail" value="<%=trim(rs("aymail"))%>"></td>
      <td align="center">电话：</td>
      <td><input name="aytel" type="text" id="aytel" value="<%=trim(rs("aytel"))%>"></td>
      <td align="center">QQ：</td>
      <td><input name="ayqq" type="text" id="ayqq" value="<%=trim(rs("ayqq"))%>"></td>
    </tr>
    <tr>
      <td align="center"><span style="color: #FF6600">关注微信号：</span></td>
      <td align="left"><input name="wxopenid" type="text" id="wxopenid" value="<%=trim(rs("wxopenid"))%>" size="30"></td>
      <td align="center">微信openid:</td>
      <td><input name="kfwxopenid" type="text" id="kfwxopenid" value="<%=trim(rs("kfwxopenid"))%>" size="30"></td>
      <td align="center">QQ openid:</td>
      <td><input name="kfqqopenid" type="text" id="kfqqopenid" value="<%=trim(rs("kfqqopenid"))%>" size="30"></td>
    </tr>
    <tr>
      <td align="center"><span style="color: #FF6600">展示微信号：</span></td>
      <td align="left"><input name="ayweixinid" type="text" id="ayweixinid" value="<%=trim(rs("ayweixinid"))%>" size="30"></td>
      <td align="center">微信号二维码</td>
      <td align="left"><input name="ayweixinpic" type="text" id="ayweixinpic" value="<%=trim(rs("ayweixinpic"))%>" size="30"> [<a href="<%=trim(rs("ayweixinpic"))%>" target="_blank">查</a>]</td>
      <td align="center">二维码审核通过：</td>
      <td align="left">
        <select name="ayisweixinok" id="ayisweixinok">
          <option value="0" <%if trim(cint(rs("ayisweixinok")))=0 then response.Write("selected")%>>未上传</option>
          <option value="1" <%if trim(cint(rs("ayisweixinok")))=1 then response.Write("selected")%>>审核中</option>
          <option value="2" <%if trim(cint(rs("ayisweixinok")))=2 then response.Write("selected")%>>审核通过</option>
          <option value="3" <%if trim(cint(rs("ayisweixinok")))=3 then response.Write("selected")%>>审核失败</option>
          </select></td>
    </tr>
    
    <tr>
      <td align="center"></td>
      <td align="left"></td>
      <td align="center"></td>
      <td></td>
      <td></td>
      <td></td>
    </tr>
    <tr style="background-color:#FFF8EE">
      <td align="center"><span style="color: #FF6600"><strong>安全相关</strong></span></td>
      <td align="left">&nbsp;</td>
      <td align="center">&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td align="center">支付密码：</td>
      <td align="left"><input name="ayanquan" type="text" id="ayanquan"></td>
      <td align="center">
        <span style="color: #FF0000">
          <%
	  if cint(rs("ayjibie"))=9 and cint(rs("aymasterid"))<>9 then 
	  response.Write "后台独立密码"
	  end if
	  %>
          </span>
      </td>
      <td>
        <%
	  if cint(rs("ayjibie"))=9 and cint(rs("aymasterid"))<>9 then %>
        <input name="mdulipa" type="text" id="mdulipa">
        <%end if
	  %>
      </td>
      <td align="center">&nbsp;</td>
      <td></td>
    </tr>
    <tr>
      <td align="center"></td>
      <td align="left"></td>
      <td align="center"></td>
      <td></td>
      <td></td>
      <td></td>
    </tr>
    <tr style="background-color:#FFF8EE">
      <td align="center"><span style="color: #FF6600"><strong>站点信息</strong></span></td>
      <td align="left">&nbsp;</td>
      <td align="center">&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td align="center">站点名称：</td>
      <td align="left"><input name="aywebname" type="text" id="aywebname" value="<%=trim(rs("aywebname"))%>"></td>
      <td align="center">站点url：</td>
      <td><input name="ayweburl" type="text" id="ayweburl" value="<%=trim(rs("ayweburl"))%>"></td>
      <td align="center">个性链接：</td>
      <td><input name="aygename" type="text" id="aygename" value="<%=trim(rs("aygename"))%>"></td>
    </tr>
    <tr>
      <td align="center">关闭数字链接：</td>
      <td align="left"><input name="ayismd5" type="checkbox" id="ayismd5" value="1"  <%if cint(rs("ayismd5"))=1 then response.Write("checked")%>>(勾选为关闭)</td>
      <td align="center">购买提示：</td>
      <td><input name="isbutishi" type="checkbox" id="isbutishi" value="1"  <%if cint(rs("isbutishi"))=1 then response.Write("checked")%>> (勾选为开启)</td>
      <td align="center">商品认证：</td>
      <td><input name="issprz" type="checkbox" id="issprz" value="1"  <%if cint(rs("issprz"))=1 then response.Write("checked")%>> (勾选为需要认证)</td>
    </tr>
    <tr>
      <td align="center"><span style="color: #FF6600">禁用个性链接：</span></td>
      <td align="left"><input name="ayurlno" type="checkbox" id="ayurlno" value="1"  <%if cint(rs("ayurlno"))=1 then response.Write("checked")%>>(勾选为禁用)</td>
      <td align="center"><span style="color: #FF6600">禁用安全链接：</span></td>
      <td><input name="isnoanlink" type="checkbox" id="isnoanlink" value="1"  <%if cint(rs("isnoanlink"))=1 then response.Write("checked")%>>(勾选为禁用)</td>
      <td align="center">实名认证：</td>
      <td><input name="isqzsfz" type="checkbox" id="isqzsfz" value="1"  <%if cint(rs("isqzsfz"))=1 then response.Write("checked")%>> (勾选为需要认证)</td>
    </tr>
    <tr>
      <td align="center"></td>
      <td align="left"></td>
      <td align="center"></td>
      <td></td>
      <td></td>
      <td></td>
    </tr>
    <tr style="background-color:#FFF8EE">
      <td align="center"><span style="color: #FF6600"><strong>权限</strong></span></td>
      <td align="left">&nbsp;</td>
      <td align="center">&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td align="center">ID锁定：</td>
      <td align="left"><input name="ayusersuo" type="checkbox" id="ayusersuo" value="1"  <%if cint(rs("ayusersuo"))=1 then response.Write("checked")%>>(勾选为禁止登陆)</td>
      <td align="center">销售锁定：</td>
      <td><input name="ayispay" type="checkbox" id="ayispay" value="1" <%if cint(rs("ayispay"))=1 then response.Write("checked")%>>(勾选为禁止销售)</td>
      <td align="center">结算锁定：</td>
      <td><input name="ayisjssuo" type="checkbox" id="ayisjssuo" value="1"  <%if cint(rs("ayisjssuo"))=1 then response.Write("checked")%>>(勾选为禁止结算)</td>
    </tr>
    <tr>
      <td align="center"><span style="color: #FF6600">可信商家：</span></td>
      <td align="left"><input name="ischengxin" type="checkbox" id="ischengxin" value="1"  <%if cint(rs("ischengxin"))=1 then response.Write("checked")%>>(转账 收款 加急 申请秒结)</td>
      <td align="center">秒结算：</td>
      <td><input name="ayaisalipayfz" type="checkbox" id="ayaisalipayfz" value="1"  <%if cint(rs("ayaisalipayfz"))=1 then response.Write("checked")%>>(勾选为开启)</td>
      <td align="center">会员审核：</td>
      <td><input name="ayshenhe" type="checkbox" id="ayshenhe" value="1" <%if cint(rs("ayshenhe"))=1 then response.Write("checked")%>>(勾选为已审核)		
      <a href="adminbuhuo.asp?act=shenhe&suid=<%=trim(rs("ayusername"))%>&sname=<%=trim(rs("aytrueuser"))%>&aytel=<%=trim(rs("aytel"))%>&aymail=<%=trim(rs("aymail"))%>&ccat=no" target="_blank" style="color: #FF0000">通知</a></td>
    </tr>
    <tr>
      <td align="center">允许加急：</td>
      <td align="left"><input name="isjiaji" type="checkbox" id="isjiaji" value="1"  <%if cint(rs("isjiaji"))=1 then response.Write("checked")%>>(勾选为允许)</td>
      <td align="center">允许充值：</td>
      <td><input name="istixian" type="checkbox" id="istixian" value="0"  <%if cint(rs("istixian"))=0 then response.Write("checked")%>>(勾选为允许)</td>
      <td align="center">支持秒退款：</td>
      <td><input name="ismiaotui" type="checkbox" id="ismiaotui" value="1"  <%if cint(rs("ismiaotui"))=1 then response.Write("checked")%>>(勾选为支持)</td>
    </tr>
    <tr>
      <td align="center"><span style="color: #FF6600">登录购买：</span></td>
      <td align="left">
	  <select name="isbuylog" id="isbuylog">
      <option value="0" <%if cint(rs("isbuylog"))=0 then response.Write("selected")%>>不限制,随全局设置</option>
      <option value="1" <%if cint(rs("isbuylog"))=1 then response.Write("selected")%>>强制买家登录购买</option>
      <option value="2" <%if cint(rs("isbuylog"))=2 then response.Write("selected")%>>关闭买家登录购买</option>
      </select>
	  <select name="iseditbuy" id="iseditbuy">
      <option value="0" <%if cint(rs("iseditbuy"))=0 then response.Write("selected")%>>商家可改</option>
      <option value="1" <%if cint(rs("iseditbuy"))=1 then response.Write("selected")%>>商家禁改</option>
      </select>
      </td>
      <td align="center"></td>
      <td align="left">&nbsp;</td>
      <td align="left"></td>
      <td align="left"></td>
      </tr>
    <tr>
      <td align="center">销售限制:</td>
      <td align="left">
	  <select name="shangjiabao" id="shangjiabao">
      <option value="0" <%if cint(rs("shangjiabao"))=0 then response.Write("selected")%>>不限制,随全局设置</option>
      <option value="1" <%if cint(rs("shangjiabao"))=1 then response.Write("selected")%>>非VIP会员禁止上架销售</option>
      <option value="2" <%if cint(rs("shangjiabao"))=2 then response.Write("selected")%>>允许上架销售</option>
      </select>
      </td>
      <td align="center"><span style="color: #FF6600">结算限制：</span></td>
      <td align="left">
	  <select name="tousutixian" id="tousutixian">
      <option value="0" <%if cint(rs("tousutixian"))=0 then response.Write("selected")%>>不限制,随全局设置</option>
      <option value="1" <%if cint(rs("tousutixian"))=1 then response.Write("selected")%>>投诉未撤销禁止结算</option>
      <option value="2" <%if cint(rs("tousutixian"))=2 then response.Write("selected")%>>允许结算</option>
      </select>

      </td>
      <td align="left">订单单笔上限：</td>
      <td align="left"><input name="ddmaxj" type="text" id="ddmaxj" value="<%=rs("ddmaxj")%>"></td>
      </tr>
    <tr>
      <td align="center">接口强制:</td>
      <td colspan="5" align="left">
      <%
	  isjiekou=trim(rs("isjiekou"))
	  isjiekoustr=split(trim(rs("isjiekou")),"|")
	  %>
      <input name="isjiekou0" type="checkbox" id="isjiekou0" value="1"  <%if cint(isjiekoustr(0))=1 then response.Write("checked")%>>网银&nbsp;&nbsp;
      <input name="isjiekou1" type="checkbox" id="isjiekou1" value="1"  <%if cint(isjiekoustr(1))=1 then response.Write("checked")%>>支付宝&nbsp;&nbsp;
      <input name="isjiekou2" type="checkbox" id="isjiekou2" value="1"  <%if cint(isjiekoustr(2))=1 then response.Write("checked")%>>财付通&nbsp;&nbsp;
      <input name="isjiekou3" type="checkbox" id="isjiekou3" value="1"  <%if cint(isjiekoustr(3))=1 then response.Write("checked")%>>微信&nbsp;&nbsp;
      <input name="isjiekou4" type="checkbox" id="isjiekou4" value="1"  <%if cint(isjiekoustr(4))=1 then response.Write("checked")%>>手Q&nbsp;&nbsp;
      <input name="isjiekou5" type="checkbox" id="isjiekou5" value="1"  <%if cint(isjiekoustr(5))=1 then response.Write("checked")%>>京东&nbsp;&nbsp;
      </td>
      </tr>
    <tr>
      <td align="center">&nbsp;</td>
      <td align="left">&nbsp;</td>
      <td align="center">&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>



    <tr style="background-color:#FFF8EE">
      <td align="center"><span style="color: #FF6600"><strong>收款信息</strong></span></td>
      <td align="left">[<a onClick="javascript:return confirm('您确定要操作吗？');" href="?id=<%=id%>&cwku=<%=trim(rs("cwku"))%>&act=acwjs">清除未结算订单</a>]<input name="nowmoshi" type="hidden" id="nowmoshi" value="<%=rs("ayjiesuanms")%>"></td>
      <td align="center">&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td align="center">结算模式：</td>
      <td><select name="ayjiesuanms" id="ayjiesuanms">
     	  <option value="5" <%if trim(cint(rs("ayjiesuanms")))=5 then response.Write("selected")%>>自助提现模式</option>
          <option value="3" <%if trim(cint(rs("ayjiesuanms")))=3 then response.Write("selected")%>>系统自动结算</option>
          <!--
          <option value="4" <%'if trim(cint(rs("ayjiesuanms")))=4 then response.Write("selected")%>>小额结算模式</option>
          <option value="2" <%'if trim(cint(rs("ayjiesuanms")))=2 then response.Write("selected")%>>中额结算模式</option>
          <option value="1" <%'if trim(cint(rs("ayjiesuanms")))=1 then response.Write("selected")%>>大额结算模式</option> 
          -->
		  
        </select></td>
      <td align="center">收款姓名：</td>
      <td><input name="aytrueuser2" type="text" id="aytrueuser2" value="<%=trim(rs("aytrueuser"))%>"></td>
      <td align="center"></td>
      <td></td>
    </tr>
  
    <tr>
      <td align="center">新结算账号：</td>
      <td colspan="5">
							<%
							set rsjs=server.CreateObject("adodb.recordset")
							sqljs="select * from ayjiesuanid where ayjuid="&id&" order by ayjisdel asc,ayjid asc" 
							rsjs.open sqljs,conn,1,1
							do while not rsjs.eof
							
							response.Write trim(rsjs("ayjname"))&"&nbsp;&nbsp;"
							
							if cint(rsjs("ayjfs"))=1 then response.Write "<img src="&ossurl&"images/jz.gif width=20 />  支付宝账号&nbsp;&nbsp;"
							if cint(rsjs("ayjfs"))=4 then response.Write "<img src="&ossurl&"images/jw.gif width=20 />  微信账号&nbsp;&nbsp;"
							if cint(rsjs("ayjfs"))=3 then response.Write "<img src="&ossurl&"images/jyl.gif width=25 />  银行卡号&nbsp;&nbsp;"
														
							
							response.Write trim(rsjs("ayjcard"))&"&nbsp;&nbsp;"
							
							if cint(rsjs("ayjfs"))=3 then
							response.Write "【"&trim(rsjs("ayjbank"))&"-"&trim(rsjs("ayjzhihang"))&"】&nbsp;&nbsp;"
							else
							response.Write "<a href="&trim(rsjs("ayjpic"))&" target=_blank>【查看收款码】</a>"
							if cint(rsjs("ayjpicisok"))=2 then response.Write "<a style=color:#F00 href=jiesuan_edit?id="&rsjs("ayjid")&">- 收款码有误请重新上传</a>"
							end if
							
							if cint(rsjs("ayjisdel"))=0 then response.Write "<span style=color:#390>【正常使用中】</span>"
							if cint(rsjs("ayjismoren"))=1 and cint(rsjs("ayjisdel"))=0 then response.Write "<span style=color:#090>【默认账号】</span>"
							if cint(rsjs("ayjisdel"))=1 then response.Write "【已删除】"
							
							response.Write "<br>"
							
							rsjs.movenext 
							loop
							rsjs.close
							

                            %>
      </td>
      </tr>
 

    
    <tr>
      <td colspan="6" align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" name="Submit" value=" 修 改 以 上 商 户 信 息 ">
        <input name="cid1" type="hidden" id="cid1" value="<%=rs("aynameid")%>"></td>
    </tr>
  </table>
  </form>
  
  <form action="?act=editok2" method="post" name="form2" id="form2">
  <table width="1050" border="0" cellspacing="0" cellpadding="0" class="table_style_a1">
    <tr>
      <td align="center"></td>
      <td align="left"></td>
      <td align="center"></td>
      <td></td>
      <td></td>
      <td></td>
    </tr>
    <tr style="background-color:#FFF8EE">
      <td align="center"><span style="color: #FF6600"><strong>财务信息</strong></span></td>
      <td align="left">&nbsp;</td>
      <td align="center">&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td height="30" align="center">账户余额：</td>
      <td><input name="ayyue" type="text" id="ayyue" value="<%=Formatnumber(rs("ayyue"),4,true,-1,0)%>"> 
      <input name="cid" type="hidden" id="cid" value="<%=rs("aynameid")%>">
      </td>
      <td align="center">待分账：</td>
      <td><input name="ayalipayyu" type="text" id="ayalipayyu" value="<%=Formatnumber(rs("ayalipayyu"),2,true,-1,0)%>"></td>
      <td align="center">冻结金额：</td>
      <td><input name="aydongjie" type="text" id="aydongjie" value="<%=Formatnumber(rs("aydongjie"),2,true,-1,0)%>"></td>
    </tr>
    <tr>
      <td height="30" align="center">消费金额：</td>
      <td><input name="ayxiaofei" type="text" id="ayxiaofei" value="<%=Formatnumber(rs("ayxiaofei"),2,true,-1,0)%>"></td>
      <td align="center">积分：</td>
      <td><input name="ayjifen" type="text" id="ayjifen" value="<%=rs("ayjifen")%>"></td>
      <td align="center">提现余额：</td>
      <td><input name="aytxsy" type="text" id="aytxsy" value="<%=Formatnumber(rs("aytxsy"),2,true,-1,0)%>"></td>
    </tr>
    <tr>
      <td height="30" align="center">累计结算：</td>
      <td><input name="ayljjs" type="text" id="ayljjs" value="<%=Formatnumber(rs("ayljjs"),3,true,-1,0)%>"></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td align="center">预存佣金：</td>
      <td><input name="yongjin" type="text" id="yongjin" value="<%=Formatnumber(rs("yongjin"),2,true,-1,0)%>"></td>
    </tr>
    <tr>
      <td height="30" colspan="6">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" name="Submit" value=" 修 改 账 户 资 金 "></td>
      </tr>
  </table>
</form>



  <form action="?act=zhuxiao" method="post" name="form2" id="form2">
  <table width="1050" border="0" cellspacing="0" cellpadding="0" class="table_style_a1">
    <tr>
      <td colspan="4" align="center"></td>
      </tr>
    <tr style="background-color:#FFD9D9">
      <td colspan="4" align="center"><span style="color:#F00"><strong>重要操作</strong></span></td>
      </tr>
    <tr>
      <td width="103" height="30" align="center"><span style="color: #FF6600"><strong>ID注销</strong></span><input name="zid" type="hidden" id="zid" value="<%=id%>"></td>
      <td width="113"><input name="iszhuxiao" type="checkbox" id="iszhuxiao" value="1"  <%if cint(rs("iszhuxiao"))=1 then response.Write("checked")%>>(是否注销ID)</td>
      <td width="131"><input type="submit" name="Submit" value=" 确 认 注 销 操 作 "  onclick="javascript:return confirm('您确定要此次操作吗？');"></td>
      <td width="701">ID注销不同于删除ID，并非从数据库删除数据，ID注销相当于前台ID消失，仍可供管理员查看该ID所有相关记录，包括注销ID/分类/商品/卡密。为保障安全，保密及稳定性，已注销的ID不支持恢复</td>
      </tr>
  </table>
</form>
</DIV>
 

</DIV></DIV>
<DIV class=clear></DIV></DIV>
</DIV>
<SCRIPT>
$(function(){
$('.left_title').each(function(){
   $(this).click(function(){
	   var index=$('.left_title').index(this);
	   if($(this).next().hasClass('hide_m')){
		   $(this).next().removeClass('hide_m');
           $(this).next().show();		 
		   $(this).find('img').attr('src','<%=ossurl%>images/expansion.gif');
		   $.cookie('m_index_'+index,'',{expires:0});
	   } else {
	       $(this).next().hide();
		   $(this).next().addClass('hide_m');
		   $(this).find('img').attr('src','<%=ossurl%>images/shrank.gif');		   
		   $.cookie('m_index_'+index,'none',{expires:365});
	   }
   })
})

$('.left_title').each(function(){
	var index=$('.left_title').index(this);
    $(this).next().css('display',$.cookie('m_index_'+index) ? $.cookie('m_index_'+index) : '');
	if($.cookie('m_index_'+index)){
	    $(this).next().addClass('hide_m');
	}
	$(this).find('img').attr('src',$.cookie('m_index_'+index) ? '<%=ossurl%>images/shrank.gif' : '<%=ossurl%>images/expansion.gif');
})
})

</SCRIPT>


<!--#include virtual="/show/footadmin.asp"-->

