📄 pay.asp
字号:
<!--#include file="chkuser.asp"-->
<!--#include file="inc/conn.asp"-->
<%
if request("action")="post" then
ip=request.ServerVariables("HTTP_X_FORWARDED_FOR")
if ip="" then ip=request.ServerVariables("REMOTE_ADDR")
If not conn.Execute("select * from [pay] where username='"&Request.Cookies("username")&"' and ip='"&ip&"' and tjdate='"&Date()&"'").eof Then
response.redirect("error.asp?error=same")
response.end
end if
if Request.Form("type")="" or Request.Form("money")="" or Request.Form("date")="" then
response.redirect("error.asp?error=illegal")
response.end
end if
sql="select * from pay"
rs.open sql,conn,1,3
rs.addnew
rs("username")=Request.Cookies("username")
rs("type")=Trim(Request.Form("type"))
rs("money")=Trim(Request.Form("money"))
rs("date")=Trim(Request.Form("date"))
rs("other")=Trim(Request.Form("other"))
rs("tjdate")=Date()
rs("qr")=False
rs("ip")=ip
rs.update
Response.Write "<script>alert('您的付费信息已经成功递交,我们将在确认后追加到您的帐户上!');location.href='pay.asp'</script>"
end if
%>
<html>
<head>
<title>付费确认</title>
<meta http-equiv=Content-Type content="text/html; charset=gb2312">
<link href="css/style.css" rel="stylesheet" type="text/css">
<script language="JavaScript">
function IsDigit(){
return ((event.keyCode >= 48) && (event.keyCode <= 57));
}
</script>
</head>
<body bgcolor="#F6ECE2">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="70%">
<tr>
<td align="center">
<fieldset style="padding: 2; width:200; height:120">
<legend><b>付 费 确 认</b></legend>
<table width="450" border="0" cellspacing="1" cellpadding="3" align="center">
<form name="frm" method="post" action="pay.asp?action=post" onSubmit="return check_input() ">
<tr>
<td width="73" align="left"> 汇款方式:</td>
<td width="362">
<input name="type" type="text" class="input" id="type">
* </td>
</tr>
<tr>
<td align="left"> 汇款金额:</td>
<td width="362">
<input name="money" type="text" class="input" ONKEYPRESS='event.returnValue=IsDigit();'>
* 您实际给我们汇款的金额,填写数字</td>
</tr>
<tr>
<td align="left"> 汇款日期:</td>
<td width="362">
<input name="date" type="text" class="input" id="date" value="<%=Date()%>">
*(请依照格式填写,例如:<%=Date()+10%>)</td>
</tr>
<tr>
<td> 备注:</td>
<td width="362">
<textarea name="other" cols="30" rows="3" id="other"></textarea>
如有其它说明请填写
</td>
</tr>
<tr align="center">
<td colspan="2"><input name=submit type=submit class=button value=递交>
<input name="submit2" type="reset" class="button" value="清除"></td>
</tr>
</form>
</table>
</fieldset></td>
</tr>
</table>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -