📄 member_uphostshopping.asp
字号:
<!--#include file="conn.asp"-->
<%
id=session("userid")
username=session("username")
if id="" or username="" then
response.Redirect("adminloginerror.asp")
end if
Set rs = Server.CreateObject("ADODB.Recordset")
if session("usertyp")="企业" then
sql="select * from userentreg where login_name='"& username &"' and id=" & id &""
end if
if session("usertyp")="个人" then
sql="select * from userpersreg where login_name='"& username &"' and id=" & id &""
end if
rs.open sql,conn,3,3
if rs.eof then
response.Redirect("adminloginerror.asp")
else
username=session("username")
id=session("userid")
hostid=request.querystring("hostid")
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from hostshopping where id="& hostid &""
rs.open sql,conn,3,3
date1=rs("date")
years=rs("years")
nedate=formatdatetime((year(date1)+years)&"-"&month(date1)&"-"&day(date1),2)
%>
<html>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="style.css" rel="stylesheet" type="text/css">
<body>
<div align="center">
<center>
<table width="90%" border="1" cellpadding="3" cellspacing="0" bordercolor="#6687BA" style="border-collapse: collapse" bgcolor="#EAF1FB">
<tr bordercolor="#FFFFFF" bgcolor="#f1f1f1">
<td width="20%" bgcolor="#EAF1FB"><div align="center"><a href="member_uphostshopping.asp?cmd=uphosturl&hostid=<%=hostid%>" class="f1">修
改 域 名</a></div></td>
<td width="20%" bgcolor="#EAF1FB"><div align="center"><a href="member_uphostshopping.asp?cmd=uphostsize&hostid=<%=hostid%>" class="f1">增
加 空 间</a></div></td>
<td width="20%" bgcolor="#EAF1FB"><div align="center"><a href="member_uphostshopping.asp?cmd=upftppassword&hostid=<%=hostid%>" class="f1">修改FTP密码</a></div></td>
<td width="20%" bgcolor="#EAF1FB"><div align="center"><a href="member_uphostshopping.asp?cmd=addhosturl&hostid=<%=hostid%>" class="f1">增
加 域 名</a></div></td>
<td width="20%" bgcolor="#EAF1FB"><div align="center"><a href="member_uphostshopping.asp?cmd=uphostmoney&hostid=<%=hostid%>" class="f1">空 间 续 费</a></div></td>
</tr>
</table>
</center>
</div>
<br>
<% if request.querystring("cmd")="" then %>
<div align="center">
<center>
<table width="90%" border="1" cellpadding="3" cellspacing="0" bordercolor="#6687BA" style="border-collapse: collapse">
<tr>
<td bgcolor="#EAF1FB"><div align="center">主 机 详 情</div></td>
</tr>
<tr>
<td bordercolor="#FFFFFF"><table width="90%" border="0" align="center" cellpadding="5" cellspacing="0">
<tr>
<td>主机名称: <span class="f1"><%=rs("id")%></span></td>
</tr>
<tr>
<td>所属类型: <span class="f1"><%=rs("hostname")%></span></td>
</tr>
<tr>
<td>租用年限: <span class="f1"><%=rs("years")%></span></td>
</tr>
<tr>
<td>开通日期: <span class="f1"><%=rs("date")%></span></td>
</tr>
<tr>
<td>主机域名:<a href="http://<%=rs("urltop")%>.<%=rs("urlbottom")%>" target="_blank"> http://<%=rs("urltop")%>.<%=rs("urlbottom")%></a></td>
</tr>
<tr>
<td>FTP用户名:<span class="f1"><%=rs("ftpaccount")%><br>
<br>
到期时间: <%=nedate%> </span></td>
</tr>
<tr>
<td>绑定的其它域名:</td>
</tr>
<tr>
<td><%
Set rs1=Server.CreateObject("ADODB.Recordset")
sql1="select * from bondingurl where hostid="& hostid &" and actions='绑定'"
rs1.open sql1,conn,3,3
if rs1.eof then
response.write""
else
do while not rs1.eof
url="http://"+rs1("urltop")+"."+rs1("urlbottom")
%>
<table width="100%" border="0" align="center" cellpadding="3">
<tr>
<td bgcolor="#EAF1FB" class="f1"> <a href=<%=url%> target="_blank"><%=url%></a></td>
<td width="10%" bgcolor="#EAF1FB" class="f1"><a href="member_delbondingurl.asp?id=<%=rs1("id")%>&hostid=<%=hostid%>&url=<%=url%>"><img src="images/cross.jpg" alt="取消此域名绑定" width="16" height="16" border="0"></a></td>
</tr>
</table>
<% rs1.movenext
loop
end if
rs1.close
set rs1=nothing
%>
</td>
</tr>
</table>
</td>
</tr>
</table>
</center>
</div>
<% end if %>
<br>
<% if request.querystring("cmd")="uphosturl" then %>
<table width="80%" border="0" align="center" cellpadding="5" cellspacing="0">
<form name="form1" method="post" action="member_uphosturl.asp">
<tr>
<td><div align="center">请输入您的新域名:
<input name="id" type="hidden" id="id" value="<%=hostid%>">
</div></td>
</tr>
<tr>
<td><div align="center">http://
<input name="urltop" type="text" id="urltop" value="www" size="5">
.
<input name="urlbottom" type="text" id="urlbottom" size="20">
<input type="submit" name="Submit" value="确认修改">
</div></td>
</tr>
</form>
</table>
<br>
<% end if %>
<% if request.querystring("cmd")="upftppassword" then %>
<table width="80%" border="0" align="center" cellpadding="5" cellspacing="0">
<form name="form1" method="post" action="member_upftppassword.asp">
<tr>
<td align="center">
<div align="center">请输入您的新FTP密码:
<input name="password" type="password" id="urlbottom22" size="20">
<input name="id" type="hidden" id="id" value="<%=hostid%>">
</div>
</td>
</tr>
<tr>
<td align="center"> 请确认您的新FTP密码:
<input name="entpassword" type="password" id="urlbottom23" size="20">
</td>
</tr>
<tr>
<td><div align="center">
<input type="submit" name="Submit2" value="确认修改">
</div></td>
</tr>
</form>
</table>
<br>
<% end if %>
<% if request.querystring("cmd")="addhosturl" then %>
<table width="80%" border="0" align="center" cellpadding="5" cellspacing="0">
<form name="form1" method="post" action="member_addhosturl.asp">
<tr>
<td><div align="center">请输入您要绑定的域名:
<input name="id" type="hidden" id="id" value="<%=hostid%>">
</div></td>
</tr>
<tr>
<td><div align="center">http://
<input name="urltop" type="text" id="urltop" value="www" size="5">
.
<input name="urlbottom" type="text" id="urlbottom" size="20">
<input type="submit" name="Submit3" value="确认绑定">
</div></td>
</tr>
</form>
</table>
<% end if %>
<% if request.querystring("cmd")="uphostsize" then
Set rs1 = Server.CreateObject("ADODB.Recordset")
sql1="select * from uphostsize order by id desc"
rs1.open sql1,conn,3,3
if rs1.eof then
response.Write("")
else
%>
<table width="80%" border="0" align="center" cellpadding="5" cellspacing="0">
<form name="form1" method="post" action="member_addhostsize.asp">
<tr>
<td><div align="center">请选择您要增加的空间类别:
<input name="id" type="hidden" id="id" value="<%=request.QueryString("hostid")%>">
<input name="user_name" type="hidden" id="user_name" value="<%=session("username")%>">
<input name="usertyp" type="hidden" id="usertyp" value="<%=session("usertyp")%>">
<input name="sales" type="hidden" id="sales" value="<%=session("sales")%>">
</div></td>
</tr>
<tr>
<td> <span class="f1"> 空间增加价格表:</span><br> <br>
<div align="center">
<center>
<table width="80%" border="1" cellpadding="5" cellspacing="0" bordercolor="#6687BA" style="border-collapse: collapse">
<%
do while not rs1.eof
%>
<tr bordercolor="#FFFFFF">
<td> 增 加 <%=rs1("hostsize")%> M 空 间</td>
<td width="30%"> 价格:¥
<%
if session("sales")="直接客户" then
response.write"<span class=f1>"&rs1("onemoney")&"</span>"
end if
if session("sales")="普通代理商" then
response.write"<span class=f1>"&rs1("dalimoney1")&"</span>"
end if
if session("sales")="牵手代理商" then
response.write"<span class=f1>"&rs1("dalimoney2")&"</span>"
end if
if session("sales")="伙伴代理商" then
response.write"<span class=f1>"&rs1("dalimoney3")&"</span>"
end if
%>
</td>
</tr>
<%rs1.movenext
loop
rs1.close
set rs1=nothing
end if %>
</table></center>
</div>
</td>
</tr>
<tr>
<td><div align="center">请选择您想增加的空间:
<select name="hostsize" id="hostsize">
<% Set rs2 = Server.CreateObject("ADODB.Recordset")
sql2="select id,hostsize from uphostsize order by id desc"
rs2.open sql2,conn,3,3
do while not rs2.eof%>
<option value="<%=rs2("id")%>"><%=rs2("hostsize")%> M</option>
<% rs2.movenext
loop
rs2.close
set rs2=nothing
%>
</select>
<br>
<br>
<input type="submit" name="Submit4" value="确认增加">
</div></td>
</tr>
</form>
</table>
<% end if %>
<% if request.querystring("cmd")="uphostmoney" then
%>
<table width="80%" border="0" align="center" cellpadding="5" cellspacing="0">
<form name="form1" method="post" action="member_uphostmoney.asp">
<tr>
<td><div align="center"><span class="f1">空 间 续 费:</span>
<input name="id" type="hidden" id="id" value="<%=request.QueryString("hostid")%>">
<input name="user_name" type="hidden" id="user_name" value="<%=session("username")%>">
<input name="usertyp" type="hidden" id="usertyp" value="<%=session("usertyp")%>">
<input name="sales" type="hidden" id="sales" value="<%=session("sales")%>">
<input name="user_id" type="hidden" id="user_id" value="<%=session("userid")%>">
</div></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><div align="center">请选择您要续费的年数:
<select name="years" id="years">
<option value="1" selected>1年</option>
<option value="2">2年</option>
<option value="3">3年</option>
<option value="4">4年</option>
<option value="5">5年</option>
</select>
年<br>
<br>
<input type="submit" name="Submit42" value="确认续费">
</div></td>
</tr>
</form>
</table>
<% end if %>
</body>
</html>
<%
end if
rs.close
set rs=nothing
set conn=nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -