<!--#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

%>
      <%    ftpname=trim(rs("f_ftpnme"))
			    proid=trim(rs("f_prd"))
			    homedir=trim(rs("f_hmedir"))
                f_sst=rs("g_sst")
				
				rs.close
		%>
		<script language="javascript">
		function confirmdelftp()
		{
		if (confirm("请确认是否执行此操作，如果确认，该FTP下所有资料都将被删除，不可恢复！"))
		return true;
		else
		return false;
		}
		</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  valign="top"> 
                              <%  query="select * from ftpsec where f_unme='"&session("usrname")&"'  and f_ftpnme='"&ftpname&"'"
							rs.open query,conn,1,1
							if rs.recordcount<=0 then
							
							%>
                              <table align="center" border="0" cellpadding="4" cellspacing="1" width="100%" bordercolordark="#FFFFFF" bgcolor="#666666">
                                <tr align="middle" bgcolor="#8b8b8b"> 
                                  <td height="22"> 
                                    <div align="center"><b><font color="#FFFFFF">FTP帐号</font></b></div>
                                  </td>
                                </tr>
                                <form action="ftp_mng.asp" method=post>
                                  <tr> 
                                    <td bgcolor="#FFFFFF" height="80" align="center"> 
                                      当前没有开设FTP帐号！</td>
                                  </tr>
                                </form>
                              </table>
                              <br>
                              <%
							end if
							i=1
							while not rs.eof 
							%>
                              <table align="center" border="0" cellpadding="4" cellspacing="1" width="100%" bordercolordark="#FFFFFF" bgcolor="#666666">
                                <tr align="middle" bgcolor="#8b8b8b"> 
                                  <td  height="22" colspan=3> 
                                    <div align="center"><b><font color="#FFFFFF">FTP帐号<%=i%></font></b></div>
                                  </td>
                                </tr><form action="ftp_mng.asp" method=post>
                                <tr> 
                                  <td bgcolor="#FFFFFF" height="25" align="center" width="25%"> 
                                    FTP用户名</td>
                                  <td bgcolor="#FFFFFF" height="22" ><%=rs("f_ftpusr")%> 
                                  </td>
                                  <td bgcolor="#FFFFFF" height="22" > 
                                     <input name="Clear223" type="submit" value="删除"  class=dud_button1 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 bgcolor="#FFFFFF" height="22" align="center">FTP目录</td>
                                  <td bgcolor="#FFFFFF"   height="22" style="line-height:150%" colspan="2"><%=rs("f_hmedir")%></td>
                                </tr>
								<form action="ftp_mng.asp" method=post>
                                <tr> 
                                  <td bgcolor="#FFFFFF" height="22" align="center">FTP状态</td>
                                  <td bgcolor="#FFFFFF"   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 bgcolor="#FFFFFF"   height="22" style="line-height:150%"> 
                                      <input name="Clear223" type="submit" value="修改"  class=dud_button1 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 bgcolor="#FFFFFF" height="22" align="center">FTP容量</td>
                                    <td bgcolor="#FFFFFF"   height="22" style="line-height:150%" width="40%"> 
                                      <input class="input" name="diskquota" size="20" maxlength="50" value="<%=rs("f_sze")%>">
                                      M </td>
                                    <td bgcolor="#FFFFFF"   height="22" style="line-height:150%"> 
                                      <input name="Clear223" type="submit" value="修改"  class=dud_button1 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 bgcolor="#FFFFFF" height="22" align="center">FTP密码</td>
                                    <td bgcolor="#FFFFFF"   height="22" style="line-height:150%"> 
                                      <%
						   wstr=getpassoutcode(rs("f_ftppss"))

						  %>
                                      <input class="input" name="ftpsecpass" size="20" maxlength="50" value="<%=wstr%>">
                                    </td>
                                    <td bgcolor="#FFFFFF"   height="22" style="line-height:150%"> 
                                      <input name="Clear223" type="submit" value="修改"  class=dud_button1 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 bgcolor="#FFFFFF" height="22" align="center">FTP访问权限</td>
                                  <td bgcolor="#FFFFFF"   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 bgcolor="#FFFFFF"   height="22" style="line-height:150%"> 
                                      <input name="Clear223" type="submit" value="修改"  class=dud_button1 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="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">新建FTP帐号</font></b></div>
                                  </td>
                                </tr>
                                <form action="ftp_mng.asp" method=post>
                                  <tr> 
                                    <td bgcolor="#FFFFFF" height="35" align="center" width="25%"> 
                                      FTP目录</td>
                                    <td bgcolor="#FFFFFF" height="22" colspan="2"> 
                                      <%=homedir%>\ 
                                      <input class="input" name="ftppath" size="20" maxlength="50">
                                    </td>
                                  </tr>
                                  <tr> 
                                    <td bgcolor="#FFFFFF" height="22" align="center">FTP容量</td>
                                    <td bgcolor="#FFFFFF" colspan="2" height="22" style="line-height:150%"> 
                                      <input class="input" name="diskquota" size="20" maxlength="50">
                                      M </td>
                                  </tr>
                                  <tr> 
                                    <td bgcolor="#FFFFFF" height="22" align="center">FTP用户名</td>
                                    <td bgcolor="#FFFFFF" colspan="2" height="22" style="line-height:150%"> 
                                      <b>FTP_</b> 
                                      <input class="input" name="ftpsecuser" size="15" maxlength="12">
                                    </td>
                                  </tr>
                                  <tr> 
                                    <td bgcolor="#FFFFFF" height="22" align="center">FTP密码</td>
                                    <td bgcolor="#FFFFFF" colspan="2" 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>
                                  </tr>
                                  <tr> 
                                    <td bgcolor="#FFFFFF" height="22" align="center">FTP访问权限</td>
                                    <td bgcolor="#FFFFFF" colspan="2" height="22" style="line-height:150%"> 
                                      <select name="accessnum">
                                        <option value="1">读取和写入权限</option>
                                        <option value="2">仅读取权限</option>
                                        <option value="3">仅写入权限</option>
                                      </select>
                                      <input name="Clear222" type="submit" value="新 建"  class=dud_button1>
                                    </td>
                                  </tr>
                                </form>
                              </table>
                            </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"-->

