<!--#include virtual="/incs/config.asp" -->
<!--#include virtual="/incs/top.asp" -->
<%
chk_log()
chk_newpwr 1,26,1
	fnme=SafeRequest("fnme")
	If  fnme="" Then
	call errorpage(-2,"对不起，参数错误！(103)")
	response.end
	End If
 
if session("sysclass")>=5 then
query="select * from v_ftplst   where f_ftpnme ='"&fnme&"'"
elseif session("sysclass")>=4 then
query="select * from v_ftplst  where f_ftpnme ='"&fnme&"'  and  ((("&session("sysarestr")&" or u_myare=0) and u_rotnme='') or u_rotnme='"&session("usrname")&"')"
else
query="select * from v_ftplst   where f_ftpnme ='"&fnme&"' f_unme='"&session("usrname")&"'"
end if
	conn.open constr

	rs.open query,conn,1,1
    if rs.recordcount<>1 then
	rs.close
	conn.close
	call errorpage(-2,"对不起，该FTP空间不存在或者您无权操作！")
	response.end
	end if
	f_svrip=rs("f_svrip")
	f_prd=rs("f_prd")
	homedir=trim(rs("f_hmedir"))
	g_tag=trim(rs("g_tag"))
	g_pdtcls=rs("g_pdtcls")
    ftpname=trim(rs("f_ftpnme"))
	g_nme=trim(rs("g_nme"))
%>
<%
			    f_prd=trim(rs("f_prd"))
				f_sst=rs("g_sst")
				rs.close
		%>
