<!--#include virtual="/show/indexhead.asp"-->
<!--#include virtual="/inc/md52.asp"-->
<!--#include virtual="/show/mokuai/sms.asp"--><script language="javascript">
var xmlhttp;
try
{xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch (e){try{xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch (e){try{xmlhttp=new XMLHttpRequest();}catch (e){}}}

function check_add()
{

if(form1.con.value=="0"){alert("请选择投诉类别");return false}
if(form1.xiangxicon.value==""){alert("请填写投诉内容");return false;}
if(form1.jubaoqq.value==""){alert("请填写一个联系QQ");return false;}
if(form1.jubaoname.value==""){alert("请填写一个联系电话");return false;}
//if(form1.jubaomail.value==""){alert("请填写一个联系邮箱");return false;}
if(form1.chkcode.value==""){alert("请填写手机收到的投诉密码");return false;}


var shuzi = /^[-]{0,1}[0-9]{1,}$/; 
if(shuzi.test(form1.jubaoqq.value)==false){alert("联系QQ必须为数字");return false;}

var regu =/^[1][3-8][0-9]{9}$/; 
var re = new RegExp(regu); 
if (re.test(form1.jubaoname.value)==false)
{alert("请正确填写一个手机号码");return false;} 

//var jc_mail = /^[-_A-Za-z0-9]+@([_A-Za-z0-9]+\.)+[A-Za-z0-9]{2,3}$/;
//if(jc_mail.test(form1.jubaomail.value)==false)	
//{alert("请正确填写一个投诉邮箱");return false;}

if(form1.ayjupass.value==""){alert("请填写一个投诉密码");return false;}
//if((form1.ayjupass.value=="123456")||(form1.ayjupass.value=="000000")||(form1.ayjupass.value=="0000000")||(form1.ayjupass.value=="888888")||(form1.ayjupass.value=="112233")||(form1.ayjupass.value=="111111")){alert("投诉查询密码过于简单，请重新填写");return false;}

//if(confirm("恶意投诉,将被列入黑名单！请文明投诉，并上传证实存在问题的相关截图证据或聊天记录,如果商家在24小时内未回复或未解决投诉问题 平台会直接退款给买家！是否确定无误继续提交投诉?"))	{return true;}else{return false;}
//if(confirm("请注意接听官方客服电话<%'=futelguanfang%>,如果您预留虚假联系方式，该投诉可能被撤销，确定无误继续提交投诉?"))	{return true;}else{return false;}
}

function huoqu()
{
	
   var Mobile=document.getElementById("jubaoname").value
   if (Mobile==""){alert('请填写手机号码');return false;}
   var regu =/^[1][3-9][0-9]{9}$/; 
   var re = new RegExp(regu); 
   if (re.test(Mobile)){}else{alert('请正确填写手机号码');return false;} 
	
   xmlhttp.open("get","/index/checkuser?Mobile="+ Mobile +"&act=huoquyz&jcact=tousu&t=" +  new Date().getTime());
   
   xmlhttp.onreadystatechange=function()
   {
		 if(4==xmlhttp.readyState) 
		 {
			   if(200==xmlhttp.status)
			   { 
			   		//alert(xmlhttp.responseText);
					if (xmlhttp.responseText=="ok"){alert('投诉密码已发送，请注意查收');RemainTime();return false;}
					//if (xmlhttp.responseText=="no"){alert('该手机号已被注册，请使用其他手机号码');return false;}
					if (xmlhttp.responseText=="time"){alert('请再一分钟后尝试重新发送投诉密码');return false;}
					if (xmlhttp.responseText=="telerr"){alert('请使用正常手机号码');return false;}
			   }
			   else
			   {
				alert('网络链接失败');
				return false;
			   }
		 }
   }
   xmlhttp.send(null);  
   return false;
}

var CID = "endtime2";
var iTime = "60"; //秒

function RemainTime()
{
   
   
	document.getElementById(CID).disabled="disabled";
    var iDay,iHour,iMinute,iSecond;
    var sDay="",sHour="",sMinute="",sSecond="",sTime="";
    if (iTime >= 0)
    {
        iDay = parseInt(iTime/24/3600);if (iDay > 0){sDay = iDay + "天";}
        iHour = parseInt((iTime/3600)%24);if (iHour > 0){sHour = iHour + "小时";}
        iMinute = parseInt((iTime/60)%60);if (iMinute > 0){sMinute = iMinute + "分钟";}
        iSecond = parseInt(iTime%60);
		
        if (iSecond >= 0){sSecond = iSecond + "秒";}
        if ((sDay=="")&&(sHour=="")){sTime= sMinute+sSecond;}else{sTime=sDay+sHour+sMinute+sSecond;}
		
		if(iTime==0){sTime="获取验证码";document.getElementById(CID).disabled="";}else{Account = setTimeout("RemainTime()",1000);}
       	iTime=iTime-1;
    }
    else
    {
       iTime = "61";    //设置+1
	   RemainTime();
    }

    document.getElementById(CID).value = sTime;
}

</script>


<style type="text/css">
.btnFn1 {cursor:pointer!important;cursor:hand;  height:30px; width:101px; padding:3px 5px 0 0; }
.btnFn2 {cursor:pointer!important;cursor:hand;  height:30px; width:101px; padding:3px 5px 0 0; font-weight:bold; }
.reginputyzm:hover{ border:#3C3 solid 1px}
</style>


<div class="mian">
<div class="regbox conter">
<div class="nyclassbt01 conter">订单投诉
  <%
set rs2=server.CreateObject("adodb.recordset")

futelguanfang=fuwutel 

i=SafeRequestform("i")

Function randarr()
Const stringmodarr = "0123456789"
strlength = Len(stringmodarr)
Randomize timer
For i = 1 To 5 
randarr2 = randarr2&Mid(stringmodarr,Int(Rnd * strlength + 1),1)  
Next 
randarr=randarr2
End Function


Function RegTest(str,r,i)
Dim Reg
Set Reg=New RegExp
Reg.IgnoreCase=i'默认值为False(区分大小写)
Reg.Pattern=r
RegTest=Reg.Test(str)
Set Reg=Nothing
End Function


act=SafeRequestform("act")
cact=SafeRequest("cact")
isgoodts="yes"

if act="jubao" then
call chkwurl()
leibie1=SafeRequestform("leibie1")
leibie2=SafeRequestform("leibie2")
con=trim(SafeRequestform("con"))
if con="0" then call PopErr("请选择举报内容") 
xiangxicon=trim(SafeRequestform("xiangxicon"))
userid=trim(SafeRequestform("userid"))
goodid=trim(SafeRequestform("goodid"))
'ayjupass=trim(SafeRequestform("ayjupass"))


if isNumeric(goodid)=false then 
	rs.open "select aygoodid,aygoodmd5 from aygood where aygoodmd5='"&goodid&"'" ,conn,1,1
	if not(rs.bof and rs.eof) then
	goodid=rs("aygoodid")
	else
	call PopErr("未找到该商品") 
	end if
	rs.close
end if

jubaoname=trim(SafeRequestform("jubaoname"))
'if leibie1="" and leibie2="" then call PopErr("请选择举报类别") 
rs.open "select * from ayjubao" ,conn,1,3
rs.addnew
if leibie1<>"" then rs("ayjubaosh")=1
if leibie2<>"" then rs("ayjubaogood")=1
rs("ayjubaocon")=con
if xiangxicon<>"" then rs("ayjubaoxcon")=xiangxicon
rs("ayjubaouid")=clng(userid)
if goodid<>"" then rs("ayjubaogid")=goodid
rs("aydate")=now()
rs("ayjuname")=jubaoname 
rs("ayjupass")=ayjupass
rs.update
rs.close
call logadd("0",jubaoname&"举报投诉成功",0,0) 
call PopErr2("举报/投诉成功","/") 
end if




if act="add" then
call chkwurl()
i=SafeRequestform("i")
con=trim(SafeRequestform("con"))
if con="0" then call PopErr("请选择举报内容") 
xiangxicon=trim(SafeRequestform("xiangxicon"))
jubaodd=trim(SafeRequestform("jubaodd"))
jubaomail=trim(SafeRequestform("jubaomail"))
jubaoname=trim(SafeRequestform("jubaoname"))
'ayjupass=trim(SafeRequestform("ayjupass"))
jubaoqq=trim(SafeRequestform("jubaoqq"))

'检测验证码
chkcode=SafeRequestform("chkcode")
if chkcode="" or request.Cookies("yzsum")="" then call PopErr("收到的投诉查询密码错误err1") 
tomd5yzm=md5(chkcode&jubaoname&ptjiami)
rs.open "select * from ayyanzheng where ayyanzhengids='"&chkcode&"' and ayyanzhengidc='"&tomd5yzm&"'",conn,1,1
if rs.bof and rs.eof then call PopErr("收到的投诉查询密码错误,请检查手机号和收到的查询密码是否正确")
rs.close
'检测验证码*******************************************************************************************************************

	'emailobj=RegTest(trim(jubaomail),"([a-zA-Z0-9]+[_|\-|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\-|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}",True)
	'if emailobj=false then
	'call PopErr("请填写一个正确的邮箱")
	'end if

pic1=trim(SafeRequestform("pic1"))
pic2=trim(SafeRequestform("pic2"))
pic3=trim(SafeRequestform("pic3"))
pic4=trim(SafeRequestform("pic4"))
pic5=trim(SafeRequestform("pic5"))

downf=""
if trim(pic1)<>"" then downf=downf&pic1&";"
if trim(pic2)<>"" then downf=downf&pic2&";"
if trim(pic3)<>"" then downf=downf&pic3&";"
if trim(pic4)<>"" then downf=downf&pic4&";"
if trim(pic5)<>"" then downf=downf&pic5&";"

if downf<>"" then downf=mid(downf,1,len(downf)-1)


if jubaoname="" or jubaodd="" or jubaoqq="" then call PopErr("请填写完整") 

if jubaodd<>"" then

ddku=getddku(jubaodd)

sql="select aydingdansum,aydingdanuser,aydingdanzt,aydingdansj,aydingdanzj from "&ddku&" where aydingdansum='"&jubaodd&"'" 
rs.open sql,conn,1,1
if rs.bof and rs.eof then call PopErr("未找到该订单号，请检查订单号是否正确") 

	if cint(rs("aydingdanzt"))=0 then call PopErr("该订单尚未支付成功,如遇到支付问题请联系平台客服") 
	
	if i="all" then
	else
	if datediff("h",rs("aydingdansj"),now())>24 then call PopErr("该订单已超过24小时投诉时效，不再受理投诉问题") 
	end if
	
aydingdanzj=rs("aydingdanzj")
userid=rs("aydingdanuser")
rs.close
end if

sql="select * from ayjubao where jubaodd='"&jubaodd&"'" 
rs.open sql,conn,1,3
if not(rs.bof and rs.eof) then call PopErr2("该订单已经投诉并受理，请使用查询密码查看投诉进度，再次回复或撤销投诉","/tousu") 
	
rs.addnew
rs("ayjubaocon")=con
if xiangxicon<>"" then rs("ayjubaoxcon")=xiangxicon
if jubaodd<>"" then rs("jubaodd")=jubaodd
rs("jubaomail")=jubaomail
rs("ayjubaouid")=clng(userid)
rs("aydate")=now()
rs("ayjuname")=jubaoname
if downf<>"" then rs("ayjudown")=downf
rs("ayjupass")=chkcode
rs("jubaoqq")=jubaoqq
rs("ayjubaozt")=1    '*****开启立即通知 请开启此行  否则请关闭*********
if request.Cookies("aynameid")<>"" then rs("jubaomaiid")=request.Cookies("aynameid")
rs.update
rs.close


'立即通知商家
sql="select top 1 * from ayjubao where ayjuname='"&jubaoname&"' and ayjubaosjid=0 order by ayjubaoid desc" 
rs.open sql,conn,1,3
if not(rs.bof and rs.eof) then
jid=rs("ayjubaoid")
rs.addnew
rs("ayjubaosjid")=jid
rs("ayjuhuifu")="我们已收到您的投诉,并通知了商家,请耐心等待。请商家积极主动联系买家并处理投诉！24小时未处理将视为自动退款！"
rs("aydate")=now()
rs("ayjuishui")=1
rs("ayjuishuisid")=9
rs.update
end if
rs.close

rs.open "select aynameid,aymail,aytel,wxopenid,ayyue,aydongjie,cwku from ayname where aynameid="&userid&"" ,conn,1,3
if rs.bof and rs.eof then call PopErr("未找到该商户！")
aymail=trim(rs("aymail"))
aytel=trim(rs("aytel"))
wxopenid=trim(rs("wxopenid"))
cwku=trim(rs("cwku"))

if ccur(rs("ayyue"))>=ccur(aydingdanzj) then
	buyuseryue=ccur(rs("ayyue"))-ccur(aydingdanzj)
	rs("ayyue")=ccur(rs("ayyue"))-ccur(aydingdanzj)
	rs("aydongjie")=ccur(rs("aydongjie"))+ccur(aydingdanzj)
	rs.update
	conn.execute "update ayjubao set jine="&aydingdanzj&",jinzt=1 where jubaodd='"&jubaodd&"'"
	
	'创建财务流水
	select case	trim(cwku)
	case "aycaiwu"
	randarrcwku="A"
	case "aycaiwu01"
	randarrcwku="B"
	case "aycaiwu02"
	randarrcwku="C"
	case "aycaiwu03"
	randarrcwku="D"
	case "aycaiwu04"
	randarrcwku="E"
	case "aycaiwu05"
	randarrcwku="F"
	case else
	randarrcwku="A"
	end select
	crandarrlei="C" 	'标示 D订单 C财务
	crandarrhost="A" 	'服务器数据库
	crandarrlast=Right(("00"&Month(Now())),2)&Right(("00"&Day(Now())),2)&Right(("00"&hour(Now())),2)&Right(("00"&minute(Now())),2)&Right(("00"&second(Now())),2)&randarr()
	crandarr=crandarrlei&crandarrhost&randarrcwku&crandarrlast
	conn.Execute("Insert Into "&cwku&"(aycaiwuzt,aycailiushui,aycaiwuleibie,aycaiwuuser,aycaiwudate,aycaiwujine,aycaiwuyue,aycaiwubody,aycwfsjin,aycaiwuzhifu) values('1','"&crandarr&"','11','"&clng(userid)&"','"&now()&"','"&aydingdanzj&"','"&buyuseryue&"','投诉冻结"&jubaodd&"','"&aydingdanzj&"','99')")
end if

rs.close


'conn.Execute("Insert Into mailto(mto,mti,mcon) values('"&trim(jubaomail)&"','我们已经收到了您的投诉申请，并通知了商家','我们已收到您的投诉请求,并通知了商家,请耐心等待')")
'conn.Execute("Insert Into mailto(mbid,code1,mfs,mto,mcon) values('SMS_65920181','-','1','"&trim(jubaoname)&"','我们已经收到了您的投诉申请，并通知了商家,请耐心等待')")





title="来自"&webname&"-收到新的投诉,请在24小时内解决投诉问题,详情登陆平台查看" 
body="收到新的投诉,请在24小时内解决投诉问题,详情登陆平台查看"
conn.Execute("Insert Into mailto(mto,mti,mcon) values('"&trim(aymail)&"','"&trim(title)&"','"&trim(body)&"')")
call mokuai_sms("IK12","2",trim(aytel),body,"","","","")

if wxopenid<>"" then
wxend="买家QQ:"&jubaoqq&"\n"
wxend=wxend&"买家微信:"&jubaomail&"\n"
wxend=wxend&"买家电话:"&jubaoname&"\n"
wxend=wxend&"投诉时间:"&now()&"\n"
wxend=wxend&"请在24小时内解决投诉问题,详情登陆平台查看。\n请注意：只有买家可以撤销投诉"
conn.Execute("Insert Into mailto(mfs,wxlei,mto,wxtop,wxtext,wx1,wx2) values('2','3','"&trim(wxopenid)&"','收到新的投诉通知','"&wxend&"','"&jubaodd&"','"&con&"')")
end if
'立即通知商家 结束

response.Cookies("yzsum")=""
call logadd("0",jubaoname&"投诉成功",0,0)
'call PopErr2("投诉成功,请留意投诉进展,并注意接听平台客服电话"&futelguanfang,weburl&"tousu?act=cx&yiju="&chkcode)
call PopErr2("投诉成功,请留意投诉进展",weburl&"tousu?act=cx&yiju="&chkcode)
end if
%>
</div>
<link rel="stylesheet" href="/kindeditor/themes/default/default.css" />
<script charset="utf-8" src="/kindeditor/kindeditor.js"></script>
<script charset="utf-8" src="/kindeditor/lang/zh-CN.js"></script>
<script>
			KindEditor.ready(function(K) {
				var uploadbutton1 = K.uploadbutton({
					button : K('#uploadButton1')[0],
					fieldName : 'imgFile',
					url : '/kindeditor/asp/upload_jubao.asp?dir=image',
					afterUpload : function(data) { 
						if (data.error === 0) {
							var url = K.formatUrl(data.url, '');
							urlcon=url.replace("/kindeditor/asp/../../","/"); 
							K('#picurl1').val(urlcon);
							con1.innerHTML='<a href='+urlcon+' target=_blank><img src='+urlcon+' width=100 height=100/></a>';
						} else {
							alert(data.message);
						}
					},
					afterError : function(str) {
						alert('自定义错误信息: ' + str);
					}
				});
				uploadbutton1.fileBox.change(function(e) {
					uploadbutton1.submit();
				});
			});
			
			KindEditor.ready(function(K) {
				var uploadbutton2 = K.uploadbutton({
					button : K('#uploadButton2')[0],
					fieldName : 'imgFile',
					url : '/kindeditor/asp/upload_jubao.asp?dir=image',
					afterUpload : function(data) { 
						if (data.error === 0) {
							var url = K.formatUrl(data.url, 'absolute');
							urlcon=url.replace("/kindeditor/asp/../../","/"); 
							K('#picurl2').val(urlcon);
							con2.innerHTML='<a href='+urlcon+' target=_blank><img src='+urlcon+' width=100 height=100/></a>';
						} else {
							alert(data.message);
						}
					},
					afterError : function(str) {
						alert('自定义错误信息: ' + str);
					}
				});
				uploadbutton2.fileBox.change(function(e) {
					uploadbutton2.submit();
				});
			});
			
			KindEditor.ready(function(K) {
				var uploadbutton3 = K.uploadbutton({
					button : K('#uploadButton3')[0],
					fieldName : 'imgFile',
					url : '/kindeditor/asp/upload_jubao.asp?dir=image',
					afterUpload : function(data) { 
						if (data.error === 0) {
							var url = K.formatUrl(data.url, 'absolute');
							urlcon=url.replace("/kindeditor/asp/../../","/"); 
							K('#picurl3').val(urlcon);
							con3.innerHTML='<a href='+urlcon+' target=_blank><img src='+urlcon+' width=100 height=100/></a>';
						} else {
							alert(data.message);
						}
					},
					afterError : function(str) {
						alert('自定义错误信息: ' + str);
					}
				});
				uploadbutton3.fileBox.change(function(e) {
					uploadbutton3.submit();
				});
			});
			
			KindEditor.ready(function(K) {
				var uploadbutton4 = K.uploadbutton({
					button : K('#uploadButton4')[0],
					fieldName : 'imgFile',
					url : '/kindeditor/asp/upload_jubao.asp?dir=image',
					afterUpload : function(data) { 
						if (data.error === 0) {
							var url = K.formatUrl(data.url, 'absolute');
							urlcon=url.replace("/kindeditor/asp/../../","/"); 
							K('#picurl4').val(urlcon);
							con4.innerHTML='<a href='+urlcon+' target=_blank><img src='+urlcon+' width=100 height=100/></a>';
						} else {
							alert(data.message);
						}
					},
					afterError : function(str) {
						alert('自定义错误信息: ' + str);
					}
				});
				uploadbutton4.fileBox.change(function(e) {
					uploadbutton4.submit();
				});
			});
			
			KindEditor.ready(function(K) {
				var uploadbutton5 = K.uploadbutton({
					button : K('#uploadButton5')[0],
					fieldName : 'imgFile',
					url : '/kindeditor/asp/upload_jubao.asp?dir=image',
					afterUpload : function(data) { 
						if (data.error === 0) {
							var url = K.formatUrl(data.url, 'absolute');
							urlcon=url.replace("/kindeditor/asp/../../","/"); 
							K('#picurl5').val(urlcon);
							con5.innerHTML='<a href='+urlcon+' target=_blank><img src='+urlcon+' width=100 height=100/></a>';
						} else {
							alert(data.message);
						}
					},
					afterError : function(str) {
						alert('自定义错误信息: ' + str);
					}
				});
				uploadbutton5.fileBox.change(function(e) {
					uploadbutton5.submit();
				});
			});
		</script>
        
        
<%
if request.Cookies("aynameid")<>"" and request.Cookies("kfopenid")<>"" and request.Cookies("kfopenname")<>"" then
	rs.open "select aymail,ayqq,aytel,aynameid from ayname where aynameid="&request.Cookies("aynameid")&"" ,conn,1,1
	uaymail=trim(rs("aymail"))
	uayqq=rs("ayqq")
	uaytel=rs("aytel")
	rs.close
end if
%>
<form name="form1" id="form1" method="post" action="" onSubmit="return check_add()">
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<%
if SafeRequest("cact")="tscx" then
	
	if trim(SafeRequestform("ddh"))<>"" then 
	ddh=trim(SafeRequestform("ddh"))
	else
	ddh=trim(SafeRequest("ddh"))
	end if
	
	if pichost<>"/" then
		if trim(weburl)<>pichost then
		response.Redirect ""&pichost&"jubao?cact=tscx&ddh="&ddh&""
		response.end
		end if
	end if
	
	if ddh="" then call PopErr("请填写订单号或联系方式") 

	ddhstr=""
	isformka="no" '是否为直接订单号查询

	if mid(trim(ddh),1,1)="D" and len(trim(ddh))=18 then
	isformka="yes"
	ddku=getddku(ddh)
	sql="select * from "&ddku&" where aydingdansum='"&trim(ddh)&"'" 
	end if


	if isformka="no" then '联系方式	查询
		
		sql="select top 15 aylxcon,aylxku,aylogdate,aydddsum from aybuylx where aylxcon='"&trim(ddh)&"' order by aylogdate desc"
		rs.open sql,conn,1,1
		if not(rs.bof and rs.eof) then
		do while not(rs.eof) 
		ddhstr=ddhstr&trim(rs("aydddsum"))&","
		rs.movenext
		loop
		else
		call PopErr("未找到查询内容")
		end if
		rs.close
						
		if ddhstr<>"" then 
		ddhstr=mid(ddhstr,1,len(ddhstr)-1)
		end if
		
	end if
	
end if

if isformka="yes" then
		rs.open "select * from "&ddku&" where aydingdansum='"&ddh&"'" ,conn,1,1
		if rs.bof and rs.eof then call PopErr("未找到该订单号ERR1") 
		userid=rs("aydingdanuser")
		rs.close
		
		rs.open "select aynameid,aywebname from ayname where aynameid="&userid&"" ,conn,1,1
		if not(rs.bof and rs.eof) then
		%>
          <tr>
            <td width="212" height="50" class="regtext">投诉商家：</td>
            <td width="311">
            <span style="font-size:14px"><%=trim(rs("aywebname"))%></span>  
            <input name="userid" type="hidden" id="userid" value="<%=rs("aynameid")%>" />  
            </td>
            <td width="512"></td>
          </tr>
        <%
		else
		call PopErr2("未找到商户信息","/tousu") 
		end if
		rs.close

end if
%>


  <tr>
    <td width="212" height="50" class="regtext">投诉类别：</td>
    <td width="311">
<select name="con" id="con" class="reginput">
      <option value="0">请选择投诉内容</option>
      <option value="商品虚假">商品虚假</option>
      <option value="卡密失效">卡密失效</option>
      <option value="卡密失效">无法联系到商家</option>
      <option value="商家存在欺诈行为">商家存在欺诈行为</option>
      <option value="商品涉及非法内容">商品涉及非法内容</option>
    </select>
    </td>
    <td  width="512"><div id="pass1d" class="regts" >选择一个投诉类别(必选)</div></td>
  </tr>
  <tr style="line-height:25px;font-size:13px;">
    <td height="50" class="regtext">投诉订单：</td>
    <td colspan="2">
      <%if isformka="yes" then%>
      <input name="jubaodd" type="text" class="reginput" id="jubaodd"  value="<%=server.HTMLEncode(ddh)%>" maxlength="18">
      <%elseif isformka="no" then
		zong=0
		aykustr=split(ddhstr,",")
		zong=Ubound(aykustr)
		if zong<0 then zong=0

		For sum=0 To zong
		sql="select * from "&getddku(trim(aykustr(sum)))&" where aydingdansum='"&trim(aykustr(sum))&"'" 
		
		rs.open sql,conn,1,1
		if not(rs.bof and rs.eof) then
			rs2.open "select aygoodid,aygoodname from aygood where aygoodid="&rs("ayddshangid")&"",conn,1,1
			if not(rs2.eof) then 
			sname=trim(rs2("aygoodname"))
			else
			sname="商品已删除"
			end if
			rs2.close
		%>
      <input name="jubaodd" id="jubaodd" type="radio" value="<%=trim(aykustr(sum))%>"><%=trim(aykustr(sum))%> <span style="color:#36C">[<%=rs("aydingdansj")%>]</span> <span style="color:#36C">[<%=sname%>]</span> <span style="color:#F30">[<%=Formatnumber(ccur(rs("aydigndanyf")),2,true,-1,0)%>元]</span> 
      <%if cint(rs("aydingdanzt"))=1 then response.Write "<span style=color:#090>支付成功</span>":else:response.Write"未支付":end if%><br>
      <%end if
		rs.close
		next
	%>
      
      <%end if%>
    </td>
    </tr>
  <tr>
    <td height="50" class="regtext">投诉内容：</td>
    <td><textarea name="xiangxicon" style="width:290px" rows="6" id="xiangxicon"></textarea></td>
    <td><div id="pass1d" class="regts" >填写详细内容或详细情况(必填)</div></td>
  </tr>
  <tr>
    <td height="50" class="regtext">我的微信号：</td>
    <td><input name="jubaomail" type="text" class="reginput" id="jubaomail" value="<%=uaymail%>"></td>
    <td><div id="pass1d" class="regts" >我们可以联系到你的微信号</div></td>
  </tr>
  <tr>
    <td height="50" class="regtext">我的QQ号：</td> 
    <td><input name="jubaoqq" type="text" class="reginput" id="jubaoqq"  maxlength="15" value="<%=uayqq%>"></td>
    <td><div id="pass1d" class="regts" >我们可以联系到你的QQ号码(必填)</div></td>
  </tr>


  <tr>
    <td height="50" class="regtext">我的手机号：</td>
    <td><input name="jubaoname" type="text" class="reginput" id="jubaoname"  maxlength="11"  value="<%=uaytel%>"></td>
    <td><div id="pass1d" class="regts" >我们可以联系到你的真实常用手机号码(必填)</div></td>
  </tr>
  <tr>
    <td height="50" class="regtext"><span style="color:#F30">投诉密码：</span></td>
    <td><input name="chkcode" type="text" class="reginputyzm" id="chkcode"  maxlength="6">&nbsp;<input type="button" class="btnFn1" id="endtime2" value="获取投诉密码" onClick="huoqu()"></td>
    <td><div id="pass1d" class="regts" style="color:#F30">手机收到的投诉密码,用于查询与撤销投诉(必填)</div></td>
  </tr>
<!--
  <tr>
    <td height="50" class="regtext"><span style="color:#F30">设置一个查询密码：</span></td>
    <td><input name="ayjupass" type="text" class="reginput" id="ayjupass" maxlength="18"></td>
    <td><div id="pass1d" class="regts" style="color:#F30" >设置一个可以查询或撤销投诉的查询密码(必填)</div></td>
  </tr>
-->
  <tr>
    <td height="50" class="regtext">上传截图：</td>
    <td colspan="2" valign="bottom">
      <input name="pic1" type="hidden" class="ke-input-text" id="picurl1" value="" readonly="readonly" /> <input type="button" id="uploadButton1" value="上传截图1" />
      <input name="pic2" type="hidden" class="ke-input-text" id="picurl2" value="" readonly="readonly" /> <input type="button" id="uploadButton2" value="上传截图2" />
      <input name="pic3" type="hidden" class="ke-input-text" id="picurl3" value="" readonly="readonly" /> <input type="button" id="uploadButton3" value="上传截图3" />
      <input name="pic4" type="hidden" class="ke-input-text" id="picurl4" value="" readonly="readonly" /> <input type="button" id="uploadButton4" value="上传截图4" />
      <input name="pic5" type="hidden" class="ke-input-text" id="picurl5" value="" readonly="readonly" /> <input type="button" id="uploadButton5" value="上传截图5" />
      <br><span id="con1"></span>&nbsp;<span id="con2"></span>&nbsp;<span id="con3"></span>&nbsp;<span id="con4"></span>&nbsp;<span id="con5"></span>
    </td>
    </tr> 
  <tr>
    <td height="50" class="regtext">&nbsp;</td>
    <td>(图片格式：jpg gif png 图片大小不超过500K)</td>
    <td></td>
  </tr>
  <tr>
    <td height="69" class="regtext">&nbsp;</td>
    <td align="left"><input style="cursor:pointer" name="tijiao" type="submit" class="logindlreg" id="tijiao" value=" 提交投诉 "></td>
    <td><input name="act" type="hidden" id="act" value="add" /><input name="i" type="hidden" id="i" value="<%=i%>" /></td>
  </tr>
  </table>
  
<div class="mzsmbox conter">
<strong>重要提示：</strong><br>
恶意投诉，无理投诉，将被列入买家黑名单，将无法在平台再次购买任何商品！<br>
请根据你遇到的问题，如实投诉，文明投诉，并上传证实存在问题的相关截图证据或聊天记录！<br>
如果商家在24小时内未回复或未解决投诉问题 平台会直接退款给买家！<br>
</div>

</form>
<br>

</div>




</div>



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