<!--#include file="conn.asp"-->
<%if session("admin")="" then
response.Write "<script language='javascript'>alert('网络超时或您还没有登陆！');window.location.href='login.asp';</script>"
response.End
else
if session("flag")>1 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限！</b></font></div>"
response.End
end if
end if
%>
<%dim action
action=request.QueryString("action")
'//保存信息
if action="save" then
username=trim(request("username"))
leixing=trim(request("leixing"))
ver=trim(request("ver"))
xinxi=trim(request("xinxi"))
payid=trim(request("payid"))
urlback=trim(request("urlback"))
fangshi=trim(request("fangshi"))
email=trim(request("email"))
handphone=trim(request("handphone"))
set rs=server.CreateObject("adodb.recordset")
rs.Open "select * from shop_pay ",conn,1,3
rs("username")=username
rs("leixing")=leixing
rs("ver")=ver
rs("xinxi")=xinxi
rs("payid")=payid
rs("urlback")=urlback
rs("fangshi")=fangshi
rs("email")=email
rs("handphone")=handphone
rs.update
rs.close
set rs=nothing
response.Write "<script language=javascript>alert('支付信息修改成功！');history.go(-1);</script>"
end if%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css.css" rel="stylesheet" type="text/css">
</head>

<body>
<table width="95%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC">
  <tr> 
    <td height="22" bgcolor="#f1f1f1"> 
      <div align="center">
        <p><font color="#000000">在线支付信息设置</font></p>
        </div>
    </td>
  </tr>
  <tr> 
    <td height="107" bgcolor="#FFFFFF"> 
   <%
set rs=server.CreateObject("adodb.recordset")
rs.Open "select * from shop_pay ",conn,1,3

%>   
      <table width="90%" border="0" align="center" cellpadding="3" cellspacing="0">
        <form name="form1" method="post" action="pay.asp?action=save">
          <tr> 
            <td height="22" colspan="4"><strong>世纪通支付的配置 </strong><a href="http://www.1st-pay.net/register.aspx"><font color="#FF0000">如没有注册请直接快速注册1st-pay在线支付用户</font></a></td>
          </tr>
          <tr> 
            <td width="128" height="11">用户名：</td>
            <td width="115" height="11"> <input name="username" class="wenbenkuang" type="text" id="username" size="20" value="<%=trim(rs("username"))%>"> 
            </td>
            <td width="115">交易代码的类型： </td>
            <td width="230"><input name="leixing" class="wenbenkuang" type="text" id="leixing5" size="20" value="<%=trim(rs("leixing"))%>">
              4为高级代码</td>
          </tr>
          <tr> 
            <td height="22">接口版本号：</td>
            <td height="22"> <input name="ver" class="wenbenkuang" type="text" id="ver" size="20" value="<%=trim(rs("ver"))%>">
              目前为2.0 </td>
            <td height="22">交易中的附属信息：</td>
            <td height="22"><input name="xinxi" class="wenbenkuang" type="text" id="xinxi4" size="26" value="<%=trim(rs("xinxi"))%>"></td>
          </tr>
          <tr> 
            <td height="11">交易识别码：</td>
            <td height="11"> <input name="payid" class="wenbenkuang" type="text" id="leixing3" size="20" value="<%=trim(rs("payid"))%>">
              交易号 </td>
            <td height="11">信息反馈地址：</td>
            <td height="11"><input name="urlback" class="wenbenkuang" type="text" id="urlback4" size="20" value="<%=trim(rs("urlback"))%>">
              默认为01号地址</td>
          </tr>
          <tr> 
            <td height="11">支付方式：</td>
            <td height="11"><input name="fangshi" class="wenbenkuang" type="text" id="fangshi" size="20" value="<%=trim(rs("fangshi"))%>">
              01为人民币</td>
            <td height="11">email：</td>
            <td height="11"><input name="email" class="wenbenkuang" type="text" id="email3" size="26" value="<%=trim(rs("email"))%>"></td>
          </tr>
          <tr> 
            <td height="5">手机：</td>
            <td height="5" colspan="3"><input name="handphone" class="wenbenkuang" type="text" id="mailuserpass2" size="36" value="<%=trim(rs("handphone"))%>"></td>
          </tr>
          <tr> 
            <td height="3" colspan="4"><p>代码效果： http://www.1st-pay.net/work/work.asp?username=&amp;leixing=4&amp;ver=2.0&amp;xinxi=会员购买苹果|3份|...&amp;payid=123456&amp;cash=1&amp;urlback=01&amp;fangshi=01&amp;shopname=苹果&amp;email=test@abc.com&amp;handphone=13800000000</p></td>
          </tr>
          <tr>
            <td height="3" colspan="4">· 参数说明： <br>
              username：你的用户名[必填] <br>
              leixing：交易代码的类型（选4为高级代码）[必填] <br>
              ver：1st-pay接口版本号（目前为2.0）[必填] <br>
              xinxi：交易中的附属信息（自动化交易中可能需要的一些附 <br>
              属反馈信息，如：用户名、email地址等；便于反馈信息时收 <br>
              集） <br>
              payid:该交易的交易号（为一个6位数的数字） <br>
              cash：你要售卖的商品或服务的单价[必填] <br>
              urlback：信息反馈地址代号（默认为01号地址） <br>
              shopname：你要售卖的商品或服务的名称[必填] <br>
              email：你客户的联系email[必填] <br>
              handphone:你客户的手机号码[必填] </td>
          </tr>
          <tr> 
            <td height="22" colspan="4"> <div align="center"> 
                <input type="submit" class="go-wenbenkuang" name="Submit" value="提 交">
                &nbsp;&nbsp; 
                <input type="reset" class="go-wenbenkuang" name="Submit2" value="恢 复">
              </div></td>
          </tr>
        </form>
      </table>
      <%rs.Close
          set rs=nothing%>
    </td>
  </tr>
</table>
<br>
<table width="95%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <td> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td  rowspan="2"> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="12v">
              <tr> 
                <td class="12v" > 
                  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" id="AutoNumber3" height="0" width="100%">
                    <tr> 
                      <td> 
                        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                          <tr> 
                            <td> 
                              <div align="center"><font color="#000000">操作注意事项及说明</font></div>
                            </td>
                          </tr>
                          <tr> 
                            <td> 
                              <table width="80%" border="0" align="center" cellpadding="5" cellspacing="0">
                                <tr> 
                                  <td height="16"><font color="#FF0000">·请注意用户名和交易识别码，不可填写错误。<br>
                                    ·所有信息请注意填写，否则将造成不可支付。<br>
                                    </font></td>
                                </tr>
                              </table>
                            </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<!--#include file="copyright.asp"-->
</body>
</html>
<script>
	function regInput(obj, reg, inputStr)
	{
		var docSel	= document.selection.createRange()
		if (docSel.parentElement().tagName != "INPUT")	return false
		oSel = docSel.duplicate()
		oSel.text = ""
		var srcRange	= obj.createTextRange()
		oSel.setEndPoint("StartToStart", srcRange)
		var str = oSel.text + inputStr + srcRange.text.substr(oSel.text.length)
		return reg.test(str)
	}
</script>