<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>FTP空间<font color="#000000">列表<a href="index.asp"  class=commonface ><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" class=commonface >今天新开通</a> 
            <font color="#000000">|</font> <a href="ftp_lst.asp?querytype=9" class=commonface >本周新开通</a> 
            <font color="#000000">|</font> <a href="ftp_lst.asp?querytype=10" class=commonface >本周到期</a> 
            <font color="#000000">| </font><a href="ftp_lst.asp?querytype=11" 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="middle" height="28"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr> 
          <td> 
            <!--#include file="menu.asp"-->
          </td>
        </tr>
      </table>
      <br>
      <table cellPadding="0" cellSpacing="0" id="AutoNumber3" style="border-collapse: collapse" width="100%" height="218" align="center" border="0">
        <tr> 
          <td height="4" width="99%" valign="top"  > 
            <table     cellpadding="0" cellspacing="0" id="AutoNumber3" style="border-collapse: collapse" width="100%" height="218" align="center">
              <tr> 
                <td height="4" width="99%" valign="top" > 
                  <table cellpadding="0" cellspacing="0" id="AutoNumber3" style="border-collapse: collapse" width="100%" height="118" border="0">
                    <tr> 
                      <td  valign="top"> 
                        <%  query="select * from ftpsec where  f_ftpnme='"&ftpname&"'"
							rs.open query,conn,1,1
							if rs.recordcount<=0 then
							%>
                        <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" class=datalist>
                          <tr  > 
                            <th height="22" class=datalistheader  > 
                              <div align="center"><b>FTP帐号</b></div>
                            </th>
                          </tr>
                          <form action="ftp_mng.asp" method=post>
                            <tr> 
                              <td height="80" align="center" class=datalistgrida  > 
                                当前没有开设FTP帐号！</td>
                            </tr>
                          </form>
                        </table>
                        <br>
                        <%
							end if
							i=1
							while not rs.eof 
							%>
                        <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" class=datalist>
                          <tr   class=datalistheader> 
                            <th  height="22" colspan=3 class=datalistheader> 
                              <div align="center"><b>FTP帐号<%=i%></b></div>
                            </th>
                          </tr>
                          <form action="ftp_mng.asp" method=post>
                            <tr> 
                              <td  class=datalistgrida width="25%" align="center"> 
                                FTP用户名</td>
                              <td  class=datalistgrida  height="22" ><%=rs("f_ftpusr")%> 
                              </td>
                              <td   class=datalistgrida  height="22" > 
                                <input name="Clear223" type="submit" value="删除"  class=btxx onClick="javascript:return confirmdelftp();">
                                <input type=hidden name="ftpsecuser" value="<%=rs("f_ftpusr")%>" >
                                <input type=hidden name="ftpname" value="<%=ftpname%>" >
                                <input type=hidden name=module  value="ftp_usrdel">
                              </td>
                            </tr>
                          </form>
                          <tr> 
                            <td class=datalistgrida  height="22" align="center">FTP目录</td>
                            <td  class=datalistgrida   height="22" style="line-height:150%" colspan="2"><%=rs("f_hmedir")%></td>
                          </tr>
                          <tr> 
                            <td class=datalistgrida  height="22" align="center">已用空间</td>
                            <td  class=datalistgrida   height="22" style="line-height:150%" colspan="2"><font color=#ff0000><b><%=rs("f_dskqta")%></b></font> MB</td>
                          </tr>
                          <form action="ftp_mng.asp" method=post>
                            <tr> 
                              <td  class=datalistgrida height="22" align="center">FTP状态</td>
                              <td  class=datalistgrida   height="22" style="line-height:150%" width="40%"> 
                                <select name="ftp_ftpstt">
                                  <option value="1" <% if rs("f_ftpstt")="1" then
									  response.write " selected"
									  end if %>>启动</option>
                                  <option value="2"  <% if rs("f_ftpstt")<>"1" then
									  response.write " selected"
									  end if %>>停止</option>
                                </select>
                              </td>
                              <td   class=datalistgrida  height="22" style="line-height:150%"> 
                                <input name="Clear223" type="submit" value="修改"  class=btxx onClick="javascript:return confirmit();">
                                <input type=hidden name="ftpsecuser" value="<%=rs("f_ftpusr")%>" >
                                <input type=hidden name="ftpname" value="<%=ftpname%>" >
                                <input type=hidden name=module  value="ftp_ftpstt">
                              </td>
                            </tr>
                          </form>
                          <form action="ftp_mng.asp" method=post>
                            <tr> 
                              <td class=datalistgrida  height="22" align="center">FTP容量</td>
                              <td  class=datalistgrida   height="22" style="line-height:150%" width="40%"> 
                                <input class="input" name="diskquota" size="20" maxlength="50" value="<%=rs("f_sze")%>">
                                M </td>
                              <td   class=datalistgrida  height="22" style="line-height:150%"> 
                                <input name="Clear223" type="submit" value="修改"  class=btxx onClick="javascript:return confirmit();">
                                <input type=hidden name="ftpsecuser" value="<%=rs("f_ftpusr")%>" >
                                <input type=hidden name="ftpname" value="<%=ftpname%>" >
                                <input type=hidden name=module  value="ftp_diskquota">
                              </td>
                            </tr>
                          </form>
                          <form action="ftp_mng.asp" method=post>
                            <tr> 
                              <td class=datalistgrida  height="22" align="center">FTP密码</td>
                              <td  class=datalistgrida   height="22" style="line-height:150%"> 
                                <%
 
