<!--#include virtual="/incs/config.asp" -->
<!--#include virtual="/incs/web_top.asp"-->
<%
chk_log_usr()
	hnme=SafeRequest("hnme")
	If hnme="" Then
	call errorpage(-2,"对不起，参数错误！")
	End If
    query="select * from v_hstlst where h_unme='"&session("usrname")&"'  and h_ftpusr ='"&hnme&"'"
	rs.open query,conn,1,1
    if rs.recordcount<>1 then
	rs.close
	call errorpage(-2,"对不起，该主机不存在或者您无权操作！")
	end if
	if cint(rs("h_regstt"))<>1 and cint(rs("h_regstt"))<>2 then
	call errorpage(-2,"对不起，该主机未开通！")
	end if
%>
<%
			    freedomain = rs("h_ftpusr")&"."&rs("h_svrnme") 
			    proid=trim(rs("h_prd"))
                strServerComment=trim(rs("h_ftpusr"))
				h_sst=rs("g_sst")
		%>
    <table cellspacing=0 cellpadding=0 width="100%" border=0>
        <tbody> 
        <tr> 
          <td colspan=2><img height=3 
            src="/imgs/spacer.gif" width=3></td>
        </tr>
        <tr> 
          
    <td width=438 
          background=/imgs/bg_inside_pages_link.jpg 
          height=30><img height=11 
            src="/imgs/aword_square.gif" width=11 
            align=absMiddle> <a href="/">首 页</a> <strong>&gt;</strong> <a href="/control/">管理中心</a> 
      <b>&gt;</b> <a href="/control/hst_mng/hst_lst.asp">网站空间管理</a></td>
          <td>&nbsp;</td>
        </tr>
        <tr> 
          <td colspan=2><img height=10 
            src="/imgs/shadow_inside_pages.jpg" 
        width=438></td>
        </tr>
        </tbody> 
      </table>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY> 
        <TR> 
          <TD vAlign=top width=180 bgColor=#f3f3f3>
            <!--#include virtual="/incs/control_left.asp"-->
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
          </TD>
          <TD vAlign=top width=10 
          background=/imgs/bg_inside_pages_block.jpg><IMG 
            height=1 src="/imgs/bg_inside_pages_block.jpg" 
            width=10></TD>
          <TD vAlign=top> 
            <table cellspacing=2 cellpadding=0 width="100%" border=0>
              <tbody> 
              <tr> 
                <td  colspan=2 valign="middle"> 
                  <table class=line cellspacing=0 cellpadding=0 width="98%" 
                  border=0 align="center">
                    <tbody> 
                    <tr> 
                      <td valign=bottom width="25%" height=20><font color="#000000" class=ddropshadow><b><span class=enbold><strong><font color="#000000">主机列表<a href="index.asp"><font color="#FF0000">（查询）</font></a></font></strong></span></b></font></td>
                      <td valign=bottom noWrap align=right 
                        width="75%"><a href="hst_lst.asp?querytype=8"><font color="#000000">今天新开通</font></a> 
                        <font color="#000000">|</font> <a href="hst_lst.asp?querytype=9"><font color="#000000">本周新开通</font></a> 
                        <font color="#000000">|</font> <a href="hst_lst.asp?querytype=10"><font color="#000000">本周到期</font></a> 
                        <font color="#000000">| </font><a href="hst_lst.asp?querytype=11"><font color="#000000">本月到期</font></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 bgcolor="#5F5F5F"></td>
                    </tr>
                    </tbody> 
                  </table>
                  <br>
                </td>
              </tr>
              <tr> 
                <td  colspan=2 valign="middle" height="28"> 
                  <table width="80%" border="0" cellspacing="0" cellpadding="0" align="center">
                    <tr> 
                      <td> 
                        <!--#include file="menu.asp"-->
                      </td>
                    </tr>
                  </table>
                  <br>
                  <table   bordercolor="#FFFFFF" cellpadding="0" cellspacing="0" id="AutoNumber3" style="border-collapse: collapse" width="95%" height="218" align="center">
                    <tr> 
                      <td height="4" width="99%" valign="top" bgcolor="#FFFFFF" > 
                        <table cellpadding="0" cellspacing="0" id="AutoNumber3" style="border-collapse: collapse" width="100%" height="118" border="0">
                         
                          <tr> 
                            <td height="163"  valign="top"> 
                              <table align="center" border="0" cellpadding="4" cellspacing="1" width="100%" bordercolordark="#FFFFFF" bgcolor="#666666">
                                <tr align="middle" bgcolor="#8b8b8b"> 
                                  <td colspan=3 height="22"> 
                                    <div align="center"><b><font color="#FFFFFF">网站空间使用情况</font></b> 
                                      <a href="http://<%= freedomain %>" target=_blank><font color="#FFFFFF"><%= freedomain %></font></a></div>
                                  </td>
                                </tr>
                                <%
			  
			  
   substrContent = "entryclass:hst_mng"&Vend
   substrContent =substrContent& "entrytype:hst_get_sze"&Vend
   substrContent =substrContent& "entryuser:"&entryuser&Vend
   substrContent =substrContent& "entrypass:"&entrypass&Vend
   substrContent =substrContent& "agentname:"&agentname&Vend
   substrContent = substrContent & "hostname:" & strServerComment & Vend
   substrContent = substrContent & "." & Vend
   wstr = hzsocket(substrContent)
