<!--#include virtual="/incs/config.asp" -->
<!--#include virtual="/incs/web_top.asp"-->
      <%
chk_log_usr()
	fnme=SafeRequest("fnme")
	If fnme="" Then
	call errorpage(-2,"对不起，参数错误！")
	End If
 query="select * from v_ftplst where f_unme='"&session("usrname")&"'  and f_ftpnme='"&fnme&"'"
	rs.open query,conn,1,1
    if rs.recordcount<>1 then
	rs.close
	call errorpage(-2,"对不起，该FTP空间不存在或者您无权操作！")
	end if
u_nme=trim(rs("f_unme"))

%>
      <%          ftpname=trim(rs("f_ftpnme"))
			    proid=trim(rs("f_prd"))
f_sst=rs("g_sst")
		%>
      <script language=javascript>
		function expl()
		{
		if (identity.style.display=="none")
		identity.style.display="block";
		else
		identity.style.display="none";
		}
		</script>
      <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/ftp_mng/ftp_lst.asp">FTP空间管理</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>FTP空间<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="ftp_lst.asp?querytype=8"><font color="#000000">今天新开通</font></a> 
                        <font color="#000000">|</font> <a href="ftp_lst.asp?querytype=9"><font color="#000000">本周新开通</font></a> 
                        <font color="#000000">|</font> <a href="ftp_lst.asp?querytype=10"><font color="#000000">本周到期</font></a> 
                        <font color="#000000">| </font><a href="ftp_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="14" width="100%" valign="top"> 
                              <table  cellpadding="0" cellspacing="0" >
                                <tr> 
                                  <td height=1></td>
                                </tr>
                              </table>
                              <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>&nbsp;<a href="http://<%= freedomain %>" target=_blank><font color="#FFFFFF"><%= freedomain %></font></a> 
                                    </div>
                                  </td>
                                </tr>
                                <tr bgcolor="#FFFFFF"> 
                                  <td height="25" bgcolor="#FFFFFF" width="25%"> 
                                    <div align="center">产品名称：</div>
                                  </td>
                                  <td colspan="2"> 
                                    <%
								  query="select top 1 g_nme from pdtlst where g_prd='"&trim(rs("f_prd"))&"'"
								  rs1.open query,conn,1,1
								  if not rs1.eof then
								  response.write trim(rs1("g_nme"))
								  end if
								  rs1.close
								  %>
                                  </td>
                                </tr>
                                <tr bgcolor="#FFFFFF"> 
                                  <td height="25" bgcolor="#FFFFFF" width="25%"> 
                                    <div align="center">FTP名称：</div>
                                  </td>
                                  <td colspan="2"> <%=ftpname
								  %> </td>
                                </tr>
                                <tr bgcolor="#FFFFFF"> 
                                  <td height="25" bgcolor="#FFFFFF" width="25%"> 
                                    <div align="center">FTP总空间：</div>
                                  </td>
                                  <td colspan="2"> 
                                    <%
								  
								  ftpall=clng(rs("f_sze"))+clng(rs("f_szeadd"))
								  userall=clng(rs("f_maxcns"))+clng(rs("f_cnsadd"))
								  response.write ftpall
								  %>
                                    M 
                                    <input type="button" name="Submit3" value="查看空间使用情况" class=dud_button1  onClick="javascript:location.href='ftp_sze.asp?fnme=<%=fnme%>';"   <%=startstr%>  style="cursor:hand;">
                                  </td>
                                </tr>
                                <tr bgcolor="#FFFFFF"> 
                                  <td height="25" bgcolor="#FFFFFF" width="25%"> 
                                    <div align="center">已分配空间：</div>
                                  </td>
                                  <td colspan="2"> 
                                    <%
								  query="select  sum(f_sze) as allused,count(*) as allusers from ftpsec where  f_ftpnme='"&ftpname&"'"
								  rs1.open query,conn,1,1
								  if isnull(rs1("allused"))=false then
								  allused=clng(rs1("allused"))
								  else
								  allused=0
								  end if
								  allusers=rs1("allusers")
								  rs1.close
								  response.write allused 
								  %>
                                    M</td>
                                </tr>
                                <tr bgcolor="#FFFFFF"> 
                                  <td height="22" bgcolor="#FFFFFF"> 
                                    <div align="center">未分配空间：</div>
                                  </td>
                                  <td colspan="2"> <%=ftpall-allused%> M &nbsp;&nbsp; 
                                  </td>
                                </tr>
                                <tr bgcolor="#FFFFFF"> 
                                  <td height="22" bgcolor="#FFFFFF"> 
                                    <div align="center">FTP帐号数：</div>
                                  </td>
                                  <td colspan="2"> <%=allusers%>/<%=userall%> 
                                    个</td>
                                </tr>
                                <%
