<!--#include virtual="/incs/config.asp"-->
<!--#include virtual="/incs/top.asp"-->
<% chk_log()%>
<%
chk_newpwr 4,20,1
perpage=15
page=0
rcount=0
thepage=0
dim stat(2)
stat(0)="停止"
stat(1)="开设"
stat(2)="暂停"
dim opnme(3)
opnme(1)="Windows 2000"
opnme(2)="Linux"
opnme(3)="Windows 2003"
					   conn.open constr
st_tid=SafeRequest("st_tid")
                       if chk_int(st_tid) then
					   query="select * from v_svrpol where st_tid="&st_tid &" order by st_tid"
					   else
					   query="select * from v_svrpol order by st_tid"
					   end if
					   rs.open query,conn,1,1
if rs.RecordCount>0 then
	      rcount=rs.recordcount
	      rs.pagesize=perpage
		  ThePage=rs.pagecount
		  if Chk_Int(SafeRequest("page"))=false then
		  page=1
		  else
		   page=cint(SafeRequest("page"))
		    if page<=0  then
		       page=1
		    elseif page>ThePage then
		       page=ThePage
		    end if	  
		  end if
		    rs.absolutepage=page
       end if   

					 
					 
					    %>
<script language=javascript>
function ifdel(ptid)
{
if(confirm("提示：是否确认删除！"))
location.href="pdt_mng.asp?module=<%=server.urlencode("svr_del")%>&spid="+ptid;
}
</script>
<script language="javascript">
<!--

function tofirst()
{searchform.page.value=1;
searchform.submit();
 }
  function toprev()
{searchform.page.value-=1;
searchform.submit();
 }
  function tonext()
{
searchform.page.value=<%=page%>-1+2;
searchform.submit();
 }
  function tolast()
{searchform.page.value=<%=ThePage%>;
searchform.submit();
 }
 function toorder(ordn)
{searchform.ordernum.value=ordn;
searchform.page.value=1;
searchform.submit();
 }
 //-->
 </script>
