<!--#include virtual="/incs/config.asp" -->
<!--#include virtual="/incs/top.asp" -->
<!--#include virtual="/incs/present.asp" -->
<%
chk_log()
chk_newpwr 4,26,5
	fnme=SafeRequest("fnme")
	If fnme="" Then
	call errorpage(-2,"对不起，参数错误！")
	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")&"')"
end if

	conn.open constr
	rs.open query,conn,1,1
    if rs.recordcount<>1 then
	rs.close
	conn.close
	call errorpage(-2,"对不起，该FTP空间不存在或者您无权操作！")
	end if

%>
<%          ftpname=trim(rs("f_ftpnme"))
			    proid=trim(rs("f_prd"))
				f_sst=rs("g_sst")
				query="select count(*) as allseccount from ftpsec where f_ftpnme='"&ftpname&"'"
				rs1.open query,conn,1,1
				allseccount=rs1("allseccount")
				rs1.close
		%>
<script language=javascript>
		function expl()
		{
		if (identity.style.display=="none")
		identity.style.display="block";
		else
		identity.style.display="none";
		}
		</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>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%" 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="118" border="0">
              <tr> 
                <td  valign="top"> 
      
                  <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_adm_rez.asp method=post>
                      <tr> 
                        <td height="22" width="25%" class=datalistgrida > 
                          <div align="center">公司名称：</div>
                        </td>
                        <td class=datalistgrida > 
                          <input type="text" size=28  name="f_copnme_cn" value="<%=trim(rs("f_copnme_cn"))%>">
                        </td>
                        <td class=datalistgrida width="20%" >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td height="22" width="25%" class=datalistgrida > 
                          <div align="center">联系人：</div>
                        </td>
                        <td class=datalistgrida > 
                          <input type="text" size=28  name="f_ctt_cn"  value="<%=trim(rs("f_ctt_cn"))%>">
                        </td>
                        <td class=datalistgrida >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td height="22" class=datalistgrida > 
                          <div align="center">省份：</div>
                        </td>
                        <td class=datalistgrida > 
                          <input type="text" size=28  name="f_prv_cn"  value="<%=trim(rs("f_prv_cn"))%>">
                        </td>
                        <td class=datalistgrida >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td height="22" class=datalistgrida > 
                          <div align="center">联系地址：</div>
                        </td>
                        <td class=datalistgrida > 
                          <input type="text" size=28  name="f_adr_cn"  value="<%=trim(rs("f_adr_cn"))%>">
                        </td>
                        <td class=datalistgrida >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td height="22" class=datalistgrida  > 
                          <div align="center">邮政编码：</div>
                        </td>
                        <td  class=datalistgrida > 
                          <input type="text" size=28  name="f_cde"  value="<%=trim(rs("f_cde"))%>">
                        </td>
                        <td  class=datalistgrida >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td height="22" class=datalistgrida > 
                          <div align="center">电话：</div>
                        </td>
                        <td class=datalistgrida > 
                          <input type="text" size=28  name="f_tel"  value="<%=trim(rs("f_tel"))%>">
                        </td>
                        <td class=datalistgrida >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td height="22"  class=datalistgrida > 
                          <div align="center">传真：</div>
                        </td>
                        <td  class=datalistgrida > 
                          <input type="text" size=28  name="f_fax"  value="<%=trim(rs("f_fax"))%>">
                        </td>
                        <td  class=datalistgrida >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td height="22" class=datalistgrida  > 
                          <div align="center">邮件：</div>
                        </td>
                        <td class=datalistgrida  > 
                          <input type="text" size=28  name="f_eml"  value="<%=trim(rs("f_eml"))%>">
                        </td>
                        <td class=datalistgrida  > 
                          <input type="submit" name="Submit2" value="更  改" class=btxx >
                          <input type="reset" name="Submit3" value="复  原" class=btxx >
                          <input type=hidden name=ftpname value="<%=ftpname%>">
                          <input type=hidden name=module value="ftp_ctt">
                        </td>
                      </tr>
                    </form>
                  </table>
                  <br>
                  <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" class=datalist >
                    <tr > 
                      <th class=datalistheader colspan="3" height="22"> 
                        <div align="center"><b>FTP空间参数修改一（仅修改数据库）</b> </div>
                      </th>
                    </tr>
                    <form action="ftp_adm_rez.asp"  method="post">
                      <tr> 
                        <td   class=datalistgrida height="22" width="25%"> 
                          <div align="center">FTP空间型号：</div>
                        </td>
                        <td class=datalistgrida  > 
                          <select name="f_prd" style="font-size: 9pt" size="1" >
                                <option value="<%=rs("g_prd")%>" ><%=rs("g_nme")%></option>
                        <% query="select * from v_pdtlst  where pt_tag='ftp'"
						  rs1.open query,conn,1,1
						  while not rs1.eof 
						  response.write "<option value='"&rs1("g_prd")&"' >"&rs1("g_nme")&"</option>"
					  rs1.movenext
					  wend
					  rs1.close
					  %>
                          </select>
                        </td>
                        <td class=datalistgrida width="20%"  >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td  class=datalistgrida  height="22" width="25%"> 
                          <div align="center">申请类型：</div>
                        </td>
                        <td  class=datalistgrida > 
                          <select name="f_regtpe" style="font-size: 9pt" size="1" >
                            <option value="1" <%if rs("f_regtpe")=1 then
					  response.write " selected "
					  end if %> >购买</option>
                            <option value="0" <%if rs("f_regtpe")=0 then
					  response.write " selected "
					  end if %> >试用</option>
                            <option value="5" <%if rs("f_regtpe")=5 then
					  response.write " selected "
					  end if %> >赠送</option>
                          </select>
                        </td>
                        <td  class=datalistgrida >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td   class=datalistgrida height="22" width="25%"> 
                          <div align="center">FTP空间状态：</div>
                        </td>
                        <td class=datalistgrida  > 
                          <select name="f_regstt" style="font-size: 9pt" size="1" >
                            <option value="0" <%if rs("f_regstt")=0 then
							response.write " selected "
							end if %>>未开通</option>
                            <option value="1" <%if rs("f_regstt")=1 then
							response.write " selected "
							end if %>>运行中</option>
                            <option value="2" <%if rs("f_regstt")=2 then
							response.write " selected "
							end if %>>暂停中</option>
                            <option value="3" <%if rs("f_regstt")=3 then
							response.write " selected "
							end if %>>处理中</option>
                            <option value="4" <%if rs("f_regstt")=4 then
							response.write " selected "
							end if %>>已被完全删除</option>
                            <option value="5" <%if rs("f_regstt")=5 then
							response.write " selected "
							end if %>>管理员停止</option>
                            <option value="6" <%if rs("f_regstt")=6 then
							response.write " selected "
							end if %>>待开通</option>
                          </select>
                        </td>
                        <td class=datalistgrida  >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td  class=datalistgrida  height="22"> 
                          <div align="center">申请总期限：</div>
                        </td>
                        <td  class=datalistgrida > 
                          <input type="text" size=24  name="f_yarcnt" value="<%=mynum(rs("f_yarcnt"))%>">
                          年 </td>
                        <td  class=datalistgrida >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td  class=datalistgrida  height="22"> 
                          <div align="center">申请总价格：</div>
                        </td>
                        <td  class=datalistgrida > 
                          <input type="text" size=10  name="years" value="<%=trim(rs("years"))%>">
                          X 
						  <%
						  prcstrname="f_prcstr"
						  prcstr=rs(prcstrname)
						  %>
                          <select name="<%=prcstrname%>" style="font-size: 9pt" size="1" >
                            <%
							query="select * from memlst where u_nme='"&rs("f_unme")&"'"
							rs2.open query,conn,1,1
							if not rs2.eof then
							u_prc=rs2("u_prc")
							canlist=true
							end if
							rs2.close 
							if canlist then
							 query="select * from v_prclst where p_prd='"&proid&"' and p_cls="&u_prc&" order by p_tmetpe,p_yar"
					  rs2.open query,conn,1,1
					  while not rs2.eof 
					  response.write "<option "
					  if  prcstr=trim(rs2("p_prcstr")) then
					  response.write " selected "
					  end if
					  p_yar=rs2("p_yar")
					  if p_yar="1" then
					  p_yar=""
					  end if
					  response.write " value="&rs2("p_prcstr")&">"&rs2("p_prc")&"元/"&p_yar&tmenmes(rs2("p_tmetpe"))&"</option>"
					  rs2.movenext
					  wend
					  rs2.close
					  end if
					  %>
                          </select>
                          </td>
                        <td  class=datalistgrida >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td  class=datalistgrida  height="22" > 
                          <div align="center">物理路径：</div>
                        </td>
                        <td  class=datalistgrida  > 
                          <input type="text" size=28  name="f_hmedir" value="<%=trim(rs("f_hmedir"))%>">
                        </td>
                        <td  class=datalistgrida  >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td  class=datalistgrida  height="22" > 
                          <div align="center">注册时间：</div>
                        </td>
                        <td  class=datalistgrida  > 
                          <input type="text" size=28  name="f_addtme" value="<%=trim(rs("f_addtme"))%>">
                        </td>
                        <td  class=datalistgrida  >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td  class=datalistgrida  height="22" > 
                          <div align="center">到期时间：</div>
                        </td>
                        <td  class=datalistgrida  > 
                          <input type="text" size=28  name="f_exptme" value="<%=trim(rs("f_exptme"))%>">
                        </td>
                        <td  class=datalistgrida  >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td  class=datalistgrida  height="22"> 
                          <div align="center">服务提供商：</div>
                        </td>
                        <td class=datalistgrida  > 
                          <input type="text" size=28  name="f_cprnme" value="<%=trim(rs("f_cprnme"))%>">
                        </td>
                        <td class=datalistgrida  >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td  class=datalistgrida  height="22" > 
                          <div align="center">FTP空间IP：</div>
                        </td>
                        <td  class=datalistgrida  > 
                          <input type="text" size=28  name="f_svrip" value="<%=trim(rs("f_svrip"))%>">
                        </td>
                        <td  class=datalistgrida  >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td  class=datalistgrida  height="22" > 
                          <div align="center">空间大小：</div>
                        </td>
                        <td  class=datalistgrida  > 
                          <input type="text" size=28  name="f_sze" value="<%=trim(rs("f_sze"))%>">
                          M </td>
                        <td  class=datalistgrida  >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td  class=datalistgrida  height="22"> 
                          <div align="center">标准FTP帐号数：</div>
                        </td>
                        <td  class=datalistgrida > 
                          <input type="text" size=28  name="f_maxcns" value="<%=trim(rs("f_maxcns"))%>">
                          个（可开的FTP帐号数=标准FTP帐号数+FTP帐号增加）</td>
                        <td  class=datalistgrida >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td  class=datalistgrida  height="22" > 
                          <div align="center">空间增加：</div>
                        </td>
                        <td   class=datalistgrida > 
                          <input type="text" size=28  name="f_szeadd" value="<%=trim(rs("f_szeadd"))%>">
                          M </td>
                        <td   class=datalistgrida >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td  class=datalistgrida  height="22"> 
                          <div align="center">FTP帐号增加：</div>
                        </td>
                        <td class=datalistgrida  > 
                          <input type="text" size=28  name="f_cnsadd" value="<%=trim(rs("f_cnsadd"))%>">
                          个 </td>
                        <td class=datalistgrida  >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td  class=datalistgrida  height="22" > 
                          <div align="center">是否付款：</div>
                        </td>
                        <td  class=datalistgrida  > 
                          <input type="radio" name="f_ifpay" value="1" <%if trim(rs("f_ifpay"))=1 then
						  response.write " checked "
						  end if %>>
                          1已付款 
                          <input type="radio" name="f_ifpay" value="0" <%if trim(rs("f_ifpay"))=0 then
						  response.write " checked "
						  end if %>>
                          0未付款 </td>
                        <td  class=datalistgrida  >&nbsp; </td>
                      </tr>
                      <tr> 
                        <td  class=datalistgrida  height="22" > 
                          <div align="center">其它说明：</div>
                        </td>
                        <td  class=datalistgrida  > 
                          <textarea cols="45" name="content" rows="3"><%=trim(rs("content"))%></textarea>
                          <input type=hidden name=ftpname value="<%=ftpname%>">
                          <input type=hidden name=module value="ftp_edta">
                        </td>
                        <td  class=datalistgrida  > 
                          <input type="submit" name="Submit23" value="更  改" class=btxx >
                          <input type="reset" name="Submit33" value="复  原" class=btxx >
                        </td>
                      </tr>
                    </form>
                    <form action=ftp_adm_rez.asp method=post>
                    </form>
                    <form action=ftp_adm_rez.asp method=post>
                    </form>
                    <form action=ftp_adm_rez.asp method=post>
                      <tr > 
                        <th class=datalistheader colspan="3" height="22"> 
                          <div align="center"><b>FTP空间参数修改二（仅修改数据库）</b> </div>
                        </th>
                      </tr>
                      <tr> 
                        <td  class=datalistgrida  height="22"> 
                          <div align="center">赠送品一产品编号：</div>
                        </td>
                        <td class=datalistgrida > 
                          <select name="pstprd1">
                            <option value="" <%if trim(rs("pstprd1"))="" then
					  response.write " selected "
					  end if %>>没有赠送品</option>
                            <% 
				query="select * from v_pdtlst  where pt_tag<>'set' order by pt_odr,pc_odr"
						rs1.open query,conn,1,1
						while not rs1.eof 
						response.write "<option style='color:"&trim(rs1("pt_clr"))&";' value="&rs1("g_prd")
						if trim(rs1("g_prd"))=trim(rs("pstprd1")) then
						response.write " selected "
						end if
						response.write ">"&rs1("g_nme")&"----"&trim(Rs1("pt_nme"))&"</option>"
						rs1.movenext
						wend
						rs1.close
						%>
                          </select>
                        </td>
                        <td class=datalistgrida >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td  class=datalistgrida  height="22" > 
                          <div align="center">赠送品一：</div>
                        </td>
                        <td  class=datalistgrida  > 
                          <input type="text" size=28  name="pstnme1" value="<%=rs("pstnme1")%>">
                          填：域名/主机名/FTP名/数据库名...</td>
                        <td  class=datalistgrida  >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td  class=datalistgrida  height="22"> 
                          <div align="center">赠送品二产品编号：</div>
                        </td>
                        <td  class=datalistgrida > 
                          <select name="pstprd2">
                            <option value="" <%if trim(rs("pstprd2"))="" then
					  response.write " selected "
					  end if %>>没有赠送品</option>
                            <% 
				query="select * from v_pdtlst  where pt_tag<>'set' order by pt_odr,pc_odr"
						rs1.open query,conn,1,1
						while not rs1.eof 
						response.write "<option style='color:"&trim(rs1("pt_clr"))&";' value="&rs1("g_prd")
						if trim(rs1("g_prd"))=trim(rs("pstprd2")) then
						response.write " selected "
						end if
						response.write ">"&rs1("g_nme")&"----"&trim(Rs1("pt_nme"))&"</option>"
						rs1.movenext
						wend
						rs1.close
						%>
                          </select>
                        </td>
                        <td  class=datalistgrida >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td  class=datalistgrida  height="22" > 
                          <div align="center">赠送品二：</div>
                        </td>
                        <td  class=datalistgrida  > 
                          <input type="text" size=28  name="pstnme2"  value="<%=rs("pstnme2")%>">
                          填：域名/主机名/FTP名/数据库名... </td>
                        <td  class=datalistgrida  >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td  class=datalistgrida  height="22" > 
                          <div align="center">赠送品三产品编号：</div>
                        </td>
                        <td   class=datalistgrida > 
                          <select name="pstprd3">
                            <option value="" <%if trim(rs("pstprd3"))="" then
					  response.write " selected "
					  end if %>>没有赠送品</option>
                            <% 
				query="select * from v_pdtlst  where pt_tag<>'set' order by pt_odr,pc_odr"
						rs1.open query,conn,1,1
						while not rs1.eof 
						response.write "<option style='color:"&trim(rs1("pt_clr"))&";' value="&rs1("g_prd")
						if trim(rs1("g_prd"))=trim(rs("pstprd3")) then
						response.write " selected "
						end if
						response.write ">"&rs1("g_nme")&"----"&trim(Rs1("pt_nme"))&"</option>"
						rs1.movenext
						wend
						rs1.close
						%>
                          </select>
                        </td>
                        <td   class=datalistgrida >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td  class=datalistgrida  height="22"> 
                          <div align="center">赠送品三：</div>
                        </td>
                        <td class=datalistgrida  > 
                          <input type="text" size=28  name="pstnme3" value="<%=rs("pstnme3")%>">
                          填：域名/主机名/FTP名/数据库名... </td>
                        <td class=datalistgrida  >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td  class=datalistgrida  height="22"> 
                          <div align="center">获得此赠送品的产品编号：</div>
                        </td>
                        <td class=datalistgrida  > 
                          <select name="pstrotprd">
                            <option value="" <%if trim(rs("pstrotprd"))="" then
					  response.write " selected "
					  end if %>>非赠送品</option>
                            <% 
				query="select * from v_pdtlst  where pt_tag<>'set' order by pt_odr,pc_odr"
						rs1.open query,conn,1,1
						while not rs1.eof 
						response.write "<option style='color:"&trim(rs1("pt_clr"))&";' value="&rs1("g_prd")
						if trim(rs1("g_prd"))=trim(rs("pstrotprd")) then
						response.write " selected "
						end if
						response.write ">"&rs1("g_nme")&"----"&trim(Rs1("pt_nme"))&"</option>"
						rs1.movenext
						wend
						rs1.close
						%>
                          </select>
                        </td>
                        <td class=datalistgrida  >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td  class=datalistgrida  height="22"> 
                          <div align="center">获得此赠送品的产品：</div>
                        </td>
                        <td class=datalistgrida  > 
                          <input type="text" size=28  name="pstrotnme" value="<%=rs("pstrotnme")%>">
                          填：域名/主机名/FTP名/数据库名... 
                          <input type=hidden name=ftpname value="<%=ftpname%>">
                          <input type=hidden name=module value="ftp_edtd">
                        </td>
                        <td class=datalistgrida  >&nbsp;</td>
                      </tr>
                      <tr> 
                        <td class=datalistgrida  height="22" > 
                          <div align="center">所属套餐名称：</div>
                        </td>
                        <td class=datalistgrida  > 
                          <input type="text" size=28  name="setnme" value="<%=rs("setnme")%>">
                        </td>
                        <td class=datalistgrida  > 
                          <input type="submit" name="Submit222" value="更  改" class=btxx >
                          <input type="reset" name="Submit322" value="复  原" class=btxx >
                        </td>
                      </tr>
                    </form>
                  </table>
                  <br>
                  <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>
          
                  </table>
                  <br>
                  <br>
                </td>
              </tr>
            </table>
            <%
rs.close
conn.close
%>
          </td>
        </tr>
        <tr> 
          <td height="4" width="99%" valign="top"  >&nbsp;</td>
        </tr>
      </table>
      <br>
      <br>
      <br>
    </td>
  </tr>
  </tbody> 
</table>
<form name=delsecs action=ftp_adm_rez.asp method=post>
  <input type=hidden name=module value="ftp_delsecs">
  <input type=hidden name=ftpname value="<%=ftpname%>">
</form>
<form name=delallftp action=ftp_adm_rez.asp method=post>
  <input type=hidden name=module value="ftp_delallftp">
  <input type=hidden name=ftpname value="<%=ftpname%>">
</form>
<form name=deldb action=ftp_adm_rez.asp method=post>
  <input type=hidden name=module value="ftp_delc">
  <input type=hidden name=ftpname value="<%=ftpname%>">
</form>
<!--#include virtual="/incs/bottom.asp"-->







