<!--#include file="conn.asp" -->
<% adm_power_page=4 '分配本页的用户访问权限 %>
<!--#include file="admin_dn.asp" -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>:::管理页面:::</title>
<link href="css.css" rel="stylesheet" type="text/css">
<% 
bh=Trim(Request.QueryString("bh"))

sql="select * from host_shop where bh="&bh 

 if Trim(Request.QueryString("w"))="edit" then
  rs.open sql,conn,2,3
 if rs.eof then
   Response.Write("对不起，此订单不存在或是订单出错")
   response.end
  end if
   rs("mc")=Trim(Request.Form("mc"))
   rs("nx")=Trim(Request.Form("nx"))
   rs("iis_id")=Trim(Request.Form("iis_id"))
   rs("dat")=Trim(Request.Form("dat"))
   rs("dns")=Trim(Request.Form("dns"))
   rs("ftp")=Trim(Request.Form("ftp"))
   rs("ftp_password")=Trim(Request.Form("ftp_password"))
   rs("ftp_host")=Trim(Request.Form("ftp_host"))
   rs("ftp_path")=Trim(Request.Form("ftp_path"))
   rs("web_ip")=Trim(Request.Form("web_ip"))
   rs("iis_UserName")=Trim(Request.Form("iis_UserName"))
   rs("iis_Password")=Trim(Request.Form("iis_Password"))
  if Trim(Request.Form("ftp_auto"))="1" then
   rs("ftp_auto")=true
  else
  rs("ftp_auto")=false
  end if
   rs.update
   rs.close
end if

  
 rs.open sql,conn,1,1
  if not rs.eof then
   userid=rs("userid")
   iis_id=rs("iis_id")
   mc=rs("mc")
   ftp=rs("ftp")
   ftp_password=rs("ftp_password")
   dns=rs("dns")
   nx=rs("nx")
   ftp_auto=rs("ftp_auto")
   ftp_host=rs("ftp_host")
   ftp_path=rs("ftp_path")
   web_ip=rs("web_ip")
   iis_UserName=rs("iis_UserName")
   iis_Password=rs("iis_Password")
   dat=rs("dat")
  else
   Response.Write("对不起，此订单不存在或是订单出错")
   response.end
  end if


 %>
</head>

<body leftmargin="0" topmargin="0">
<p><strong><font color="#006600">订单修改</font></strong></p>
<p><strong><font color="#006600">　　</font></strong></p>
<form name="form1" method="post" action="adm_host_edit.asp?bh=<%=bh%>&w=edit">
  <table width="83%" height="368" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC" bordercolorlight="" bordercolordark="ffffff"
>
    <tr> 
      <td width="28%" bgcolor="#F3F3F3">订 单 号:</td>
      <td colspan="2"><font color="#990000"><strong><%= bh %> </strong></font></td>
    </tr>
    <tr> 
      <td bgcolor="#F3F3F3">所属用户:</td>
      <td colspan="2"><font color="#990000"><strong><%= userid %> </strong></font></td>
    </tr>
    <tr> 
      <td bgcolor="#F3F3F3">产品类别:</td>
      <td width="17%"><font color="#990000"><strong> 虚拟主机</strong></font> </td>
      <td width="55%">&nbsp;<a href="adm_7_bh.asp?bh=<%=bh%>"> 
        <strong>-修改详细资料- </strong></a></td>
    </tr>
    <tr> 
      <td bgcolor="#F3F3F3">产品名称:</td>
      <td colspan="2"> <input name="mc" type="text" id="mc" value="<%=mc%>"></td>
    </tr>
    <tr>
      <td height="24" bgcolor="#F3F3F3">在iis中的class号:</td>
      <td colspan="2"><input name="iis_id" type="text" id="nx3" value="<%=iis_id%>" size="2">
        这里为此目录在iis中的唯一编号.</td>
    </tr>
    <tr> 
      <td height="24" bgcolor="#F3F3F3">Ftp名字:</td>
      <td colspan="2"><input name="ftp" type="text" id="ftp" value="<%=ftp%>" size="10"></td>
    </tr>
    <tr> 
      <td bgcolor="#F3F3F3">Ftp密码:</td>
      <td colspan="2"> <input name="ftp_password" type="text" id="ftp_password" value="<%=ftp_password%>" size="10"> 
      </td>
    </tr>
    <tr> 
      <td bgcolor="#F3F3F3">邦定域名:</td>
      <td colspan="2"><input name="dns" type="text" id="dns" value="<%=dns%>" size="10"></td>
    </tr>
    <tr> 
      <td bgcolor="#F3F3F3">注册年限:</td>
      <td colspan="2"><input name="nx" type="text" id="nx" value="<%=nx%>" size="5"> 
      </td>
    </tr>
    <tr> 
      <td bgcolor="#F3F3F3">是否支持在线开通:</td>
      <td colspan="2"> <select name="ftp_auto" id="ftp_auto">
          <% sel1=""
		  sel2=""
		   if ftp_auto then 
		   sel1="selected"
		   else
		   sel2="selected" 
		   end if%>
          <option value="1" <%= sel1 %>>是</option>
          <option value="2" <%= sel2 %>>否</option>
        </select></td>
    </tr>
    <tr> 
      <td bgcolor="#F3F3F3">空间大小:</td>
      <td colspan="2"><input name="ftp_host" type="text" id="ftp_host" value="<%=ftp_host%>" size="5">
        M </td>
    </tr>
    <tr> 
      <td height="30" bgcolor="#F3F3F3">新建ftp的目录:</td>
      <td colspan="2"> <strong> 
        <input name="ftp_path" type="text" id="ftp_path" value="<%=ftp_path%>" size="15">
        </strong></td>
    </tr>
    <tr> 
      <td bgcolor="#F3F3F3">服务器绑定ip:</td>
      <td colspan="2"><strong> 
        <input name="web_ip" type="text" id="web_ip" value="<%=web_ip%>" size="15">
        </strong> </td>
    </tr>
    <tr> 
      <td bgcolor="#F3F3F3">iis访问用户名:</td>
      <td colspan="2"><input name="iis_UserName" type="text" id="iis_UserName" value="<%=iis_UserName%>"></td>
    </tr>
    <tr> 
      <td bgcolor="#F3F3F3">iis访问密码:</td>
      <td colspan="2"> <input name="iis_Password" type="text" id="iis_Password" value="<%=iis_Password%>"></td>
    </tr>
    <tr> 
      <td bgcolor="#F3F3F3">订购日期:</td>
      <td colspan="2"><strong> 
        <input name="dat" type="text" id="dat" value="<%=dat%>" size="15">
        </strong></td>
    </tr>
    <tr> 
      <td bgcolor="#F3F3F3">&nbsp;</td>
      <td colspan="2"><input type="submit" name="Submit" value="-更新-"></td>
    </tr>
  </table>
  <p><font color="#FF0000">　　注：</font>这里修改的只是用户购物车的内容。没有对产品进行修改.</p>
</form>
</body>
</html>
