📄 serverinfolist.asp
字号:
<% ModuleCode="M0615" %>
<!--#include file="../../Include/Reference.asp"-->
<%
Call PrintPageHead
%>
<!--#include file="../../Include/connect.asp"-->
<%
ServerType=Request("ServerType")
strSQL="Select * from T_DNS_ServerType"
Set Rs= Server.CreateObject("ADODB.Recordset")
Rs.open strSQL,Cn,1,1
If Rs.eof then
%>
<br><br><br><br><p align="center" class="titletext">目前还没有服务器类型,请先<a href="ServerType.asp" class="a2">添加服务器类型</a>
<%
else
if ServerType="" then
ServerType=Rs("TypeCode")
end if
while not Rs.eof
if ServerType=Rs("TypeCode") then
Response.Write "[<b>" & Rs("TypeName") & "</b>] "
ServerTypeName=Rs("TypeName")
else
Response.Write "<a href='ServerInfoList.asp?ServerType=" & Rs("TypeCode") & "' class='a2'>[" & Rs("TypeName") & "]</a> "
end if
Rs.movenext
wend
Rs.Close
strSQL="Select * from T_DNS_ServerInfo where TypeCode='" & ServerType & "'"
Rs.open strSQL,Cn,1,1
If Rs.Eof Then
%>
<br><br><br><br><p align="center" class="titletext">目前还没有<%=ServerTypeName%>! 请<a href="ServerInfoAdd.asp?ServerType=<%=ServerType%>" class="a2">添加<%=ServerTypeName%></a></p>
<%
else
Rs.PageSize=Opt_PageSize
pages=Rs.pagecount
records=Rs.recordcount
currentpage=request("currentpage")
if currentpage="" or currentpage<1 then currentpage=1
currentpage=cint(currentpage)
if currentpage>pages then currentpage=pages
Rs.absolutepage=currentpage
%>
<br><br>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td height="22" class="titletext"><font color="<%=Opt_Font_TitleColor%>"><strong><%=ServerTypeName%>列表</strong></font></td>
<td align="right">共 <font color="red"><b><%=Records%></b></font> 个项目 页次:
<font color="red"><b><%=currentpage%></b></font> / <font color="red"><b><%=Pages%></b></font>
页
</td>
</tr>
</tbody>
</table>
<!------------------------------------------------------------------------------------->
<table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="<%=Opt_Table_BGColor%>">
<tr bgcolor="<%=Opt_TR_BGColor%>" height="24">
<td>服务器名称</td>
<td>服务器IP</td>
<td>操作系统</td>
<td>目前站点</td>
<td>最大站点</td>
<td>级别</td>
<td>状态</td>
</tr>
<%
linenumber=Rs.pagesize
do while (not Rs.eof) and (line<linenumber)
if line mod 2 =0 Then %>
<tr bgcolor="<%=Opt_TD_BGColor1%>" height="20">
<% else %>
<tr bgcolor="<%=Opt_TD_BGColor2%>" height="20">
<% end if %>
<td><a href="ServerInfoEdt.asp?ServerCode=<%=Rs("ServerCode")%>" class="a2"><%=Rs("ServerName")%></a></td>
<td><%=Rs("ServerPubIP")%></td>
<td><%=Rs("ServerOS")%></td>
<td><%=Rs("RealUser")%></td>
<td><%=Rs("MaxUser")%></td>
<td><%=Rs("ServerLevel")%></td>
<td>
<%
Select Case Rs("ServerStat")
Case "1"
Response.Write "正常"
Case "2"
Response.Write "已满"
Case "3"
Response.Write "停止"
End Select
%>
</td>
</tr>
<%
Rs.MoveNext
line=line+1
Loop
%>
</table>
<!-------------------------------------分页导航--------------------------------------->
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tbody>
<form name="pageform" method="Post" action="<%=Request("SCRIPT_NAME")%>?ServerType=<%=ServerType%>&px=<%=px%>">
<tr height="26">
<td>
<%if currentpage>1 then%>
<a href="<%=Request("SCRIPT_NAME")%>?currentpage=1&ServerType=<%=ServerType%>&px=<%=px%>" class="a2">首页</a> <a href="<%=Request("SCRIPT_NAME")%>?currentpage=<%=currentpage-1%>&ServerType=<%=ServerType%>&px=<%=px%>" class="a2">上一页</a>
<%end if%>
<%if currentpage<pages then%>
<a href="<%=Request("SCRIPT_NAME")%>?currentpage=<%=currentpage+1%>&ServerType=<%=ServerType%>&px=<%=px%>" class="a2">下一页</a> <a href="<%=Request("SCRIPT_NAME")%>?currentpage=<%=pages%>&ServerType=<%=ServerType%>&px=<%=px%>" class="a2">末页</a>
<%end if%>
</td>
<td align="right">
转到: <input type="text" name="currentpage" size="2" maxlength="6" class="input" value="<%=currentpage%>"> 页
</td></tr>
</form>
</tbody>
</table>
<p align="center">[ + <a href="ServerInfoAdd.asp?ServerType=<%=ServerType%>" class="a2">添加<%=ServerTypeName%></a> ]</p>
<%
end if
end if
Rs.Close
Cn.Close
Set Rs=Nothing
Set Cn=Nothing
Call PrintPageBottom
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -