<!--#include file="conn.asp" -->
<!--#include file="inc/usdl.asp" -->
<!--#include file="inc/gl1.asp" -->
<!--#include file="inc/hostconfig.asp" -->
<!--#include file="inc/editftp.asp" -->
<% 
call gl(Trim(Request("bh")))
us=session("us")
bh=Trim(Request.QueryString("bh"))

sql="select * from host_shop where bh="&bh&"and userid='"&us&"'and ftp_auto=true" 
  rs.open sql,conn,1,1
  if not rs.eof then
   user_ftp=rs("ftp")
  else
   Response.Write("对不起!!您的订单不存在或是此订单不支持在线管理功能...")
   response.end
   end if
 rs.close
  sql="select * from shop where bh="&bh&"and userid='"&us&"'and sx=true"
  rs.open sql,conn,1,1
  if rs.eof then
   Response.Write("对不起此产品还未生效,或是订单出错.")
   response.end
  end if
  rs.close
 if Trim(Request.Form("w"))="edit" then
   if Trim(Request.Form("pass1"))=Trim(Request.Form("pass2")) and len(Trim(Request.Form("pass1")))>=6 and len(Trim(Request.Form("pass1")))<=20 then
   sql="select * from host_shop where bh="&bh
   rs.open sql,conn,2,3
   if not rs.eof then
     ftp_name=rs("ftp")
     succend=edit_ftp(ftp_name,Trim(Request.Form("pass2")),seuv_filepath)
    else
    Response.Write("产品编号出错")
	response.end
   end if
  rs.close
  else
  %>
  <script language="JavaScript" type="text/JavaScript">
alert ("对不起!!修改失败.你两次输入的密码不相同或是密码长度不合法.请重输入.")
</script>

  <%
  end if
  if succend then
 sql="update host_shop set ftp_password='"&Trim(Request.Form("pass2"))&"' where bh="&bh
 conn.execute(sql)
 
 sql="insert into web_logo(bh,userid,log,sl,je,ftp_user,ftp_password,ftp_path,web_dns) values ("&bh&",'"&session("us")&"','更改ftp密码',0,0,'"&ftp_name&"','"&Trim(Request.Form("pass1"))&"','未改','未改')"
 conn.execute(sql)
  %>
  <script language="JavaScript" type="text/JavaScript">
alert ("密码修改成功,你现在就可以用你的新密码登录Ftp")
</script>

  <%
  else
  %>
   <script language="JavaScript" type="text/JavaScript">
alert ("对不起!!修改失败.在写文件时出错.请和管理员联系.")
</script>
<%
 end if

 end if
 %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=page_title%>>>主机管理>>更改ftp密码..</title>
<link href="css.css" rel="stylesheet" type="text/css">
</head>

<body leftmargin="3" topmargin="0">

<!--#include file="head.asp" -->
<table width="763" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="763" height="19" valign="bottom"><font color="#990000">　→ </font>你当前位置：<a href="default.asp">首 
      页 </a>&gt;&gt;管理中心&gt;&gt;主机管理&gt;&gt;更改ftp密码</td>
  </tr>
  <tr>
    <td height="1" background="images/2.jpg"></td>
  </tr>
</table>
<table width="763" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td width="175" valign="top"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td><div align="center"><img src="pic/manager.gif" width="174" height="70" border="1"></div></td>
        </tr>
        <tr> 
          <td height="17" bgcolor="#EEEEEE"> <div align="center">欢迎: <font color="#FF0000"><strong><%= session("us") %></strong></font> 光临</div></td> 
        </tr>
        <tr> 
          <% 
			sql="select * from user where userid='"&us&"'"
			 rs.open sql,conn,1,1
			 zje1=rs("je")
			 %>
          <td><p><font color="#FF0000">您的账面存款：</font></p>
            <p>&nbsp;</p>
            <p align="center"><font color="#FF0000">￥ <%= rs("je") %></font></p> 
            <p align="center">&nbsp;</p>
            <p>客户等级: <font color="#FF0000"><%= rs("dl") %> 
              <% rs.close  %>
              </font></p></td>
        </tr>
        <tr>
          <td height="1" background="images/2.jpg"> </td>
        </tr>
      </table> 
	  <div align="center"> 
       <!--#include file="user_inc.asp" -->
      </div></td>
    <td width="1" bgcolor="#F5F5F5"> </td>
    <td width="587" valign="top"> 
      <table width="573" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="573">
            <p align="center"><a href="user.asp"><img src="images/mameger.gif" width="437" height="43"></a></p>
          </td>
        </tr>
        <tr>
	
          <td valign="top">
<p>&nbsp;</p>
            <table width="516" border="0" align="center" cellpadding="1" cellspacing="1">
              <tr> 
                <td width="100" bgcolor="FF9900" onmouseover="this.style.backgroundColor='#FFD89D';return true;" onmouseout="this.style.backgroundColor='#FF9900';"> 
                  <div align="center"><a href="user8_host_1.asp?bh=<%=bh%>"><font color="#FFFFFF"> 
                    </font></a><a href="user8_host.asp?bh=<%=bh%>"><font color="#FFFFFF">订  
                    单 参 数</font></a></div></td> 
                <td width="105" bgcolor="#FF9900" onmouseover="this.style.backgroundColor='#FFD89D';return true;" onmouseout="this.style.backgroundColor='#FF9900';"> 
                  <div align="center"><a href="user8_host_2.asp?bh=<%=bh%>"><font color="#FFFFFF">更改Ftp密码</font></a></div></td>
                <td width="114" bgcolor="#FF9900" onmouseover="this.style.backgroundColor='#FFD89D';return true;" onmouseout="this.style.backgroundColor='#FF9900';"> 
                  <div align="center"><a href="user8_host_3.asp?bh=<%=bh%>"><font color="#FFFFFF">绑 
                    定 域 名</font></a></div></td>
                <td width="94" bgcolor="#FF9900" onmouseover="this.style.backgroundColor='#FFD89D';return true;" onmouseout="this.style.backgroundColor='#FF9900';"> 
                  <div align="center"><a href="user8_host_4.asp?bh=<%=bh%>"><font color="#FFFFFF">修改默认主页</font></a></div></td>
                <td width="87" bgcolor="#FF9900" onmouseover="this.style.backgroundColor='#FFD89D';return true;" onmouseout="this.style.backgroundColor='#FF9900';"><div align="center"><a href="user8_host_1.asp?bh=<%=bh%>"><font color="#FFFFFF">空 
                    间 参 数</font></a></div></td>
              </tr>
            </table>
            <p>&nbsp;</p>
            <form name="form3" method="post" action="user8_host_2.asp?bh=<%=bh%>">
              <table width="415" border="1" align="center" cellpadding="0" cellspacing="0"bordercolorlight="" bordercolordark="ffffff">
                <tr bgcolor="#EEEEEE"> 
                  <td colspan="2"> <font color="#006600"><strong>更改FTP密码</strong></font></td>
                </tr>
                <tr>
                  <td height="24">Ftp用户名:</td>
                  <td><strong><%= user_ftp %></strong> <font color="#FF0000">不能修改</font></td>
                </tr>
                <tr> 
                  <td width="109" height="24">Ftp密 码:</td> 
                  <td width="300"> 
                    <input name="pass1" type="password" id="pass1" size="20"> 
                    <font color="#FF0000">*</font> <input name="bh" type="hidden" id="bh" value="<%=bh%>">  
                    <input name="w" type="hidden" id="w" value="edit"> <font color="#FF0000">6-20  
                    位不分大小写</font></td>
                </tr>
                <tr> 
                  <td height="25">重复密码:</td>
                  <td> <input name="pass2" type="password" id="pass2" size="20"> <font color="#FF0000">*</font></td>
                </tr>
                <tr> 
                  <td height="24">&nbsp;</td>
                  <td> <input type="submit" name="Submit2" value="-更改-"></td>
                </tr>
              </table>
            </form>
            <p><font color="#FF0000">注:</font>在这里更改ftp密码立刻生效.</p>
            
          </td>
        </tr>
      </table>
      <table width="516" border="0" align="center" cellpadding="1" cellspacing="1">
        <tr> 
          <td width="100" bgcolor="FF9900" onmouseover="this.style.backgroundColor='#FFD89D';return true;" onmouseout="this.style.backgroundColor='#FF9900';"> 
            <div align="center"><a href="user8_host_1.asp?bh=<%=bh%>"><font color="#FFFFFF"> 
              </font></a><a href="user8_host.asp?bh=<%=bh%>"><font color="#FFFFFF">订  
              单 参 数</font></a></div></td> 
          <td width="105" bgcolor="#FF9900" onmouseover="this.style.backgroundColor='#FFD89D';return true;" onmouseout="this.style.backgroundColor='#FF9900';"> 
            <div align="center"><a href="user8_host_2.asp?bh=<%=bh%>"><font color="#FFFFFF">更改Ftp密码</font></a></div></td>
          <td width="114" bgcolor="#FF9900" onmouseover="this.style.backgroundColor='#FFD89D';return true;" onmouseout="this.style.backgroundColor='#FF9900';"> 
            <div align="center"><a href="user8_host_3.asp?bh=<%=bh%>"><font color="#FFFFFF">绑 
              定 域 名</font></a></div></td>
          <td width="94" bgcolor="#FF9900" onmouseover="this.style.backgroundColor='#FFD89D';return true;" onmouseout="this.style.backgroundColor='#FF9900';"> 
            <div align="center"><a href="user8_host_4.asp?bh=<%=bh%>"><font color="#FFFFFF">修改默认主页</font></a></div></td>
          <td width="87" bgcolor="#FF9900" onmouseover="this.style.backgroundColor='#FFD89D';return true;" onmouseout="this.style.backgroundColor='#FF9900';"><div align="center"><a href="user8_host_1.asp?bh=<%=bh%>"><font color="#FFFFFF">空 
              间 参 数</font></a></div></td>
        </tr>
      </table>
      <p>&nbsp;</p></td>
  </tr>
  <tr> 
    <td>&nbsp;</td>
    <td colspan="2">&nbsp;</td>
  </tr>
</table>
<%
call CloseDatabase '关闭数据库链接
%>
<!--#include file="top.asp" -->

</body>
</html>





























