<%
'@@0manage/1s_uduy/2list|yun/3page/4psize/5ssx/6ssm/7ssf/8ssp/9sss.HTML
'@@0manage/1s_uduy/2edit|add|del/3*id.HTML

'@@0s_uduy/1list|yun/2page/3psize/4ssx/5ssm/6ssf/7ssp/8sss.HTML
'@@0s_uduy/1edit|add/2*id.HTML
'@@0s_uduy/1show/2*sn|-.HTML

if e_xa<1 and (aibj(g_u0,s_uduy) or aibj(g_u1,s_uduy)) then
e_xa=e_xa+1
Call esq()
Call doq(1,e_uer,7,g_u0,s_uduy,s_uduys&s_umlbs)

if (e_gdj>2 or e_uty>1) and aibj(g_u0,s_umgl) and aibj(g_u1,s_uduy) and aibj(g_u3,s_umtj) then
Call uyadd(1,g_u2)
elseif aibj(g_u0,s_uduy) and aibj(g_u2,s_umfb) then
e_skc=dosk("a","frm",""):Call uyadd(0,g_u1)
elseif aibj(g_u0,s_uduy) and aibj(g_u2,s_umtj) then
Call uyadd(0,g_u1)
elseif aibj(g_u0,s_uduy) and aibj(g_u2,"asai") then
Call uyadd(0,g_u1)
elseif aibj(g_u0,s_umgl) and aibj(g_u1,s_uduy) and aibj(g_u3,s_umxg) and aiint(g_u4)>0 then
Call uyedit(1)
elseif aibj(g_u0,s_uduy) and aibj(g_u2,s_umxg) then
Call uyedit(0)
elseif (e_gdj>2 or e_uty>1) and aibj(g_u0,s_umgl) and aibj(g_u1,s_uduy) and (aibj(g_u3,s_umxx) or aibj(g_u3,s_umzs)) and not ainull(g_u4) then
Call uyshow(g_u4)
elseif aibj(g_u0,s_uduy) and (aibj(g_u2,s_umxx) or aibj(g_u2,s_umzs)) and not ainull(g_u3) then
Call uyshow(g_u3)
elseif (e_gdj>2 or e_uty>1) and aibj(g_u0,s_umgl) and aibj(g_u1,s_uduy) and ((aibj(g_u3,s_umsc) and aiint(g_u4)>0) or aibj(g_u3,s_umsc&"-x")) then
Call uydel(1)
elseif aibj(g_u0,s_uduy) and ((aibj(g_u2,s_umsc) and aiint(g_u3)>0) or aibj(g_u2,s_umsc&"-x")) then
Call uydel(0)
elseif (e_gdj>2 or e_uty>1) and aibj(g_u0,s_umgl) and aibj(g_u1,s_uduy) and dkdir(2,g_u3) then
Call uylist(1)
elseif aibj(g_u0,s_uduy) and dkdir(2,g_u2) then
Call uylist(0)
end if
'------get skin 0
if ainull(e_skc) then
if aibj(g_u0,s_umgl) then
e_skc=dosk("a","admin","")
else
e_skc=dosk("b","10","uy")
end if
end if
'------get skin 1
Response.Write esr(0,e_skc):Response.End()
end if
'-----------------------------------
'Data Table
'=uylie()
'-----------------------------------
Function uylie(uyfty)
if uyfty="form" then
uylie="sn,ty,yr,uh,tm,t1,j1,e1,s1,j2,e2,s2,j3,e3,s3,m1,h1,c1,d1,m2,h2,c2,d2,fk,ft,xy,pf,ot,xt"
elseif uyfty=s_umlb then
'@@uy_id,1uy_sn,2uy_ty,3uy_yr,4uy_uh,5uy_tm,6uy_t1,7uy_j1,8uy_e1,9uy_s1,10uy_j2,11uy_e2,12uy_s2,13uy_j3,14uy_e3,15uy_s3,16uy_fk,17uy_ft,18uy_xy,19uy_pf
uylie="uy_id,uy_sn,uy_ty,uy_yr,uy_uh,uy_tm,uy_t1,uy_j1,uy_e1,uy_s1,uy_j2,uy_e2,uy_s2,uy_j3,uy_e3,uy_s3,uy_fk,uy_ft,uy_xy,uy_pf"
elseif uyfty="all" then
uylie="uy_id,uy_sn,uy_ty,uy_yr,uy_uh,uy_tm,uy_t1,uy_j1,uy_e1,uy_s1,uy_j2,uy_e2,uy_s2,uy_j3,uy_e3,uy_s3,uy_m1,uy_h1,uy_c1,uy_d1,uy_m2,uy_h2,uy_c2,uy_d2,uy_fk,uy_ft,uy_xy,uy_pf,uy_ot,uy_xt"
end if
End Function
'-----------------------------------
'uy menu
'=uyme()
'-----------------------------------
Function uyme()
uyme="<div class=""l-ra""><ul>"
dim uymrr,uymi
uymrr=split(i_buyty,"|")
uyme=uyme&"<li>"
uyme=uyme&"<img"&iclbico("uy","01")&"><a"
if ainull(g_u1) or (aibj(s_umgl,g_u0) and ainull(g_u2)) then uyme=uyme&" class=""l-va"""
uyme=uyme&" href="""&eshref(s_uduy&g_urz,1)&""">"&s_umqbs&s_uduys&"</a></li>"
for uymi=0 to ubound(uymrr)
if uymi mod 2=0 then
uyme=uyme&"<li class=""l-1"">"
else
uyme=uyme&"<li>"
end if
uyme=uyme&icmenuico(1,1)&"<a"
if aibj(g_u1,uymi) or (aibj(s_umgl,g_u0) and aibj(g_u2,uymi)) then uyme=uyme&" class=""l-va"""
uyme=uyme&" href="""&eshref(s_uduy&g_urg&uymi&g_urg&d_suyls&g_urz,1)&""">"&uymrr(uymi)&"</a></li>"
next
uyme=uyme&"</ul></div>"
End Function
'-----------------------------------
'add/edit form
'=uyform(uyfty=0add|1edit,uyfqx=show ty)
'-----------------------------------
Function uyform(uyfty,uyfqx,uyftyy)
dim uydsbs,uydbd,uydls,uydgz
uyform=""
uydbd=0
uydls=""
if uyfty=1 then
'--------------------------------CONTENT 0
icdcb=uylbt(0,uy_sn,uy_ty,uy_tm,uy_j1,uy_e1,uy_fk,uy_xy,uy_pf)
'--------------------------------HENG 0
icdcd="发起时间："&aitm(uy_tm,9)
if not aibj(uy_tm,uy_t1) then icdcd=icdcd&" 更新时间："&aitm(uy_t1,9)
'--------------------------------HENG 1
if aibj(uy_ty,"5") then
icdcg=icdcg&"<li class=""l-1"">当前状态："
if aibj(uy_xy,"0") then
icdcg=icdcg&"卖家支付定金</li>"
else
icdcg=icdcg&""&aiarr(i_buyxy,"|",aiint(uy_xy))&"</li>"
end if
if aiint(uy_j3)>0 then icdcg=icdcg&"<li>成交价格：<b>"&uy_j3&"</b> "
if aiint(uy_fk)=0 then
icdcg=icdcg&"枚 金币"
elseif aiint(uy_fk)=1 then
icdcg=icdcg&"点 经验"
else
icdcg=icdcg&"元("&aiarr(i_buyfk,"|",4)&")"
end if
icdcg=icdcg&"</li>"

icdcg=icdcg&"<li class=""l-1"">买家信息：<b>"&usren(uy_e1)&"</b>"
if aiint(uy_j1)>0 then
icdcg=icdcg&" 支付定金 <b>"&uy_j1&"</b> "
if aiint(uy_fk)=0 then
icdcg=icdcg&"枚 金币"
elseif aiint(uy_fk)=1 then
icdcg=icdcg&"点 经验"
else
icdcg=icdcg&"元("&aiarr(i_buyfk,"|",2)&")"
end if
end if
if not ainull(uy_s1) then icdcg=icdcg&"说：<b>"&uy_s1&"</b>"
icdcg=icdcg&"</li>"


icdcg=icdcg&"<li>卖家信息：<b>"&usren(uy_e2)&"</b>"
if aiint(uy_j2)>0 then
icdcg=icdcg&" 支付定金 <b>"&uy_j2&"</b> "
if aiint(uy_fk)=0 then
icdcg=icdcg&"枚 金币"
elseif aiint(uy_fk)=1 then
icdcg=icdcg&"点 经验"
else
icdcg=icdcg&"元("&aiarr(i_buyfk,"|",2)&")"
end if
end if
if not ainull(uy_s2) then icdcg=icdcg&"说：<b>"&uy_s2&"</b>"
icdcg=icdcg&"</li>"

if not ainull(uy_s3) then icdcg=icdcg&"<li class=""l-1"">客服专员：<b>"&usren(uy_e3)&"</b> 说 <b>"&uy_s3&"</b></li>"
elseif aibj(uy_ty,"6") then
icdcg=icdcg&"<li>"&s_uduys&"状态："&aiarr(i_buyxy,"|",aiint(uy_xy))&"</li>"
icdcg=icdcg&"<li>付款方式："&aiarr(i_buyfk,"|",aiint(uy_fk))&"</li>"
icdcg=icdcg&"<li>付款状态："&aiarr(i_buyft,"|",aiint(uy_ft))&"</li>"
if aiint(uy_j1)>0 then icdcg=icdcg&"<li>买家支付：<b>"&uy_j1&"</b>("&usren(uy_e1)&")</li>"
if not ainull(uy_s1) then icdcg=icdcg&"<li>买家留言：<b>"&uy_s1&"</b></li>"
if aiint(uy_j2)>0 then icdcg=icdcg&"<li>卖家获得："&uy_j2&"("&usren(uy_e2)&")</li>"
if not ainull(uy_s2) then icdcg=icdcg&"<li>卖家留言：<b>"&uy_s2&"</b></li>"
if aiint(uy_j3)>0 then icdcg=icdcg&"<li>证方奖励："&uy_j3&"("&usren(uy_e3)&")</li>"
if not ainull(uy_s3) then icdcg=icdcg&"<li>证方留言：<b>"&uy_s3&"</b></li>"
else
icdcg=icdcg&"<li class=""l-1"">"&s_uduys&"状态："
if aibj(uy_ty,"8") then
icdcg=icdcg&""&aiarr(i_buyxy,"|",aiint(uy_xy))&""
else
icdcg=icdcg&""&aiarr(i_buyxy,"|",aiint(uy_xy))&""
end if
icdcg=icdcg&"</li>"
icdcg=icdcg&"<li>付款方式："&aiarr(i_buyfk,"|",aiint(uy_fk))&"</li>"
icdcg=icdcg&"<li class=""l-1"">付款状态："&aiarr(i_buyft,"|",aiint(uy_ft))&"</li>"
icdcg=icdcg&"<li>买家信息：<b>"&usren(uy_e1)&"</b>"
if aiint(uy_j1)>0 then
icdcg=icdcg&" 花 <b>"&uy_j1&"</b> "
if aiint(uy_fk)=0 then
icdcg=icdcg&"枚 金币"
elseif aiint(uy_fk)=1 then
icdcg=icdcg&"点 经验"
else
icdcg=icdcg&"元("&aiarr(i_buyfk,"|",aiint(uy_fk))&")"
end if
end if
if not ainull(uy_s1) then icdcg=icdcg&"说：<b>"&uy_s1&"</b>"
icdcg=icdcg&"</li>"

icdcg=icdcg&"<li class=""l-1"">卖家信息：<b>"&usren(uy_e2)&"</b>"
if aiint(uy_j2)>0 then
icdcg=icdcg&" 获 <b>"&uy_j2&"</b> "
if aiint(uy_fk)=0 then
icdcg=icdcg&"枚 金币"
elseif aiint(uy_fk)=1 then
icdcg=icdcg&"点 经验"
else
icdcg=icdcg&"元("&aiarr(i_buyfk,"|",aiint(uy_fk))&")"
end if
end if
if not ainull(uy_s2) then icdcg=icdcg&"说：<b>"&uy_s2&"</b>"
icdcg=icdcg&"</li>"

if not ainull(uy_e3) then
icdcg=icdcg&"<li>证方信息：<b>"&usren(uy_e3)&"</b>"
if aiint(uy_j3)>0 then
icdcg=icdcg&" 获 <b>"&uy_j3&"</b> "
if aiint(uy_fk)=0 then
icdcg=icdcg&"枚 金币"
elseif aiint(uy_fk)=1 then
icdcg=icdcg&"点 经验"
else
icdcg=icdcg&"元("&aiarr(i_buyfk,"|",aiint(uy_fk))&")"
end if
end if
if not ainull(uy_s3) then icdcg=icdcg&"说：<b>"&uy_s3&"</b>"
icdcg=icdcg&"</li>"
end if
end if

if aiint(uy_pf)>0 then icdcg=icdcg&"<li>"&s_uduys&"评分："&aiarr(i_buypf,"|",aiint(uy_pf))&"</li>"

icdcg=icdcg&"<div class=crg></div>"

if not ainull(uy_yr) then
if aibj(uy_ty,"0") then
icdcg=icdcg&"<li class=""c-h"">建议反馈</li>"'tit
elseif aibj(uy_ty,"1") then
icdcg=icdcg&"<li class=""c-h"">充值信息说明</li>"'tit
else
icdcg=icdcg&"<li class=""c-h"">交易内容</li>"'tit
end if
if aiint(uy_ty)>1 and aiint(uy_ty)<5 then
icdci=ddread(uy_yr,uy_uh)
elseif aibj(uy_ty,"5") then
icdci="<a target=""_blank"" href="""&eshref(s_umxx&g_urg&uy_uh&g_urz,1)&""">"&uy_yr&"</a>"
else
icdci=uy_yr
end if
icdci=icdci&"<div class=crg></div>"
end if

if aibj(uy_ty,"0") then
if not ainull(uy_m1) then
uydls=uydls&"<li class=""c-h"">提现人信息</li>"'tit
uydls=uydls&"<div class=""c-i"">姓名："&uy_m1
if not ainull(uy_h1) then uydls=uydls&"<br>电话："&uy_h1
if not ainull(uy_c1) then uydls=uydls&"<br>城市："&uy_c1
if not ainull(uy_d1) then uydls=uydls&"<br>账户："&uy_d1
if not ainull(uy_s1) then uydls=uydls&"<br><br>备注："&uy_s1
uydls=uydls&"</div>"
end if
if not ainull(uy_m2) then
uydls=uydls&"<li class=""c-h"">承接人信息</li>"'tit
uydls=uydls&"<div class=""c-i"">姓名："&uy_m2
if not ainull(uy_h2) then uydls=uydls&"<br>电话："&uy_h2
if not ainull(uy_c2) then uydls=uydls&"<br>城市："&uy_c2
if not ainull(uy_d2) then uydls=uydls&"<br>账户："&uy_d2
if not ainull(uy_s2) then uydls=uydls&"<br><br>备注："&uy_s2
uydls=uydls&"</div>"
end if
elseif aibj(uy_ty,"1") then
if not ainull(uy_m2) then
uydls=uydls&"<li class=""c-h"">充值人信息</li>"'tit
uydls=uydls&"<div class=""c-i"">姓名："&uy_m2
if not ainull(uy_h2) then uydls=uydls&"<br>电话："&uy_h2
if not ainull(uy_c2) then uydls=uydls&"<br>城市："&uy_c2
if not ainull(uy_d2) then uydls=uydls&"<br>信息："&uy_d2
if not ainull(uy_s2) then uydls=uydls&"<br><br>备注："&uy_s2
uydls=uydls&"</div>"
end if
else
if not ainull(uy_m1) then
uydls=uydls&"<li class=""c-h"">买家信息</li>"'tit
uydls=uydls&"<div class=""c-i"">买家："&uy_m1
if not ainull(uy_h1) then uydls=uydls&"<br>电话："&uy_h1
if not ainull(uy_c1) then uydls=uydls&"<br>地址："&uy_c1
if not ainull(uy_d1) then uydls=uydls&" "&uy_d1
if not ainull(uy_s1) then uydls=uydls&"<br><br>备注："&uy_s1
uydls=uydls&"</div>"
end if
if not ainull(uy_m2) then
uydls=uydls&"<li class=""c-h"">卖家信息</li>"'tit
uydls=uydls&"<div class=""c-i"">买家："&uy_m2
if not ainull(uy_h2) then uydls=uydls&"<br>电话："&uy_h2
if not ainull(uy_c2) then uydls=uydls&"<br>地址："&uy_c2
if not ainull(uy_d2) then uydls=uydls&" "&uy_d2
if not ainull(uy_s2) then uydls=uydls&"<br><br>备注："&uy_s2
uydls=uydls&"</div>"
end if
end if
icdty=9
uyform=uyform&icnr(icdty,icddm,icdcb,icdcc,icdcd,icdcf,icdcg,icdci,icdcj,icdcm)
'--------------------------------CONTENT 1
else
uy_sn="UY"&aisn(1)
uy_tm=now()
uy_t1=uy_tm
uy_pf=0
uy_j1=0
uy_e1=e_uer
uy_j2=0
uy_j3=0
uy_fk=0
uy_ft=0
uy_xy=0
if not ainull(uyftyy) then
uy_ty=aiint(uyftyy)
else
uy_ty=7
end if
if aibj(uyftyy,"5") then
uy_xt=espxx("上缴"&s_uduys&"保证金"&i_gg&e_uer)
else
uy_xt=espxx("发起"&s_uduys&i_gg&e_uer)
end if
end if

if uyfty=1 and aiint(uy_xy)<2 then
uy_t1=now()
uy_xt=uy_xt&espxx("操作，(订单原状态为{"&aiarr(i_buyxy,"|",aiint(uy_xy))&"})"&i_gg&e_uer)
end if

if uyfqx=1 then
if e_gdj<3 then uyfqx=0
end if

if aibj(e_uer,uy_e2) then
if ainull(uy_c2) then uy_c2=us_ct
if ainull(uy_d2) then uy_d2=us_dz
if ainull(uy_m2) then uy_m2=us_bt
if ainull(uy_h2) then uy_h2=us_dh
else
if ainull(uy_c1) then uy_c1=us_ct
if ainull(uy_d1) then uy_d1=us_dz
if ainull(uy_m1) then uy_m1=us_bt
if ainull(uy_h1) then uy_h1=us_dh
end if
uydls=uydls&"<div class=""l-f""><form id=""EESaiForm"" name=""EESaiForm"" action="""
if uyfty=1 then
if aibj(g_u0,s_umgl) then
uydls=uydls&eshref(s_umgl&g_urg&s_uduy&g_urg&uy_ty&g_urg&s_umxg&g_urg&uy_id&g_urz,66)
else
uydls=uydls&eshref(s_uduy&g_urg&uy_ty&g_urg&s_umxg&g_urg&uy_sn&g_urz,77)
end if
end if
uydls=uydls&""" method=""post"" AUTOCOMPLETE=""off""><ul>"
if uyfqx=1 and aiint(e_gdj)>2 then'0-1-A admin/***
uydbd=1
uydls=uydls&"<li class=""c-h"">管理员处理订单</li>"'tit
if uyfty=0 then
if g_u2="1" then'|1充值服务admin/deal/add/ty-1/e2/j1.html
uy_ty=1
uy_fk=2
uy_ft=2
uy_e2=g_u4
uy_j1=aiint(g_u5)
uy_e1=ew_kt
elseif g_u2="8" then'|8出售定制admin/deal/add/ty-8/e1/j1.html
uy_xy=1
uy_j2=uy_j1
uy_ty=aiint(g_u2)
uy_e2=e_uer
uy_j1=aiint(g_u5)
uy_e1=g_u4
uy_fk=aiint(g_u6)
else'0提现服务|2官方服务|3商家服务|4个人交易|5竞拍服务|6定金交易|7购买定制|9红包服务
uy_ty=aiint(g_u2)
uy_e2=g_u4
uy_j1=aiint(g_u5)
uy_e1=e_uer
uy_fk=aiint(g_u6)
end if
end if
if uyfty=1 and aiint(uy_ty)<2 then uydls=uydls&"<li class=""l-2"">提示：这是一个["&aiarr(i_buyty,"|",aiint(uy_ty))&"]订单，请慎重操作！（注意：涉及金钱的交易必须进行星级评价后才能到帐！）</li><div class=crg></div>"
uydls=uydls&"<li class=""l-1"">单号："&aiinput("","sn","",0,50,"*","f-a1|f-b1|f-c1",uy_sn)&"时间："&aiinput("","tm","",99,200,"*","f-a1|f-b1|f-c1",uy_tm)&"更新："&aiinput("","t1","",99,200,"*","f-a2|f-b2|f-c2",uy_t1)&"<script src="""&eshref(i_dir&"GuoYanSai/FTM.js",3)&"""></script></li>"
uydls=uydls&"<li>类型："&aiselect("ty","","*交易类型","f-s1",uy_ty,"0",i_buyty)&"状态："&aiselect("xy","","*交易状态","f-s1",uy_xy,0,i_buyxy)&"付方："&aiselect("fk","","*付款方式","f-s1",uy_fk,0,i_buyfk)&"付态："&aiselect("ft","","*付款状态","f-s1",uy_ft,0,i_buyft)&"</li>"
uydls=uydls&"<li class=""l-1"">买家："&aiinput("","e1","",0,50,"*","f-a1|f-b1|f-c1",uy_e1)&"买出："&aiinput("","j1","",6,50,"*直接填写数字","f-a1|f-b1|f-c1",uy_j1)&"买注："&aiinput("","s1","",0,200,"买家备注信息","f-a2|f-b2|f-c2",uy_s1)&"</li>"
uydls=uydls&"<li>卖家："&aiinput("","e2","",0,50,"*","f-a1|f-b1|f-c1",uy_e2)&"卖得："&aiinput("","j2","",6,50,"*直接填写数字","f-a1|f-b1|f-c1",uy_j2)&"卖注："&aiinput("","s2","",0,200,"卖家备注信息","f-a2|f-b2|f-c2",uy_s2)&"</li>"
uydls=uydls&"<li class=""l-1"">证方："&aiinput("","e3","",0,50,"*","f-a1|f-b1|f-c1",uy_e3)&"证获："&aiinput("","j3","",6,50,"*直接填写数字","f-a1|f-b1|f-c1",uy_j3)&"证注："&aiinput("","s3","",0,200,"证方备注信息","f-a2|f-b2|f-c2",uy_s3)&"</li>"
uydls=uydls&"<li>优惠："&aiinput("","uh","",0,200,"*请直接添加可用优惠券号码及优惠规则（样本：优惠券减免额度|优惠券使用限额|优惠券号码|发券人）","f-a4|f-b4|f-c4",uy_uh)&"</li>"
uydls=uydls&"<li class=""l-1"">内容："&aitext("yr","","",0,8000,"*交易内容","f-x4|f-y4|f-z4",uy_yr)&"</li>"
uydls=uydls&"<li>买家："&utselect(1,"",uy_c1,"c1","")&"</li>"
uydls=uydls&"<li class=""l-1"">地址："&aiinput("","d1","",0,50,"*买家人的详细地址","f-a2|f-b2|f-c2",uy_d1)&"名称："&aiinput("","m1","",0,50,"*买家人尊称","f-a1|f-b1|f-c1",uy_m1)&"电话："&aiinput("","h1","",0,50,"*买家人联系电话","f-a1|f-b1|f-c1",uy_h1)&"</li>"
uydls=uydls&"<li>卖家："&utselect(1,"",uy_c2,"c2","2")&"</li>"
uydls=uydls&"<li class=""l-1"">地址："&aiinput("","d2","",0,50,"*卖家人的详细地址","f-a2|f-b2|f-c2",uy_d2)&"名称："&aiinput("","m2","",0,50,"*卖家人尊称","f-a1|f-b1|f-c1",uy_m2)&"电话："&aiinput("","h2","",0,50,"*卖家人联系电话","f-a1|f-b1|f-c1",uy_h2)&"</li>"
uydls=uydls&"<li>评分："&aiselect("pf","","*交易评分，评分操作完成后交易金额才能到卖家账户。","f-s1",uy_pf,0,i_buypf)&"其他："&aiinput("","ot","",0,200,"","f-a3|f-b3|f-c3",uy_ot)&"</li>"
uydls=uydls&"<li class=""l-1"">系统："&eseditxt(uy_xt,"xt",1)&"</li>"
else'0-1-B
if uyfty=0 then
uy_ty=aiint(g_u1)
uy_j1=aiint(g_u4)
uy_fk=aiint(g_u5)
if g_u1="8" then'|8出售定制deal/add/ty-8/e1/j1/jy_ty.html
uy_xy=1
uy_j2=uy_j1
uy_e2=e_uer
uy_e1=g_u3
else
if aibj(g_u2,"asai") then
if uy_ty<2 then uy_ty=2
end if
uy_e2=g_u3
uy_e1=e_uer
end if
else
if aiint(uy_ty)<2 then uydls=uydls&"<li class=""l-2"">提示：这是一个["&aiarr(i_buyty,"|",aiint(uy_ty))&"]订单，请慎重操作！（注意：涉及金钱的交易必须进行星级评价后才能到帐！）</li><div class=crg></div>"
end if

if aibj(uy_ty,"5") then
uydgz="规则：<br>卖家接受买家服务后如果违约则退回买家已付定金，并赔偿卖家付出的定金给买家<br>买家违约定金不退，和卖家付出定金一起归卖家所有<br>有证方参与的服务，证方将从被罚的卖家或买家那份定金中获取定额佣金<br>有证方参与的服务，服务取消或服务完成证方可以从买卖双方已付的定金中获取定额佣金<br>竞拍中，流拍的订单卖家可直接取回定金，未达卖家心理价位的订单，可以继续服务或联系客服处理返回定金"
elseif aibj(uy_ty,"6") then
uydgz="规则：<br>卖家接受买家服务后如果违约则退回买家已付定金，并赔偿卖家付出的定金给买家<br>买家违约定金不退，和卖家付出定金一起归卖家所有<br>有证方参与的服务，证方将从被罚的卖家或买家那份定金中获取定额佣金<br>有证方参与的服务，服务取消或服务完成证方可以从买卖双方已付的定金中获取定额佣金<br>竞拍中，流拍的订单卖家可直接取回定金，未达卖家心理价位的订单，可以继续服务或联系客服处理返回定金"
end if

'--------------------------------------------------------------------------------------------|0提现服务
if aibj(uy_ty,"0") then
uydsbs="提现服务"
ew_bt=uydsbs&","&ew_bt:ew_zt=uydsbs&","&ew_zt:ew_nr=uydsbs&","&ew_nr:ew_cp=uydsbs&","&ew_cp
e_wl=e_wl&" &gt;&gt; <a href="""&e_ur1&""">"&uydsbs&"</a>"
if uyfty=0 and e_ujq>99 then
uydbd=1
e_mt=esbts(s_udxuy,s_udluy,"申请提现操作"&g_gy&e_ur1,s_uduys&s_umlbs&g_gy&e_ur0)
uy_fk=2
uy_e2=ew_kt
uydsbs="确认申请提现操作"
uydls=uydls&"<li class=""l-1"">提现："&aiinput("","j1","",6,50,"*直接填写需要提现的额度（注意：不能大于账户金钱数量）","f-a1|f-b1|f-c1",uy_j1)&"确认："&aiinput("","j2","",6,50,"*请再次输入确认提现的额度（注意：不能大于账户金钱数量）","f-a1|f-b1|f-c1",uy_j2)&"备注："&aiinput("","s1","",0,200,"提现备注信息","f-a2|f-b2|f-c2",uy_s1)&"</li>"
uydls=uydls&"<li>建议："&aitext("yr","","",0,8000,"请对我们相处这段时间给予好的建议，非常感谢。","f-x4|f-y4|f-z4",uy_yr)&"</li>"
uydls=uydls&"<li class=""l-1"">城市："&utselect(1,"",uy_c1,"c1","")&"</li>"
if aibj(uy_d1,us_dz) then uy_d1=""
uydls=uydls&"<li>账户："&aiinput("","d1","",0,50,"*请输入提现方式（如：打到**银行卡：6222***888）","f-a2|f-b2|f-c2",uy_d1)&"姓名："&aiinput("","m1","",0,50,"*提现人姓名（请保持与银行卡同名）","f-a1|f-b1|f-c1",uy_m1)&"电话："&aiinput("","h1","",0,50,"*提现人的联系电话（请保持电话畅通）","f-a1|f-b1|f-c1",uy_h1)&"</li>"
uydls=uydls&aiinput("hidden","xy","",0,0,"","",uy_xy)&aiinput("hidden","e1","",0,0,"","",uy_e1)&aiinput("hidden","e2","",0,0,"","",uy_e2)&aiinput("hidden","s2","",0,0,"","",uy_s2)&aiinput("hidden","c2","",0,0,"","",uy_c2)&aiinput("hidden","d2","",0,0,"","",uy_d2)&aiinput("hidden","m2","",0,0,"","",uy_m2)&aiinput("hidden","h2","",0,0,"","",uy_h2)&aiinput("hidden","pf","",0,0,"","",uy_pf)

elseif aibj(uy_xy,"0") and uyfty=1 then
if aibj(uy_e1,e_uer) then
uydbd=1
uydsbs="修改提现"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">状态："&aiselect("xy","","*交易状态","f-s2",uy_xy,"0|3","修改提现信息|我不需要提现了")
uydls=uydls&"<li>备注："&aiinput("","s1","",0,200,"提现备注信息","f-a4|f-b4|f-c4",uy_s1)&"</li>"
uydls=uydls&"<li class=""l-1"">建议："&aitext("yr","","",0,8000,"请对我们相处这段时间给予好的建议，非常感谢。","f-x4|f-y4|f-z4",uy_yr)&"</li>"
uydls=uydls&"<li>城市："&utselect(1,"",uy_c1,"c1","")&"</li>"
uydls=uydls&"<li class=""l-1"">账户："&aiinput("","d1","",0,50,"*请输入提现方式（如：打到**银行卡：6222***888）","f-a2|f-b2|f-c2",uy_d1)&"姓名："&aiinput("","m1","",0,50,"*提现人姓名（请保持与银行卡同名）","f-a1|f-b1|f-c1",uy_m1)&"电话："&aiinput("","h1","",0,50,"*提现人的联系电话（请保持电话畅通）","f-a1|f-b1|f-c1",uy_h1)&"</li>"
uydls=uydls&aiinput("hidden","s2","",0,0,"","",uy_s2)&aiinput("hidden","c2","",0,0,"","",uy_c2)&aiinput("hidden","d2","",0,0,"","",uy_d2)&aiinput("hidden","m2","",0,0,"","",uy_m2)&aiinput("hidden","h2","",0,0,"","",uy_h2)

elseif aibj(uy_e2,e_uer) or aibj(uy_e3,e_uer) then
uydbd=1
uydsbs="处理提现"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li>状态："&aiselect("xy","","*交易状态","f-s3",uy_xy,"9|1|2",aiarr(i_buyxy,"|",9)&"|"&aiarr(i_buyxy,"|",1)&"|"&aiarr(i_buyxy,"|",2))&"</li>"
uydls=uydls&"<li>备注："&aiinput("","s2","",0,200,"备注信息","f-a4|f-b4|f-c4",uy_s2)&"</li>"
uydls=uydls&"<li class=""l-1"">城市："&utselect(1,"",uy_c2,"c2","")&"</li>"
uydls=uydls&"<li>账户："&aiinput("","d2","",0,50,"*请输入付款方式（如：**银行卡：6222***888）","f-a2|f-b2|f-c2",uy_d2)&"姓名："&aiinput("","m2","",0,50,"*联系人姓名","f-a1|f-b1|f-c1",uy_m2)&"电话："&aiinput("","h2","",0,50,"*联系电话","f-a1|f-b1|f-c1",uy_h2)&"</li>"
uydls=uydls&aiinput("hidden","s1","",0,0,"","",uy_s1)&aiinput("hidden","yr","",0,0,"","",uy_yr)&aiinput("hidden","c1","",0,0,"","",uy_c1)&aiinput("hidden","d1","",0,0,"","",uy_d1)&aiinput("hidden","m1","",0,0,"","",uy_m1)&aiinput("hidden","h1","",0,0,"","",uy_h1)
end if
uydls=uydls&aiinput("hidden","j1","",0,0,"","",uy_j1)&aiinput("hidden","e1","",0,0,"","",uy_e1)&aiinput("hidden","j2","",0,0,"","",uy_j2)&aiinput("hidden","e2","",0,0,"","",uy_e2)&aiinput("hidden","pf","",0,0,"","",uy_pf)

elseif aibj(uy_xy,"1") then
if aibj(uy_e1,e_uer) or aibj(uy_e3,e_uer) then
uydbd=1
uydsbs="确认服务"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">状态："&aiselect("xy","","*交易状态","f-s3",uy_xy,"7","已收到提现款项")
uydls=uydls&"<li>评价："&aiinput("","s1","",0,200,"提现人的评价信息","f-a4|f-b4|f-c4",uy_s1)&"</li>"
uydls=uydls&"<li class=""l-1"">评分："&aiselect("pf","","*交易评分，评分操作完成后交易金额才能到卖家账户。","f-s1",uy_pf,0,i_buypf)&"</li>"
uydls=uydls&aiinput("hidden","s2","",0,0,"","",uy_s2)
elseif aibj(uy_e2,e_uer) then
uydbd=1
uydsbs="编辑备注信息"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">状态："&aiselect("xy","","*交易状态","f-s3",uy_xy,"1|4","编辑备注信息|无法完成提现")
uydls=uydls&"<li>备注："&aiinput("","s2","",0,200,"备注信息","f-a4|f-b4|f-c4",uy_s2)&"</li>"
uydls=uydls&aiinput("hidden","s1","",0,0,"","",uy_s1)&aiinput("hidden","pf","",0,0,"","",uy_pf)
end if
uydls=uydls&aiinput("hidden","yr","",0,0,"","",uy_yr)&aiinput("hidden","j1","",0,0,"","",uy_j1)&aiinput("hidden","e1","",0,0,"","",uy_e1)&aiinput("hidden","j2","",0,0,"","",uy_j2)&aiinput("hidden","e2","",0,0,"","",uy_e2)&aiinput("hidden","m1","",0,0,"","",uy_m1)&aiinput("hidden","h1","",0,0,"","",uy_h1)&aiinput("hidden","c1","",0,0,"","",uy_c1)&aiinput("hidden","d1","",0,0,"","",uy_d1)&aiinput("hidden","m2","",0,0,"","",uy_m2)&aiinput("hidden","h2","",0,0,"","",uy_h2)&aiinput("hidden","c2","",0,0,"","",uy_c2)&aiinput("hidden","d2","",0,0,"","",uy_d2)

elseif aiint(uy_xy)>1 and aiint(uy_pf)=0 and aibj(uy_e1,e_uer) and aiint(uy_ft)=2 then
uydbd=1
uydsbs="结单处理与评价"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">评价："&aiinput("","s1","",0,200,"买家评价信息","f-a4|f-b4|f-c4",uy_s1)&"</li>"
uydls=uydls&"<li>评分："&aiselect("pf","","*交易评分，评分操作完成后交易金额才能到卖家账户。","f-s1",uy_pf,0,i_buypf)&"</li>"
uydls=uydls&aiinput("hidden","yr","",0,0,"","",uy_yr)&aiinput("hidden","j1","",0,0,"","",uy_j1)&aiinput("hidden","e1","",0,0,"","",uy_e1)&aiinput("hidden","j2","",0,0,"","",uy_j2)&aiinput("hidden","e2","",0,0,"","",uy_e2)&aiinput("hidden","s2","",0,0,"","",uy_s2)&aiinput("hidden","m1","",0,0,"","",uy_m1)&aiinput("hidden","h1","",0,0,"","",uy_h1)&aiinput("hidden","c1","",0,0,"","",uy_c1)&aiinput("hidden","d1","",0,0,"","",uy_d1)&aiinput("hidden","m2","",0,0,"","",uy_m2)&aiinput("hidden","h2","",0,0,"","",uy_h2)&aiinput("hidden","c2","",0,0,"","",uy_c2)&aiinput("hidden","d2","",0,0,"","",uy_d2)&aiinput("hidden","xy","",0,0,"","",uy_xy)

elseif e_gdj>2 then
uydbd=1
uydsbs="管理员编辑订单"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">状态："&aiselect("xy","","*交易状态","f-s4",uy_xy,0,i_buyxy)&"</li>"
uydls=uydls&"<li>买家："&aiinput("","e1","",0,50,"*","f-a1|f-b1|f-c1",uy_e1)&"买出："&aiinput("","j1","",6,50,"*直接填写数字","f-a1|f-b1|f-c1",uy_j1)&"买注："&aiinput("","s1","",0,200,"买家备注信息","f-a2|f-b2|f-c2",uy_s1)&"</li>"
uydls=uydls&"<li class=""l-1"">卖家："&aiinput("","e2","",0,50,"*","f-a1|f-b1|f-c1",uy_e2)&"卖得："&aiinput("","j2","",6,50,"*直接填写数字","f-a1|f-b1|f-c1",uy_j2)&"卖注："&aiinput("","s2","",0,200,"卖家备注信息","f-a2|f-b2|f-c2",uy_s2)&"</li>"
uydls=uydls&"<li>建议："&aitext("yr","","",0,8000,"请对我们相处这段时间给予好的建议，非常感谢。","f-x4|f-y4|f-z4",uy_yr)&"</li>"
uydls=uydls&"<li class=""l-1"">城市："&utselect(1,"",uy_c1,"c1","")&"</li>"
uydls=uydls&"<li>账户："&aiinput("","d1","",0,50,"*请输入账户信息（如：**银行卡：6222***888）","f-a2|f-b2|f-c2",uy_d1)&"名称："&aiinput("","m1","",0,50,"*买家人尊称","f-a1|f-b1|f-c1",uy_m1)&"电话："&aiinput("","h1","",0,50,"*买家人联系电话","f-a1|f-b1|f-c1",uy_h1)&"</li>"
uydls=uydls&"<li class=""l-1"">城市："&utselect(1,"",uy_c2,"c2","2")&"</li>"
uydls=uydls&"<li>账户："&aiinput("","d2","",0,50,"*请输入账户信息（如：**银行卡：6222***888）","f-a2|f-b2|f-c2",uy_d2)&"名称："&aiinput("","m2","",0,50,"*卖家人尊称","f-a1|f-b1|f-c1",uy_m2)&"电话："&aiinput("","h2","",0,50,"*卖家人联系电话","f-a1|f-b1|f-c1",uy_h2)&"</li>"
uydls=uydls&"<li class=""l-1"">评分："&aiselect("pf","","*交易评分，评分操作完成后交易金额才能到卖家账户。","f-s1",uy_pf,0,i_buypf)&"</li>"
end if
uydls=uydls&aiinput("hidden","fk","",0,0,"","",uy_fk)&aiinput("hidden","ft","",0,0,"","",uy_ft)&aiinput("hidden","e3","",0,0,"","",uy_e3)&aiinput("hidden","j3","",0,0,"","",uy_j3)&aiinput("hidden","s3","",0,0,"","",uy_s3)&aiinput("hidden","ty","",0,0,"","",uy_ty)&aiinput("hidden","uh","",0,0,"","",uy_uh)&aiinput("hidden","sn","",0,0,"","",uy_sn)&aiinput("hidden","tm","",0,0,"","",uy_tm)&aiinput("hidden","t1","",0,0,"","",uy_t1)&aiinput("hidden","ot","",0,0,"","",uy_ot)&aiinput("hidden","xt","",0,0,"","",uy_xt)
'--------------------------------------------------------------------------------------------|1充值服务
elseif aibj(uy_ty,"1") then
uydsbs="充值服务"
ew_bt=uydsbs&","&ew_bt:ew_zt=uydsbs&","&ew_zt:ew_nr=uydsbs&","&ew_nr:ew_cp=uydsbs&","&ew_cp
e_wl=e_wl&" &gt;&gt; <a href="""&e_ur1&""">"&uydsbs&"</a>"
if uyfty=0 then
if e_gdj>2 then
uydbd=1
e_mt=esbts(s_udxuy,s_udluy,"提交充值操作"&g_gy&e_ur1,s_uduys&s_umlbs&g_gy&e_ur0)
uy_fk=2
uydsbs="提交充值操作"
uydls=uydls&"<li class=""l-1"">充值："&aiinput("","j1","",6,50,"*直接填写需要充值的额度","f-a1|f-b1|f-c1",uy_j1)&"确认："&aiinput("","j2","",6,50,"*请再次输入确认充值的额度","f-a1|f-b1|f-c1",uy_j2)&"用户："&aiinput("","e2","",0,200,"*充值用户名","f-a2|f-b2|f-c2",uy_e2)&"</li>"
uydls=uydls&"<li>备注："&aiinput("","s1","",0,200,"充值备注信息","f-a4|f-b4|f-c4",uy_s1)&"</li>"
uydls=uydls&"<li class=""l-1"">详情："&aitext("yr","","",0,8000,"*充值详细信息","f-x4|f-y4|f-z4",uy_yr)&"</li>"
uydls=uydls&"<li>城市："&utselect(1,"",uy_c2,"c2","")&"</li>"
uydls=uydls&"<li class=""l-1"">信息："&aiinput("","d2","",0,50,"*请输入充值方式（如：**银行卡：6222***888打入支付宝）","f-a2|f-b2|f-c2",uy_d2)&"姓名："&aiinput("","m2","",0,50,"*充值人姓名","f-a1|f-b1|f-c1",uy_m2)&"电话："&aiinput("","h2","",0,50,"*充值人的联系电话","f-a1|f-b1|f-c1",uy_h2)&"</li>"
uydls=uydls&aiinput("hidden","xy","",0,0,"","",uy_xy)&aiinput("hidden","e1","",0,0,"","",uy_e1)&aiinput("hidden","s2","",0,0,"","",uy_s2)&aiinput("hidden","pf","",0,0,"","",uy_pf)
else
uydbd=1
e_mt=esbts(s_udxuy,s_udluy,"充值操作"&g_gy&e_ur1,s_uduys&s_umlbs&g_gy&e_ur0)
uy_fk=3
uy_ft=1
uydsbs="提交充值订单"
uydls=uydls&"<li class=""l-1"">请输入充值金额："&aiinput("","j1","",6,50,"*直接填写需要充值的额度","f-a1|f-b1|f-c1",uy_j1)&" 元</li>"
uydls=uydls&"<li>请再次确认金额："&aiinput("","j2","",6,50,"*请再次输入确认充值的额度","f-a1|f-b1|f-c1",uy_j2)&"元</li>"
uydls=uydls&aiinput("hidden","e2","",0,0,"","",e_uer)&aiinput("hidden","s1","",0,0,"","",uy_s1)&aiinput("hidden","yr","",0,0,"","",uy_yr)&aiinput("hidden","c2","",0,0,"","",uy_c2)&aiinput("hidden","d2","",0,0,"","",uy_d2)&aiinput("hidden","m2","",0,0,"","",uy_m2)&aiinput("hidden","h2","",0,0,"","",uy_h2)&aiinput("hidden","e1","",0,0,"","",ew_kf)&aiinput("hidden","s2","",0,0,"","",uy_s2)&aiinput("hidden","pf","",0,0,"","",uy_pf)
end if

elseif aibj(uy_xy,"0") and uyfty=1 then
if aiint(uy_fk)=3 and aiint(uy_ft)<2 and aibj(uy_e2,e_uer) then
uydbd=1
uydsbs=""
uydls=uydls&"<li class=""l-1"">"&aiiframe(eshref("http://www.eesai.com/API/ZF/?fk="&uy_j1&"&mj="&i_mzf&"&bh="&uy_sn&"&mc="&uy_e2&"-"&uy_e1&"&ms="&uy_tm&"&wz="&g_uhost&"",3),"zhifu","100%","600px")&"</li>"'tit
elseif aibj(uy_e1,e_uer) then
uydbd=1
uydsbs="编辑充值服务"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">状态："&aiselect("xy","","*交易状态","f-s3",uy_xy,"0|3|7","修改充值信息|取消充值服务|确认充值服务")
uydls=uydls&"<li>备注："&aiinput("","s1","",0,200,"充值备注信息","f-a4|f-b4|f-c4",uy_s1)&"</li>"
uydls=uydls&"<li class=""l-1"">城市："&utselect(1,"",uy_c2,"c2","")&"</li>"
uydls=uydls&"<li>信息："&aiinput("","d2","",0,50,"*请输入充值方式（如：**银行卡：6222***888打入支付宝）","f-a2|f-b2|f-c2",uy_d2)&"姓名："&aiinput("","m2","",0,50,"*充值人姓名","f-a1|f-b1|f-c1",uy_m2)&"电话："&aiinput("","h2","",0,50,"*充值人的联系电话","f-a1|f-b1|f-c1",uy_h2)&"</li>"
uydls=uydls&aiinput("hidden","yr","",0,0,"","",uy_yr)&aiinput("hidden","s2","",0,0,"","",uy_s2)
elseif aibj(uy_e2,e_uer) or aibj(uy_e3,e_uer) then
uydbd=1
uydsbs="确认充值服务"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">状态："&aiselect("xy","","*交易状态","f-s2",uy_xy,"1","确认充值账号正确")&"</li>"
uydls=uydls&"<li>备注："&aiinput("","s2","",0,200,"充值备注信息","f-a4|f-b4|f-c4",uy_s2)&"</li>"
uydls=uydls&aiinput("hidden","s1","",0,0,"","",uy_s1)&aiinput("hidden","yr","",0,0,"","",uy_yr)&aiinput("hidden","c2","",0,0,"","",uy_c2)&aiinput("hidden","d2","",0,0,"","",uy_d2)&aiinput("hidden","m2","",0,0,"","",uy_m2)&aiinput("hidden","h2","",0,0,"","",uy_h2)
end if
uydls=uydls&aiinput("hidden","j1","",0,0,"","",uy_j1)&aiinput("hidden","e1","",0,0,"","",uy_e1)&aiinput("hidden","j2","",0,0,"","",uy_j2)&aiinput("hidden","e2","",0,0,"","",uy_e2)

elseif aibj(uy_xy,"1") then
if aibj(uy_e1,e_uer) or aibj(uy_e3,e_uer) then
uydbd=1
uydsbs="确认充值服务"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">状态："&aiselect("xy","","*交易状态","f-s3",uy_xy,"7|1|4","确认充值服务|修改充值信息|取消充值服务")
uydls=uydls&"<li>备注："&aiinput("","s1","",0,200,"备注信息","f-a4|f-b4|f-c4",uy_s1)&"</li>"
uydls=uydls&aiinput("hidden","s2","",0,0,"","",uy_s2)&aiinput("hidden","pf","",0,0,"","",uy_pf)
elseif aibj(uy_e2,e_uer) then
uydbd=1
uydsbs="处理充值信息"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
if aiint(e_uzj)>1 then
uydls=uydls&"<li class=""l-1"">状态："&aiselect("xy","","*交易状态","f-s3",uy_xy,"1|7","编辑充值信息|自主确认充值")
uydls=uydls&"评分："&aiselect("pf","","*交易评分，评分操作完成后交易金额才能到卖家账户。","f-s1",uy_pf,0,i_buypf)&"</li>"
else
uydls=uydls&"<li class=""l-1"">状态："&aiselect("xy","","*交易状态","f-s2",uy_xy,"1","编辑充值信息")&aiinput("hidden","pf","",0,0,"","",uy_pf)&"</li>"
end if
uydls=uydls&"<li>留言："&aiinput("","s2","",0,200,"留言备注信息","f-a4|f-b4|f-c4",uy_s2)&"</li>"
uydls=uydls&aiinput("hidden","s1","",0,0,"","",uy_s1)
end if
uydls=uydls&aiinput("hidden","yr","",0,0,"","",uy_yr)&aiinput("hidden","j1","",0,0,"","",uy_j1)&aiinput("hidden","e1","",0,0,"","",uy_e1)&aiinput("hidden","j2","",0,0,"","",uy_j2)&aiinput("hidden","e2","",0,0,"","",uy_e2)&aiinput("hidden","m2","",0,0,"","",uy_m2)&aiinput("hidden","h2","",0,0,"","",uy_h2)&aiinput("hidden","c2","",0,0,"","",uy_c2)&aiinput("hidden","d2","",0,0,"","",uy_d2)

elseif aiint(uy_xy)>1 and aiint(uy_pf)=0 and aibj(uy_e2,e_uer) and aiint(uy_ft)=2 then
uydbd=1
uydsbs="结单处理与评价"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">评价："&aiinput("","s2","",0,200,"充值服务评价信息","f-a4|f-b4|f-c4",uy_s2)&"</li>"
uydls=uydls&"<li>评分："&aiselect("pf","","*交易评分，评分操作完成后交易金额才能到卖家账户。","f-s1",uy_pf,0,i_buypf)&"</li>"
uydls=uydls&aiinput("hidden","yr","",0,0,"","",uy_yr)&aiinput("hidden","j1","",0,0,"","",uy_j1)&aiinput("hidden","e1","",0,0,"","",uy_e1)&aiinput("hidden","j2","",0,0,"","",uy_j2)&aiinput("hidden","e2","",0,0,"","",uy_e2)&aiinput("hidden","s1","",0,0,"","",uy_s1)&aiinput("hidden","m2","",0,0,"","",uy_m2)&aiinput("hidden","h2","",0,0,"","",uy_h2)&aiinput("hidden","c2","",0,0,"","",uy_c2)&aiinput("hidden","d2","",0,0,"","",uy_d2)&aiinput("hidden","xy","",0,0,"","",uy_xy)

elseif e_gdj>2 then
uydbd=1
uydsbs="管理员编辑订单"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li>状态："&aiselect("xy","","*交易状态","f-s1",uy_xy,0,i_buyxy)&"</li>"
uydls=uydls&"<li class=""l-1"">买家："&aiinput("","e1","",0,50,"*","f-a1|f-b1|f-c1",uy_e1)&"买出："&aiinput("","j1","",6,50,"*直接填写数字","f-a1|f-b1|f-c1",uy_j1)&"买注："&aiinput("","s1","",0,200,"买家备注信息","f-a2|f-b2|f-c2",uy_s1)&"</li>"
uydls=uydls&"<li>卖家："&aiinput("","e2","",0,50,"*","f-a1|f-b1|f-c1",uy_e2)&"卖得："&aiinput("","j2","",6,50,"*直接填写数字","f-a1|f-b1|f-c1",uy_j2)&"卖注："&aiinput("","s2","",0,200,"卖家备注信息","f-a2|f-b2|f-c2",uy_s2)&"</li>"
uydls=uydls&"<li class=""l-1"">详情："&aitext("yr","","",0,8000,"充值信息详细说明。","f-x4|f-y4|f-z4",uy_yr)&"</li>"
uydls=uydls&"<li>城市："&utselect(1,"",uy_c2,"c2","")&"</li>"
uydls=uydls&"<li class=""l-1"">信息："&aiinput("","d2","",0,50,"*请输入充值方式（如：**银行卡：6222***888打入支付宝）","f-a2|f-b2|f-c2",uy_d2)&"姓名："&aiinput("","m2","",0,50,"*充值人姓名","f-a1|f-b1|f-c1",uy_m2)&"电话："&aiinput("","h2","",0,50,"*联系电话","f-a1|f-b1|f-c1",uy_h2)&"</li>"
uydls=uydls&"<li>评分："&aiselect("pf","","*交易评分，评分操作完成后交易金额才能到卖家账户。","f-s1",uy_pf,0,i_buypf)&"</li>"
end if
uydls=uydls&aiinput("hidden","fk","",0,0,"","",uy_fk)&aiinput("hidden","ft","",0,0,"","",uy_ft)&aiinput("hidden","e3","",0,0,"","",uy_e3)&aiinput("hidden","j3","",0,0,"","",uy_j3)&aiinput("hidden","s3","",0,0,"","",uy_s3)&aiinput("hidden","ty","",0,0,"","",uy_ty)&aiinput("hidden","uh","",0,0,"","",uy_uh)&aiinput("hidden","sn","",0,0,"","",uy_sn)&aiinput("hidden","tm","",0,0,"","",uy_tm)&aiinput("hidden","t1","",0,0,"","",uy_t1)&aiinput("hidden","ot","",0,0,"","",uy_ot)&aiinput("hidden","xt","",0,0,"","",uy_xt)&aiinput("hidden","c1","",0,0,"","",uy_c1)&aiinput("hidden","d1","",0,0,"","",uy_d1)&aiinput("hidden","m1","",0,0,"","",uy_m1)&aiinput("hidden","h1","",0,0,"","",uy_h1)
'--------------------------------------------------------------------------------------------|2官方服务|3商家服务|4个人交易
elseif aibj(uy_ty,"2") or aibj(uy_ty,"3") or aibj(uy_ty,"4") then
if aibj(uy_ty,"2") then
uydsbs="官方服务"
elseif aibj(uy_ty,"3") then
uydsbs="商家服务"
elseif aibj(uy_ty,"4") then
uydsbs="个人交易"
end if
if uyfty=0 then uy_e3=ew_kf
ew_bt=uydsbs&","&ew_bt:ew_zt=uydsbs&","&ew_zt:ew_nr=uydsbs&","&ew_nr:ew_cp=uydsbs&","&ew_cp
e_wl=e_wl&" &gt;&gt; <a href="""&e_ur1&""">"&uydsbs&"</a>"
if uyfty=0 and e_uxy>0 then
dim uyddcook
uyddcook=request.Cookies(x_ddck)
if not ainull(uyddcook) then
uydbd=1
uydsbs="确认订单并发起交易"
e_mt=esbts(s_udxuy,s_udluy,uydsbs&""&g_gy&e_ur1,s_uduys&s_umlbs&g_gy&e_ur0)
uydls=uydls&"<li class=""l-1"">"&ddread(uyddcook,0)&"</li>"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">付款方式："&aiselect("fk","","*付款方式","f-s1",uy_fk,"2|3|4",aiarr(i_buyfk,"|",2)&"|"&aiarr(i_buyfk,"|",3)&"|"&aiarr(i_buyfk,"|",4))&"留言："&aiinput("","s1","",0,200,"买家备注留言信息","f-a3|f-b3|f-c3",uy_s1)&"</li>"
uydls=uydls&"<li>我的城市："&utselect(1,"",uy_c1,"c1","")&"</li>"
uydls=uydls&"<li class=""l-1"">详细地址："&aiinput("","d1","",0,50,"*买家人的详细地址","f-a4|f-b4|f-c4",uy_d1)&"</li>"
uydls=uydls&"<li>买家姓名："&aiinput("","m1","",0,50,"*买家姓名","f-a1|f-b1|f-c1",uy_m1)&"电话："&aiinput("","h1","",0,50,"*买家联系电话","f-a1|f-b1|f-c1",uy_h1)&""
if aiint(x_dddcs)>1 then
uydls=uydls&"提示：本订单由 <b>"&aiint(x_dddcs)&"</b> 个卖家提供服务，不支持使用优惠券！"&aiinput("hidden","uh","",0,0,"","",uy_uh)&""
else
uydls=uydls&"优惠："&aiinput("","uh","",0,200,"请直接添加可用优惠券号码（可为空）","f-a2|f-b2|f-c2",uy_uh)&""
end if
uydls=uydls&"</li>"
uydls=uydls&aiinput("hidden","dxx","",0,0,"","",1)&aiinput("hidden","e1","",0,0,"","",uy_e1)&aiinput("hidden","j1","",0,0,"","",ddshsfx)&aiinput("hidden","yr","",0,0,"","",uyddcook)&aiinput("hidden","xy","",0,0,"","",uy_xy)&aiinput("hidden","ft","",0,0,"","",uy_ft)&aiinput("hidden","e3","",0,0,"","",uy_e3)&aiinput("hidden","j3","",0,0,"","",uy_j3)&aiinput("hidden","s3","",0,0,"","",uy_s3)&aiinput("hidden","e2","",0,0,"","",ddshusx)&aiinput("hidden","j2","",0,0,"","",ddshsfx)&aiinput("hidden","s2","",0,0,"","",uy_s2)&aiinput("hidden","c2","",0,0,"","",uy_c2)&aiinput("hidden","d2","",0,0,"","",uy_d2)&aiinput("hidden","m2","",0,0,"","",uy_m2)&aiinput("hidden","h2","",0,0,"","",uy_h2)&aiinput("hidden","pf","",0,0,"","",uy_pf)
end if

elseif aibj(uy_xy,"0") and uyfty=1 then
if aibj(uy_e1,e_uer) then
uydbd=1
uydsbs="编辑订单信息"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">状态："&aiselect("xy","","*交易状态","f-s3",uy_xy,"0|3",aiarr(i_buyxy,"|",0)&"|"&aiarr(i_buyxy,"|",3))
uydls=uydls&"<li>买家："&utselect(1,"",uy_c1,"c1","")&"</li>"
uydls=uydls&"<li class=""l-1"">地址："&aiinput("","d1","",0,50,"*买家的详细地址","f-a2|f-b2|f-c2",uy_d1)&"名称："&aiinput("","m1","",0,50,"*买家尊称","f-a1|f-b1|f-c1",uy_m1)&"电话："&aiinput("","h1","",0,50,"*买家联系电话","f-a1|f-b1|f-c1",uy_h1)&"</li>"
uydls=uydls&"<li>买注："&aiinput("","s1","",0,200,"买家备注信息","f-a4|f-b4|f-c4",uy_s1)&aiinput("hidden","s2","",0,0,"","",uy_s2)&aiinput("hidden","s3","",0,0,"","",uy_s3)&aiinput("hidden","ft","",0,0,"","",uy_ft)&aiinput("hidden","c2","",0,0,"","",uy_c2)&aiinput("hidden","d2","",0,0,"","",uy_d2)&aiinput("hidden","m2","",0,0,"","",uy_m2)&aiinput("hidden","h2","",0,0,"","",uy_h2)&"</li>"
elseif aibj(uy_e2,e_uer) then
uydbd=1
uydsbs="确认订单服务"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">状态："&aiselect("xy","","*交易状态","f-s3",uy_xy,"1|2",aiarr(i_buyxy,"|",1)&"|"&aiarr(i_buyxy,"|",2))
if aiint(uy_fk)>3 and aiint(uy_ft)<2 then
uydls=uydls&"付态："&aiselect("ft","","*付款状态","f-s1",uy_ft,0,i_buyft)
else
uydls=uydls&aiinput("hidden","ft","",0,0,"","",uy_ft)
end if
uydls=uydls&"</li>"
uydls=uydls&"<li>卖家："&utselect(1,"",uy_c2,"c2","")&"</li>"
uydls=uydls&"<li class=""l-1"">地址："&aiinput("","d2","",0,50,"*卖家人的详细地址","f-a2|f-b2|f-c2",uy_d2)&"名称："&aiinput("","m2","",0,50,"*卖家人尊称","f-a1|f-b1|f-c1",uy_m2)&"电话："&aiinput("","h2","",0,50,"*卖家人联系电话","f-a1|f-b1|f-c1",uy_h2)&"</li>"
uydls=uydls&"<li>卖注："&aiinput("","s2","",0,200,"卖家备注信息","f-a4|f-b4|f-c4",uy_s2)&aiinput("hidden","s1","",0,0,"","",uy_s1)&aiinput("hidden","s3","",0,0,"","",uy_s3)&aiinput("hidden","c1","",0,0,"","",uy_c1)&aiinput("hidden","d1","",0,0,"","",uy_d1)&aiinput("hidden","m1","",0,0,"","",uy_m1)&aiinput("hidden","h1","",0,0,"","",uy_h1)&"</li>"
elseif aibj(uy_e3,e_uer) then
uydbd=1
uydsbs="证方订单处理"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">状态："&aiselect("xy","","*交易状态","f-s2",uy_xy,"5|8",aiarr(i_buyxy,"|",5)&"|"&aiarr(i_buyxy,"|",8))&"证注："&aiinput("","s3","",0,200,"证方备注信息","f-a2|f-b2|f-c2",uy_s3)&aiinput("hidden","s1","",0,0,"","",uy_s1)&aiinput("hidden","s2","",0,0,"","",uy_s2)&aiinput("hidden","ft","",0,0,"","",uy_ft)&aiinput("hidden","c1","",0,0,"","",uy_c1)&aiinput("hidden","d1","",0,0,"","",uy_d1)&aiinput("hidden","m1","",0,0,"","",uy_m1)&aiinput("hidden","h1","",0,0,"","",uy_h1)&aiinput("hidden","c2","",0,0,"","",uy_c2)&aiinput("hidden","d2","",0,0,"","",uy_d2)&aiinput("hidden","m2","",0,0,"","",uy_m2)&aiinput("hidden","h2","",0,0,"","",uy_h2)&"</li>"
end if
uydls=uydls&aiinput("hidden","fk","",0,0,"","",uy_fk)&aiinput("hidden","e1","",0,0,"","",uy_e1)&aiinput("hidden","j1","",0,0,"","",uy_j1)&aiinput("hidden","e2","",0,0,"","",uy_e2)&aiinput("hidden","j2","",0,0,"","",uy_j2)&aiinput("hidden","e3","",0,0,"","",uy_e3)&aiinput("hidden","j3","",0,0,"","",uy_j3)&aiinput("hidden","uh","",0,0,"","",uy_uh)&aiinput("hidden","yr","",0,0,"","",uy_yr)&aiinput("hidden","pf","",0,0,"","",uy_pf)

elseif aibj(uy_xy,"1") then
if aiint(uy_fk)=3 and aiint(uy_ft)<2 and aibj(uy_e1,e_uer) then
uydbd=1
uydsbs=""
uydls=uydls&"<li class=""l-1"">"&aiiframe(eshref("http://www.eesai.com/API/ZF/?fk="&uy_j1&"&mj="&i_mzf&"&bh="&uy_sn&"&mc="&uy_e1&"-"&uy_e2&"&ms="&uy_tm&"&wz="&g_uhost&"",3),"zhifu","100%","600px")&"</li>"'tit
elseif aibj(uy_e1,e_uer) then
uydbd=1
uydsbs="确认服务与评价"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">状态："&aiselect("xy","","*交易状态","f-s3",uy_xy,"7",aiarr(i_buyxy,"|",7))&"</li>"
uydls=uydls&"<li>评价："&aiinput("","s1","",0,200,"买家评价信息","f-a4|f-b4|f-c4",uy_s1)&aiinput("hidden","s2","",0,0,"","",uy_s2)&aiinput("hidden","s3","",0,0,"","",uy_s3)&aiinput("hidden","ft","",0,0,"","",uy_ft)&"</li>"
if aiint(uy_ft)=2 then
uydls=uydls&"<li class=""l-1"">评分："&aiselect("pf","","*交易评分，评分操作完成后交易金额才能到卖家账户。","f-s1",uy_pf,0,i_buypf)&"</li>"
else
uydls=uydls&aiinput("hidden","pf","",0,0,"","",uy_pf)
end if

elseif aibj(uy_e2,e_uer) then
uydbd=1
uydsbs="确认服务操作"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">状态："&aiselect("xy","","*交易状态","f-s3",uy_xy,"1|4",aiarr(i_buyxy,"|",1)&"|"&aiarr(i_buyxy,"|",4))
if aiint(uy_fk)=3 and aiint(uy_ft)<2 then
if uy_ft<>"1" then uy_ft="1"
uydls=uydls&"付态："&aiselect("ft","","*付款状态","f-s1",uy_ft,"0|1",i_buyft)
elseif aiint(uy_fk)=4 and aiint(uy_ft)<2 then
uydls=uydls&"付态："&aiselect("ft","","*付款状态","f-s1",uy_ft,0,i_buyft)
else
uydls=uydls&aiinput("hidden","ft","",0,0,"","",uy_ft)
end if
uydls=uydls&"</li>"
uydls=uydls&"<li>卖注："&aiinput("","s2","",0,200,"卖家备注信息","f-a4|f-b4|f-c4",uy_s2)&aiinput("hidden","s1","",0,0,"","",uy_s1)&aiinput("hidden","s3","",0,0,"","",uy_s3)&aiinput("hidden","pf","",0,0,"","",uy_pf)&"</li>"

elseif aibj(uy_e3,e_uer) then
uydbd=1
uydsbs="证方订单处理"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">状态："
if aiint(uy_fk)=3 and aiint(uy_ft)=0 then
uydls=uydls&aiselect("xy","","*交易状态","f-s2",uy_xy,"1|5",aiarr(i_buyxy,"|",1)&"|"&aiarr(i_buyxy,"|",5))
elseif aiint(uy_fk)=3 and aiint(uy_ft)=1 then
uydls=uydls&"正在等待买家付款...　　"&aiinput("hidden","xy","",0,0,"","",uy_xy)
else
uydls=uydls&aiselect("xy","","*交易状态","f-s2",uy_xy,"8|5",aiarr(i_buyxy,"|",8)&"|"&aiarr(i_buyxy,"|",5))
end if
uydls=uydls&"证注："&aiinput("","s3","",0,200,"证方备注信息","f-a2|f-b2|f-c2",uy_s3)&aiinput("hidden","s1","",0,0,"","",uy_s1)&aiinput("hidden","s2","",0,0,"","",uy_s2)&aiinput("hidden","ft","",0,0,"","",uy_ft)&aiinput("hidden","pf","",0,0,"","",uy_pf)&"</li>"

end if
uydls=uydls&aiinput("hidden","c1","",0,0,"","",uy_c1)&aiinput("hidden","d1","",0,0,"","",uy_d1)&aiinput("hidden","m1","",0,0,"","",uy_m1)&aiinput("hidden","h1","",0,0,"","",uy_h1)&aiinput("hidden","c2","",0,0,"","",uy_c2)&aiinput("hidden","d2","",0,0,"","",uy_d2)&aiinput("hidden","m2","",0,0,"","",uy_m2)&aiinput("hidden","h2","",0,0,"","",uy_h2)&aiinput("hidden","fk","",0,0,"","",uy_fk)&aiinput("hidden","e1","",0,0,"","",uy_e1)&aiinput("hidden","j1","",0,0,"","",uy_j1)&aiinput("hidden","e2","",0,0,"","",uy_e2)&aiinput("hidden","j2","",0,0,"","",uy_j2)&aiinput("hidden","e3","",0,0,"","",uy_e3)&aiinput("hidden","j3","",0,0,"","",uy_j3)&aiinput("hidden","uh","",0,0,"","",uy_uh)&aiinput("hidden","yr","",0,0,"","",uy_yr)

elseif aiint(uy_xy)>0 and aiint(uy_pf)=0 then
if aibj(uy_e2,e_uer) and aiint(uy_fk)>3 and aiint(uy_ft)<2 then
uydbd=1
uydsbs="操作服务订单"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">付态："&aiselect("ft","","*付款状态","f-s1",uy_ft,0,i_buyft)&"</li>"
uydls=uydls&"<li>留言："&aiinput("","s2","",0,200,"卖家留言信息","f-a4|f-b4|f-c4",uy_s2)&aiinput("hidden","s1","",0,0,"","",uy_s1)&aiinput("hidden","s3","",0,0,"","",uy_s3)&aiinput("hidden","pf","",0,0,"","",uy_pf)&"</li>"
elseif aibj(uy_e3,e_uer) and aiint(uy_fk)>3 and aiint(uy_ft)<2 then
uydbd=1
uydsbs="证方留言备注"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">留言："&aiinput("","s3","",0,200,"证方留言信息","f-a4|f-b4|f-c4",uy_s3)&aiinput("hidden","s1","",0,0,"","",uy_s1)&aiinput("hidden","s2","",0,0,"","",uy_s2)&aiinput("hidden","ft","",0,0,"","",uy_ft)&aiinput("hidden","pf","",0,0,"","",uy_pf)&"</li>"
elseif aibj(uy_e1,e_uer) and aiint(uy_pf)=0 then
uydbd=1
uydsbs="确认结单与评价"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">评价："&aiinput("","s1","",0,200,"买家评价信息","f-a4|f-b4|f-c4",uy_s1)&aiinput("hidden","s2","",0,0,"","",uy_s2)&aiinput("hidden","s3","",0,0,"","",uy_s3)&aiinput("hidden","ft","",0,0,"","",uy_ft)&"</li>"
if aiint(uy_ft)=2 then
uydls=uydls&"<li>评分："&aiselect("pf","","*交易评分，评分操作完成后交易金额才能到卖家账户。","f-s1",uy_pf,0,i_buypf)&"</li>"
else
uydls=uydls&aiinput("hidden","pf","",0,0,"","",uy_pf)
end if
end if
uydls=uydls&aiinput("hidden","xy","",0,0,"","",uy_xy)&aiinput("hidden","c1","",0,0,"","",uy_c1)&aiinput("hidden","d1","",0,0,"","",uy_d1)&aiinput("hidden","m1","",0,0,"","",uy_m1)&aiinput("hidden","h1","",0,0,"","",uy_h1)&aiinput("hidden","c2","",0,0,"","",uy_c2)&aiinput("hidden","d2","",0,0,"","",uy_d2)&aiinput("hidden","m2","",0,0,"","",uy_m2)&aiinput("hidden","h2","",0,0,"","",uy_h2)&aiinput("hidden","fk","",0,0,"","",uy_fk)&aiinput("hidden","e1","",0,0,"","",uy_e1)&aiinput("hidden","j1","",0,0,"","",uy_j1)&aiinput("hidden","e2","",0,0,"","",uy_e2)&aiinput("hidden","j2","",0,0,"","",uy_j2)&aiinput("hidden","e3","",0,0,"","",uy_e3)&aiinput("hidden","j3","",0,0,"","",uy_j3)&aiinput("hidden","uh","",0,0,"","",uy_uh)&aiinput("hidden","yr","",0,0,"","",uy_yr)

elseif e_gdj>2 then
uydbd=1
uydsbs="管理员编辑订单"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">状态："&aiselect("xy","","*交易状态","f-s2",uy_xy,0,i_buyxy)&"付方："&aiselect("fk","","*付款方式","f-s1",uy_fk,0,i_buyfk)&"付态："&aiselect("ft","","*付款状态","f-s1",uy_ft,0,i_buyft)&"</li>"
uydls=uydls&"<li>买家："&aiinput("","e1","",0,50,"*","f-a1|f-b1|f-c1",uy_e1)&"买出："&aiinput("","j1","",6,50,"*直接填写数字","f-a1|f-b1|f-c1",uy_j1)&"买注："&aiinput("","s1","",0,200,"买家备注信息","f-a2|f-b2|f-c2",uy_s1)&"</li>"
uydls=uydls&"<li class=""l-1"">卖家："&aiinput("","e2","",0,50,"*","f-a1|f-b1|f-c1",uy_e2)&"卖得："&aiinput("","j2","",6,50,"*直接填写数字","f-a1|f-b1|f-c1",uy_j2)&"卖注："&aiinput("","s2","",0,200,"卖家备注信息","f-a2|f-b2|f-c2",uy_s2)&"</li>"
uydls=uydls&"<li>证方："&aiinput("","e3","",0,50,"*","f-a1|f-b1|f-c1",uy_e3)&"证获："&aiinput("","j3","",6,50,"*直接填写数字","f-a1|f-b1|f-c1",uy_j3)&"证注："&aiinput("","s3","",0,200,"证方备注信息","f-a2|f-b2|f-c2",uy_s3)&"</li>"
uydls=uydls&"<li class=""l-1"">优惠："&aiinput("","uh","",0,200,"*请直接添加可用优惠券号码及优惠规则（样本：优惠券减免额度|优惠券使用限额|优惠券号码|发券人）","f-a4|f-b4|f-c4",uy_uh)&"</li>"
uydls=uydls&"<li>内容："&aitext("yr","","",0,8000,"*交易内容","f-x4|f-y4|f-z4",uy_yr)&"</li>"
uydls=uydls&"<li class=""l-1"">买家："&utselect(1,"",uy_c1,"c1","")&"</li>"
uydls=uydls&"<li>地址："&aiinput("","d1","",0,50,"*买家人的详细地址","f-a2|f-b2|f-c2",uy_d1)&"名称："&aiinput("","m1","",0,50,"*买家人尊称","f-a1|f-b1|f-c1",uy_m1)&"电话："&aiinput("","h1","",0,50,"*买家人联系电话","f-a1|f-b1|f-c1",uy_h1)&"</li>"
uydls=uydls&"<li class=""l-1"">卖家："&utselect(1,"",uy_c2,"c2","2")&"</li>"
uydls=uydls&"<li>地址："&aiinput("","d2","",0,50,"*卖家人的详细地址","f-a2|f-b2|f-c2",uy_d2)&"名称："&aiinput("","m2","",0,50,"*卖家人尊称","f-a1|f-b1|f-c1",uy_m2)&"电话："&aiinput("","h2","",0,50,"*卖家人联系电话","f-a1|f-b1|f-c1",uy_h2)&"</li>"
uydls=uydls&"<li class=""l-1"">评分："&aiselect("pf","","*交易评分，评分操作完成后交易金额才能到卖家账户。","f-s1",uy_pf,0,i_buypf)&"</li>"
end if
uydls=uydls&aiinput("hidden","dcs","",0,0,"","",x_dddcs)&aiinput("hidden","dus","",0,0,"","",x_dddus)&aiinput("hidden","djj","",0,0,"","",x_dddjj)&aiinput("hidden","dsn","",0,0,"","",x_dddsn)&aiinput("hidden","dsl","",0,0,"","",x_dddsl)
uydls=uydls&aiinput("hidden","ty","",0,0,"","",uy_ty)&aiinput("hidden","sn","",0,0,"","",uy_sn)&aiinput("hidden","tm","",0,0,"","",uy_tm)&aiinput("hidden","t1","",0,0,"","",uy_t1)&aiinput("hidden","ot","",0,0,"","",uy_ot)&aiinput("hidden","xt","",0,0,"","",uy_xt)
'|--------------------------------------------------------------------------------------------5竞拍服务
elseif aibj(uy_ty,"5") then
uydsbs="竞拍服务"
ew_bt=uydsbs&","&ew_bt:ew_zt=uydsbs&","&ew_zt:ew_nr=uydsbs&","&ew_nr:ew_cp=uydsbs&","&ew_cp
e_wl=e_wl&" &gt;&gt; <a href="""&e_ur1&""">"&uydsbs&"</a>"
if aibj(uyfty,"0") and aibj(uy_ty,"6") then

elseif aibj(uyfty,"1") then
if aibj(uy_xy,"0") then
if aibj(uy_e1,e_uer) and not ainull(uy_e1) then
uydbd=1
uydsbs="确认联系方式"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">留言："&aiinput("","s1","",0,200,"留言信息","f-a4|f-b4|f-c4",uy_s1)&"</li>"
uydls=uydls&"<li>城市："&utselect(1,"",uy_c1,"c1","")&"</li>"
uydls=uydls&"<li class=""l-1"">地址："&aiinput("","d1","",0,50,"*详细地址","f-a2|f-b2|f-c2",uy_d1)&"姓名："&aiinput("","m1","",0,50,"*姓名","f-a1|f-b1|f-c1",uy_m1)&"电话："&aiinput("","h1","",0,50,"*联系电话","f-a1|f-b1|f-c1",uy_h1)&"</li>"
uydls=uydls&aiinput("hidden","xy","",0,0,"","",uy_xy)&aiinput("hidden","s2","",0,0,"","",uy_s2)&aiinput("hidden","s3","",0,0,"","",uy_s3)&aiinput("hidden","c2","",0,0,"","",uy_c2)&aiinput("hidden","d2","",0,0,"","",uy_d2)&aiinput("hidden","m2","",0,0,"","",uy_m2)&aiinput("hidden","h2","",0,0,"","",uy_h2)

elseif aibj(uy_e2,e_uer) and not ainull(uy_e1) then
uydbd=1
uydsbs="确认服务信息"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">状态："&aiselect("xy","","*交易状态","f-s3",uy_xy,"1|2",aiarr(i_buyxy,"|",1)&"|"&aiarr(i_buyxy,"|",2))&"</li>"
uydls=uydls&"<li>留言："&aiinput("","s2","",0,200,"留言信息","f-a4|f-b4|f-c4",uy_s2)&"</li>"
uydls=uydls&"<li class=""l-1"">卖家："&utselect(1,"",uy_c2,"c2","")&"</li>"
uydls=uydls&"<li>地址："&aiinput("","d2","",0,50,"*卖家人的详细地址","f-a2|f-b2|f-c2",uy_d2)&"名称："&aiinput("","m2","",0,50,"*卖家人尊称","f-a1|f-b1|f-c1",uy_m2)&"电话："&aiinput("","h2","",0,50,"*卖家人联系电话","f-a1|f-b1|f-c1",uy_h2)&"</li>"
uydls=uydls&aiinput("hidden","s1","",0,0,"","",uy_s1)&aiinput("hidden","s3","",0,0,"","",uy_s3)&aiinput("hidden","c1","",0,0,"","",uy_c1)&aiinput("hidden","d1","",0,0,"","",uy_d1)&aiinput("hidden","m1","",0,0,"","",uy_m1)&aiinput("hidden","h1","",0,0,"","",uy_h1)

elseif aibj(uy_e3,e_uer) then
uydbd=1
uydsbs="确认服务"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">状态："&aiselect("xy","","*交易状态","f-s3",uy_xy,"5|8",aiarr(i_buyxy,"|",5)&"|"&aiarr(i_buyxy,"|",8))&"</li>"
uydls=uydls&"<li>留言："&aiinput("","s3","",0,200,"留言信息","f-a4|f-b4|f-c4",uy_s3)&"</li>"
uydls=uydls&aiinput("hidden","s1","",0,0,"","",uy_s1)&aiinput("hidden","s2","",0,0,"","",uy_s2)&aiinput("hidden","c1","",0,0,"","",uy_c1)&aiinput("hidden","d1","",0,0,"","",uy_d1)&aiinput("hidden","m1","",0,0,"","",uy_m1)&aiinput("hidden","h1","",0,0,"","",uy_h1)&aiinput("hidden","c2","",0,0,"","",uy_c2)&aiinput("hidden","d2","",0,0,"","",uy_d2)&aiinput("hidden","m2","",0,0,"","",uy_m2)&aiinput("hidden","h2","",0,0,"","",uy_h2)
end if
uydls=uydls&"<li class=""l-1"">"&uydgz&"</li>"
uydls=uydls&aiinput("hidden","uh","",0,0,"","",uy_uh)&aiinput("hidden","yr","",0,0,"","",uy_yr)&aiinput("hidden","fk","",0,0,"","",uy_fk)&aiinput("hidden","ft","",0,0,"","",uy_ft)&aiinput("hidden","e1","",0,0,"","",uy_e1)&aiinput("hidden","j1","",0,0,"","",uy_j1)&aiinput("hidden","e2","",0,0,"","",uy_e2)&aiinput("hidden","j2","",0,0,"","",uy_j2)&aiinput("hidden","e3","",0,0,"","",uy_e3)&aiinput("hidden","j3","",0,0,"","",uy_j3)&aiinput("hidden","pf","",0,0,"","",uy_pf)

elseif aibj(uy_xy,"1") then
if aibj(uy_e1,e_uer) then
uydbd=1
uydsbs="确认服务信息"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">状态："&aiselect("xy","","*交易状态","f-s2",uy_xy,"1|7|3","编辑联系信息|"&aiarr(i_buyxy,"|",7)&"|"&aiarr(i_buyxy,"|",3))&"</li>"
uydls=uydls&"<li>留言："&aiinput("","s1","",0,200,"留言信息","f-a4|f-b4|f-c4",uy_s1)&"</li>"
uydls=uydls&"<li class=""l-1"">城市："&utselect(1,"",uy_c1,"c1","")&"</li>"
uydls=uydls&"<li>地址："&aiinput("","d1","",0,50,"*定金人的详细地址","f-a2|f-b2|f-c2",uy_d1)&"姓名："&aiinput("","m1","",0,50,"*定金人姓名","f-a1|f-b1|f-c1",uy_m1)&"电话："&aiinput("","h1","",0,50,"*定金人联系电话","f-a1|f-b1|f-c1",uy_h1)&"</li>"
uydls=uydls&aiinput("hidden","s2","",0,0,"","",uy_s2)&aiinput("hidden","s3","",0,0,"","",uy_s3)&aiinput("hidden","c2","",0,0,"","",uy_c2)&aiinput("hidden","d2","",0,0,"","",uy_d2)&aiinput("hidden","m2","",0,0,"","",uy_m2)&aiinput("hidden","h2","",0,0,"","",uy_h2)

elseif aibj(uy_e2,e_uer) then
uydbd=1
uydsbs="确认服务"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">状态："&aiselect("xy","","*交易状态","f-s3",uy_xy,"1|4","编辑联系信息|"&aiarr(i_buyxy,"|",4))&"</li>"
uydls=uydls&"<li>留言："&aiinput("","s2","",0,200,"留言信息","f-a4|f-b4|f-c4",uy_s2)&"</li>"
uydls=uydls&"<li class=""l-1"">卖家："&utselect(1,"",uy_c2,"c2","")&"</li>"
uydls=uydls&"<li>地址："&aiinput("","d2","",0,50,"*卖家人的详细地址","f-a2|f-b2|f-c2",uy_d2)&"名称："&aiinput("","m2","",0,50,"*卖家人尊称","f-a1|f-b1|f-c1",uy_m2)&"电话："&aiinput("","h2","",0,50,"*卖家人联系电话","f-a1|f-b1|f-c1",uy_h2)&"</li>"
uydls=uydls&aiinput("hidden","s1","",0,0,"","",uy_s1)&aiinput("hidden","s3","",0,0,"","",uy_s3)&aiinput("hidden","c1","",0,0,"","",uy_c1)&aiinput("hidden","d1","",0,0,"","",uy_d1)&aiinput("hidden","m1","",0,0,"","",uy_m1)&aiinput("hidden","h1","",0,0,"","",uy_h1)

elseif aibj(uy_e3,e_uer) then
uydbd=1
uydsbs="确认服务"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">状态："&aiselect("xy","","*交易状态","f-s3",uy_xy,"8|5",aiarr(i_buyxy,"|",8)&"|"&aiarr(i_buyxy,"|",5))&"</li>"
uydls=uydls&"<li>留言："&aiinput("","s3","",0,200,"留言信息","f-a4|f-b4|f-c4",uy_s3)&"</li>"
uydls=uydls&aiinput("hidden","s1","",0,0,"","",uy_s1)&aiinput("hidden","s2","",0,0,"","",uy_s2)&aiinput("hidden","c1","",0,0,"","",uy_c1)&aiinput("hidden","d1","",0,0,"","",uy_d1)&aiinput("hidden","m1","",0,0,"","",uy_m1)&aiinput("hidden","h1","",0,0,"","",uy_h1)&aiinput("hidden","c2","",0,0,"","",uy_c2)&aiinput("hidden","d2","",0,0,"","",uy_d2)&aiinput("hidden","m2","",0,0,"","",uy_m2)&aiinput("hidden","h2","",0,0,"","",uy_h2)
end if
uydls=uydls&"<li class=""l-1"">"&uydgz&"</li>"
uydls=uydls&aiinput("hidden","uh","",0,0,"","",uy_uh)&aiinput("hidden","yr","",0,0,"","",uy_yr)&aiinput("hidden","fk","",0,0,"","",uy_fk)&aiinput("hidden","ft","",0,0,"","",uy_ft)&aiinput("hidden","e1","",0,0,"","",uy_e1)&aiinput("hidden","j1","",0,0,"","",uy_j1)&aiinput("hidden","e2","",0,0,"","",uy_e2)&aiinput("hidden","j2","",0,0,"","",uy_j2)&aiinput("hidden","e3","",0,0,"","",uy_e3)&aiinput("hidden","j3","",0,0,"","",uy_j3)&aiinput("hidden","pf","",0,0,"","",uy_pf)

elseif int(uy_xy)>1 and aibj(uy_pf,0) then
uydbd=1
uydsbs="确认服务与评价"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
if aibj(uy_e1,e_uer) then
if aibj(uy_xy,"2") or aibj(uy_xy,"4") or aibj(uy_xy,"8") then uydls=uydls&"<li class=""l-1"">评价："&aiselect("pf","","*交易评分，评分操作完成后交易金额才能到卖家账户。","f-s1",uy_pf,0,i_buypf)&"</li>"
uydls=uydls&"<li>买注："&aiinput("","s1","",0,200,"买家备注信息","f-a4|f-b4|f-c4",uy_s1)&"</li>"
uydls=uydls&aiinput("hidden","s2","",0,0,"","",uy_s2)&aiinput("hidden","s2","",0,0,"","",uy_s2)

elseif aibj(uy_e2,e_uer) then
if aibj(uy_xy,"3") or aibj(uy_xy,"5") or aibj(uy_xy,"7")  then uydls=uydls&"<li class=""l-1"">评价："&aiselect("pf","","*交易评分，评分操作完成后交易金额才能到卖家账户。","f-s1",uy_pf,0,i_buypf)&"</li>"
uydls=uydls&"<li>卖注："&aiinput("","s2","",0,200,"卖家备注信息","f-a4|f-b4|f-c4",uy_s2)&"</li>"
uydls=uydls&aiinput("hidden","s1","",0,0,"","",uy_s1)&aiinput("hidden","s3","",0,0,"","",uy_s3)

elseif aibj(uy_e3,e_uer)  then
if aibj(uy_e3,e_uer) and not aibj(uy_xy,"5") and not aibj(uy_xy,"8") then uydls=uydls&"<li class=""l-1"">评价："&aiselect("pf","","*交易评分，评分操作完成后交易金额才能到卖家账户。","f-s1",uy_pf,0,i_buypf)&"</li>"
uydls=uydls&"<li>证注："&aiinput("","s3","",0,200,"证方备注信息","f-a4|f-b4|f-c4",uy_s3)&"</li>"
uydls=uydls&aiinput("hidden","s1","",0,0,"","",uy_s1)&aiinput("hidden","s2","",0,0,"","",uy_s2)
end if

uydls=uydls&aiinput("hidden","uh","",0,0,"","",uy_uh)&aiinput("hidden","xy","",0,0,"","",uy_xy)&aiinput("hidden","c1","",0,0,"","",uy_c1)&aiinput("hidden","d1","",0,0,"","",uy_d1)&aiinput("hidden","m1","",0,0,"","",uy_m1)&aiinput("hidden","h1","",0,0,"","",uy_h1)&aiinput("hidden","c2","",0,0,"","",uy_c2)&aiinput("hidden","d2","",0,0,"","",uy_d2)&aiinput("hidden","m2","",0,0,"","",uy_m2)&aiinput("hidden","h2","",0,0,"","",uy_h2)&aiinput("hidden","yr","",0,0,"","",uy_yr)&aiinput("hidden","fk","",0,0,"","",uy_fk)&aiinput("hidden","ft","",0,0,"","",uy_ft)&aiinput("hidden","e1","",0,0,"","",uy_e1)&aiinput("hidden","j1","",0,0,"","",uy_j1)&aiinput("hidden","e2","",0,0,"","",uy_e2)&aiinput("hidden","j2","",0,0,"","",uy_j2)&aiinput("hidden","e3","",0,0,"","",uy_e3)&aiinput("hidden","j3","",0,0,"","",uy_j3)

elseif e_gdj>2 then
uydbd=1
uydsbs="管理员编辑服务"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li>状态："&aiselect("xy","","*交易状态","f-s2",uy_xy,0,i_buyxy)&"付方："&aiselect("fk","","*付款方式","f-s1",uy_fk,"0|1|2",i_buyfk)&"付态："&aiselect("ft","","*付款状态","f-s1",uy_ft,0,i_buyft)&"</li>"
uydls=uydls&"<li class=""l-1"">买家："&aiinput("","e1","",0,50,"*","f-a1|f-b1|f-c1",uy_e1)&"买出："&aiinput("","j1","",6,50,"*直接填写数字","f-a1|f-b1|f-c1",uy_j1)&"买注："&aiinput("","s1","",0,200,"买家备注信息","f-a2|f-b2|f-c2",uy_s1)&"</li>"
uydls=uydls&"<li>卖家："&aiinput("","e2","",0,50,"*","f-a1|f-b1|f-c1",uy_e2)&"卖得："&aiinput("","j2","",6,50,"*直接填写数字","f-a1|f-b1|f-c1",uy_j2)&"卖注："&aiinput("","s2","",0,200,"卖家备注信息","f-a2|f-b2|f-c2",uy_s2)&"</li>"
uydls=uydls&"<li class=""l-1"">证方："&aiinput("","e3","",0,50,"*","f-a1|f-b1|f-c1",uy_e3)&"证获："&aiinput("","j3","",6,50,"*直接填写数字","f-a1|f-b1|f-c1",uy_j3)&"证注："&aiinput("","s3","",0,200,"证方备注信息","f-a2|f-b2|f-c2",uy_s3)&"</li>"
uydls=uydls&"<li>编码："&aiinput("","uh","",0,50,"填写网站上面的信息编码","f-a2|f-b2|f-c2",uy_uh)&"</li>"
uydls=uydls&"<li class=""l-1"">内容："&aitext("yr","","",0,8000,"*交易内容","f-x4|f-y4|f-z4",uy_yr)&"</li>"
uydls=uydls&"<li>买家："&utselect(1,"",uy_c1,"c1","")&"</li>"
uydls=uydls&"<li class=""l-1"">地址："&aiinput("","d1","",0,50,"*买家人的详细地址","f-a2|f-b2|f-c2",uy_d1)&"名称："&aiinput("","m1","",0,50,"*买家人尊称","f-a1|f-b1|f-c1",uy_m1)&"电话："&aiinput("","h1","",0,50,"*买家人联系电话","f-a1|f-b1|f-c1",uy_h1)&"</li>"
uydls=uydls&"<li>卖家："&utselect(1,"",uy_c2,"c2","2")&"</li>"
uydls=uydls&"<li class=""l-1"">地址："&aiinput("","d2","",0,50,"*卖家人的详细地址","f-a2|f-b2|f-c2",uy_d2)&"名称："&aiinput("","m2","",0,50,"*卖家人尊称","f-a1|f-b1|f-c1",uy_m2)&"电话："&aiinput("","h2","",0,50,"*卖家人联系电话","f-a1|f-b1|f-c1",uy_h2)&"</li>"
uydls=uydls&"<li>评分："&aiselect("pf","","*交易评分，评分操作完成后交易金额才能到卖家账户。","f-s1",uy_pf,0,i_buypf)&"</li>"
end if
end if
uydls=uydls&aiinput("hidden","ty","",0,0,"","",uy_ty)&aiinput("hidden","sn","",0,0,"","",uy_sn)&aiinput("hidden","tm","",0,0,"","",uy_tm)&aiinput("hidden","t1","",0,0,"","",uy_t1)&aiinput("hidden","ot","",0,0,"","",uy_ot)&aiinput("hidden","xt","",0,0,"","",uy_xt)

'|--------------------------------------------------------------------------------------------6定金交易
elseif  aibj(uy_ty,"6") then
uydsbs="定金交易"
ew_bt=uydsbs&","&ew_bt:ew_zt=uydsbs&","&ew_zt:ew_nr=uydsbs&","&ew_nr:ew_cp=uydsbs&","&ew_cp
e_wl=e_wl&" &gt;&gt; <a href="""&e_ur1&""">"&uydsbs&"</a>"
if aibj(uyfty,"0") then
uydbd=1
uydsbs="发起定金交易"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">付方："&aiselect("fk","","*付款方式","f-s1",uy_fk,"0|1|2",i_buyfk)&"买定："&aiinput("","j1","",6,50,"*买家支付的定金（直接填写数字）","f-a1|f-b1|f-c1",uy_j1)&"卖定："&aiinput("","j2","",6,50,"*卖家需要支付的定金（直接填写数字）","f-a1|f-b1|f-c1",uy_j2)&"实款："&aiinput("","j3","",6,50,"*实际款项（直接填写数字）","f-a1|f-b1|f-c1",uy_j3)&"</li>"
uydls=uydls&"<li>卖家："&aiinput("","e2","",0,50,"*","f-a1|f-b1|f-c1",uy_e2)&"证方："&aiinput("","e3","",0,50,"*","f-a1|f-b1|f-c1",uy_e3)&"留言："&aiinput("","s1","",0,200,"留言信息","f-a2|f-b2|f-c2",uy_s1)&"</li>"
uydls=uydls&"<li class=""l-1"">城市："&utselect(1,"",uy_c1,"c1","")&"</li>"
uydls=uydls&"<li>地址："&aiinput("","d1","",0,50,"*定金人的详细地址","f-a2|f-b2|f-c2",uy_d1)&"姓名："&aiinput("","m1","",0,50,"*定金人姓名","f-a1|f-b1|f-c1",uy_m1)&"电话："&aiinput("","h1","",0,50,"*定金人联系电话","f-a1|f-b1|f-c1",uy_h1)&"</li>"
uydls=uydls&"<li class=""l-1"">内容："&aitext("yr","","",0,8000,"*交易内容","f-x4|f-y4|f-z4",uy_yr)&"</li>"
uydls=uydls&"<li class=""l-1"">"&uydgz&"</li>"
uydls=uydls&aiinput("hidden","uh","",0,0,"","",uy_uh)&aiinput("hidden","xy","",0,0,"","",uy_xy)&aiinput("hidden","ft","",0,0,"","",uy_ft)&aiinput("hidden","e1","",0,0,"","",uy_e1)&aiinput("hidden","s2","",0,0,"","",uy_s2)&aiinput("hidden","s3","",0,0,"","",uy_s3)&aiinput("hidden","c2","",0,0,"","",uy_c2)&aiinput("hidden","d2","",0,0,"","",uy_d2)&aiinput("hidden","m2","",0,0,"","",uy_m2)&aiinput("hidden","h2","",0,0,"","",uy_h2)&aiinput("hidden","pf","",0,0,"","",uy_pf)

elseif aibj(uyfty,"1") then
if aibj(uy_xy,"0") then
if aibj(uy_e1,e_uer) and not ainull(uy_e1) then
uydbd=1
uydsbs="确认联系方式"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">留言："&aiinput("","s1","",0,200,"留言信息","f-a4|f-b4|f-c4",uy_s1)&"</li>"
uydls=uydls&"<li>城市："&utselect(1,"",uy_c1,"c1","")&"</li>"
uydls=uydls&"<li class=""l-1"">地址："&aiinput("","d1","",0,50,"*详细地址","f-a2|f-b2|f-c2",uy_d1)&"姓名："&aiinput("","m1","",0,50,"*姓名","f-a1|f-b1|f-c1",uy_m1)&"电话："&aiinput("","h1","",0,50,"*联系电话","f-a1|f-b1|f-c1",uy_h1)&"</li>"
uydls=uydls&aiinput("hidden","xy","",0,0,"","",uy_xy)&aiinput("hidden","s2","",0,0,"","",uy_s2)&aiinput("hidden","s3","",0,0,"","",uy_s3)&aiinput("hidden","c2","",0,0,"","",uy_c2)&aiinput("hidden","d2","",0,0,"","",uy_d2)&aiinput("hidden","m2","",0,0,"","",uy_m2)&aiinput("hidden","h2","",0,0,"","",uy_h2)

elseif aibj(uy_e2,e_uer) then
uydbd=1
uydsbs="确认服务信息"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">状态："&aiselect("xy","","*交易状态","f-s3",uy_xy,"1|2",aiarr(i_buyxy,"|",1)&"|"&aiarr(i_buyxy,"|",2))&"</li>"
uydls=uydls&"<li>留言："&aiinput("","s2","",0,200,"留言信息","f-a4|f-b4|f-c4",uy_s2)&"</li>"
uydls=uydls&"<li class=""l-1"">卖家："&utselect(1,"",uy_c2,"c2","")&"</li>"
uydls=uydls&"<li>地址："&aiinput("","d2","",0,50,"*卖家人的详细地址","f-a2|f-b2|f-c2",uy_d2)&"名称："&aiinput("","m2","",0,50,"*卖家人尊称","f-a1|f-b1|f-c1",uy_m2)&"电话："&aiinput("","h2","",0,50,"*卖家人联系电话","f-a1|f-b1|f-c1",uy_h2)&"</li>"
uydls=uydls&aiinput("hidden","s1","",0,0,"","",uy_s1)&aiinput("hidden","s3","",0,0,"","",uy_s3)&aiinput("hidden","c1","",0,0,"","",uy_c1)&aiinput("hidden","d1","",0,0,"","",uy_d1)&aiinput("hidden","m1","",0,0,"","",uy_m1)&aiinput("hidden","h1","",0,0,"","",uy_h1)

elseif aibj(uy_e3,e_uer) then
uydbd=1
uydsbs="确认服务"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">状态："&aiselect("xy","","*交易状态","f-s3",uy_xy,"5|8",aiarr(i_buyxy,"|",5)&"|"&aiarr(i_buyxy,"|",8))&"</li>"
uydls=uydls&"<li>留言："&aiinput("","s3","",0,200,"留言信息","f-a4|f-b4|f-c4",uy_s3)&"</li>"
uydls=uydls&aiinput("hidden","s1","",0,0,"","",uy_s1)&aiinput("hidden","s2","",0,0,"","",uy_s2)&aiinput("hidden","c1","",0,0,"","",uy_c1)&aiinput("hidden","d1","",0,0,"","",uy_d1)&aiinput("hidden","m1","",0,0,"","",uy_m1)&aiinput("hidden","h1","",0,0,"","",uy_h1)&aiinput("hidden","c2","",0,0,"","",uy_c2)&aiinput("hidden","d2","",0,0,"","",uy_d2)&aiinput("hidden","m2","",0,0,"","",uy_m2)&aiinput("hidden","h2","",0,0,"","",uy_h2)
end if
uydls=uydls&"<li class=""l-1"">"&uydgz&"</li>"
uydls=uydls&aiinput("hidden","uh","",0,0,"","",uy_uh)&aiinput("hidden","yr","",0,0,"","",uy_yr)&aiinput("hidden","fk","",0,0,"","",uy_fk)&aiinput("hidden","ft","",0,0,"","",uy_ft)&aiinput("hidden","e1","",0,0,"","",uy_e1)&aiinput("hidden","j1","",0,0,"","",uy_j1)&aiinput("hidden","e2","",0,0,"","",uy_e2)&aiinput("hidden","j2","",0,0,"","",uy_j2)&aiinput("hidden","e3","",0,0,"","",uy_e3)&aiinput("hidden","j3","",0,0,"","",uy_j3)&aiinput("hidden","pf","",0,0,"","",uy_pf)

elseif aibj(uy_xy,"1") then
if aibj(uy_e1,e_uer) then
uydbd=1
uydsbs="确认服务信息"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">状态："&aiselect("xy","","*交易状态","f-s2",uy_xy,"1|7|3","编辑联系信息|"&aiarr(i_buyxy,"|",7)&"|"&aiarr(i_buyxy,"|",3))&"</li>"
uydls=uydls&"<li>留言："&aiinput("","s1","",0,200,"留言信息","f-a4|f-b4|f-c4",uy_s1)&"</li>"
uydls=uydls&aiinput("hidden","s2","",0,0,"","",uy_s2)&aiinput("hidden","s3","",0,0,"","",uy_s3)&aiinput("hidden","c1","",0,0,"","",uy_c1)&aiinput("hidden","d1","",0,0,"","",uy_d1)&aiinput("hidden","m1","",0,0,"","",uy_m1)&aiinput("hidden","h1","",0,0,"","",uy_h1)&aiinput("hidden","c2","",0,0,"","",uy_c2)&aiinput("hidden","d2","",0,0,"","",uy_d2)&aiinput("hidden","m2","",0,0,"","",uy_m2)&aiinput("hidden","h2","",0,0,"","",uy_h2)

elseif aibj(uy_e2,e_uer) then
uydbd=1
uydsbs="确认无法服务"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">状态："&aiselect("xy","","*交易状态","f-s3",uy_xy,"4",""&aiarr(i_buyxy,"|",4))&"</li>"
uydls=uydls&"<li>留言："&aiinput("","s2","",0,200,"留言信息","f-a4|f-b4|f-c4",uy_s2)&"</li>"
uydls=uydls&"<li class=""l-1"">卖家："&utselect(1,"",uy_c2,"c2","")&"</li>"
uydls=uydls&"<li>地址："&aiinput("","d2","",0,50,"*卖家人的详细地址","f-a2|f-b2|f-c2",uy_d2)&"名称："&aiinput("","m2","",0,50,"*卖家人尊称","f-a1|f-b1|f-c1",uy_m2)&"电话："&aiinput("","h2","",0,50,"*卖家人联系电话","f-a1|f-b1|f-c1",uy_h2)&"</li>"
uydls=uydls&aiinput("hidden","s1","",0,0,"","",uy_s1)&aiinput("hidden","s3","",0,0,"","",uy_s3)&aiinput("hidden","c1","",0,0,"","",uy_c1)&aiinput("hidden","d1","",0,0,"","",uy_d1)&aiinput("hidden","m1","",0,0,"","",uy_m1)&aiinput("hidden","h1","",0,0,"","",uy_h1)

elseif aibj(uy_e3,e_uer) then
uydbd=1
uydsbs="确认服务"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">状态："&aiselect("xy","","*交易状态","f-s3",uy_xy,"8|5",aiarr(i_buyxy,"|",8)&"|"&aiarr(i_buyxy,"|",5))&"</li>"
uydls=uydls&"<li>留言："&aiinput("","s3","",0,200,"留言信息","f-a4|f-b4|f-c4",uy_s3)&"</li>"
uydls=uydls&aiinput("hidden","s1","",0,0,"","",uy_s1)&aiinput("hidden","s2","",0,0,"","",uy_s2)&aiinput("hidden","c1","",0,0,"","",uy_c1)&aiinput("hidden","d1","",0,0,"","",uy_d1)&aiinput("hidden","m1","",0,0,"","",uy_m1)&aiinput("hidden","h1","",0,0,"","",uy_h1)&aiinput("hidden","c2","",0,0,"","",uy_c2)&aiinput("hidden","d2","",0,0,"","",uy_d2)&aiinput("hidden","m2","",0,0,"","",uy_m2)&aiinput("hidden","h2","",0,0,"","",uy_h2)
end if
uydls=uydls&"<li class=""l-1"">"&uydgz&"</li>"
uydls=uydls&aiinput("hidden","uh","",0,0,"","",uy_uh)&aiinput("hidden","yr","",0,0,"","",uy_yr)&aiinput("hidden","fk","",0,0,"","",uy_fk)&aiinput("hidden","ft","",0,0,"","",uy_ft)&aiinput("hidden","e1","",0,0,"","",uy_e1)&aiinput("hidden","j1","",0,0,"","",uy_j1)&aiinput("hidden","e2","",0,0,"","",uy_e2)&aiinput("hidden","j2","",0,0,"","",uy_j2)&aiinput("hidden","e3","",0,0,"","",uy_e3)&aiinput("hidden","j3","",0,0,"","",uy_j3)&aiinput("hidden","pf","",0,0,"","",uy_pf)

elseif int(uy_xy)>1 and aibj(uy_pf,0) then
if aibj(uy_e1,e_uer) and (aibj(uy_xy,"2") or aibj(uy_xy,"4") or aibj(uy_xy,"8")) then
uydbd=1
uydsbs="确认服务与评价"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">评价："&aiselect("pf","","*交易评分，评分操作完成后交易金额才能到卖家账户。","f-s1",uy_pf,0,i_buypf)&"</li>"
uydls=uydls&"<li>买注："&aiinput("","s1","",0,200,"买家备注信息","f-a4|f-b4|f-c4",uy_s1)&"</li>"
uydls=uydls&aiinput("hidden","s2","",0,0,"","",uy_s2)&aiinput("hidden","s2","",0,0,"","",uy_s2)

elseif aibj(uy_e2,e_uer) and (aibj(uy_xy,"3") or aibj(uy_xy,"5") or aibj(uy_xy,"7"))  then
uydbd=1
uydsbs="确认服务与评价"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">评价："&aiselect("pf","","*交易评分，评分操作完成后交易金额才能到卖家账户。","f-s1",uy_pf,0,i_buypf)&"</li>"
uydls=uydls&"<li>卖注："&aiinput("","s2","",0,200,"卖家备注信息","f-a4|f-b4|f-c4",uy_s2)&"</li>"
uydls=uydls&aiinput("hidden","s1","",0,0,"","",uy_s1)&aiinput("hidden","s3","",0,0,"","",uy_s3)

elseif aibj(uy_e3,e_uer) and not aibj(uy_xy,"5") and not aibj(uy_xy,"8") then
uydbd=1
uydsbs="确认服务与评价"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">评价："&aiselect("pf","","*交易评分，评分操作完成后交易金额才能到卖家账户。","f-s1",uy_pf,0,i_buypf)&"</li>"
uydls=uydls&"<li>证注："&aiinput("","s3","",0,200,"证方备注信息","f-a4|f-b4|f-c4",uy_s3)&"</li>"
uydls=uydls&aiinput("hidden","s1","",0,0,"","",uy_s1)&aiinput("hidden","s2","",0,0,"","",uy_s2)
end if

uydls=uydls&aiinput("hidden","uh","",0,0,"","",uy_uh)&aiinput("hidden","xy","",0,0,"","",uy_xy)&aiinput("hidden","c1","",0,0,"","",uy_c1)&aiinput("hidden","d1","",0,0,"","",uy_d1)&aiinput("hidden","m1","",0,0,"","",uy_m1)&aiinput("hidden","h1","",0,0,"","",uy_h1)&aiinput("hidden","c2","",0,0,"","",uy_c2)&aiinput("hidden","d2","",0,0,"","",uy_d2)&aiinput("hidden","m2","",0,0,"","",uy_m2)&aiinput("hidden","h2","",0,0,"","",uy_h2)&aiinput("hidden","yr","",0,0,"","",uy_yr)&aiinput("hidden","fk","",0,0,"","",uy_fk)&aiinput("hidden","ft","",0,0,"","",uy_ft)&aiinput("hidden","e1","",0,0,"","",uy_e1)&aiinput("hidden","j1","",0,0,"","",uy_j1)&aiinput("hidden","e2","",0,0,"","",uy_e2)&aiinput("hidden","j2","",0,0,"","",uy_j2)&aiinput("hidden","e3","",0,0,"","",uy_e3)&aiinput("hidden","j3","",0,0,"","",uy_j3)

elseif e_gdj>2 then
uydbd=1
uydsbs="管理员编辑服务"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li>状态："&aiselect("xy","","*交易状态","f-s2",uy_xy,0,i_buyxy)&"付方："&aiselect("fk","","*付款方式","f-s1",uy_fk,"0|1|2",i_buyfk)&"付态："&aiselect("ft","","*付款状态","f-s1",uy_ft,0,i_buyft)&"</li>"
uydls=uydls&"<li class=""l-1"">买家："&aiinput("","e1","",0,50,"*","f-a1|f-b1|f-c1",uy_e1)&"买定："&aiinput("","j1","",6,50,"*直接填写数字","f-a1|f-b1|f-c1",uy_j1)&"买注："&aiinput("","s1","",0,200,"买家备注信息","f-a2|f-b2|f-c2",uy_s1)&"</li>"
uydls=uydls&"<li>卖家："&aiinput("","e2","",0,50,"*","f-a1|f-b1|f-c1",uy_e2)&"卖定："&aiinput("","j2","",6,50,"*直接填写数字","f-a1|f-b1|f-c1",uy_j2)&"卖注："&aiinput("","s2","",0,200,"卖家备注信息","f-a2|f-b2|f-c2",uy_s2)&"</li>"
uydls=uydls&"<li class=""l-1"">证方："&aiinput("","e3","",0,50,"*","f-a1|f-b1|f-c1",uy_e3)&"实款："&aiinput("","j3","",6,50,"*直接填写数字","f-a1|f-b1|f-c1",uy_j3)&"证注："&aiinput("","s3","",0,200,"证方备注信息","f-a2|f-b2|f-c2",uy_s3)&"</li>"
uydls=uydls&"<li>编码："&aiinput("","uh","",0,50,"填写网站上面的信息编码","f-a2|f-b2|f-c2",uy_uh)&"</li>"
uydls=uydls&"<li class=""l-1"">内容："&aitext("yr","","",0,8000,"*交易内容","f-x4|f-y4|f-z4",uy_yr)&"</li>"
uydls=uydls&"<li>买家："&utselect(1,"",uy_c1,"c1","")&"</li>"
uydls=uydls&"<li class=""l-1"">地址："&aiinput("","d1","",0,50,"*买家人的详细地址","f-a2|f-b2|f-c2",uy_d1)&"名称："&aiinput("","m1","",0,50,"*买家人尊称","f-a1|f-b1|f-c1",uy_m1)&"电话："&aiinput("","h1","",0,50,"*买家人联系电话","f-a1|f-b1|f-c1",uy_h1)&"</li>"
uydls=uydls&"<li>卖家："&utselect(1,"",uy_c2,"c2","2")&"</li>"
uydls=uydls&"<li class=""l-1"">地址："&aiinput("","d2","",0,50,"*卖家人的详细地址","f-a2|f-b2|f-c2",uy_d2)&"名称："&aiinput("","m2","",0,50,"*卖家人尊称","f-a1|f-b1|f-c1",uy_m2)&"电话："&aiinput("","h2","",0,50,"*卖家人联系电话","f-a1|f-b1|f-c1",uy_h2)&"</li>"
uydls=uydls&"<li>评分："&aiselect("pf","","*交易评分，评分操作完成后交易金额才能到卖家账户。","f-s1",uy_pf,0,i_buypf)&"</li>"
end if
end if
uydls=uydls&aiinput("hidden","ty","",0,0,"","",uy_ty)&aiinput("hidden","sn","",0,0,"","",uy_sn)&aiinput("hidden","tm","",0,0,"","",uy_tm)&aiinput("hidden","t1","",0,0,"","",uy_t1)&aiinput("hidden","ot","",0,0,"","",uy_ot)&aiinput("hidden","xt","",0,0,"","",uy_xt)

'--------------------------------------------------------------------------------------------7购买定制
elseif aibj(uy_ty,"7") then
uydsbs="购买定制交易"
ew_bt=uydsbs&","&ew_bt:ew_zt=uydsbs&","&ew_zt:ew_nr=uydsbs&","&ew_nr:ew_cp=uydsbs&","&ew_cp
e_wl=e_wl&" &gt;&gt; <a href="""&e_ur1&""">"&uydsbs&"</a>"
if uyfty=0 then
uydbd=1
uydsbs="发起购买定制交易"
e_mt=esbts(s_udxuy,s_udluy,uydsbs&""&g_gy&e_ur1,s_uduys&s_umlbs&g_gy&e_ur0)
uydls=uydls&"<li class=""l-1"">付方："&aiselect("fk","","*付款方式","f-s1",uy_fk,0,i_buyfk)&"买出："&aiinput("","j1","",6,50,"*直接填写数字","f-a1|f-b1|f-c1",uy_j1)&"买注："&aiinput("","s1","",0,200,"买家备注信息","f-a2|f-b2|f-c2",uy_s1)&"</li>"
uydls=uydls&"<li>卖家："&aiinput("","e2","",0,50,"*","f-a1|f-b1|f-c1",uy_e2)&"卖得："&aiinput("","j2","",6,50,"*直接填写数字","f-a1|f-b1|f-c1",uy_j2)&"证方："&aiinput("","e3","",0,50,"*","f-a1|f-b1|f-c1",uy_e3)&"证获："&aiinput("","j3","",6,50,"*直接填写数字","f-a1|f-b1|f-c1",uy_j3)&"</li>"
uydls=uydls&"<li class=""l-1"">内容："&aitext("yr","","",0,8000,"*交易内容","f-x4|f-y4|f-z4",uy_yr)&"</li>"
uydls=uydls&"<li>买家："&utselect(1,"",uy_c1,"c1","")&"</li>"
uydls=uydls&"<li class=""l-1"">地址："&aiinput("","d1","",0,50,"*买家的详细地址","f-a2|f-b2|f-c2",uy_d1)&"名称："&aiinput("","m1","",0,50,"*买家尊称","f-a1|f-b1|f-c1",uy_m1)&"电话："&aiinput("","h1","",0,50,"*买家联系电话","f-a1|f-b1|f-c1",uy_h1)&"</li>"
uydls=uydls&aiinput("hidden","xy","",0,0,"","",uy_xy)&aiinput("hidden","ft","",0,0,"","",uy_ft)&aiinput("hidden","e1","",0,0,"","",uy_e1)&aiinput("hidden","s2","",0,0,"","",uy_s2)&aiinput("hidden","s3","",0,0,"","",uy_s3)&aiinput("hidden","c2","",0,0,"","",uy_c2)&aiinput("hidden","d2","",0,0,"","",uy_d2)&aiinput("hidden","m2","",0,0,"","",uy_m2)&aiinput("hidden","h2","",0,0,"","",uy_h2)&aiinput("hidden","pf","",0,0,"","",uy_pf)

elseif aibj(uy_xy,"0") and uyfty=1 then
if aibj(uy_e1,e_uer) then
uydbd=1
uydsbs="编辑交易信息"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">状态："&aiselect("xy","","*交易状态","f-s2",uy_xy,"0|3","编辑交易信息|"&aiarr(i_buyxy,"|",3))&"</li>"
uydls=uydls&"<li>留言："&aiinput("","s1","",0,200,"买家备注信息","f-a4|f-b4|f-c4",uy_s1)&"</li>"
uydls=uydls&"<li class=""l-1"">内容："&aitext("yr","","",0,8000,"*交易内容","f-x4|f-y4|f-z4",uy_yr)&"</li>"
uydls=uydls&"<li>城市："&utselect(1,"",uy_c1,"c1","")&"</li>"
uydls=uydls&"<li class=""l-1"">地址："&aiinput("","d1","",0,50,"*买家的详细地址","f-a2|f-b2|f-c2",uy_d1)&"名称："&aiinput("","m1","",0,50,"*买家尊称","f-a1|f-b1|f-c1",uy_m1)&"电话："&aiinput("","h1","",0,50,"*买家联系电话","f-a1|f-b1|f-c1",uy_h1)&"</li>"
uydls=uydls&aiinput("hidden","s2","",0,0,"","",uy_s2)&aiinput("hidden","s3","",0,0,"","",uy_s3)&aiinput("hidden","c2","",0,0,"","",uy_c2)&aiinput("hidden","d2","",0,0,"","",uy_d2)&aiinput("hidden","m2","",0,0,"","",uy_m2)&aiinput("hidden","h2","",0,0,"","",uy_h2)&aiinput("hidden","ft","",0,0,"","",uy_ft)
elseif aibj(uy_e2,e_uer) then
uydbd=1
uydsbs="确认交易服务"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">状态："&aiselect("xy","","*交易状态","f-s3",uy_xy,"1|2",aiarr(i_buyxy,"|",1)&"|"&aiarr(i_buyxy,"|",2))
if aiint(uy_fk)=4 and aiint(uy_ft)<2 then
uydls=uydls&"状态："&aiselect("ft","","*付款状态","f-s1",uy_ft,0,i_buyft)
elseif aiint(uy_fk)=3 and aiint(uy_ft)<2 then
uydls=uydls&"状态："&aiselect("ft","","*付款状态","f-s1",uy_ft,"0|1",i_buyft)
else
uydls=uydls&aiinput("hidden","ft","",0,0,"","",uy_ft)
end if
uydls=uydls&"</li>"
uydls=uydls&"<li>留言："&aiinput("","s2","",0,200,"卖家备注信息","f-a4|f-b4|f-c4",uy_s2)&"</li>"
uydls=uydls&"<li class=""l-1"">城市："&utselect(1,"",uy_c2,"c2","")&"</li>"
uydls=uydls&"<li>地址："&aiinput("","d2","",0,50,"*卖家人的详细地址","f-a2|f-b2|f-c2",uy_d2)&"名称："&aiinput("","m2","",0,50,"*卖家人尊称","f-a1|f-b1|f-c1",uy_m2)&"电话："&aiinput("","h2","",0,50,"*卖家人联系电话","f-a1|f-b1|f-c1",uy_h2)&"</li>"
uydls=uydls&aiinput("hidden","s1","",0,0,"","",uy_s1)&aiinput("hidden","s3","",0,0,"","",uy_s3)&aiinput("hidden","yr","",0,0,"","",uy_yr)&aiinput("hidden","c1","",0,0,"","",uy_c1)&aiinput("hidden","d1","",0,0,"","",uy_d1)&aiinput("hidden","m1","",0,0,"","",uy_m1)&aiinput("hidden","h1","",0,0,"","",uy_h1)
elseif aibj(uy_e3,e_uer) then
uydbd=1
uydsbs="取消交易服务"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">状态："&aiselect("xy","","*交易状态","f-s2",uy_xy,"5",aiarr(i_buyxy,"|",5))&"</li>"
uydls=uydls&"<li>留言："&aiinput("","s3","",0,200,"卖家备注信息","f-a4|f-b4|f-c4",uy_s3)&"</li>"
uydls=uydls&aiinput("hidden","s1","",0,0,"","",uy_s1)&aiinput("hidden","s2","",0,0,"","",uy_s2)&aiinput("hidden","yr","",0,0,"","",uy_yr)&aiinput("hidden","c1","",0,0,"","",uy_c1)&aiinput("hidden","d1","",0,0,"","",uy_d1)&aiinput("hidden","m1","",0,0,"","",uy_m1)&aiinput("hidden","h1","",0,0,"","",uy_h1)&aiinput("hidden","c2","",0,0,"","",uy_c2)&aiinput("hidden","d2","",0,0,"","",uy_d2)&aiinput("hidden","m2","",0,0,"","",uy_m2)&aiinput("hidden","h2","",0,0,"","",uy_h2)&aiinput("hidden","ft","",0,0,"","",uy_ft)
end if
uydls=uydls&aiinput("hidden","j1","",0,0,"","",uy_j1)&aiinput("hidden","e1","",0,0,"","",uy_e1)&aiinput("hidden","j2","",0,0,"","",uy_j2)&aiinput("hidden","e2","",0,0,"","",uy_e2)&aiinput("hidden","j3","",0,0,"","",uy_j3)&aiinput("hidden","e3","",0,0,"","",uy_e3)&aiinput("hidden","fk","",0,0,"","",uy_fk)&aiinput("hidden","pf","",0,0,"","",uy_pf)

elseif aibj(uy_xy,"1") then
if aiint(uy_fk)=3 and aiint(uy_ft)<2 and aibj(uy_e1,e_uer) then
uydbd=1
uydsbs=""
uydls=uydls&"<li class=""l-1"">"&aiiframe(eshref("http://www.eesai.com/API/ZF/?fk="&uy_j1&"&mj="&i_mzf&"&bh="&uy_sn&"&mc="&uy_e1&"-"&uy_e2&"&ms="&uy_tm&"&wz="&g_uhost&"",3),"zhifu","100%","600px")&"</li>"'tit
elseif aibj(uy_e1,e_uer) then
uydbd=1
uydsbs="确认服务与评价"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">状态："&aiselect("xy","","*交易状态","f-s3",uy_xy,"7",aiarr(i_buyxy,"|",7))&"</li>"
uydls=uydls&"<li>评价："&aiinput("","s1","",0,200,"买家评价信息","f-a4|f-b4|f-c4",uy_s1)&"</li>"
if aiint(uy_ft)<2 then
uydls=uydls&aiinput("hidden","pf","",0,0,"","",uy_pf)
else
uydls=uydls&"<li class=""l-1"">评分："&aiselect("pf","","*交易评分，评分操作完成后交易金额才能到卖家账户。","f-s1",uy_pf,0,i_buypf)&"</li>"
end if
uydls=uydls&aiinput("hidden","s2","",0,0,"","",uy_s2)&aiinput("hidden","s3","",0,0,"","",uy_s3)&aiinput("hidden","ft","",0,0,"","",uy_ft)
elseif aibj(uy_e2,e_uer) then
uydbd=1
uydsbs="确认服务信息"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">状态："&aiselect("xy","","*交易状态","f-s3",uy_xy,"1|4",aiarr(i_buyxy,"|",1)&"|"&aiarr(i_buyxy,"|",4))
if aiint(uy_fk)=4 and aiint(uy_ft)<2 then
uydls=uydls&"状态："&aiselect("ft","","*付款状态","f-s1",uy_ft,0,i_buyft)
elseif aiint(uy_fk)=3 and aiint(uy_ft)<2 then
uydls=uydls&"状态："&aiselect("ft","","*付款状态","f-s1",uy_ft,"0|1",i_buyft)
else
uydls=uydls&aiinput("hidden","ft","",0,0,"","",uy_ft)
end if
uydls=uydls&"</li>"
uydls=uydls&"<li>留言："&aiinput("","s2","",0,200,"卖家备注信息","f-a4|f-b4|f-c4",uy_s2)&"</li>"
uydls=uydls&aiinput("hidden","s1","",0,0,"","",uy_s1)&aiinput("hidden","s3","",0,0,"","",uy_s3)&aiinput("hidden","pf","",0,0,"","",uy_pf)
elseif aibj(uy_e3,e_uer) then
uydbd=1
uydsbs="确认服务信息"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">状态："&aiselect("xy","","*交易状态","f-s2",uy_xy,"8|5",aiarr(i_buyxy,"|",8)&"|"&aiarr(i_buyxy,"|",5))&"</li>"
uydls=uydls&"<li>留言："&aiinput("","s3","",0,200,"卖家备注信息","f-a4|f-b4|f-c4",uy_s3)&"</li>"
uydls=uydls&aiinput("hidden","s1","",0,0,"","",uy_s1)&aiinput("hidden","s2","",0,0,"","",uy_s2)&aiinput("hidden","pf","",0,0,"","",uy_pf)&aiinput("hidden","ft","",0,0,"","",uy_ft)
end if
uydls=uydls&aiinput("hidden","yr","",0,0,"","",uy_yr)&aiinput("hidden","j1","",0,0,"","",uy_j1)&aiinput("hidden","e1","",0,0,"","",uy_e1)&aiinput("hidden","j2","",0,0,"","",uy_j2)&aiinput("hidden","e2","",0,0,"","",uy_e2)&aiinput("hidden","j3","",0,0,"","",uy_j3)&aiinput("hidden","e3","",0,0,"","",uy_e3)&aiinput("hidden","m1","",0,0,"","",uy_m1)&aiinput("hidden","h1","",0,0,"","",uy_h1)&aiinput("hidden","c1","",0,0,"","",uy_c1)&aiinput("hidden","d1","",0,0,"","",uy_d1)&aiinput("hidden","m2","",0,0,"","",uy_m2)&aiinput("hidden","h2","",0,0,"","",uy_h2)&aiinput("hidden","c2","",0,0,"","",uy_c2)&aiinput("hidden","d2","",0,0,"","",uy_d2)&aiinput("hidden","fk","",0,0,"","",uy_fk)

elseif aiint(uy_xy)>1 and aiint(uy_fk)>2 and aiint(uy_ft)<2 then
if aibj(uy_e2,e_uer) then
uydbd=1
uydsbs="确认付款信息"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">"
if aiint(uy_fk)=4 and aiint(uy_ft)<2 then
uydls=uydls&"状态："&aiselect("ft","","*付款状态","f-s1",uy_ft,0,i_buyft)
elseif aiint(uy_fk)=3 and aiint(uy_ft)<2 then
uydls=uydls&"状态："&aiselect("ft","","*付款状态","f-s1",uy_ft,"0|1",i_buyft)
else
uydls=uydls&aiinput("hidden","ft","",0,0,"","",uy_ft)&"注意：当前订单还未完成付款！"
end if
uydls=uydls&"</li>"
uydls=uydls&"<li>留言："&aiinput("","s2","",0,200,"卖家备注信息","f-a4|f-b4|f-c4",uy_s2)&"</li>"
uydls=uydls&aiinput("hidden","xy","",0,0,"","",uy_xy)&aiinput("hidden","s1","",0,0,"","",uy_s1)&aiinput("hidden","s3","",0,0,"","",uy_s3)&aiinput("hidden","pf","",0,0,"","",uy_pf)&aiinput("hidden","yr","",0,0,"","",uy_yr)&aiinput("hidden","j1","",0,0,"","",uy_j1)&aiinput("hidden","e1","",0,0,"","",uy_e1)&aiinput("hidden","j2","",0,0,"","",uy_j2)&aiinput("hidden","e2","",0,0,"","",uy_e2)&aiinput("hidden","j3","",0,0,"","",uy_j3)&aiinput("hidden","e3","",0,0,"","",uy_e3)&aiinput("hidden","m1","",0,0,"","",uy_m1)&aiinput("hidden","h1","",0,0,"","",uy_h1)&aiinput("hidden","c1","",0,0,"","",uy_c1)&aiinput("hidden","d1","",0,0,"","",uy_d1)&aiinput("hidden","m2","",0,0,"","",uy_m2)&aiinput("hidden","h2","",0,0,"","",uy_h2)&aiinput("hidden","c2","",0,0,"","",uy_c2)&aiinput("hidden","d2","",0,0,"","",uy_d2)&aiinput("hidden","fk","",0,0,"","",uy_fk)
end if

elseif aiint(uy_xy)>1 and aiint(uy_pf)=0 and aibj(uy_e1,e_uer) then
uydbd=1
uydsbs="结单与评价服务"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">评价："&aiinput("","s1","",0,200,"买家评价信息","f-a4|f-b4|f-c4",uy_s1)&"</li>"
uydls=uydls&"<li>评分："&aiselect("pf","","*交易评分，评分操作完成后交易金额才能到卖家账户。","f-s1",uy_pf,0,i_buypf)&"</li>"
uydls=uydls&aiinput("hidden","yr","",0,0,"","",uy_yr)&aiinput("hidden","j1","",0,0,"","",uy_j1)&aiinput("hidden","e1","",0,0,"","",uy_e1)&aiinput("hidden","j2","",0,0,"","",uy_j2)&aiinput("hidden","e2","",0,0,"","",uy_e2)&aiinput("hidden","s2","",0,0,"","",uy_s2)&aiinput("hidden","j3","",0,0,"","",uy_j3)&aiinput("hidden","e3","",0,0,"","",uy_e3)&aiinput("hidden","s3","",0,0,"","",uy_s3)&aiinput("hidden","m1","",0,0,"","",uy_m1)&aiinput("hidden","h1","",0,0,"","",uy_h1)&aiinput("hidden","c1","",0,0,"","",uy_c1)&aiinput("hidden","d1","",0,0,"","",uy_d1)&aiinput("hidden","m2","",0,0,"","",uy_m2)&aiinput("hidden","h2","",0,0,"","",uy_h2)&aiinput("hidden","c2","",0,0,"","",uy_c2)&aiinput("hidden","d2","",0,0,"","",uy_d2)&aiinput("hidden","fk","",0,0,"","",uy_fk)&aiinput("hidden","ft","",0,0,"","",uy_ft)&aiinput("hidden","xy","",0,0,"","",uy_xy)

elseif e_gdj>2 then
uydbd=1
uydsbs="管理员编辑服务"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li>状态："&aiselect("xy","","*交易状态","f-s2",uy_xy,0,i_buyxy)&"付方："&aiselect("fk","","*付款方式","f-s1",uy_fk,"0|1|2",i_buyfk)&"付态："&aiselect("ft","","*付款状态","f-s1",uy_ft,0,i_buyft)&"</li>"
uydls=uydls&"<li class=""l-1"">买家："&aiinput("","e1","",0,50,"*","f-a1|f-b1|f-c1",uy_e1)&"买出："&aiinput("","j1","",6,50,"*直接填写数字","f-a1|f-b1|f-c1",uy_j1)&"买注："&aiinput("","s1","",0,200,"买家备注信息","f-a2|f-b2|f-c2",uy_s1)&"</li>"
uydls=uydls&"<li>卖家："&aiinput("","e2","",0,50,"*","f-a1|f-b1|f-c1",uy_e2)&"卖得："&aiinput("","j2","",6,50,"*直接填写数字","f-a1|f-b1|f-c1",uy_j2)&"卖注："&aiinput("","s2","",0,200,"卖家备注信息","f-a2|f-b2|f-c2",uy_s2)&"</li>"
uydls=uydls&"<li class=""l-1"">证方："&aiinput("","e3","",0,50,"*","f-a1|f-b1|f-c1",uy_e3)&"证获："&aiinput("","j3","",6,50,"*直接填写数字","f-a1|f-b1|f-c1",uy_j3)&"证注："&aiinput("","s3","",0,200,"证方备注信息","f-a2|f-b2|f-c2",uy_s3)&"</li>"
uydls=uydls&"<li class=""l-1"">内容："&aitext("yr","","",0,8000,"*交易内容","f-x4|f-y4|f-z4",uy_yr)&"</li>"
uydls=uydls&"<li>买家："&utselect(1,"",uy_c1,"c1","")&"</li>"
uydls=uydls&"<li class=""l-1"">地址："&aiinput("","d1","",0,50,"*买家人的详细地址","f-a2|f-b2|f-c2",uy_d1)&"名称："&aiinput("","m1","",0,50,"*买家人尊称","f-a1|f-b1|f-c1",uy_m1)&"电话："&aiinput("","h1","",0,50,"*买家人联系电话","f-a1|f-b1|f-c1",uy_h1)&"</li>"
uydls=uydls&"<li>卖家："&utselect(1,"",uy_c2,"c2","2")&"</li>"
uydls=uydls&"<li class=""l-1"">地址："&aiinput("","d2","",0,50,"*卖家人的详细地址","f-a2|f-b2|f-c2",uy_d2)&"名称："&aiinput("","m2","",0,50,"*卖家人尊称","f-a1|f-b1|f-c1",uy_m2)&"电话："&aiinput("","h2","",0,50,"*卖家人联系电话","f-a1|f-b1|f-c1",uy_h2)&"</li>"
uydls=uydls&"<li>评分："&aiselect("pf","","*交易评分，评分操作完成后交易金额才能到卖家账户。","f-s1",uy_pf,0,i_buypf)&"</li>"
end if
uydls=uydls&aiinput("hidden","ty","",0,0,"","",uy_ty)&aiinput("hidden","uh","",0,0,"","",uy_uh)&aiinput("hidden","sn","",0,0,"","",uy_sn)&aiinput("hidden","tm","",0,0,"","",uy_tm)&aiinput("hidden","t1","",0,0,"","",uy_t1)&aiinput("hidden","ot","",0,0,"","",uy_ot)&aiinput("hidden","xt","",0,0,"","",uy_xt)

'--------------------------------------------------------------------------------------------8出售定制
elseif aibj(uy_ty,"8") then
uydsbs="出售定制交易"
ew_bt=uydsbs&","&ew_bt:ew_zt=uydsbs&","&ew_zt:ew_nr=uydsbs&","&ew_nr:ew_cp=uydsbs&","&ew_cp
e_wl=e_wl&" &gt;&gt; <a href="""&e_ur1&""">"&uydsbs&"</a>"
if uyfty=0 then
uydbd=1
uydsbs="发起出售定制交易"
e_mt=esbts(s_udxuy,s_udluy,uydsbs&""&g_gy&e_ur1,s_uduys&s_umlbs&g_gy&e_ur0)
uydls=uydls&"<li class=""l-1"">付方："&aiselect("fk","","*付款方式","f-s1",uy_fk,0,i_buyfk)&"报价："&aiinput("","j1","",6,50,"*直接填写数字","f-a1|f-b1|f-c1",uy_j1)&"备注："&aiinput("","s2","",0,200,"卖家备注信息","f-a2|f-b2|f-c2",uy_s2)&"</li>"
uydls=uydls&"<li>买家："&aiinput("","e1","",0,50,"*","f-a1|f-b1|f-c1",uy_e1)&"卖得："&aiinput("","j2","",6,50,"*直接填写数字","f-a1|f-b1|f-c1",uy_j2)&"证方："&aiinput("","e3","",0,50,"*","f-a1|f-b1|f-c1",uy_e3)&"证获："&aiinput("","j3","",6,50,"*直接填写数字","f-a1|f-b1|f-c1",uy_j3)&"</li>"
uydls=uydls&"<li class=""l-1"">内容："&aitext("yr","","",0,8000,"*交易内容","f-x4|f-y4|f-z4",uy_yr)&"</li>"
uydls=uydls&"<li>卖家："&utselect(1,"",uy_c2,"c2","")&"</li>"
uydls=uydls&"<li class=""l-1"">地址："&aiinput("","d2","",0,50,"*卖家的详细地址","f-a2|f-b2|f-c2",uy_d2)&"名称："&aiinput("","m2","",0,50,"*卖家尊称","f-a1|f-b1|f-c1",uy_m2)&"电话："&aiinput("","h2","",0,50,"*卖家联系电话","f-a1|f-b1|f-c1",uy_h2)&"</li>"
uydls=uydls&aiinput("hidden","xy","",0,0,"","",uy_xy)&aiinput("hidden","ft","",0,0,"","",uy_ft)&aiinput("hidden","e2","",0,0,"","",uy_e2)&aiinput("hidden","s1","",0,0,"","",uy_s1)&aiinput("hidden","s3","",0,0,"","",uy_s3)&aiinput("hidden","c1","",0,0,"","",uy_c1)&aiinput("hidden","d1","",0,0,"","",uy_d1)&aiinput("hidden","m1","",0,0,"","",uy_m1)&aiinput("hidden","h1","",0,0,"","",uy_h1)&aiinput("hidden","pf","",0,0,"","",uy_pf)

elseif aibj(uy_xy,"0") and uyfty=1 then
if aibj(uy_e1,e_uer) then
uydbd=1
uydsbs="编辑交易信息"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">状态："&aiselect("xy","","*交易状态","f-s2",uy_xy,"0|3","编辑交易信息|"&aiarr(i_buyxy,"|",3))&"</li>"
uydls=uydls&"<li>留言："&aiinput("","s1","",0,200,"买家备注信息","f-a4|f-b4|f-c4",uy_s1)&"</li>"
uydls=uydls&"<li class=""l-1"">内容："&aitext("yr","","",0,8000,"*交易内容","f-x4|f-y4|f-z4",uy_yr)&"</li>"
uydls=uydls&"<li>城市："&utselect(1,"",uy_c1,"c1","")&"</li>"
uydls=uydls&"<li class=""l-1"">地址："&aiinput("","d1","",0,50,"*买家的详细地址","f-a2|f-b2|f-c2",uy_d1)&"名称："&aiinput("","m1","",0,50,"*买家尊称","f-a1|f-b1|f-c1",uy_m1)&"电话："&aiinput("","h1","",0,50,"*买家联系电话","f-a1|f-b1|f-c1",uy_h1)&"</li>"
uydls=uydls&aiinput("hidden","s2","",0,0,"","",uy_s2)&aiinput("hidden","s3","",0,0,"","",uy_s3)&aiinput("hidden","c2","",0,0,"","",uy_c2)&aiinput("hidden","d2","",0,0,"","",uy_d2)&aiinput("hidden","m2","",0,0,"","",uy_m2)&aiinput("hidden","h2","",0,0,"","",uy_h2)&aiinput("hidden","ft","",0,0,"","",uy_ft)
elseif aibj(uy_e2,e_uer) then
uydbd=1
uydsbs="确认交易服务"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">状态："&aiselect("xy","","*交易状态","f-s3",uy_xy,"1|2",aiarr(i_buyxy,"|",1)&"|"&aiarr(i_buyxy,"|",2))
if aiint(uy_fk)=4 and aiint(uy_ft)<2 then
uydls=uydls&"状态："&aiselect("ft","","*付款状态","f-s1",uy_ft,0,i_buyft)
elseif aiint(uy_fk)=3 and aiint(uy_ft)<2 then
uydls=uydls&"状态："&aiselect("ft","","*付款状态","f-s1",uy_ft,"0|1",i_buyft)
else
uydls=uydls&aiinput("hidden","ft","",0,0,"","",uy_ft)
end if
uydls=uydls&"</li>"
uydls=uydls&"<li>留言："&aiinput("","s2","",0,200,"卖家备注信息","f-a4|f-b4|f-c4",uy_s2)&"</li>"
uydls=uydls&"<li class=""l-1"">城市："&utselect(1,"",uy_c2,"c2","")&"</li>"
uydls=uydls&"<li>地址："&aiinput("","d2","",0,50,"*卖家人的详细地址","f-a2|f-b2|f-c2",uy_d2)&"名称："&aiinput("","m2","",0,50,"*卖家人尊称","f-a1|f-b1|f-c1",uy_m2)&"电话："&aiinput("","h2","",0,50,"*卖家人联系电话","f-a1|f-b1|f-c1",uy_h2)&"</li>"
uydls=uydls&aiinput("hidden","s1","",0,0,"","",uy_s1)&aiinput("hidden","s3","",0,0,"","",uy_s3)&aiinput("hidden","yr","",0,0,"","",uy_yr)&aiinput("hidden","c1","",0,0,"","",uy_c1)&aiinput("hidden","d1","",0,0,"","",uy_d1)&aiinput("hidden","m1","",0,0,"","",uy_m1)&aiinput("hidden","h1","",0,0,"","",uy_h1)
elseif aibj(uy_e3,e_uer) then
uydbd=1
uydsbs="取消交易服务"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">状态："&aiselect("xy","","*交易状态","f-s2",uy_xy,"5",aiarr(i_buyxy,"|",5))&"</li>"
uydls=uydls&"<li>留言："&aiinput("","s3","",0,200,"卖家备注信息","f-a4|f-b4|f-c4",uy_s3)&"</li>"
uydls=uydls&aiinput("hidden","s1","",0,0,"","",uy_s1)&aiinput("hidden","s2","",0,0,"","",uy_s2)&aiinput("hidden","yr","",0,0,"","",uy_yr)&aiinput("hidden","c1","",0,0,"","",uy_c1)&aiinput("hidden","d1","",0,0,"","",uy_d1)&aiinput("hidden","m1","",0,0,"","",uy_m1)&aiinput("hidden","h1","",0,0,"","",uy_h1)&aiinput("hidden","c2","",0,0,"","",uy_c2)&aiinput("hidden","d2","",0,0,"","",uy_d2)&aiinput("hidden","m2","",0,0,"","",uy_m2)&aiinput("hidden","h2","",0,0,"","",uy_h2)&aiinput("hidden","ft","",0,0,"","",uy_ft)
end if
uydls=uydls&aiinput("hidden","j1","",0,0,"","",uy_j1)&aiinput("hidden","e1","",0,0,"","",uy_e1)&aiinput("hidden","j2","",0,0,"","",uy_j2)&aiinput("hidden","e2","",0,0,"","",uy_e2)&aiinput("hidden","j3","",0,0,"","",uy_j3)&aiinput("hidden","e3","",0,0,"","",uy_e3)&aiinput("hidden","fk","",0,0,"","",uy_fk)&aiinput("hidden","pf","",0,0,"","",uy_pf)

elseif aibj(uy_xy,"1") then
if aiint(uy_fk)=3 and aiint(uy_ft)<2 and aibj(uy_e1,e_uer) then
uydbd=1
uydsbs=""
uydls=uydls&"<li class=""l-1"">"&aiiframe(eshref("http://www.eesai.com/API/ZF/?fk="&uy_j1&"&mj="&i_mzf&"&bh="&uy_sn&"&mc="&uy_e1&"-"&uy_e2&"&ms="&uy_tm&"&wz="&g_uhost&"",3),"zhifu","100%","600px")&"</li>"'tit
elseif aibj(uy_e1,e_uer) then
uydbd=1
uydsbs="确认服务与评价"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">状态："&aiselect("xy","","*交易状态","f-s3",uy_xy,"7|3",aiarr(i_buyxy,"|",7)&"|"&aiarr(i_buyxy,"|",3))&"</li>"
uydls=uydls&"<li>城市："&utselect(1,"",uy_c1,"c1","")&"</li>"
uydls=uydls&"<li class=""l-1"">地址："&aiinput("","d1","",0,50,"*买家的详细地址","f-a2|f-b2|f-c2",uy_d1)&"名称："&aiinput("","m1","",0,50,"*买家尊称","f-a1|f-b1|f-c1",uy_m1)&"电话："&aiinput("","h1","",0,50,"*买家联系电话","f-a1|f-b1|f-c1",uy_h1)&"</li>"
uydls=uydls&"<li>评价："&aiinput("","s1","",0,200,"买家评价信息","f-a4|f-b4|f-c4",uy_s1)&"</li>"
if aiint(uy_ft)<2 then
uydls=uydls&aiinput("hidden","pf","",0,0,"","",uy_pf)
else
uydls=uydls&"<li class=""l-1"">评分："&aiselect("pf","","*交易评分，评分操作完成后交易金额才能到卖家账户。","f-s1",uy_pf,0,i_buypf)&"</li>"
end if
uydls=uydls&aiinput("hidden","s2","",0,0,"","",uy_s2)&aiinput("hidden","s3","",0,0,"","",uy_s3)&aiinput("hidden","ft","",0,0,"","",uy_ft)
elseif aibj(uy_e2,e_uer) then
uydbd=1
uydsbs="确认服务信息"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">状态："&aiselect("xy","","*交易状态","f-s3",uy_xy,"1|4",aiarr(i_buyxy,"|",1)&"|"&aiarr(i_buyxy,"|",4))
if aiint(uy_fk)=4 and aiint(uy_ft)<2 then
uydls=uydls&"状态："&aiselect("ft","","*付款状态","f-s1",uy_ft,0,i_buyft)
elseif aiint(uy_fk)=3 and aiint(uy_ft)<2 then
uydls=uydls&"状态："&aiselect("ft","","*付款状态","f-s1",uy_ft,"0|1",i_buyft)
else
uydls=uydls&aiinput("hidden","ft","",0,0,"","",uy_ft)
end if
uydls=uydls&"</li>"
uydls=uydls&"<li>留言："&aiinput("","s2","",0,200,"卖家备注信息","f-a4|f-b4|f-c4",uy_s2)&"</li>"
uydls=uydls&aiinput("hidden","s1","",0,0,"","",uy_s1)&aiinput("hidden","s3","",0,0,"","",uy_s3)&aiinput("hidden","pf","",0,0,"","",uy_pf)&aiinput("hidden","m1","",0,0,"","",uy_m1)&aiinput("hidden","h1","",0,0,"","",uy_h1)&aiinput("hidden","c1","",0,0,"","",uy_c1)&aiinput("hidden","d1","",0,0,"","",uy_d1)
elseif aibj(uy_e3,e_uer) then
uydbd=1
uydsbs="确认服务信息"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">状态："&aiselect("xy","","*交易状态","f-s2",uy_xy,"8|5",aiarr(i_buyxy,"|",8)&"|"&aiarr(i_buyxy,"|",5))&"</li>"
uydls=uydls&"<li>留言："&aiinput("","s3","",0,200,"卖家备注信息","f-a4|f-b4|f-c4",uy_s3)&"</li>"
uydls=uydls&aiinput("hidden","s1","",0,0,"","",uy_s1)&aiinput("hidden","s2","",0,0,"","",uy_s2)&aiinput("hidden","pf","",0,0,"","",uy_pf)&aiinput("hidden","ft","",0,0,"","",uy_ft)&aiinput("hidden","m1","",0,0,"","",uy_m1)&aiinput("hidden","h1","",0,0,"","",uy_h1)&aiinput("hidden","c1","",0,0,"","",uy_c1)&aiinput("hidden","d1","",0,0,"","",uy_d1)
end if
uydls=uydls&aiinput("hidden","yr","",0,0,"","",uy_yr)&aiinput("hidden","j1","",0,0,"","",uy_j1)&aiinput("hidden","e1","",0,0,"","",uy_e1)&aiinput("hidden","j2","",0,0,"","",uy_j2)&aiinput("hidden","e2","",0,0,"","",uy_e2)&aiinput("hidden","j3","",0,0,"","",uy_j3)&aiinput("hidden","e3","",0,0,"","",uy_e3)&aiinput("hidden","m2","",0,0,"","",uy_m2)&aiinput("hidden","h2","",0,0,"","",uy_h2)&aiinput("hidden","c2","",0,0,"","",uy_c2)&aiinput("hidden","d2","",0,0,"","",uy_d2)&aiinput("hidden","fk","",0,0,"","",uy_fk)

elseif aiint(uy_xy)>1 and aiint(uy_fk)>2 and aiint(uy_ft)<2 then
if aibj(uy_e2,e_uer) then
uydbd=1
uydsbs="确认付款信息"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">"
if aiint(uy_fk)=4 and aiint(uy_ft)<2 then
uydls=uydls&"状态："&aiselect("ft","","*付款状态","f-s1",uy_ft,0,i_buyft)
elseif aiint(uy_fk)=3 and aiint(uy_ft)<2 then
uydls=uydls&"状态："&aiselect("ft","","*付款状态","f-s1",uy_ft,"0|1",i_buyft)
else
uydls=uydls&aiinput("hidden","ft","",0,0,"","",uy_ft)&"注意：当前订单还未完成付款！"
end if
uydls=uydls&"</li>"
uydls=uydls&"<li>留言："&aiinput("","s2","",0,200,"卖家备注信息","f-a4|f-b4|f-c4",uy_s2)&"</li>"
uydls=uydls&aiinput("hidden","xy","",0,0,"","",uy_xy)&aiinput("hidden","s1","",0,0,"","",uy_s1)&aiinput("hidden","s3","",0,0,"","",uy_s3)&aiinput("hidden","pf","",0,0,"","",uy_pf)&aiinput("hidden","yr","",0,0,"","",uy_yr)&aiinput("hidden","j1","",0,0,"","",uy_j1)&aiinput("hidden","e1","",0,0,"","",uy_e1)&aiinput("hidden","j2","",0,0,"","",uy_j2)&aiinput("hidden","e2","",0,0,"","",uy_e2)&aiinput("hidden","j3","",0,0,"","",uy_j3)&aiinput("hidden","e3","",0,0,"","",uy_e3)&aiinput("hidden","m1","",0,0,"","",uy_m1)&aiinput("hidden","h1","",0,0,"","",uy_h1)&aiinput("hidden","c1","",0,0,"","",uy_c1)&aiinput("hidden","d1","",0,0,"","",uy_d1)&aiinput("hidden","m2","",0,0,"","",uy_m2)&aiinput("hidden","h2","",0,0,"","",uy_h2)&aiinput("hidden","c2","",0,0,"","",uy_c2)&aiinput("hidden","d2","",0,0,"","",uy_d2)&aiinput("hidden","fk","",0,0,"","",uy_fk)
end if

elseif aiint(uy_xy)>1 and aiint(uy_pf)=0 and aibj(uy_e1,e_uer) then
uydbd=1
uydsbs="结单与评价服务"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">评价："&aiinput("","s1","",0,200,"买家评价信息","f-a4|f-b4|f-c4",uy_s1)&"</li>"
uydls=uydls&"<li>评分："&aiselect("pf","","*交易评分，评分操作完成后交易金额才能到卖家账户。","f-s1",uy_pf,0,i_buypf)&"</li>"
uydls=uydls&aiinput("hidden","yr","",0,0,"","",uy_yr)&aiinput("hidden","j1","",0,0,"","",uy_j1)&aiinput("hidden","e1","",0,0,"","",uy_e1)&aiinput("hidden","j2","",0,0,"","",uy_j2)&aiinput("hidden","e2","",0,0,"","",uy_e2)&aiinput("hidden","s2","",0,0,"","",uy_s2)&aiinput("hidden","j3","",0,0,"","",uy_j3)&aiinput("hidden","e3","",0,0,"","",uy_e3)&aiinput("hidden","s3","",0,0,"","",uy_s3)&aiinput("hidden","m1","",0,0,"","",uy_m1)&aiinput("hidden","h1","",0,0,"","",uy_h1)&aiinput("hidden","c1","",0,0,"","",uy_c1)&aiinput("hidden","d1","",0,0,"","",uy_d1)&aiinput("hidden","m2","",0,0,"","",uy_m2)&aiinput("hidden","h2","",0,0,"","",uy_h2)&aiinput("hidden","c2","",0,0,"","",uy_c2)&aiinput("hidden","d2","",0,0,"","",uy_d2)&aiinput("hidden","fk","",0,0,"","",uy_fk)&aiinput("hidden","ft","",0,0,"","",uy_ft)&aiinput("hidden","xy","",0,0,"","",uy_xy)

elseif e_gdj>2 then
uydbd=1
uydsbs="管理员编辑服务"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li>状态："&aiselect("xy","","*交易状态","f-s2",uy_xy,0,i_buyxy)&"付方："&aiselect("fk","","*付款方式","f-s1",uy_fk,"0|1|2",i_buyfk)&"付态："&aiselect("ft","","*付款状态","f-s1",uy_ft,0,i_buyft)&"</li>"
uydls=uydls&"<li class=""l-1"">买家："&aiinput("","e1","",0,50,"*","f-a1|f-b1|f-c1",uy_e1)&"买出："&aiinput("","j1","",6,50,"*直接填写数字","f-a1|f-b1|f-c1",uy_j1)&"买注："&aiinput("","s1","",0,200,"买家备注信息","f-a2|f-b2|f-c2",uy_s1)&"</li>"
uydls=uydls&"<li>卖家："&aiinput("","e2","",0,50,"*","f-a1|f-b1|f-c1",uy_e2)&"卖得："&aiinput("","j2","",6,50,"*直接填写数字","f-a1|f-b1|f-c1",uy_j2)&"卖注："&aiinput("","s2","",0,200,"卖家备注信息","f-a2|f-b2|f-c2",uy_s2)&"</li>"
uydls=uydls&"<li class=""l-1"">证方："&aiinput("","e3","",0,50,"*","f-a1|f-b1|f-c1",uy_e3)&"证获："&aiinput("","j3","",6,50,"*直接填写数字","f-a1|f-b1|f-c1",uy_j3)&"证注："&aiinput("","s3","",0,200,"证方备注信息","f-a2|f-b2|f-c2",uy_s3)&"</li>"
uydls=uydls&"<li class=""l-1"">内容："&aitext("yr","","",0,8000,"*交易内容","f-x4|f-y4|f-z4",uy_yr)&"</li>"
uydls=uydls&"<li>买家："&utselect(1,"",uy_c1,"c1","")&"</li>"
uydls=uydls&"<li class=""l-1"">地址："&aiinput("","d1","",0,50,"*买家人的详细地址","f-a2|f-b2|f-c2",uy_d1)&"名称："&aiinput("","m1","",0,50,"*买家人尊称","f-a1|f-b1|f-c1",uy_m1)&"电话："&aiinput("","h1","",0,50,"*买家人联系电话","f-a1|f-b1|f-c1",uy_h1)&"</li>"
uydls=uydls&"<li>卖家："&utselect(1,"",uy_c2,"c2","2")&"</li>"
uydls=uydls&"<li class=""l-1"">地址："&aiinput("","d2","",0,50,"*卖家人的详细地址","f-a2|f-b2|f-c2",uy_d2)&"名称："&aiinput("","m2","",0,50,"*卖家人尊称","f-a1|f-b1|f-c1",uy_m2)&"电话："&aiinput("","h2","",0,50,"*卖家人联系电话","f-a1|f-b1|f-c1",uy_h2)&"</li>"
uydls=uydls&"<li>评分："&aiselect("pf","","*交易评分，评分操作完成后交易金额才能到卖家账户。","f-s1",uy_pf,0,i_buypf)&"</li>"
end if
uydls=uydls&aiinput("hidden","ty","",0,0,"","",uy_ty)&aiinput("hidden","uh","",0,0,"","",uy_uh)&aiinput("hidden","sn","",0,0,"","",uy_sn)&aiinput("hidden","tm","",0,0,"","",uy_tm)&aiinput("hidden","t1","",0,0,"","",uy_t1)&aiinput("hidden","ot","",0,0,"","",uy_ot)&aiinput("hidden","xt","",0,0,"","",uy_xt)
'--------------------------------------------------------------------------------------------9红包服务
elseif aibj(uy_ty,"9") then
uydsbs="红包服务"
ew_bt=uydsbs&","&ew_bt:ew_zt=uydsbs&","&ew_zt:ew_nr=uydsbs&","&ew_nr:ew_cp=uydsbs&","&ew_cp
e_wl=e_wl&" &gt;&gt; <a href="""&e_ur1&""">"&uydsbs&"</a>"
if uyfty=0 then
uydbd=1
uydsbs="制作红包"
e_mt=esbts(s_udxuy,s_udluy,uydsbs&""&g_gy&e_ur1,s_uduys&s_umlbs&g_gy&e_ur0)
uydls=uydls&"<li class=""l-1"">付方："&aiselect("fk","","*付款方式","f-s1",uy_fk,"0|1|2",i_buyfk)&"红包："&aiinput("","j1","",6,50,"*直接填写数字","f-a1|f-b1|f-c1",uy_j1)&"确认："&aiinput("","j2","",6,50,"*直接填写数字","f-a1|f-b1|f-c1",uy_j2)&"收方："&aiinput("","e2","",0,50,"*","f-a1|f-b1|f-c1",uy_e2)&"</li>"
uydls=uydls&"<li>标题："&aiinput("","s1","",0,200,"红包标题","f-a4|f-b4|f-c4",uy_s1)&"</li>"
uydls=uydls&"<li class=""l-1"">内容："&aitext("yr","","",0,8000,"*交易内容","f-x4|f-y4|f-z4",uy_yr)&"</li>"
uydls=uydls&aiinput("hidden","xy","",0,0,"","",uy_xy)&aiinput("hidden","e1","",0,0,"","",uy_e1)&aiinput("hidden","s2","",0,0,"","",uy_s2)&aiinput("hidden","pf","",0,0,"","",uy_pf)

elseif aibj(uy_xy,"0") and uyfty=1 then
if aibj(uy_e1,e_uer) then
uydbd=1
uydsbs="编辑红包"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">状态："&aiselect("xy","","*交易状态","f-s2",uy_xy,"0|3","编辑红包信息|"&aiarr(i_buyxy,"|",3))&"</li>"
uydls=uydls&"<li>标题："&aiinput("","s1","",0,200,"红包标题","f-a4|f-b4|f-c4",uy_s1)&"</li>"
uydls=uydls&"<li class=""l-1"">内容："&aitext("yr","","",0,8000,"*交易内容","f-x4|f-y4|f-z4",uy_yr)&"</li>"
uydls=uydls&aiinput("hidden","s2","",0,0,"","",uy_s2)
elseif aibj(uy_e2,e_uer) then
uydbd=1
uydsbs="确认接受红包"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">状态："&aiselect("xy","","*交易状态","f-s3",uy_xy,"1|2","确认接受红包|"&aiarr(i_buyxy,"|",2))&"</li>"
uydls=uydls&"<li>留言："&aiinput("","s2","",0,200,"卖家备注信息","f-a4|f-b4|f-c4",uy_s2)&"</li>"
uydls=uydls&aiinput("hidden","s1","",0,0,"","",uy_s1)&aiinput("hidden","yr","",0,0,"","",uy_yr)
end if
uydls=uydls&aiinput("hidden","j1","",0,0,"","",uy_j1)&aiinput("hidden","e1","",0,0,"","",uy_e1)&aiinput("hidden","j2","",0,0,"","",uy_j2)&aiinput("hidden","e2","",0,0,"","",uy_e2)&aiinput("hidden","fk","",0,0,"","",uy_fk)&aiinput("hidden","pf","",0,0,"","",uy_pf)

elseif aibj(uy_xy,"1") then
if aibj(uy_e1,e_uer) then
uydbd=1
uydsbs="确认发送红包"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">状态："&aiselect("xy","","*交易状态","f-s3",uy_xy,"7","确认发送红包")&"</li>"
uydls=uydls&"<li>标题："&aiinput("","s1","",0,200,"红包标题","f-a4|f-b4|f-c4",uy_s1)&"</li>"
uydls=uydls&"<li class=""l-1"">内容："&aitext("yr","","",0,8000,"*交易内容","f-x4|f-y4|f-z4",uy_yr)&"</li>"
uydls=uydls&aiinput("hidden","s2","",0,0,"","",uy_s2)
elseif aibj(uy_e2,e_uer) then
uydbd=1
uydsbs="拒收红包"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">状态："&aiselect("xy","","*交易状态","f-s3",uy_xy,"4","我不要这红包")&"</li>"
uydls=uydls&"<li>留言："&aiinput("","s2","",0,200,"留言备注信息","f-a4|f-b4|f-c4",uy_s2)&"</li>"
uydls=uydls&aiinput("hidden","s1","",0,0,"","",uy_s1)&aiinput("hidden","yr","",0,0,"","",uy_yr)
end if
uydls=uydls&aiinput("hidden","j1","",0,0,"","",uy_j1)&aiinput("hidden","e1","",0,0,"","",uy_e1)&aiinput("hidden","j2","",0,0,"","",uy_j2)&aiinput("hidden","e2","",0,0,"","",uy_e2)&aiinput("hidden","fk","",0,0,"","",uy_fk)&aiinput("hidden","pf","",0,0,"","",uy_pf)

elseif aiint(uy_xy)>1 and aiint(uy_pf)=0 and aibj(uy_e2,e_uer) then
uydbd=1
uydsbs="表示感谢"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li class=""l-1"">感谢："&aiinput("","s2","",0,200,"感谢信息","f-a4|f-b4|f-c4",uy_s2)&"</li>"
uydls=uydls&"<li>评分："&aiselect("pf","","*交易评分，评分操作完成后交易金额才能到卖家账户。","f-s1",uy_pf,0,i_buypf)&"</li>"
uydls=uydls&aiinput("hidden","yr","",0,0,"","",uy_yr)&aiinput("hidden","j1","",0,0,"","",uy_j1)&aiinput("hidden","e1","",0,0,"","",uy_e1)&aiinput("hidden","j2","",0,0,"","",uy_j2)&aiinput("hidden","e2","",0,0,"","",uy_e2)&aiinput("hidden","s2","",0,0,"","",uy_s2)&aiinput("hidden","fk","",0,0,"","",uy_fk)&aiinput("hidden","xy","",0,0,"","",uy_xy)

elseif e_gdj>2 then
uydbd=1
uydsbs="管理员编辑红包"
uydls=uydls&"<li class=""c-h"">"&uydsbs&"</li>"'tit
uydls=uydls&"<li>状态："&aiselect("xy","","*交易状态","f-s2",uy_xy,0,i_buyxy)&"付方："&aiselect("fk","","*付款方式","f-s1",uy_fk,"0|1|2",i_buyfk)&"付态："&aiselect("ft","","*付款状态","f-s1",uy_ft,0,i_buyft)&"</li>"
uydls=uydls&"<li class=""l-1"">买家："&aiinput("","e1","",0,50,"*","f-a1|f-b1|f-c1",uy_e1)&"买出："&aiinput("","j1","",6,50,"*直接填写数字","f-a1|f-b1|f-c1",uy_j1)&"买注："&aiinput("","s1","",0,200,"买家备注信息","f-a2|f-b2|f-c2",uy_s1)&"</li>"
uydls=uydls&"<li>卖家："&aiinput("","e2","",0,50,"*","f-a1|f-b1|f-c1",uy_e2)&"卖得："&aiinput("","j2","",6,50,"*直接填写数字","f-a1|f-b1|f-c1",uy_j2)&"卖注："&aiinput("","s2","",0,200,"卖家备注信息","f-a2|f-b2|f-c2",uy_s2)&"</li>"
uydls=uydls&"<li class=""l-1"">内容："&aitext("yr","","",0,8000,"*交易内容","f-x4|f-y4|f-z4",uy_yr)&"</li>"
uydls=uydls&"<li>评分："&aiselect("pf","","*交易评分，评分操作完成后交易金额才能到卖家账户。","f-s1",uy_pf,0,i_buypf)&"</li>"
end if
uydls=uydls&aiinput("hidden","ty","",0,0,"","",uy_ty)&aiinput("hidden","c1","",0,0,"","",uy_c1)&aiinput("hidden","d1","",0,0,"","",uy_d1)&aiinput("hidden","m1","",0,0,"","",uy_m1)&aiinput("hidden","h1","",0,0,"","",uy_h1)&aiinput("hidden","c2","",0,0,"","",uy_c2)&aiinput("hidden","d2","",0,0,"","",uy_d2)&aiinput("hidden","m2","",0,0,"","",uy_m2)&aiinput("hidden","h2","",0,0,"","",uy_h2)&aiinput("hidden","e3","",0,0,"","",uy_e3)&aiinput("hidden","j3","",0,0,"","",uy_j3)&aiinput("hidden","s3","",0,0,"","",uy_s3)&aiinput("hidden","uh","",0,0,"","",uy_uh)&aiinput("hidden","sn","",0,0,"","",uy_sn)&aiinput("hidden","tm","",0,0,"","",uy_tm)&aiinput("hidden","t1","",0,0,"","",uy_t1)&aiinput("hidden","ot","",0,0,"","",uy_ot)&aiinput("hidden","xt","",0,0,"","",uy_xt)&aiinput("hidden","ft","",0,0,"","",uy_ft)

end if

end if'0-1-C

if uydbd=1 then
if ainull(uydsbs) and uy_ft=1 and uy_fk=3 and e_gdj<3 then

else
uydls=uydls&eskyx(0,1,2)
uydls=uydls&"<li class=""l-sb"">"
if not ainull(uydsbs) then
uydls=uydls&aibutton(2,"","","f-sb",uydsbs)
if uyfty=1 then uydls=uydls&aiinput("hidden","id","",0,0,"","",uy_id)
else
if uyfty=1 then
uydls=uydls&aibutton(2,"","","f-sb",s_umxgs)&aiinput("hidden","id","",0,0,"","",uy_id)
else
uydls=uydls&aibutton(2,"","","f-sb",s_umtjs)
end if
end if
uydls=uydls&aibutton(1,"","","f-sb",s_ztcz)&"</li>"
end if
uydls=uydls&"</ul></form></div>"
uyform=uyform&uydls
elseif uyfty=0 then
uyform=uyform&"<h1 class=""gct"">提示：暂不满足条件使用该功能。</h1>"
else
uyform=uyform&espl(eshref(s_uduy&g_urg&uy_ty&g_urg&s_umxx&g_urg&uy_sn&g_urz,66),uy_id,0,uy_xt,uybiao,"uy_xt","uy_id","")
end if
End Function
'-----------------------------------
'check shop product
'=uycksl(uyfty,uyfstr,uyfdb)
'-----------------------------------
Function uycksl(uyfty,uyfstr,uyfdb)
uycksl=false
if uyfty>1 and uyfty<5 then
dim ddxdrr,ddxdi,ddxdls,ddxdud,ddadrr,ddadi,ddadls,ddadud,ddbdrr,ddbdsn,ddbdjg,ddbdsl,ddbdbt,ddadus,ddbdlin,ddbdsql,ddbdtt
dddts=""
ddbdlin=""
ddbdsql=""
ddbdtt=""
if uyfstr<>"" then'0-1-A
ddxdrr=split(uyfstr,x_ddgx)
ddxdud=ubound(ddxdrr)
if ddxdud>0 then
for ddxdi=1 to ddxdud'@@
ddxdls=ddxdrr(ddxdi)
if ddxdls<>"" then
ddadrr=split(ddxdls,x_ddga)
ddadud=ubound(ddadrr)
ddadus=ddadrr(0)
if aibj(ddadus,e_uer) then
dddts=dddts&"\n您不能购买["&ddadus&"]的商品！\n"
else
if ddadud>0 then
'----------------------------------------------
ddbdlin=ddbdlin&x_ddgx&ddadus
for ddadi=1 to ddadud'##
ddadls=ddadrr(ddadi)
ddbdrr=split(ddadls,x_ddgb)'||
if ubound(ddbdrr)=3 then
ddbdsn=ddbdrr(0)
ddbdjg=aiint(ddbdrr(1))
ddbdsl=aiint(ddbdrr(2))
if not isNumeric(ddbdjg) then ddbdjg=0
if not isNumeric(ddbdsl) then ddbdsl=0
if uyfdb=1 then
if gysread("ai_jg,ai_oz,ai_oy,ai_bt,ai_ep,ai_ef,ai_sn","ees_ai","ai_sn='"&ddbdsn&"'","") then
ddbdbt=ai_bt
ai_jg=aiint(ai_jg)
ai_oz=aiint(ai_oz)
ai_oy=aiint(ai_oy)
if ai_oz=0 and ai_oy>0 then
ddbdsql="1"
ddbdtt="2"
dddts=dddts&"\n"&ddbdbt&"("&ddbdsn&")已售完\n"
elseif ddbdsl>ai_oz and ai_oz>0 then
ddbdsql="1"
dddts=dddts&"\n"&ddbdbt&"("&ddbdsn&")库存数量不足最多可购买"&ai_oz&"件，小于您购买"&ddbdsl&"件）\n"
ddbdsl=ai_oz
elseif ai_oz=0 and ai_oy=0 then
ai_oz=9999-ddbdsl
ai_oy=ddbdsl
else
ai_oz=ai_oz-ddbdsl
ai_oy=ai_oy+ddbdsl
end if
if ai_jg>ddbdjg then
ddbdsql="1"
ddbdjg=ai_jg
dddts=dddts&"\n["&ddbdbt&"("&ddbdsn&")价格"&ddbdjg&"变动为"&ai_jg&"\n"
end if
if ddbdsql<>"1" then
if ddbdsql<>"" then ddbdsql=ddbdsql&g_gg
ddbdsql=ddbdsql&"update ees_ai set ai_oz="&ai_oz&",ai_oy="&ai_oy&" where ai_sn='"&ddbdsn&"'"
ddbdsql=ddbdsql&g_gg&ai_ep&g_apj&ai_ef&g_apj&ai_sn
end if
else
ddbdsql="1"
ddbdtt="2"
dddts=dddts&"\n\n["&ddbdbt&"("&ddbdsn&")已经下架或不存在]"
end if
end if
if ddbdtt<>"2" then ddbdlin=ddbdlin&x_ddga&ddbdsn&x_ddgb&ddbdjg&x_ddgb&ddbdsl&x_ddgb&ddbdbt
end if
next
'----------------------------------------------
end if
end if
end if
next
end if
end if'0-1-C
if ddbdsql="1" then
Response.Cookies(x_ddck)=ddbdlin
else
if ddbdsql<>"" then
dim ddbdqrr,ddbdqi,ddbdqud
ddbdqrr=split(ddbdsql,g_gg)
ddbdqud=ubound(ddbdqrr)
for ddbdqi=0 to ddbdqud step 2
conn.execute(ddbdqrr(ddbdqi))
Call eskod(11,11,ddbdqrr(ddbdqi+1))
next
end if
uycksl=true
end if
end if
End Function
'-----------------------------------
'check deal
'=uyck()
'-----------------------------------
Function uyck(uyfty,uyfyr,uyfj1,uyfj2,uyfj3,uyfyh,uyffk,uyfe1,uyfe2)
uyck=false
if e_uxy>0 then
if aibj(e_uer,uyfe1) or (aibj(e_uer,uyfe2) and uyfty=1)  or (aibj(e_uer,uyfe2) and uyfty=8) then
uyfty=aiint(uyfty)
uyffk=aiint(uyffk)
uyfj1=aiint(uyfj1)
uyfj2=aiint(uyfj2)
uyfj3=aiint(uyfj3)
'response.Write uyfj2&"----"&uyfj1
if aibj(uyfty,"8") and e_uxy>0 then
uyck=true
elseif aibj(uyfty,"5") or aibj(uyfty,"6") then
if uyfj2>0 and uyfj1>0 and int(uyfj1+uyfj1)>uyfj2 then
if (uyffk=0 and aiint(e_ujb)>=uyfj1) or (uyffk=1 and aiint(e_ujy)>=uyfj1) or (uyffk=2 and aiint(e_ujq)>=uyfj1) then
uyck=true
else
e_ma=e_ma&aigo(s_ztsb&"账户余额不足，请返回充值.",1)
end if
else
e_ma=e_ma&aigo(s_ztsb&"定金填写有误，请返回核实.",1)
end if
elseif uyfj1>=int(uyfj2+uyfj3) and uyfj1>0 then
if uycksl(uyfty,uyfyr,1) or uyfty>4 or (uyfty<2 and aiint(e_ujq)>=uyfj1) then
'------------------------------
if uyffk=2 and aiint(e_ujq)<aiint(uyfj1) then
e_ma=e_ma&aigo(s_ztsb&aiarr(i_buyfk,"|",2)&"不足，无法完成交易.",1)
elseif uyffk=0 and aiint(e_ujb)<aiint(uyfj1) then
e_ma=e_ma&aigo(s_ztsb&aiarr(i_buyfk,"|",0)&"不足，无法完成交易.",1)
elseif uyffk=1 and aiint(e_ujy)<aiint(uyfj1) then
e_ma=e_ma&aigo(s_ztsb&aiarr(i_buyfk,"|",1)&"不足，无法完成交易.",1)
elseif not ainull(uyfyh) and uyfyh<>"0" then

if gysread("uh_jq,uh_je,uh_t1,uh_t2,uh_ty",uqbiao&","&uhbiao,"uh_sn=uq_uh and uq_sn='"&UCase(uyfyh)&"' and (uq_us='"&e_uer&"' or uq_u1='"&e_uer&"') and uq_xy=0 and datediff('d',uh_t1,Now())>=0 and datediff('d',uh_t2,Now())=<0","") then
if uyfj1>=aiint(uh_je) then
if aibj(uyfe2,uh_us) then
'金币|经验|金钱
ddduhus=uh_us
ddduhty=aiint(uh_ty)
ddduhjq=aiint(uh_jq)
ddduhje=aiint(uh_je)
uyck=true
else
e_ma=e_ma&aigo(s_ztsb&s_uduqs&"不可用[仅限与"&uh_us&"交易],请更换或删除.",1)
end if
else
e_ma=e_ma&aigo(s_ztsb&s_uduqs&"不可用[交易额"&uyfj1&"小于使用限额"&uh_je&"],请更换或删除.",1)
end if
else
e_ma=e_ma&aigo(s_ztsb&s_uduqs&"不可用[已使用或不在使用期内"&UCase(uyfyh)&"],请更换或删除.",1)
end if

else
uyck=true
end if
'------------------------------
else
e_ma=e_ma&aigo(s_ztsb&"订单无法接受,请返回核实{"&dddts&"}.",1)
end if
else
e_ma=e_ma&aigo(s_ztsb&"买家付出不足."&uyfty,1)
end if
else
e_ma=e_ma&aigo(s_ztsb&"交易帐户不符合规定.",1)
end if
else
e_ma=e_ma&aigo(s_ztsb&"请先登录并认证.",1)
end if
End Function
'-----------------------------------
'uyzf
'=uyzf()
'-----------------------------------
Function uyzf(uyfty,uyfxy,uyffk,uyfft,uyfpf,uyfe1,uyfj1,uyfe2,uyfj2,uyfe3,uyfj3)
dim uydfklin
uyzf=false
dddts=""
if aibj(uyffk,"0") then
uydfklin="us_jb=us_jb"
elseif aibj(uyffk,"1") then
uydfklin="us_jy=us_jy"
elseif aibj(uyffk,"2") or aibj(uyffk,"3") then
uydfklin="us_jq=us_jq"
end if

if uyfty=5 or uyfty=6 then'定金
if uyfj1>0 and uyfj2>0 and uyfft>1 then
if uyfxy>1 and uyfpf>0 then
if aibj(uy_xy,"2") or aibj(uy_xy,"4") or aibj(uy_xy,"5") or aibj(uy_xy,"6") then
if gysgx(usbiao,uydfklin&"+"&uyfj1&"+"&uyfj2&"","us_er='"&uyfe1&"'") then uyzf=true
elseif aibj(uy_xy,"3") or aibj(uy_xy,"8") or aibj(uy_xy,"9") then
if gysgx(usbiao,uydfklin&"+"&uyfj1&"+"&uyfj2&"","us_er='"&uyfe2&"'") then uyzf=true
else
if gysgx(usbiao,uydfklin&"+"&uyfj1&"","us_er='"&uyfe1&"'") and gysgx(usbiao,uydfklin&"+"&uyfj2&"","us_er='"&uyfe2&"'") then uyzf=true
end if
else
if aibj(uyfty,"5") then
'no
elseif aibj(uyfty,"6") then
if uyfxy=1 and aibj(e_uer,uy_e2) then
if gysgx(usbiao,uydfklin&"-"&uyfj2&"","us_er='"&uyfe2&"'") then uyzf=true
end if
end if
end if

if uyfty=6 and uyfxy=1 and uyfj2>0 then
if aibj(uyffk,"0") and aiint(e_ujb)>=uyfj2 then
if gysgx(usbiao,uydfklin&"-"&uyfj2&"","us_er='"&uyfe2&"'") then uyzf=true
elseif aibj(uyffk,"1") and aiint(e_ujy)>=uyfj2 then
if gysgx(usbiao,uydfklin&"-"&uyfj2&"","us_er='"&uyfe2&"'") then uyzf=true
elseif (aibj(uyffk,"2") or aibj(uyffk,"3")) and aiint(e_ujq)>=uyfj2 then
if gysgx(usbiao,uydfklin&"-"&uyfj2&"","us_er='"&uyfe2&"'") then uyzf=true
end if

elseif uyfxy=3 and uyfpf>0 then
if gysgx(usbiao,uydfklin&"+"&int(uyfj1+uyfj2)&"","us_er='"&uyfe2&"'") then uyzf=true
elseif uyfxy=4 and uyfpf>0 then
if gysgx(usbiao,uydfklin&"+"&int(uyfj1+uyfj2)&"","us_er='"&uyfe2&"'") then uyzf=true
elseif uyfxy=8 and uyfpf>0 then
if gysgx(usbiao,uydfklin&"+"&uyfj1&"","us_er='"&uyfe1&"'") and gysgx(usbiao,uydfklin&"+"&uyfj2&"","us_er='"&uyfe2&"'") then uyzf=true
else
uyzf=true
end if

end if
else'在线交易
if uyfj1>=aiint(uyfj2+uyfj3) then
if uyffk<4 then
'----------------------在线交易
if uyfft=2 and uyfpf>0 and uyfxy>1 then
if uyfxy>6 then
if gysgx(usbiao,uydfklin&"+"&uyfj2&"","us_er='"&uyfe2&"'") then uyzf=true
if uyfj3>0 and not ainull(uyfe3) then Call gysgx(usbiao,uydfklin&"+"&uyfj3&"","us_er='"&uyfe3&"'")
else

dim uyfhrrsn,uyfhrrsl,uyfhud,uyfhii,uyfhlz,uyfhly
uyfhrrsn=split(aireq("dsn"),x_ddgx)
uyfhrrsl=split(aireq("dsl"),x_ddgx)
uyfhud=ubound(uyfhrrsn)
for uyfhii=1 to uyfhud
Call saik(gysrs,"select ai_oz,ai_oy from "&eabiao&" where ai_sn='"&uyfhrrsn(uyfhii)&"'",1,3)
if gysrs.eof and gysrs.bof then
else
uyfhlz=aiint(gysrs("ai_oz"))
uyfhly=aiint(gysrs("ai_oy"))
'if uyfhlz>0 then gysrs("ai_oz")=uyfhlz+aiint(uyfhrrsl(uyfhii))
gysrs("ai_oz")=uyfhlz+aiint(uyfhrrsl(uyfhii))
gysrs("ai_oy")=uyfhly-aiint(uyfhrrsl(uyfhii))
gysrs.update
end if
Call saig(gysrs)
next

if gysgx(usbiao,uydfklin&"+"&uyfj1&"","us_er='"&uyfe1&"'") then uyzf=true
end if
else
uyzf=true
end if
'----------------------在线交易
else 
uyzf=true
end if
end if
end if
End Function

'-----------------------------------
'add action
'=uyadd()
'-----------------------------------
Function uyadd(uyfqx,uyftyy)
dim uyadsf,uyaddok
ew_bt=s_umtjs&s_uduys&","&ew_bt:ew_zt=s_umtjs&s_uduys&","&ew_zt:ew_nr=s_umtjs&s_uduys&","&ew_nr:ew_cp=e_ubt&","&ew_cp
e_wl=e_wl&" &gt;&gt; <a href="""&e_ur1&""">"&s_umtjs&s_uduys&"</a>"
e_mt=esbts(s_udxuy,s_udluy,"<i>发起"&s_uduys&"</i>"&g_gy&e_ur1,s_uduys&s_umlbs&g_gy&e_ur0)
if e_uid>0 then
if esky(1,e_uzj) then
if aireqx("e1,j1,e2,j2,fk") then
if uyck(aireq("ty"),aireq("yr"),aireq("j1"),aireq("j2"),aireq("j3"),aireq("uh"),aireq("fk"),aireq("e1"),aireq("e2")) then
uyaddok=false
dim gysdkl,gysdkb,gysdkt,uyadbus,uyadbsn
gysdkl=uylie("form")
gysdkb=uybiao
gysdkt="uy_sn='"&aistr(aireq("sn"))&"'"
if aiint(aireq("dcs"))>1 then
dim uyadyrr,uyadurr,uyadjrr,uyadyud,uyadyii,uyadujj,uyaduus,uyaduzj
dim uyadlrr,uyadlie
uyadlrr=split(gysdkl,",")
uyadyrr=split(aireq("yr"),x_ddgx)
uyadyud=ubound(uyadyrr)
uyadurr=split(aireq("dus"),x_ddgx)
uyadbus=replace(aireq("dus"),x_ddgx," ")
uyadjrr=split(aireq("djj"),x_ddgx)
for uyadyii=1 to uyadyud
uyaduus=uyadurr(uyadyii)
uyaduzj=aiint(usrzj(uyaduus))
uyadujj=uyadjrr(uyadyii)
'response.Write "select "&uylie("all")&" from "&gysdkb&" where "&gysdkt
Call saik(gysrs,"select "&uylie("all")&" from "&gysdkb&" where "&gysdkt,1,3)
if gysrs.eof and gysrs.bof then
gysrs.addnew
for gysjj=0 to ubound(uyadlrr)
uyadlie=uyadlrr(gysjj)
if aibj(uyadlie,"ty") then
if uyaduzj=4 then
gysrs("uy_"&uyadlie)=2
elseif uyaduzj=3 then
gysrs("uy_"&uyadlie)=3
else
gysrs("uy_"&uyadlie)=4
end if
elseif aibj(uyadlie,"sn") then
gysrs("uy_"&uyadlie)=aireq(uyadlie)&"-"&uyadyii
uyadbsn=uyadbsn&",'"&aireq(uyadlie)&"-"&uyadyii&"'"
elseif aibj(uyadlie,"yr") then
gysrs("uy_"&uyadlie)=x_ddgx&uyadyrr(uyadyii)
elseif aibj(uyadlie,"j1") then
gysrs("uy_"&uyadlie)=uyadujj
elseif aibj(uyadlie,"j2") then
gysrs("uy_"&uyadlie)=uyadujj
elseif aibj(uyadlie,"e2") then
gysrs("uy_"&uyadlie)=uyaduus
else
gysrs("uy_"&uyadlie)=aireq(uyadlie)
end if
next
gysrs.update
uyaddok=True
else
uyaddok=False
end if
Call saig(gysrs)
'response.Write uyaddok
next
uyadbsn=right(uyadbsn,len(uyadbsn)-1)
else
uyadbus=aireq("e2")
uyadbsn="'"&aireq("sn")&"'"
uyaddok=gysfm(gysdkl,gysdkb,gysdkt,"uy_",1)
end if
if uyaddok then
Call aisn(0)
'-----------------------------------------------
if ddduhjq>0 then
Call gysgx(uqbiao,"uq_xy=1,uq_us='"&e_uer&"',uq_u1='"&aireq("e2")&"'","uq_sn='"&aireq("uh")&"'")
uyadsf=aiint(aiint(aireq("j1"))-ddduhjq)
Call gysgx(uybiao,"uy_yh='"&ddduhjq&"|"&ddduhje&"|"&aireq("uh")&"|"&ddduhus&"',uy_j1="&uyadsf&",uy_j2="&uyadsf&",uy_j3="&ddduhjq&",uy_e3='"&ew_ky&"'","uy_sn in ("&uyadbsn&")")
else
uyadsf=aiint(aireq("j1"))
end if

if not aibj(aireq("ty"),"8") then
if aibj(aireq("fk"),"0") then
if gysgx(usbiao,"us_jb=us_jb-"&uyadsf&",us_jy=us_jy+"&aiint(aireq("j1"))&"","us_id="&e_uid&"") then
e_ma=e_ma&usergx("jb",aiint(e_ujb)-uyadsf)
Call gysgx(uybiao,"uy_ft=2","uy_sn in ("&uyadbsn&")")
end if

elseif aibj(aireq("fk"),"1") then
if gysgx(usbiao,"us_jy=us_jy-"&uyadsf&"","us_id="&e_uid&"") then
e_ma=e_ma&usergx("jy",aiint(e_ujy)-uyadsf)
Call gysgx(uybiao,"uy_ft=2","uy_sn in ("&uyadbsn&")")
end if

elseif aiint(aireq("fk"))>1 then 
if aibj(aireq("fk"),"2") then
Call gysgx(usbiao,"us_jq=us_jq-"&uyadsf&",us_jy=us_jy+"&aiint(aireq("j1"))&"","us_id="&e_uid&"")
e_ma=e_ma&usergx("jq",aiint(e_ujq)-uyadsf)
Call gysgx(uybiao,"uy_ft=2","uy_sn in ("&uyadbsn&")")
end if
end if
end if

Response.Cookies(x_ddck)=""
dim dddur
if aibj(aireq("dxx"),"1") then
dddur=eshref(s_uduy&g_urz,66)
elseif aibj(g_u2,s_umfb) then
dddur=1
else
dddur=eshref(s_uduy&g_urg&aireq("ty")&g_urg&s_umxx&g_urg&aireq("sn")&g_urz,66)
end if
e_ma=e_ma&aigo(s_umtjs&s_uduys&s_ztcg&"\n\n订单详情：\n\n买家："&aireq("e1")&"  付："&uyadsf&"\n卖家："&uyadbus&"\n付款方式："&aiarr(i_buyfk,"|",aiint(aireq("fk")))&"",dddur)
'-----------------------------------------------
Call gysat("us_uy",usbiao,"us_er='"&aireq("e1")&"' or us_er='"&uyadbus&"' or us_er='"&aireq("e3")&"'","+1")
else
e_ma=e_ma&aigo(s_umtjs&s_uduys&s_ztsb,1)
end if
else
e_ma=e_ma&aigo(s_umtjs&s_uduys&s_ztsb&"\n\n失败订单\n"&dddts&"\n请核实后重新提交！",1)
end if
else
e_ma=e_ma&aigo(s_umtjs&s_uduys&s_ztsb&"\n\n未按要求将表单填写完整",1)
end if
else
e_ma=uyform(0,uyfqx,uyftyy)&e_ma
end if
else
e_ma=e_ma&aigo("请登录",e_ulogin)
end if
End Function
'-----------------------------------
'edit action
'=uyedit()
'-----------------------------------
Function uyedit(uyfqx)
ew_bt=s_umxgs&s_uduys&","&ew_bt:ew_zt=s_umxgs&s_uduys&","&ew_zt:ew_nr=s_umxgs&s_uduys&","&ew_nr:ew_cp=e_ubt&","&ew_cp
e_wl=e_wl&" &gt;&gt; <a href="""&eshref(s_umgl&g_urg&s_uduy&g_urg&g_u2&g_urg&s_umxg&g_urg&g_u4&g_urz,77)&""">"&s_umxgs&s_uduys&"</a>"
if esky(1,e_uzj) then
if aireqx("e1,j1,e2,j2,fk") then

if uyzf(aiint(aireq("ty")),aiint(aireq("xy")),aiint(aireq("fk")),aiint(aireq("ft")),aiint(aireq("pf")),aireq("e1"),aiint(aireq("j1")),aireq("e2"),aiint(aireq("j2")),aireq("e3"),aiint(aireq("j3"))) then
'---------------------------------
if gysfm(uylie("form"),uybiao,"uy_id="&aiint(aireq("id"))&" or (uy_id<>"&aiint(aireq("id"))&" and uy_sn='"&aistr(aireq("sn"))&"')","uy_",2) then
'----------------------出售定制处理0
if aibj(aireq("ty"),"8") and aiint(aireq("fk"))<3 and aiint(aireq("ft"))<2  and aibj(aireq("xy"),"7") and aibj(aireq("e1"),e_uer) then
if aibj(aireq("fk"),"0") then
if gysgx(usbiao,"us_jb=us_jb-"&aiint(aireq("j1"))&",us_jy=us_jy+"&aiint(aireq("j1"))&"","us_id="&e_uid&"") then
e_ma=e_ma&usergx("jb",aiint(e_ujb)-aiint(aireq("j1")))
end if

elseif aibj(aireq("fk"),"1") then
if gysgx(usbiao,"us_jy=us_jy-"&aiint(aireq("j1"))&"","us_id="&e_uid&"") then
e_ma=e_ma&usergx("jy",aiint(e_ujy)-aiint(aireq("j1")))
end if

elseif aiint(aireq("fk"))>1 then 
if aibj(aireq("fk"),"2") then
Call gysgx(usbiao,"us_jq=us_jq-"&aiint(aireq("j1"))&",us_jy=us_jy+"&aiint(aireq("j1"))&"","us_id="&e_uid&"")
e_ma=e_ma&usergx("jq",aiint(e_ujq)-aiint(aireq("j1")))
end if
end if
Call gysgx(uybiao,"uy_ft=2","uy_id="&aiint(aireq("id"))&"")
end if
'----------------------出售定制处理1
dim dddur
if uyfqx=1 then
dddur=eshref(s_umgl&g_urg&s_uduy&g_urg&aireq("ty")&g_urg&s_umxx&g_urg&aireq("sn")&g_urz,77)
else
dddur=eshref(s_uduy&g_urg&aireq("ty")&g_urg&s_umxx&g_urg&aireq("sn")&g_urz,66)
end if
e_ma=e_ma&aitiao(s_uduys&"处理操作完成 "&dddts&"",dddur,i_nmtz)
if aiint(aireq("xy"))>1 then Call gysat("us_uy",usbiao,"us_er='"&aireq("e1")&"' or us_er='"&aireq("e2")&"' or us_er='"&aireq("e3")&"'","-1")
else
e_ma=e_ma&aigo(s_umxgs&s_uduys&s_ztcg,e_ur0)
end if
'---------------------------------
else
e_ma=e_ma&aigo(s_umxgs&s_uduys&s_ztsb&"("&s_uduys&"支出出现问题\n"&dddts&"\n请返回核实并重试)",1)
end if
else
e_ma=e_ma&aigo(s_umxgs&s_uduys&s_ztsb,1)
end if
else
if uyfqx=1 then
uywhere="uy_id="&aiint(g_u4)&""
elseif aiint(g_u3)>0 then
uywhere="uy_id="&aiint(g_u3)&" and (uy_e1='"&e_uer&"' or uy_e2='"&e_uer&"' or uy_e3='"&e_uer&"')"
else
uywhere="uy_sn='"&g_u3&"' and (uy_e1='"&e_uer&"' or uy_e2='"&e_uer&"' or uy_e3='"&e_uer&"')"
end if
if gysread(uylie("all"),uybiao,uywhere,"") then
ew_bt=uy_e1&","&ew_bt:ew_zt=uy_e1&","&ew_zt:ew_nr=uy_e1&","&ew_nr
e_ma=uyform(1,uyfqx,uy_ty)&e_ma
e_mt=esbts(s_udxuy,s_udluy,s_umxgs&s_uduys&g_gy&eshref(s_umgl&g_urg&s_uduy&g_urg&uy_ty&g_urg&s_umxg&g_urg&g_u4&g_urz,77),"<i>发起"&s_uduys&"</i>"&g_gy&e_ur1&g_gx&s_uduys&s_umlbs&g_gy&e_ur0)
else
e_ma=e_ma&aigo(s_uduys&s_ztno,1)
end if
end if
End Function
'-----------------------------------
'do jingpai for 5
'=uykpp()
'-----------------------------------
Function uykpp(uyfty,uyfsn,uyfyr,uyfus,uyfjq)
uykpp=false
if not ainull(uyfsn) and not ainull(uyfus) and not ainull(uyfjq) then
if uyfty=0 then
uy_sn="UY"&aisn(1)
if gysin("ees_uy","uy_sn,uy_ty,uy_uh,uy_yr,uy_tm,uy_t1,uy_j1,uy_e1,uy_s1,uy_j2,uy_e2,uy_s2,uy_j3,uy_e3,uy_s3,uy_fk,uy_ft,uy_xy,uy_xt","'"&uy_sn&"',5,'"&uyfsn&"','"&uyfyr&"','"&now()&"','"&now()&"',"&uyfjq&",'','',"&uyfjq&",'"&uyfus&"','',0,'"&ew_kf&"','',2,2,0,'"&espxx("操作：扣除卖家竞拍定金"&i_gg&uyfus)&"'","uy_sn='"&uy_sn&"' or (uy_uh='"&uyfsn&"' and uy_xy=0)") then
uykpp=true
end if
Call aisn(0)
elseif uyfty=1 or uyfty=2 then
if gysgx("ees_uy","uy_e1='"&uyfus&"',uy_j3="&uyfjq&",uy_t1='"&now()&"',uy_xy="&uyfty-1&",uy_yr=uy_yr+'"&uyfyr&"',uy_xt=uy_xt"&espdbi()&"'"&espxx("操作：扣除买家竞拍定金"&i_gg&uyfus)&"'","uy_uh='"&uyfsn&"' and uy_xy=0") then
uykpp=true
end if
end if
end if
End Function
'-----------------------------------
'del
'=uydel(uyfqx)
'-----------------------------------
Function uydel(uyfqx)
ew_bt=s_uduys&s_umscs&","&ew_bt:ew_zt=s_uduys&s_umscs&","&ew_zt:ew_nr=s_uduys&s_umscs&","&ew_nr:ew_cp=e_ubt&","&ew_cp
e_wl=e_wl&" &gt;&gt; "&s_uduys&s_umscs&""
e_mt=esbts(s_udxuy,s_udluy,s_umscs&s_uduys,"<i>发起"&s_uduys&"</i>"&g_gy&e_ur1&g_gx&s_uduys&s_umlbs&g_gy&e_ur0)
if uyfqx=1 then
if e_uty>2 then
if aiint(g_u4)>0 then
if gysdel(uybid,uybiao,"uy_id="&aiint(g_u4)) then
e_ma=e_ma&aitiao(s_uduys&s_umscs&s_ztcg,e_ur0,i_nmtz)
else
e_ma=e_ma&aigo(s_uduys&s_umscs&s_ztsb,1)
end if
elseif aibj(g_u3,s_umsc&"-x") then
if gysdel(uybid,uybiao,0) then
e_ma=e_ma&aitiao(s_uduys&s_umscs&s_ztcg,e_ur0,i_nmtz)
else
e_ma=e_ma&aigo(s_uduys&s_umscs&s_ztsb,1)
end if
end if
end if
else
if aiint(g_u3)>0 then
if gysdel(uybid,uybiao,"uy_e1='"&e_uer&"' and uy_ft<>2 and (uy_xy=0 or uy_xy=3) and uy_id="&aiint(g_u3)) then
e_ma=e_ma&aitiao(s_uduys&s_umscs&s_ztcg,e_ur0,i_nmtz)
else
e_ma=e_ma&aigo(s_uduys&s_umscs&s_ztsb,1)
end if
elseif aibj(g_u2,s_umsc&"-x") then
if gysdel(uybid,uybiao,"uy_e1='"&e_uer&"' and uy_ft<>2 and (uy_xy=0 or uy_xy=3)") then
e_ma=e_ma&aitiao(s_uduys&s_umscs&s_ztcg,e_ur0,i_nmtz)
else
e_ma=e_ma&aigo(s_uduys&s_umscs&s_ztsb,1)
end if
end if
end if
End Function
'-----------------------------------
'show
'=uyshow()
'-----------------------------------
Function uyshow(uyfsn)
if aiint(e_gdj)>2 or aibj(g_u0,s_umgl) then
uywhere="uy_sn='"&aistr(uyfsn)&"'"
else
uywhere="uy_sn='"&aistr(uyfsn)&"' and (uy_e1='"&e_uer&"' or uy_e2='"&e_uer&"' or uy_e3='"&e_uer&"')"
end if
if gysread(uylie("all"),uybiao,uywhere,"") then
e_mt=esbts(s_udxuy,s_udluy,s_uduys&"详情",s_uduys&s_umlbs&g_gy&e_ur0&g_gx&"<i>发起"&s_uduys&"</i>"&g_gy&e_ur1)
e_ma=e_ma&uyform(1,0,uy_ty)
else
e_ma=e_ma&aigo(s_uduys&s_ztno,1)
end if
End Function
'-----------------------------------
'class
'=uyfl()
'-----------------------------------
Function uyfl(uyfty,uyfuq,uyfms,uyfva)
dim uyfldrr,uyfldii
uyfl=""
uyfldrr=split(i_buyty,"|")
uyfl=uyfl&"<a"
if ainull(g_u1) or (aibj(s_umgl,g_u0) and ainull(g_u2)) then uyfl=uyfl&" class=""l-va"""
uyfl=uyfl&" href="""&eshref(uyfuq&g_urz,1)&""">"&s_umqbs&s_uduys&"</a>"
for uyfldii=0 to ubound(uyfldrr)
if uyfty=3 then
uyfl=uyfl&"<a  class=""m-ma"" target="""&uyfva&""" href="""&eshref(uyfuq&g_urg&uyfldii&g_urg&uyfms&g_urz,66)&""">"&uyfldrr(uyfldii)&"</a>"
uyfldii=uyfldii+1
uyfl=uyfl&"<A  class=""m-ma"" target="""&uyfva&""" href="""&eshref(uyfuq&g_urg&uyfldii&g_urg&uyfms&g_urz,66)&""">"&uyfldrr(uyfldii)&"</A>"
else
uyfl=uyfl&"<a"
if uyfty=0 then uyfl=uyfl&"  class=""m-ma"" target="""&uyfva&""""
uyfl=uyfl&" href="""&eshref(uyfuq&g_urg&uyfldii&g_urg&uyfms&g_urz,66)&""">"
if aibj(uyfldii,uyfva) then
uyfl=uyfl&"<span class=""ft"">["&uyfldrr(uyfldii)&"]</span>"
else
uyfl=uyfl&""&uyfldrr(uyfldii)&""
end if
uyfl=uyfl&"</a>"
if uyfty=0 then
uyfl=uyfl&" <A  class=""m-ma"" target="""&uyfva&""" href="""&eshref(uyfuq&g_urg&uyfldii&g_urg&s_umtj&g_urz,66)&""">"
uyfl=uyfl&s_umtjs
uyfl=uyfl&"</A>"
end if
end if
next
End Function
'-----------------------------------
'list
'=uylist()
'-----------------------------------
Function uylist(uyfqx)
dim uylpg,uylps,uylpuq,uylpuh,uylpur,uylgrr,uylty
if uyfqx=1 then
uylpuq=eshref(s_umgl&g_urg&s_uduy,66)
uylty=g_u2
lidms=g_u3
uylpuh=g_u6&g_urg&g_u7&g_urg&g_u8&g_urg&g_u9&g_urg&g_u10
uylpur=uylpuq&g_urg&lidms&g_urg&uylty&g_urg&g_gp&g_urg&g_gp&g_urg&uylpuh&g_urz
uylpg=aiint(g_u4)
uylps=aiint(g_u5)
else
uylpuq=eshref(s_uduy,66)
uylty=g_u1
lidms=g_u2
uylpuh=g_u5&g_urg&g_u6&g_urg&g_u7&g_urg&g_u8&g_urg&g_u9
uylpur=uylpuq&g_urg&lidms&g_urg&uylty&g_urg&g_gp&g_urg&g_gp&g_urg&uylpuh&g_urz
uylpg=aiint(g_u3)
uylps=aiint(g_u4)
end if

if ainull(lidms) then lidms=d_suyls
if aibj(uylty,"6") or aibj(uylty,"7") or aibj(uylty,"8") or aibj(uylty,"9") or aibj(uylty,"1") or (aibj(uylty,"0") and e_ujq>99) then
e_mt=esbts(s_udxuy,s_udluy,s_uduys&s_umlbs&g_gy&e_ur0,"<i>发起"&s_uduys&"</i>"&g_gy&e_ur1)
else
e_mt=esbts(s_udxuy,s_udluy,s_uduys&s_umlbs&g_gy&e_ur0,"")
end if
if uyfqx=1 then
e_ma=e_ma&"<div class=""l-ma lh""><div class=""l-1"">"
e_ma=e_ma&uyfl(1,uylpuq,lidms,uylty)
e_ma=e_ma&"<div class=""cr""></div></div></div>"
end if
iclls="<div class=""l-tb"&estt(lidms,s_umlb)&"""><a href="""&uylpuq&g_urg&uylty&g_urg&s_umlb&g_urg&g_urg&g_urg&uylpuh&g_urz&""">"&s_umlbs&"</a></div><div class=""l-tb"&estt(lidms,s_umlj)&"""><a href="""&uylpuq&g_urg&uylty&g_urg&s_umlj&g_urg&g_urg&g_urg&uylpuh&g_urz&""">"&s_umljs&"</a></div><div class=""l-tb"&estt(lidms,s_umyq)&"""><a href="""&uylpuq&g_urg&uylty&g_urg&s_umyq&g_urg&g_urg&g_urg&uylpuh&g_urz&""">"&s_umyqs&"</a></div>"
Call uysers()
e_ma=e_ma&icliq(iclls,uylpuq&g_urg&lidms&g_urg&uylty,uylpuh,e_gdj,uyfqx,"uy")
Call uysersql()
if not ainull(uylty) then
if not ainull(uywhere) then uywhere=uywhere&" and "
uywhere=uywhere&"uy_ty="&uylty&""
end if
if uylps=0 then
if aibj(lidms,s_umyq) then
uylps=i_nmhc
else
uylps=i_nmlb
end if
end if
'@@uy_id,1uy_sn,2uy_ty,3uy_yr,4uy_uh,5uy_tm,6uy_t1,7uy_j1,8uy_e1,9uy_s1,10uy_j2,11uy_e2,12uy_s2,13uy_j3,14uy_e3,15uy_s3,16uy_fk,17uy_ft,18uy_xy,19uy_pf
if gyslist(uybid,uylie(s_umlb),uybiao,uywhere,uyorder,uylpur,uylpg,uylps,200,"") then
lidti=""
'top------0
if aibj(lidms,s_umlb) then
if uyfqx=1 then lidti=lidti&"<b>操作</b>"
lidti=lidti&"<b>"&s_uduys&"状态</b>"
lidti=lidti&"<u>发起时间</u>"
lidti=lidti&"<u>卖家</u>"
lidti=lidti&"<u>买家</u>"
lidti=lidti&"<i>额度</i>"
lidti=lidti&"订单"
end if
'top------1
e_ma=e_ma&iclisttop(lidms,lidti)
gysax=split(gysar,g_gx)
for gysi=0 to ubound(gysax)
lids1=""
lids2=""
lids3=""
lids4=""
gysay=split(gysax(gysi),g_gy)
lidbt=uylbt(1,gysay(1),aiint(gysay(2)),gysay(5),aiint(gysay(7)),gysay(8),aiint(gysay(16)),aiint(gysay(18)),aiint(gysay(19)))
lidtt="买家："&aiint(gysay(8))&vbNewLine
lidtt=lidtt&"卖家："&usren(gysay(11))&vbNewLine
lidtt=lidtt&"证方："&usren(gysay(14))&vbNewLine
lidtt=lidtt&s_uduys&"状态："&aiarr(i_buyxy,"|",aiint(gysay(18)))&vbNewLine
lidtt=lidtt&"时间："&gysay(5)&"("&gysay(6)&")"
lidlj=eshref(s_uduy&g_urg&gysay(2)&g_urg&s_umxx&g_urg&gysay(1)&g_urz,66)
if uyfqx=1 then
lidgl="<b>"
lidgl=lidgl&"<input type=""checkbox"" id=""sid"" name=""sid"" value="""&gysay(0)&""">"&aibuttonk(eshref(s_umgl&g_urg&s_uduy&g_urg&gysay(2)&g_urg&s_umxg&g_urg&gysay(0)&g_urz,66),"","","","f-se","Edit")&aibuttonk(eshref(s_umgl&g_urg&s_uduy&g_urg&gysay(2)&g_urg&s_umsc&g_urg&gysay(0)&g_urz,66),s_umscs&s_uduys&s_ztqr,"","","f-se","Del")
lidgl=lidgl&"</b>"
end if
'yunqian
if aibj(lidms,s_umyq) then
lids1=int(gysay(7)+1)
elseif aibj(lidms,s_umlb) then
lids1=lids1&"<b"
if aiint(gysay(18))=0 then lids1=lids1&" class=""ftt"""
lids1=lids1&">"&aiarr(i_buyxy,"|",aiint(gysay(18)))&"</b>"
lids1=lids1&"<u>"&aitm(gysay(5),2)&"</u>"
lids1=lids1&"<u>"&usren(gysay(11))&"</u>"
lids1=lids1&"<u>"&usren(gysay(8))&"</u>"
lids1=lids1&"<i>"&aiint(gysay(7))&"</i>"
else
'@@uy_id,1uy_sn,2uy_ty,3uy_yr,4uy_uh,5uy_tm,6uy_t1,7uy_j1,8uy_e1,9uy_s1,10uy_j2,11uy_e2,12uy_s2,13uy_j3,14uy_e3,15uy_s3,16uy_fk,17uy_ft,18uy_xy,19uy_pf
lids2=lids2&"买家："&usren(gysay(8))&" 付出："&aiint(gysay(7))&" 卖家："&usren(gysay(11))&" 证方："&usren(gysay(14))&" 发起时间："&aitm(gysay(5),2)&" 更新时间："&aitm(gysay(6),2)
lids3=lids3&"<div class=""l-cd lh"">"
if not ainull(gysay(9))  then lids3=lids3&"买家留言："&aistr(gysay(9))&"<br>"
if not ainull(gysay(12))  then lids3=lids3&"卖家留言："&aistr(gysay(12))&"<br>"
if not ainull(gysay(15))  then lids3=lids3&"证方留言："&aistr(gysay(15))&"<br>"
lids3=lids3&"<b"
if aiint(gysay(18))=0 then lids3=lids3&" class=""ftt"""
lids3=lids3&">"&aiarr(i_buyxy,"|",aiint(gysay(18)))&"</b>"
lids3=lids3&"</div>"
end if
e_ma=e_ma&iclist(lidms,lidti,gysi,lidbt,lidtt,lidlj,lidgl,lids1,lids2,lids3,lids4)
next
e_ma=e_ma&iclistend(lidms,"")
else
e_ma=e_ma&"<div class=""l-tc"">"&s_ztkl&"</div>"
end if
e_ma=e_ma&iclih(gyspage,e_gdj,uyfqx,eshref(s_umgl&g_urg&s_uduy&g_urg&s_umsc&"-x"&g_urz,77),"uy")
End Function
'-----------------------------------
'uylbt(1,gysay(1),aiint(gysay(2)),gysay(5),aiint(gysay(7)),gysay(8),aiint(gysay(16)),aiint(gysay(18)),aiint(gysay(19)))
'-----------------------------------
Function uylbt(uyfkg,uyfsn,uyfty,uyftm,uyfj1,uyfe1,uyffk,uyfxy,uyfpf)
uylbt=""
uylbt=uylbt&icqz(uyfkg,uyfxy,0)
uylbt=uylbt&"["&aiarr(i_buyty,"|",uyfty)&"|"&aiarr(i_buyfk,"|",uyffk)&"]"
if uyfpf>0 then uylbt=uylbt&aiarr(i_buypf,"|",uyfpf)
uylbt=uylbt&" "&uyfsn&""
uylbt=uylbt&ichz(uyfkg,uyftm,0,"")
End Function
'-----------------------------------
'=uysers()
'Call uysers()
'-----------------------------------
Function uysers()
icdssp="排序|最新|时间|买耗|卖得|证获|付方|付态|状态|评分"
icdrrp=split("uy_id desc|uy_id desc|uy_tm desc|uy_j1 desc|uy_j2 desc|uy_j3 desc|uy_fk desc|uy_ft desc|uy_xy desc|uy_pf desc","|")
icdssf="范围|"&usren(ew_kt)&"|"&usren(ew_kg)&"|"&esqday(0)&"|买家|卖家|证方|用券|付款|已评"
icdrrf=split("|uy_us='"&ew_kt&"'|uy_u1='"&ew_kg&"'|"&esqday("uy_tm")&"|uy_e1='"&e_uer&"'|uy_e2='"&e_uer&"'|uy_e3='"&e_uer&"'|(uy_uh<>'' and uy_uh<>'0' and uy_uh<>'null')|uy_ft=2|uy_pf>0","|")
icdssx="项目|内容|编码|买家|卖家|证方|电话1|名称1|地区1|电话2|名称2|地区2|备注|其他|系统"
icdrrx=split("uy_yr|uy_yr|uy_sn|uy_e1|uy_e2|uy_e3|uy_h1|uy_m1|uy_c1|uy_h2|uy_m2|uy_c2|uy_us|uy_u1|uy_ty|uy_ot|uy_xt","|")
icdssm=i_bsm
End Function
'-----------------------------------
'=uysersql()
'-----------------------------------
Function uysersql()
Call icserq()
uywhere=iclwhere
uyorder=iclorder
iclapp=1
'order
if ainull(uyorder) then uyorder=uyordermo
'admin
if not aibj(g_u0,s_umgl) then
if not ainull(uywhere) then uywhere=uywhere&" and "
uywhere=uywhere&"(uy_e1='"&e_uer&"' or uy_e2='"&e_uer&"' or uy_e3='"&e_uer&"')"
end if
End Function
'-----------------------------------
'PS:buy car
'=uycartj(uyfkg/i_xkadd,uyfstr,uyfsn,uyfdj,uyfbt,uyfus)
'-----------------------------------
Function uycartj(uyfkg,uyfstr,uyfsn,uyfdj,uyfbt,uyfus)
uycartj=""
if uyfkg>0 then
uycartj=uycartj&"<div class=""d-vf""><form action="""&eshref(s_druser&"y/?act",3)&""" method=""post"" target=""EESaidd"">"
uycartj=uycartj&uyfstr&"<input type=""text"" name=""sl"" id=""sl"" class=""d-vfp"" value=""1""><input type=""hidden"" name=""cs"" id=""cs"" value="""&uyfsn&x_ddgb&uyfdj&x_ddgb&uyfbt&x_ddgb&uyfus&""">"
uycartj=uycartj&"<br><input type=""image"" src="""&eshref(s_druser&"y/dd.gif",3)&"""></form></div>"
end if
End Function
'-----------------------------------
'PS:buy car
'=uycar(uyfkg/i_xkadd)
'-----------------------------------
Function uycar(uyfkg)
uycar=""
if uyfkg>0 then
uycar=uycar&"<script type=""text/javascript"">var ddx="&uyfkg&";var ddm=""购物车"";var ddr="""&eshref(s_druser&"y/",3)&""";</script><script language=""JavaScript"" src="""&eshref(s_druser&"y/dd.js",3)&"""></script>"
end if
End Function
%>