if instr(wstr,"10000")<=0 then
call errorpage(-2,"对不起，系统错误")
end if
s_size=clng(rs("h_sze"))+clng(rs("h_szeadd"))

s_used=replace(wstr,"result:","")
s_used=round(right(s_used,len(s_used)-5),2)
if s_used=0 then
s_used=1
end if
s_remain=s_size-s_used			  
s_rate=s_used/s_size*100
s_rate=cstr(s_rate)
if instr(s_rate,".")>0 then
s_rate=left(s_rate,instr(s_rate,".")+4)
end if
s_rate=clng(s_rate)
s_rate_show=s_Rate
if s_rate<=1 then
s_rate_show=1
end if
			  %>
                                <tr bgcolor="#FFFFFF"> 
                                  <td height="22" bgcolor="#FFFFFF" width="25%"> 
                                    <div align="center">空间总量：</div>
                                  </td>
                                  <td ><%=s_size%> M</td>
                                </tr>
                                <tr bgcolor="#FFFFFF"> 
                                  <td height="22" bgcolor="#FFFFFF" width="25%"> 
                                    <div align="center">总体情况：</div>
                                  </td>
                                  <td colspan="2"> 
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                      <tr> 
                                        <td width="70%"> 
                                          <table width="300" border="0" cellspacing="0" cellpadding="0"  style="border:#000000 1px double" >
                                            <tr> 
                                              <td   style="font-size:4px;" width=<%=s_rate_show%>%  bgcolor=#ff0000>&nbsp;</td>
                                              <td style="font-size:4px;" bgcolor="#CCCCCC">&nbsp;</td>
                                            </tr>
                                          </table>
                                        </td>
                                        <td>&nbsp;&nbsp;<%=s_rate%> % </td>
                                      </tr>
                                    </table>
                                  </td>
                                </tr>
                                <tr bgcolor="#FFFFFF"> 
                                  <td height="22" bgcolor="#FFFFFF" width="25%"> 
                                    <div align="center">已用空间：</div>
                                  </td>
                                  <td colspan="2"> 
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                      <tr> 
                                        <td width=<%=300*s_rate/100+8%>> 
                                          <table width="<%=300*s_rate/100%>" border="0" cellspacing="0" cellpadding="0"  bgcolor=#ff0000>
                                            <tr> 
                                              <td   style="font-size:4px;border:#000000 1px double"  >&nbsp;</td>
                                            </tr>
                                          </table>
                                        </td>
                                        <td><%=s_used%> M</td>
                                      </tr>
                                    </table>
                                  </td>
                                </tr>
                                <tr bgcolor="#FFFFFF"> 
                                  <td height="22" bgcolor="#FFFFFF" width="25%"> 
                                    <div align="center">剩余空间：</div>
                                  </td>
                                  <td colspan="2"> 
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                      <tr> 
                                        <td width=<%=300-300*s_rate/100+8%>> 
                                          <table width="<%=300-300*s_rate/100%>" border="0" cellspacing="0" cellpadding="0"  bgcolor=#cccccc>
                                            <tr> 
                                              <td   style="font-size:4px;border:#000000 1px double"  >&nbsp;</td>
                                            </tr>
                                          </table>
                                        </td>
                                        <td><%=s_remain%> M</td>
                                      </tr>
                                    </table>
                                  </td>
                                </tr>
                              </table>
                              <br>
                              
                            </td>
                          </tr>
                        </table>
                        
                      </td>
                    </tr>
                    <tr> 
                      <td height="4" width="99%" valign="top" bgcolor="#FFFFFF" >&nbsp;</td>
                    </tr>
                  </table>
                  <br>
                  <br>
                
                 
                  <br>
                </td>
              </tr>
              </tbody> 
            </table>
          </TD>
        </TR>
        </TBODY>
      </TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY> 
        <TR> 
          <TD bgColor=#cccccc><IMG height=1 
            src="/imgs/spacer.gif" 
      width=1></TD>
        </TR>
        </TBODY>
      </TABLE>
      <!--#include virtual="/incs/web_bottom.asp"-->