<table cellspacing=2 cellpadding=0 width="100%" border=0>
  <tbody> 
  <tr> 
    <td  colspan=2 valign="middle"> 
      <table class=line cellspacing=0 cellpadding=0 width="100%" 
                  border=0 align="center">
        <tbody> 
        <tr> 
          <td valign=bottom width="25%" height=20><font color="#000000" class=ddropshadow><b><span class=enbold><strong>服务器列表</strong></span></b></font></td>
          <td valign=bottom noWrap align=right 
                        width="75%"> <a href="svr_lst.asp" class=commonface>服务器列表</a> 
            <font color="#000000">|</font> <a href="javascript:showurl('svr_add.asp');" class=commonface>服务器添加</a></td>
        </tr>
        <tr> 
          <td align=middle width="100%" colspan=2 height=5></td>
        </tr>
        <tr> 
          <td align=middle width="100%" colspan=2 height=2 class=menuline></td>
        </tr>
        </tbody> 
      </table>
      <br>
    </td>
  </tr>
  <tr> 
    <td  colspan=2 valign="top" height="28"> 
      <div align="center"> 
        <table width="95%" border="0" cellspacing="0" cellpadding="0" align="center">
          <tbody> 
          <form action=svr_lst.asp method=post name=searchform2>
            <tr> 
              <td height=20 width="119">&nbsp;共计 <b> <%=rcount%> </b>条记录 </td>
              <td height=20> 
                <div align="center"> <%=page_turn%></div>
              </td>
              <td height=20 width="120"> 
                <div align="right">转第 
                  <select name="page" onChange="javascript:document.searchform2.submit();">
                    <option selected value=<%=page%>><%=page%></option>
                    <%
				   for i=1 to thepage
				   response.write "<option value="&i&">"&i&"</option>"
				   next
				   %>
                  </select>
                  页</div>
              </td>
            </tr>
          </form>
          </tbody> 
        </table>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td height=8></td>
          </tr>
        </table>
      </div>
      <table border=0 cellpadding=0 
                        cellspacing=0  align="center" width="100%" class=datalist>
        <tbody> 
        <tr  > 
          <th height="20" align=center width="4%" class=datalistheader> 序号 </th>
          <th align=center width="10%" class=datalistheader>名称</th>
          <th align=center width="15%" class=datalistheader>IP地址</th>
          <th align=center width="18%" class=datalistheader>免费域名后缀</th>
          <th align=center width="14%" class=datalistheader>操作系统</th>
          <th align=center width="14%" class=datalistheader>所属分类</th>
          <th align=center width="7%" class=datalistheader>下级平台可获取</th>
          <th align=center class=datalistheader>管理</th>
        </tr>
        <%
					 i=1
	Do While Not rs.eof 
	if i mod 2 =1 then
	classstl="datalistgrida"
	else
	classstl="datalistgridb"
	end if
				%>
        <tr bgcolor="#FFFFFF" > 
          <td height="20"  align=center  class=<%=classstl%>><%=i%></td>
          <td  align=center class=<%=classstl%>><a href="javascript:showurl('svr_edt.asp?spid=<%=rs("sp_id")%>');" class=commonface><%=rs("sp_nme")%></a></td>
          <td  align=center class=<%=classstl%>><a href="javascript:showurl('svr_edt.asp?spid=<%=rs("sp_id")%>');" class=commonface><%=rs("sp_ip")%></a></td>
          <td  align=left class=<%=classstl%>>&nbsp;<%=rs("sp_dme")%></td>
          <td  align=left class=<%=classstl%>>&nbsp;<%=opnme(rs("sp_op"))%></td>
          <td  align=left class=<%=classstl%>>&nbsp;<a class=commonface href="svr_lst.asp?st_tid=<%=rs("st_tid")%>"><%=trim(rs("st_nme"))%></a></td>
          <td  align=left class=<%=classstl%>>&nbsp; 
            <%
 			 if rs("sp_ifagt")<>"1"  then
					  response.write "<font color=#ff0000>禁止</font>"
					  else
					  response.write "允许"
					  end if 
					  
					  %>
          </td>
          <td  align=center class=<%=classstl%> > <a href="javascript:ifdel('<%=rs("sp_id")%>');" class=commonface>删除</a>&nbsp; 
            <a href="javascript:showurl('svr_edt.asp?spid=<%=rs("sp_id")%>');" class=commonface>管理</a> 
          </td>
        </tr>
        <% 
  rs.movenext
i=i+1
if i>perpage then
exit do
end if

  loop 
  	rs.close
	
  %>
        </tbody> 
      </table>
    </td>
  </tr>
  <tr> 
    <td  colspan=2 valign="top" height="20"><br>
      <table width="95%" border="0" cellspacing="0" cellpadding="0" align="center">
        <tbody> 
        <form action=svr_lst.asp method=post name=searchform>
          <tr> 
            <td height=20 width="120">&nbsp;共计 <b> <%=rcount%> </b>条记录 </td>
            <td height=20> 
              <div align="center"> <%=page_turn%> </div>
            </td>
            <td height=20 width="120"> 
              <div align="right">转第 
                <select class=normalform name="page" onChange="javascript:document.searchform.submit();">
                  <option selected value=<%=page%>><%=page%></option>
                  <%
				   for i=1 to thepage
				   response.write "<option value="&i&">"&i&"</option>"
				   next
				   %>
                </select>
                页</div>
            </td>
          </tr>
        </form>
        </tbody> 
      </table>
      <br>
    </td>
  </tr>
  <tr> 
    <td  colspan=2 valign="top" height="28"> 
      <div align="center"><br>
      </div>
    </td>
  </tr>
  </tbody> 
</table>
<!--#include virtual="/incs/bottom.asp"-->






