<!--#include file="../../conn/conn.asp" -->
<!--#include file="../../Inc/Commoncode.asp" -->
<!--#include file="../checkvalid.asp" -->
<%If Not (FRAdminLevel(201) and FRAdminLevel(202)) Then
	Call ErrorMsg()
End If
if trim(request("step"))="1" then
member_id=trim(request("member_id"))
member_balance=trim(request("member_balance"))
member_consumenums=trim(request("member_consumenums"))
If IsNumeric(member_balance)=False Then
Response.Write("<script>alert(""帐户余额必须是数字！"");history.back();</script>")
Response.End()
End If
If IsNumeric(member_consumenums)=False Then
Response.Write("<script>alert(""消费点数必须是数字！"");history.back();</script>")
Response.End()
End If
conn.Execute("Update JOB_Member Set Member_consumenums="&member_consumenums&",Member_balance="&member_balance&" Where Member_id="&member_id)
Response.Write ("<script language=JavaScript>{window.opener.location.reload();window.close();}</script>")
end if
%>
<%
member_id=clng(trim(request("id")))
sql="select * from JOB_Member where Member_id="&member_id
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
%>
<html>
<head>
<title>设置会员帐户余额</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css/style<%=sk%>.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../inc/input.js"></script>
</head>
<body>
<div align="center">
  <table width="100%" border="0" cellpadding="2" cellspacing="1"  align="center"  class="tableBorder">
    <tr>
      <th height=25 class="tableHeaderText" colspan="2"> 设置会员账户余额</th>
    </tr>
    <form name="form1" method="post" action="Member_userpointmodi.asp?id=<%=member_id%>&step=1" onSubmit="return Juge(this)">
      
      <tr>
        <td width="18%" height="25"><div align="right">会员登录帐号：</div></td>
        <td width="57%"><input name="member_login" type="text" id="member_login" size="20" maxlength="50" value="<%=rs("Member_login")%>" disabled></td>
      </tr>
	  <tr>
        <td height="25"><div align="right">名称：</div></td>
        <td><input name="member_name" type="text" id="member_name" size="40" maxlength="50" value="<%=rs("member_name")%>" disabled></td>
      </tr>
      <tr>
        <td height="25"><div align="right">帐号余额：</div></td>
        <td><input name="member_balance" type="text" size="10" maxlength="20" value="<%=rs("Member_balance")%>">
        元</td>
      </tr>
      <tr>
        <td height="25"><div align="right">剩余点数：</div></td>
        <td><input name="member_consumenums" type="text" size="10" maxlength="20" value="<%=rs("Member_consumenums")%>">
        点</td>
      </tr>
      <tr>
        <td height="25" colspan="3"><div align="center">
            <input name="member_id" type="hidden" value="<%=rs("member_id")%>">
            <input name="Submit" type="submit" class="inputs" value="设 置">
          &nbsp;
          <input name="Submit2" type="reset" class="inputs" value="重 置">
           &nbsp;
           <input name="Submit3" type="button" class="inputs" id="Submit3" style="cursor:hand" onClick="javascript:window.close();" value="关 闭">
        </div></td>
      </tr>
    </form>
  </table>
</div>
</body>
</html>
<%
conn.close
set conn=nothing
%>