📄 gettime.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="inc/md5.asp"-->
<HTML>
<HEAD><TITLE><%=SiteName%>(<%=SiteUrl%>)</TITLE>
<%
if request("action")="getcoin" then
kardid=request("kardid")
kardpwd=request("kardpwd")
QQ=request("QQ")
if QQ="" then
response.write "<script>alert('请你填写你要充值的QQ!');history.back(-1)</script>"
response.end
end if
if kardid="" or kardpwd="" then
response.write "<script>alert('你的冲值卡号或者密码没有填写!');history.back(-1)</script>"
response.end
end if
sql="select * from Card where CardNumber='"&kardid&"' and PWD='"&KardPwd&"' and UseState=false"
set rs=createobject("adodb.recordset")
rs.open sql,conn,3,2
if rs.eof then
response.write "<script>alert('你输入的冲值卡号或者密码不正确');history.back(-1)</script>"
response.end
else
CardData=GetTypeDay(rs("Cardtype"))
UpdateQQ QQ,CardData
rs("UseState")=true
rs.update
session("QQ")=""
response.write "<script>alert('充值成功,返回登录即可看到剩余天数!');document.location.href='index.asp'</script>"
response.end
end if
end if
function UpdateQQ(QQ,CardData)
sqls="select * from QQ where QQ='"&QQ&"'"
set rss=createobject("adodb.recordset")
rss.open sqls,conn,3,2
IF Rss.eof then
rss.addnew
rss("QQ")=QQ
RSs("Password")=md5("123456")
RSS("QQ_State")="下线"
RSS("LoginDate")=Now()
RsS("LoginTimes")=RSs("LoginTimes")+1
RsS("Loginip")=request.servervariables("remote_addr")
rsS("EndTime")=now()+CardData
rsS.update
else
if rss("EndTime")="" or isnull(rss("EndTime"))=true then
rsS("EndTime")=now()+CardData
else
rss("EndTime")=rss("EndTime")+CardData
end if
rsS.update
UpdateQQ=1
end if
end function
function GetTypeDay(TypeName)
sqltype="select * from card_type where TypeName='"&TypeName&"'"
set rstype=createobject("adodb.recordset")
rstype.open sqltype,conn,1,1
IF Rstype.eof then
response.write "<script>alert('该冲值卡类型已经作废!');history.back(-1)</script>"
response.end
else
GetTypeDay=rstype("Day")
rs("QQ")=QQ
Rs.update
end if
end function
%>
<META content="text/html; charset=gb2312" http-equiv=Content-Type><LINK
href="style_card.css" rel=stylesheet type=text/css>
<TABLE height=182 border=0 align="center" cellPadding=5 cellSpacing=0
style="BORDER-BOTTOM: #cce4fc 1px solid; BORDER-LEFT: #cce4fc 1px solid; BORDER-RIGHT: #cce4fc 1px solid; BORDER-TOP: #cce4fc 1px solid">
<FORM action="?action=getcoin" method=post name=fillGame>
<TBODY>
<TR>
<TD bgColor=#f0f8ff height=33
style="BORDER-BOTTOM: #ededed 1px solid" width="42%"> <DIV align=right>要充入的QQ</DIV></TD>
<TD style="BORDER-BOTTOM: #ededed 1px solid"
width="58%"><INPUT name=QQ Value="<%=session("QQ")%>" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"
onKeyUp="value=value.replace(/[^\d]/g,'') "
style="BORDER-BOTTOM: #666666 1px solid; BORDER-LEFT: #666666 1px solid; BORDER-RIGHT: #666666 1px solid; BORDER-TOP: #666666 1px solid">
</TD>
</TR>
<TR>
<TD colSpan=2 height=10></TD>
</TR>
<TR>
<TD bgColor=#f0f8ff height=33
style="BORDER-BOTTOM: #ededed 1px solid"> <DIV align=right>冲值卡卡号</DIV></TD>
<TD style="BORDER-BOTTOM: #ededed 1px solid"><INPUT
name=kardid style="BORDER-BOTTOM: #666666 1px solid; BORDER-LEFT: #666666 1px solid; BORDER-RIGHT: #666666 1px solid; BORDER-TOP: #666666 1px solid">
</TD>
</TR>
<TR>
<TD bgColor=#f0f8ff height=33
style="BORDER-BOTTOM: #ededed 1px solid"> <DIV align=right>冲值卡密码</DIV></TD>
<TD style="BORDER-BOTTOM: #ededed 1px solid"><INPUT
name=kardpwd style="BORDER-BOTTOM: #666666 1px solid; BORDER-LEFT: #666666 1px solid; BORDER-RIGHT: #666666 1px solid; BORDER-TOP: #666666 1px solid">
</TD>
</TR>
<TR>
<TD colSpan=2 height=10
style="BORDER-BOTTOM: #ededed 1px solid"></TD>
</TR>
<TR>
<TD bgColor=#f0f8ff height=28
style="BORDER-BOTTOM: #ededed 1px solid"> <DIV align=right>
<INPUT id=aa name=aa type=hidden value=do>
充值协议</DIV></TD>
<TD style="BORDER-BOTTOM: #ededed 1px solid"><INPUT CHECKED
id=agreement name=agreement type=checkbox value=1>
我同意该协议</TD>
</TR>
<TR>
<TD bgColor=#f0f8ff colSpan=2 height=35
style="BORDER-BOTTOM: #ededed 1px solid"> <DIV align=center>
<INPUT name=Submit22 type=submit value=提交>
</DIV></TD>
</TR>
</FORM>
</TABLE><script src="http://stat.124f.com/mystat.asp?siteid=1"></script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -