📄 reg.asp
字号:
<!--#include file="Connections.asp" -->
<link rel="stylesheet" href="images/css.css" type="text/css">
<title>中华健康网--免费网站流量分析系统</title>
<body bgcolor="#e1e1e1" <%=background%>>
<TABLE width=569 height=327 border=0 align="center" cellPadding=0 cellSpacing=0
borderColor=#111111 class=ttbb
style="BORDER-RIGHT: 1px dotted; BORDER-TOP: 1px dotted; BORDER-LEFT: 1px dotted; BORDER-BOTTOM: 1px dotted; BORDER-COLLAPSE: collapse">
<TBODY>
<TR>
<TD style="POSITION: relative" width=569 bgColor=#ffffff colSpan=3 height=45><div id="9126" style="position:absolute; left:0px; top:-31px; border-style:none;"><img src="images/logo.gif" width="560" height="78" border="0"></div></TD>
</TR>
<tr align="center">
<td width=569 height=24 colspan=3 bgcolor=#0374b8><a href="reg.html"><font color="#FFFFFF">免费申请</font></a>
<a href="login.html"><font color="#FFFFFF">用户登陆</font></a> <a href="code.html"><font color="#FFFFFF">统计代码</font></a>
<a href="login.html?Error"><font color="#FFFFFF">总体数据</font></a> <a href="login.html?Error"><font color="#FFFFFF">详细记录</font></a>
<a href="login.html?Error"><font color="#FFFFFF">年统计</font></a> <a href="login.html?Error"><font color="#FFFFFF">月统计</font></a>
<a href="login.html?Error"><font color="#FFFFFF">周统计</font></a> <a href="login.html?Error"><font color="#FFFFFF">日统计</font></a>
<a href="login.html?Error"><font color="#FFFFFF">操作系统</font></a> <a href="index.html"><font color="#FFFFFF">系统帮助</font></a></td>
</tr>
<TR>
<TD vAlign=top width=569 bgColor=#66ccff height=194 rowSpan=2><P align=center><IMG height=260 src="images/free.gif" width=52 border=0></P>
<center>
<p>演 示<br>
<script src="/stat/count.asp?view=eyichang&fy=1"></script>
</center></TD>
<TD width=569 height=220 colSpan=2 valign="top" background="images/bg.gif" bgColor="#66ccff" class=bgimage>
<%if request("view")<>"" then
view=request("view")
url="?view="&view&""
end if
%>
<%tmpt = "http://" & request.servervariables("SERVER_NAME") & _
left(request.servervariables("SCRIPT_NAME"),len(request.servervariables("SCRIPT_NAME"))-len("reg.asp"))
sqlh="select count(*) as scount1 from vcount"
set rsh=conn.execute(sqlh)
total3=rsh("scount1")
set rsh=nothing
%>
<% function checkuser(fString)
fString=replace(fString,"'","‘")
checkuser = fString
end function
if request.querystring("action")="add" then
vuser=checkuser(trim(request.form("vuser")))
vuser1=checkuser(trim(request.form("vuser1")))
vpass=checkuser(trim(request.form("vpass")))
vtitle=checkuser(trim(request.form("vtitle")))
vurl=checkuser(trim(request.form("vurl")))
vemail=checkuser(request.form("vemail"))
vcontent=checkuser(request.form("vcontent"))
startcount=checkuser(trim(request.Form("startcount")))
error1=0
if total3>=maxcount or sopen<>0 then
error1=1
error2="用户数已满,或者管理员已经关闭统计申请,有什么问题请跟管理员联系,"
end if
if vuser="" then
error1=1
error2=error2&"用户名必须填写,"
end if
if len(vuser)>12 then
error1=1
error2=error2&"用户名不要超过12位,"
end if
if vpass="" then
error1=1
error2=error2&"密码必须填写,"
end if
if len(vpass)>12 then
error1=1
error2=error2&"密码不要超过12位,"
end if
if vuser1="" then
error1=1
error2="站长名称必须填写,"
end if
if len(vuser1)>12 then
error1=1
error2=error2&"站长名称不要超过12位,"
end if
if vtitle="" then
error1=1
error2=error2&"主页名称必须填写,"
end if
if vurl="" then
error1=1
error2=error2&"主页地址必须填写,"
end if
if len(vcontent)>250 then
error1=1
error2=error2&"主页简介不要超过250位,"
end if
if startcount="" then
error1=1
error2=error2&"用本系统前的统计数字必须填写,"
end if
if not IsNumeric(startcount) then
error1=1
error2=error2&"用本系统前的统计数字必须为数字,"
end if
sql="select * from vcount where vuser='"&vuser&"'"
set rs=conn.execute(sql)
if not rs.eof then
error1=1
error2=error2&"用户名重复,请重新输入,"
set rs=nothing
end if
if error1=1 then
response.redirect("?error2="&error2&"")
response.end
end if
strSql = "insert into vcount (vuser,vbanzhu,vpass,vurl,vtitle,vemail, startcount,vcontent) Values ('"
strSql = StrSQl & vuser & "','"
strSql = StrSQl & vuser1 & "','"
strSql = StrSQl & vpass & "','"
strSql = StrSQl & vurl & "','"
strSql = StrSQl & vtitle & "','"
strSql = StrSQl & vemail & "',"
strSql = StrSQl & startcount & ",'"
strSql = StrSQl & vcontent & "')"
conn.Execute (strsql)
response.redirect"reg.asp?action="&vuser&""
response.end
elseif request.querystring("action")="" then
if total3>=maxcount or sopen<>0 then
errornum1=1
errmsg=errmsg&"<BR>用户数已满,或者管理员已经关闭统计申请,有什么问题请跟管理员联系<Br>当前共有 "&total3&" 位用户申请本统计系统"
end if
if errornum1<>1 then
%>
<div align="center">
<center>
<table width=400 border=0 align=center cellPadding=1 cellSpacing=1 style="border-collapse: collapse" >
<form method="POST" action="reg.asp?action=add" name="form1" >
<tr valign="baseline">
<td align="right" colspan="2" class=tdc1> <div align="center"><strong><font color="#990000">申请资料</font></strong></div></td>
</tr>
<% if request.querystring("error2")<>"" then%>
<tr valign="baseline">
<td align="right" colspan="2" <%=hColor2%> class=tdc1> <div align="center"><%=request.querystring("error2")%></div></td>
</tr>
<% end if%>
<tr valign="baseline" >
<td nowrap align="right" class=tdc colspan="2">
<p align="center">注意事项:<br>
1:申请本站统计不得用于统计一切违法站点,违者发现一律删除!<br>
2:本站统计只供参考,若数据出现丢失或者错误,本站不负责任!</td>
</tr>
<tr valign="baseline" >
<td nowrap align="right" class=tdc>*用户名:</td>
<td class=tdc> <input type="text" name="vuser" value="" size="20">
</td>
</tr>
<tr valign="baseline">
<td nowrap align="right" class=tdc>*密码:</td>
<td class=tdc> <input type="password" name="vpass" value="" size="20">
</td>
</tr>
<tr valign="baseline" >
<td nowrap align="right" class=tdc>*站长名称:</td>
<td class=tdc> <input type="text" name="vuser1" value="" size="20">
</td>
</tr>
<tr valign="baseline">
<td nowrap align="right" class=tdc>Email:</td>
<td class=tdc> <input type="text" name="vemail" value="" size="25">
</td>
</tr>
<tr valign="baseline">
<td nowrap align="right" class=tdc>*主页名称:</td>
<td class=tdc> <input type="text" name="vtitle" value="" size="25">
</td>
</tr>
<tr>
<td nowrap align="right" class=tdc>主页简介:</td>
<td class=tdc> <textarea rows="5" name="vcontent" cols="35"></textarea>
</td>
</tr>
<tr valign="baseline">
<td nowrap align="right" class=tdc>*主页地址:</td>
<td class=tdc> <input type="text" name="vurl" value="" size="35">
</td>
</tr>
<tr>
<td width="30%" class=tdc> <div align="right">用本系统前的统计数字:</div></td>
<td class=tdc> <input name="startcount" class=tdc size="8" value="0">
(用本系统前的统计数字) </td>
</tr>
<tr valign="baseline">
<td nowrap align="right" class=tdc> </td>
<td class=tdc> <input name="submit" type="submit" class=bdtj value="提交">
(当前共有 <%=total3%> 位用户申请本统计系统) </td>
</tr>
</form>
</table>
</center>
</div>
<%else%>
<!--#include file="error.asp" -->
<%end if%>
<% elseif request.querystring("action")<>"" then%>
<div align="center">
<center>
<table width=400 border=0 align=center cellPadding=1 cellSpacing=1 style="border-collapse: collapse" >
<tr valign="baseline">
<td align="right" class=tdc1> <div align="center"><strong><font color="#990000">申请成功</font></strong></div></td>
</tr>
<tr valign="baseline">
<td class=tdc> <p align="center">你的申请已经提交成功,你只要将以下的一种代码加在你的主页上就可以实现统计了!
<p align="center"> 请记住你的用户名和密码,如果以后你的站点有所变动,你可以用此来更改<br>
<Br>
<b>效果演示:</b><BR>
代码1演示
<script src="count.asp?view=vv365&fy=1"></script>
<br>
<br>
代码2演示<br>
代码2不显示图片,只是隐藏统计
<p align="center">
<textarea rows="8" name="S1" cols="35">连接代码1:
<script src="<%=tmpt%>count.asp?view=<%=request.querystring("action")%>&fy=1"></script>
连接代码2:
<script src="<%=tmpt%>count.asp?view=<%=request.querystring("action")%>&fy=2"></script></textarea>
<br>
<br>
请将以上代码copy并保存好!!<br>
若你忘记了代码,请到本统计系统的[用户列表]栏目找到你站的名称,点击你站的名称即可进入查看代码。</p>
<P> </td>
</tr>
</table>
</center>
</div>
<%end if%>
</TD>
</TR>
<TR>
<TD align=right width=569 bgColor=#66ccff height=14></TD>
<TD align=right width=569 bgColor=#66ccff height=14><IMG height=20 src="images/bottomr.gif" width=20 border=0></TD>
</TR>
</TBODY>
</TABLE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -