<!--#include virtual="/show/userhead.asp"-->
<!--#include virtual="/user/subleft.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />

<%
response.end

response.Redirect("/")
response.end


act=SafeRequest("act")

if act="onechuli" then
id=SafeRequest("id")

sql="select * from "&request.Cookies("ddku")&" where aydingdanid="&id&""
rs.open sql,conn,1,3
if rs.bof and rs.eof then
call PopErr("未找到数据")
else
rs("ayddmaijiaispay")=1
'rs("ayddmaijiajin")=0
rs.update
end if
rs.close
call PopErr2("返回处理成功","yfan")
end if




%>

<title><%=webname%>-点卡余额返还</title> 


<SCRIPT LANGUAGE="JavaScript">
var checkflag1 = "false";
function check1(field) {
if (checkflag1 == "false") {
for (i = 0; i < field.length; i++) {
field[i].checked = true;}
checkflag1 = "true";
return "false"; }
else {
for (i = 0; i < field.length; i++) {
field[i].checked = false; }
checkflag1 = "false";
return "true"; }
}

function unselectall1()
{
    if(document.formzhifubao.chkAll1.checked){
	document.formzhifubao.chkAll1.checked = document.formzhifubao.chkAll1.checked&0;
	checkflag1 = "false";
    } 	
}
</script>

<SCRIPT LANGUAGE="JavaScript">
var checkflag2 = "false";
function check2(field) {
if (checkflag2 == "false") {
for (i = 0; i < field.length; i++) {
field[i].checked = true;}
checkflag2 = "true";
return "false"; }
else {
for (i = 0; i < field.length; i++) {
field[i].checked = false; }
checkflag2 = "false";
return "true"; }
}

function unselectall2()
{
    if(document.caifutong.chkAll2.checked){
	document.caifutong.chkAll2.checked = document.caifutong.chkAll2.checked&0;
	checkflag2 = "false";
    } 	
}
</script>

<SCRIPT LANGUAGE="JavaScript">
var checkflag3 = "false";
function check3(field) {
if (checkflag3 == "false") {
for (i = 0; i < field.length; i++) {
field[i].checked = true;}
checkflag3 = "true";
return "false"; }
else {
for (i = 0; i < field.length; i++) {
field[i].checked = false; }
checkflag3 = "false";
return "true"; }
}

function unselectall3()
{
    if(document.wangyin.chkAll3.checked){
	document.wangyin.chkAll3.checked = document.wangyin.chkAll3.checked&0;
	checkflag3 = "false";
    } 	
}
</script>
<br>
<DIV id=main2> 
<%call webleft()%>
<DIV id=main_right>
<DIV id=main_right_content>

<H2><SPAN>收费功能</SPAN></H2>
<DIV class=main3>
<form action="" method="post" name="formzhifubao" id="formzhifubao">
  <TABLE width="99%" border="0" align="center" cellpadding="0" cellspacing="0" class="table_style_a1">
  <TBODY>
  
  <TR>
    <TD colspan="6" align="left" class="border_bottom"><span style="font-weight: bold">&nbsp;&nbsp;</span><br>
	&nbsp;<br>
	<br>	</TD>
    </TR>
	
    <TR>
    <TD align="center" class="border_bottom border_right">&nbsp;</TD>
    <TD align="center" class="border_bottom border_right">订单号</TD>
    <TD align="center" class="border_bottom border_right">返回余额</TD>
    <TD align="center" class="border_bottom border_right">联系方式</TD>
    <TD align="center" class="border_bottom border_right">邮箱</TD>
    <TD align="center" class="border_bottom">操作</TD>
    </TR>
<%


	sql="select * from "&request.Cookies("ddku")&" where aydingdanuser="&request.Cookies("aynameid")&" and aydingdanzt=1 and ayddmaijiaispay=0 and ayddzffangshi=1 and ayddmaijiajin>0" 
	rs.open sql,conn,1,1
	if not(rs.bof and rs.eof) then
	do while not rs.eof
	

%>
	
  <TR>
    <TD width="43" align="center" class="border_bottom border_right">
	<input name="list1" type="checkbox" id="list1" value="<%=rs("aydingdanid")%>" onClick="unselectall1()" disabled></TD>
    <TD width="179" align="center" class="border_bottom border_right"><%=rs("aydingdansum")%></TD>
    <TD width="113" align="center" class="border_bottom border_right"><%=Formatnumber(rs("ayddmaijiajin"),3,true,-1,0)%>元    </TD>
    <TD align="center" class="border_bottom border_right" style="font-weight: bold; color: #FF0000"><%=rs("ayddcontact")%>&nbsp;</TD>
    <TD width="168" align="center" class="border_bottom border_right"><%=rs("ayddemail")%>&nbsp;</TD>
    <TD width="105" align="center" class="border_bottom">
	  <a onClick="javascript:return confirm('您确定要操作吗？');" href="?id=<%=rs("aydingdanid")%>&act=onechuli">转已处理</a></TD>
  </TR>

<%
rs.movenext 
loop
end if

%>
    <TR>
    <TD colspan="6" align="left">
	<input name="chkAll1" type="checkbox" id="chkAll1" onClick="this.value=check1(this.form.list1)" value="checkbox" disabled>
      全选
      <input type="submit" name="Submit" value=" 批量返回 ">
      <input name="act" type="hidden" id="act" value="chuli">
      <%
rs.close 
%>	  </TD>
    </TR>
  </TBODY></TABLE>
	</form>

<br>

</DIV></DIV>
<DIV class=clear></DIV></DIV>
</DIV>

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

