<!--#include file="conn.asp"-->
<%
if request.cookies("bjx")("shjianame")="" then
response.Redirect "shjia.asp"
response.End
end if
SHJIAUserName=request.cookies("bjx")("shjianame")
if request("bjxact")="ok" then
if request("nodata")="no" then
set rs=server.CreateObject("adodb.recordset")
rs.Open "select * from BJX_PAY_NPS ",conn,1,3
rs.AddNew
rs("BJX_PAY_NPSID")=trim(request("BJX_PAY_NPSID"))
rs("BJX_PAY_MIYAO")=trim(request("BJX_PAY_MIYAO"))
rs("BJX_PAY_BACKURL")=trim(request("BJX_PAY_BACKURL"))
rs("SHJIAUserName")=trim(request("SHJIAUserName"))
rs.Update
rs.Close
set rs=nothing
else
set rs=server.CreateObject("adodb.recordset")
rs.Open "select * from BJX_PAY_NPS where SHJIAUserName='"&trim(request("SHJIAUserName"))&"' ",conn,1,3
rs("BJX_PAY_NPSID")=trim(request("BJX_PAY_NPSID"))
rs("BJX_PAY_MIYAO")=trim(request("BJX_PAY_MIYAO"))
rs("BJX_PAY_BACKURL")=trim(request("BJX_PAY_BACKURL"))
rs.Update
rs.Close
set rs=nothing
end if


end if

set rs=server.CreateObject("adodb.recordset")
rs.Open "select * from BJX_PAY_NPS where SHJIAUserName='"&request.cookies("bjx")("shjianame")&"'",conn,1,1
if rs.eof and rs.bof then
'response.write "数据库中无数据"
nodata="no"
else
BJX_PAY_ID=rs("BJX_PAY_ID")
BJX_PAY_NPSID=rs("BJX_PAY_NPSID")
BJX_PAY_MIYAO=rs("BJX_PAY_MIYAO")
BJX_PAY_BACKURL=rs("BJX_PAY_BACKURL")
nodata="yes"
end if 
rs.Close
set rs=nothing
%>
<html><head><title>BJX支付系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../images/css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style4 {color: #FFFFFF}
.style9 {color: #000000}
-->
</style>
</head>
<body>

<br>
<table class="tableBorder" width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
  <tr>
    <td colspan="4" align="center" background="../images/admin_bg_1.gif"><b><STRONG><span class="style4"><font face="Arial Narrow">商家在线支付设置</font></span></STRONG></b></td>
  </tr>
  <tr>
    <td bgcolor="#E8F1FF"><div align="center">
      <p><FONT color=#008000 size=4><FONT 
color=#008000><STRONG>      </STRONG></FONT></FONT><span class="style9">本系统采用NPS在线支付方式，要求填写商家号和密钥！</span></p>
      <form name="form1" method="post" action="setpay.asp?bjxact=ok">
        <table width="95%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="38%"><div align="right">商家号：</div></td>
            <td width="62%"><input name="BJX_PAY_NPSID" type="text" id="BJX_PAY_NPSID" value="<%=BJX_PAY_NPSID%>"></td>
          </tr>
          <tr>
            <td><div align="right">密钥：</div></td>
            <td><input name="BJX_PAY_MIYAO" type="text" id="BJX_PAY_MIYAO" value="<%=BJX_PAY_MIYAO%>"></td>
          </tr>
          <tr>
            <td><div align="right">返回地址：</div></td>
            <td><input name="BJX_PAY_BACKURL" type="text" id="BJX_PAY_BACKURL" value="<%=BJX_PAY_BACKURL%>"></td>
          </tr>
          <tr>
            <td colspan="2"><div align="center">
              <input type="submit" name="Submit" value="提交">
              <input type="reset" name="Submit2" value="重置">
              <input name="SHJIAUserName" type="hidden" value="<%=SHJIAUserName%>">
			  <input name="nodata" type="hidden" value="<%=nodata%>">
            </div></td>
            </tr>
        </table>
      </form>
      <p><span class="style9"><br>
          </span></p>
    </div></td>
  </tr>
</table>
</body>
</html>