if rs("f_regstt")=1 then
statestring="启动"
startstr="disabled=1"
stopstr=" "
elseif rs("f_regstt")=2 then
statestring="暂停"
startstr=" "
stopstr=" disabled=1"
elseif rs("f_regstt")=5 then
statestring="被停止"
startstr="disabled=1"
stopstr=" disabled=1"
end if 
%>
                                <form action="ftp_mng.asp" method =post name= ftpcontrol>
                                  <tr bgcolor="#FFFFFF"> 
                                    <td height="22" bgcolor="#FFFFFF"> 
                                      <div align="center">FTP状态：</div>
                                    </td>
                                    <td colspan="2"> 
                                      <input type="button" name="Submit4" value="启动所有帐号" class=dud_button1  onClick="javascript:document.ftpcontrol.ftp_regstt.value=1;document.ftpcontrol.submit();"   <%=startstr%>  style="cursor:hand;">
                                      <input type="button" name="Submit22" value="暂停所有帐号" class=dud_button1 onClick="javascript:document.ftpcontrol.ftp_regstt.value=2;document.ftpcontrol.submit();"  <%=stopstr%>  style="cursor:hand;">
                                      （当前FTP 已经 <font color=#ff0000><%=statestring%></font>） 
                                      <input type=hidden name="ftpname" value="<%=ftpname%>" >
                                      <input type=hidden name="ftp_regstt" value="" >
                                      <input type=hidden name=module value="ftp_regstt">
                                    </td>
                                  </tr>
                                </form>
                                <tr bgcolor="#FFFFFF"> 
                                  <td height="22" bgcolor="#FFFFFF"> 
                                    <div align="center">购买日期：</div>
                                  </td>
                                  <td colspan="2"> <%= rs("f_addtme") %></td>
                                </tr>
                                <tr bgcolor="#FFFFFF"> 
                                  <td height="22" bgcolor="#FFFFFF"> 
                                    <div align="center">到期日期：</div>
                                  </td>
                                  <td colspan="2"> 
                                    <%
						If RS("f_regtpe")=1 and rs("f_regstt")<>0 Then
							Response.Write 	""& rs("f_exptme") &""
						  else
							Response.Write "下定单申请状态或试用状态,尚未正式购买"
						End If
				  %>
                                  </td>
                              </table>
                            </td>
                          </tr>
                          <tr> 
                            <td> 
                              <table width="100%" border="0" cellspacing="0" cellpadding="0"  id=identity>
                                <tr> 
                                  <td>&nbsp;</td>
                                </tr>
                                <tr> 
                                  <td> 
                                    <table align="center" width="100%" bgcolor="#666666" cellpadding="4" cellspacing="1" border="0">
                                      <tr align="middle" bgcolor="#8b8b8b" bordercolordark="#FFFFFF"> 
                                        <td colspan="3" height="22"> 
                                          <div align="center"><b><font color="#FFFFFF">订单信息</font></b></div>
                                        </td>
                                      </tr>
                                      <tr bgcolor="#FFFFFF"> 
                                        <td height="22" width="25%"> 
                                          <div align="center" style="display:block;">单位名称：</div>
                                        </td>
                                        <td colspan="2"><%=rs("f_copnme_cn")%></td>
                                      </tr>
                                      <tr bgcolor="#FFFFFF"> 
                                        <td height="22"> 
                                          <div align="center">联系人：</div>
                                        </td>
                                        <td colspan="2"><%=rs("f_ctt_cn")%></td>
                                      </tr>
                                      <tr bgcolor="#FFFFFF"> 
                                        <td height="22"> 
                                          <div align="center">联系地址：</div>
                                        </td>
                                        <td colspan="2"><%=rs("f_adr_cn")%></td>
                                      </tr>
                                      <tr bgcolor="#FFFFFF"> 
                                        <td height="22"> 
                                          <div align="center">邮政编码：</div>
                                        </td>
                                        <td colspan="2"><%=rs("f_cde")%></td>
                                      </tr>
                                      <tr bgcolor="#FFFFFF"> 
                                        <td height="22"> 
                                          <div align="center">联系电话：</div>
                                        </td>
                                        <td colspan="2"><%=rs("f_tel")%></td>
                                      </tr>
                                      <tr bgcolor="#FFFFFF"> 
                                        <td height="22"> 
                                          <div align="center">传真：</div>
                                        </td>
                                        <td colspan="2"><%=rs("f_fax")%></td>
                                      </tr>
                                      <tr bgcolor="#FFFFFF"> 
                                        <td height="22"> 
                                          <div align="center">电子邮件：</div>
                                        </td>
                                        <td colspan="2"><%=rs("f_eml")%></td>
                                      </tr>
                                    </table>
                                  </td>
                                </tr>
                              </table>
                            </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                    <%
rs.close
%>
                    <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"-->





