📄 url.asp
字号:
<!--#include file="0.asp"-->
<!--#include file="../../conn/conn.asp" -->
<!--#include file="../../conn/nosql.asp" -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../css/css.css" rel="stylesheet" type="text/css">
<STYLE>
BODY {
SCROLLBAR-FACE-COLOR: #799ae1;
SCROLLBAR-HIGHLIGHT-COLOR: #799ae1;
SCROLLBAR-SHADOW-COLOR: #799ae1;
SCROLLBAR-3DLIGHT-COLOR: #799ae1;
SCROLLBAR-ARROW-COLOR: #fcfcfc;
SCROLLBAR-TRACK-COLOR: #aabfec;
SCROLLBAR-DARKSHADOW-COLOR: #799ae1;
SCROLLBAR-BASE-COLOR: #799ae1;
background-color: #CAD7F7;
}
.STYLE4 {
color: #FFFFFF;
font-weight: bold;
}
</STYLE>
</head>
<body>
<br><%set rs1 = conn.execute("select * from url where userid in (select id from user_name where name='"&session("www.wygk.cn")&"')")
set bbsinfo = conn.execute("select * from bbs_info")
if rs1.eof then
%>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
<form action="?add=yes" method="post" name="myform" id="form">
<tr valign="middle">
<td height="25" background="../../images/admin_bg_11.gif"> <span class="STYLE4">申请二级域名</span></td>
</tr>
<tr valign="middle">
<td height="25" align="center" bgcolor="#E8F1FF">
<% set rs = conn.execute("select id from user_name where name='"&session("www.wygk.cn")&"'")
Response.Write("<input name=home type=hidden id=home value=shop"&rs("id")&">")
Response.Write("<input name=userid type=hidden value="&rs("id")&">")
rs.close
set rs=nothing
%> <input name="Submit3" type="submit" value="申请我的店铺域名"></td>
</tr>
<tr valign="middle">
<td height="25" bgcolor="#E8F1FF">
赠送的免费二级域名如:http://name.<%=bbsinfo("webmi")%> ,以后别人就可以用http://name.<%=bbsinfo("webmi")%>的域名直接访问您的网站了。</td>
</tr>
</form>
</table>
<%else
Response.Write(" 您已经申请了"&bbsinfo("mc")&"的二级域名,您的域名如下:")
do while not rs1.eof
Response.Write("<br> <a href='http://"&rs1("home")&"' target='_blank'><font color=#ff6600>http://"&rs1("home")&"</font></a>")
rs1.movenext
loop
end if
rs1.close
if request("add")="yes" then
Set s= Server.CreateObject("abodb.recordset")
set rs = conn.execute("select * from url where home = '"&nosql(replace(request("home"),"'",""))&"."&bbsinfo("webmi")&"'")
if not rs.eof then
response.write "<script>alert(""您申请的域名已经有记录了,重新选择一个吧!"");history.back();</script>"
response.end
else
if len(request("home"))<1 then
response.write "<script>alert(""免费赠送的"&bbsinfo("mc")&"二级域名只能申请3位以上的,3位以下的二级域名每个20-50元!"");history.back();</script>"
response.end
else
Set s= Server.CreateObject("abodb.recordset")
conn.execute("Insert into url(home,url,userid)values('"&nosql(replace(request("home"),"'",""))&"."&bbsinfo("webmi")&"','http://www."&bbsinfo("webmi")&"/user/index.asp?userid="&clng(request("userid"))&"',"&clng(request("userid"))&")")
Response.redirect "url.asp"
end if
end if
rs.close
end if %></body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -