<!--#include file="conn.asp" -->
<!--#include file="inc/usdl.asp" -->
<%
userid=session("us")
 sql="select * from user where userid='"&userid&"'"
 rs.open sql,conn,1,1
  if rs.eof then
   response.write "对不起你的用户名不存在..."
   response.end
   rs.close
  end if
  v_rname=rs("name")
  v_remail=rs("email")
  v_rtel=rs("tel")
  v_rpost=rs("zip")
  v_raddr=rs("address")
  v_payname=rs("name")
  v_raddr=rs("address")
  rs.close
  v_rnote="在线支付" '留言
v_mid   ="0444"      '商户编号，改成IPAY负责分配给商户的编号
v_oid   ="000000"    '定单号，由商户负责产生的6位数字编号，一天内不能重复

 application lock
 sql="select * from pay order by v_oid desc"
 rs.open "pay",conn,2,3
  if rs.eof then
   v_oid="111111"
  else
   rs.movelast 
   v_oid=rs("v_oid")+1
  end if
  rs.close
 application unlock
 'Response.Write(v_oid)
 
v_amount="00.00"     '定单金额，单位元，小数点后保留两位，如10或12.34，如果为整数，则不需要小数点
key     ="luo888750105123abc"      '默认的私钥值，更改私钥后要修改这里

%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>.::在线支付::.</title>
<link href="css.css" rel="stylesheet" type="text/css">
 <SCRIPT language=JavaScript>
function openWindow(url,name,width,height) {
        var Win = window.open(url,name,'width=' + width + ',height=' + height + ',resizable=1,scrollbars=no,menubar=no,status=no' );
		window.close();
}
 </SCRIPT>
</head>

<body bgcolor="#FFCC00" leftmargin="0" topmargin="0">
<table width="300" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="150">
<p>&nbsp;</p>
      <p>&nbsp;</p>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="26%">&nbsp;</td>
          <td width="74%">请填入您要转帐的金额，转帐成功的话， <br>
            该款项将直接划入您在本系统帐户上。 <br>
            如果您正在进行交易，请确保您转帐的<br>
            金额不少于您的交易金额。 </td>
        </tr>
      </table>
      <form name="form1" onsubmit="openWindow('','research',800,600)"  action="paypost.asp" method="post" target="research">
        <table width="100%" border="0" cellspacing="2" cellpadding="2">
          <tr> 
            <td width="38%" height="24"> <div align="center">用 户 名:</div></td>
            <td width="62%"><strong> 
              <% =session("us") %>
              &nbsp;</strong></td>
          </tr>
          <tr>
            <td height="24"><div align="center">订 单 号:</div></td>
            <td><%= v_oid %>&nbsp;
              <input name="v_oid" type="hidden" id="v_oid" value="<%=v_oid%>"></td>
          </tr>
          <tr> 
            <td><div align="center">支付金额:</div></td>
            <td><input name="v_amount" type="text" id="v_amount" value="0.0" size="10"></td>
          </tr>
          <tr> 
            <td>&nbsp;</td>
            <td><input type="submit" name="Submit" value="确 定"></td>
          </tr>
          <tr> 
            <td colspan="2"><input name="v_mid" type="hidden" id="v_mid" value="<%=v_mid%>">
              <input name="v_rname" type="hidden" id="v_rname" value="<%=v_rname%>">
              <input name="v_remail" type="hidden" id="v_remail" value="<%=v_remail%>">
              <input name="v_rtel" type="hidden" id="v_rtel" value="<%=v_rtel%>">
              <input name="v_rpost" type="hidden" id="v_rpost" value="<%=v_rpost%>">
              <input name="v_raddr" type="hidden" id="v_raddr" value="<%=v_raddr%>">
              <input name="v_rnote" type="hidden" id="v_rnote" value="<%=v_rnote%>">
              <input name="v_payname" type="hidden" id="v_payname" value="<%=v_payname%>">
              <input name="key" type="hidden" id="v_phpmd5" value="<%=key%>">
              <input name="userid" type="hidden" id="userid" value="<%=userid%>">
              </td>
          </tr>
        </table>
      </form>
      <p>&nbsp;</p></td>
  </tr>
</table>
</body>
</html>




















