<!--#include file="conn.asp" -->
<!--#include file="inc/usdl.asp" -->
<!--#include file="inc/gl1.asp" -->
<!--#include file="inc/hostconfig.asp" -->
<!--#include file="inc/read_iis.asp" -->
<!--#include file="inc/edit_iis.asp" -->
<% 
dim dns(5),temp_dns(5),s,i,EditBindings()
call gl(Trim(Request.QueryString("bh")))
 us=session("us")
 bh=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
	 iis_id=rs("iis_id")
	 web_ip=rs("web_ip")
	 ftp_name=rs("ftp")
   if iis_id="" or iis_id=0 then
	 Response.Write("对不起!!您的iis参数不正确...")
	 response.end
	end if
  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
  s=0
  for i=1 to 5
    if Trim(Request.Form("dns"&i))<>"" then 
	 s=s+1
	 temp_dns(s)=Trim(Request.Form("dns"&i)) 
	end if
   next
   redim EditBindings(s) 
   for i=1 to s 
   EditBindings(i)=":80:"&temp_dns(i)
   next
   Response.Write  Edit_iis(EditBindings,iis_id)
 
 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%>>>主机管理.</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;管理中心</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="img1/khzx.jpg" width="194" height="75" 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>
            <table width="80%" border="0" align="center">
              <tr> 
                <td height="82" valign="middle" bgcolor="#FFF4E6"> <ul>
                    <li>所谓域名绑定,是指一个主机可以同时用多个域名访问. </li>
                    <li>本款虚拟主机缺省允许绑定5个域名 </li>
                    <li>您必须确保绑定的域名解析到了<font color="#FF0000"><%= web_ip%></font> 
                      <a href="prevpp/dns.asp" target="_blank">［登录域名管理］</a></li>
                    <li>如果您的域名使用的是我们的DNS管理,点击域名解析进行解析。。</li>
                    <li> 否则请联系您的域名管理人自行做域名解析。 </li>
                  </ul>
                  　<font color="#FF0000">★ 注：</font>如果你没有顶级域名你可以利用我们提供的二级域名访问您的空间</td> 
              </tr>
            </table>
            <p>&nbsp;</p>
				<% 
			   NewBindings= read_iis(iis_id)
			   'Response.Write ubound(NewBindings)
			   for i=0 to ubound(NewBindings)		   
			   dns(i)=Split(NewBindings(i),":")(2)
			   next
		       %>
            <form name="form3" method="post" action="user8_host_3.asp?bh=<%=bh%>">
              <table width="473" height="205" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFEFD7" bordercolorlight="" bordercolordark="ffffff">
                <tr bgcolor="#FFF4E6"> 
                  <td height="19" colspan="2"><font color="#FF9900">　☆ 绑定的域名列表  
                    ☆</font></td>
                  <td width="186" height="19">&nbsp;</td>
                </tr>
                <tr> 
                  <td height="18">Ftp用户名:</td>
                  <td colspan="2"><strong><font color="#990000"><%= ftp_name %></font></strong></td>
                </tr>
                <tr>
                  <td height="18">订单编号:</td>
                  <td colspan="2"><strong><font color="#FF0000"><%= bh %>
                    <input name="w" type="hidden" id="w" value="edit">
                    </font></strong></td>
                </tr>
                <tr> 
                  <td width="133" height="18">赠送的子域名:</td>
                  <td colspan="2"><a href=http://<%= dns(0) %> target="_blank">http://<%= dns(0) %></a> 这是由我们公司赠送的子域名</td> 
                </tr>
                <tr> 
                  <td height="18">绑定域名一:</td>
                  <td colspan="2">http://<strong> 
                    <input name="dns1" type="text" id="dns1" value="<%=dns(1)%>">
                    </strong></td>
                </tr>
                <tr> 
                  <td height="18">绑定域名二:</td>
                  <td colspan="2">http://<strong> 
                    <input name="dns2" type="text" id="dns2" value="<%=dns(2)%>">
                    </strong></td>
                </tr>
                <tr> 
                  <td height="18">绑定域名三:</td>
                  <td colspan="2">http://<strong> 
                    <input name="dns3" type="text" id="dns3" value="<%=dns(3)%>">
                    </strong></td>
                </tr>
                <tr> 
                  <td height="22">绑定域名四:</td>
                  <td colspan="2">http://<strong> 
                    <input name="dns4" type="text" id="dns4" value="<%=dns(4)%>">
                    </strong></td>
                </tr>
                <tr> 
                  <td height="18">绑定域名五:</td>
                  <td colspan="2">http://<strong> 
                    <input name="dns5" type="text" id="dns5" value="<%=dns(5)%>">
                    </strong></td>
                </tr>
                <tr> 
                  <td height="24">&nbsp;</td>
                  <td colspan="2"><input type="submit" name="Submit2" value="确 定"></td>
                </tr>
              </table>
              <p><font color="#FF0000">　　注：</font>这里所绑写域名的格试一定要正确，并不能有重复.如果没有请留空</p>
            </form>
            
          </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>





