wstr=getpassoutcode(rs("f_ftppss"))

						  %>
                                <input class="input" name="ftpsecpass" size="20" maxlength="16" value="<%=wstr%>">
                              </td>
                              <td  class=datalistgrida   height="22" style="line-height:150%"> 
                                <input name="Clear223" type="submit" value="修改"  class=btxx onClick="javascript:return confirmit();">
                                <input type=hidden name="ftpsecuser" value="<%=rs("f_ftpusr")%>" >
                                <input type=hidden name="ftpname" value="<%=ftpname%>" >
                                <input type=hidden name=module  value="ftp_ftppss">
                              </td>
                            </tr>
                          </form>
                          <form action="ftp_mng.asp" method=post>
                            <tr> 
                              <td  class=datalistgrida height="22" align="center">FTP访问权限</td>
                              <td   class=datalistgrida  height="22" style="line-height:150%"> 
                                <select name="accessnum">
                                  <option value="1" <%
									  if rs("f_acstpe")="1" then
									  response.write  " selected "
									  end if 
									  %>>读取和写入权限</option>
                                  <option value="2" <%
									  if rs("f_acstpe")="2" then
									  response.write  " selected "
									  end if 
									  %>>仅读取权限</option>
                                  <option value="3" <%
									  if rs("f_acstpe")="3" then
									  response.write  " selected "
									  end if 
									  %>>仅写入权限</option>
                                </select>
                              </td>
                              <td  class=datalistgrida   height="22" style="line-height:150%"> 
                                <input name="Clear223" type="submit" value="修改"  class=btxx onClick="javascript:return confirmit();">
                                <input type=hidden name="ftpsecuser" value="<%=rs("f_ftpusr")%>" >
                                <input type=hidden name="ftpname" value="<%=ftpname%>" >
                                <input type=hidden name=module  value="ftp_ftpacs">
                              </td>
                            </tr>
                          </form>
                        </table>
                        <br>
                        <% rs.movenext
							  i=i+1
							  wend
							  rs.close
							  %>
                        <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" class=datalist>
                          <tr > 
                            <th colspan="3" height="22" class=datalistheader> 
                              <div align="center"><b>新建FTP帐号</b></div>
                            </th>
                          </tr>
                          <form action="ftp_mng.asp" method=post>
                            <tr> 
                              <td   class=datalistgrida  align="center" width="25%"> 
                                FTP目录</td>
                              <td   class=datalistgrida width="40%"> <%=homedir%>\ 
                                <input class="input" name="ftppath" size="20" maxlength="50">
                              </td>
                              <td   class=datalistgrida>&nbsp;</td>
                            </tr>
                            <tr> 
                              <td   class=datalistgrida  height="22" align="center">FTP容量</td>
                              <td   class=datalistgrida height="22" style="line-height:150%"> 
                                <input class="input" name="diskquota" size="20" maxlength="50">
                                M </td>
                              <td   class=datalistgrida height="22" style="line-height:150%">&nbsp;</td>
                            </tr>
                            <tr> 
                              <td   class=datalistgrida  height="22" align="center">FTP用户名</td>
                              <td   class=datalistgrida height="22" style="line-height:150%"> 
                                <b>FTP_</b> 
                                <input class="input" name="ftpsecuser" size="15" maxlength="12">
                              </td>
                              <td   class=datalistgrida height="22" style="line-height:150%">&nbsp;</td>
                            </tr>
                            <tr> 
                              <td   class=datalistgrida  height="22" align="center">FTP密码</td>
                              <td   class=datalistgrida height="22" style="line-height:150%"> 
                                <input class="input" name="ftpsecpass" size="20" maxlength="16" type="password">
                                <input type=hidden name="ftpname" value="<%=ftpname%>" >
                                <input type=hidden name=module value="ftp_usradd_sec">
                              </td>
                              <td   class=datalistgrida height="22" style="line-height:150%">&nbsp;</td>
                            </tr>
                            <tr> 
                              <td   class=datalistgrida  height="22" align="center">FTP访问权限</td>
                              <td   class=datalistgrida height="22" style="line-height:150%"> 
                                <select name="accessnum">
                                  <option value="1">读取和写入权限</option>
                                  <option value="2">仅读取权限</option>
                                  <option value="3">仅写入权限</option>
                                </select>
                              </td>
                              <td   class=datalistgrida height="22" style="line-height:150%"> 
                                <input name="Clear222" type="submit" value="新 建"  class=btxx>
                              </td>
                            </tr>
                          </form>
                        </table>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr> 
                <td height="4" width="99%" valign="top" >&nbsp;</td>
              </tr>
            </table>
            <%
conn.close
%>
          </td>
        </tr>
        <tr> 
          <td height="4" width="99%" valign="top"  >&nbsp;</td>
        </tr>
      </table>
      <br>
      <br>
      <br>
    </td>
  </tr>
  </tbody> 
</table>
<script language="javascript">
		function confirmdelftp()
		{
		if (confirm("请确认是否执行此操作，如果确认，该FTP下所有资料都将被删除，不可恢复！"))
		return true;
		else
		return false;
		}
		</script>
<!--#include virtual="/incs/bottom.asp"-->






