<!--#include virtual="/incs/config.asp" -->
<!--#include virtual="/incs/web_top.asp"-->
      <%
chk_log_usr()
	hnme=SafeRequest("hnme")
	If hnme="" Then
	call errorpage(-2,"对不起，参数错误！")
	End If
    query="select * from v_hstlst where h_unme='"&session("usrname")&"'  and h_ftpusr ='"&hnme&"'"
	rs.open query,conn,1,1
    if rs.recordcount<>1 then
	rs.close
	call errorpage(-2,"对不起，该主机不存在或者您无权操作！")
	end if
u_nme=trim(rs("h_unme"))

%>
      <%          hostname=trim(rs("h_ftpusr"))
                h_maxdns=cint(rs("h_maxdns"))
			    freedomain = rs("h_ftpusr")&"."&rs("h_svrnme") 
			    proid=trim(rs("h_prd"))
h_sst=rs("g_sst")
		%>
      <script language=javascript>
		function expl()
		{
		if (identity.style.display=="none")
		identity.style.display="block";
		else
		identity.style.display="none";
		}
		</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/hst_mng/hst_lst.asp">网站空间管理</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><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="hst_lst.asp?querytype=8"><font color="#000000">今天新开通</font></a> 
                        <font color="#000000">|</font> <a href="hst_lst.asp?querytype=9"><font color="#000000">本周新开通</font></a> 
                        <font color="#000000">|</font> <a href="hst_lst.asp?querytype=10"><font color="#000000">本周到期</font></a> 
                        <font color="#000000">| </font><a href="hst_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 height="14" width="100%" valign="top"> 
                              <table  cellpadding="0" cellspacing="0" >
                                <tr> 
                                  <td height=1></td>
                                </tr>
                              </table>
                              <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">运行状态</font></b>&nbsp;<a href="http://<%= freedomain %>" target=_blank><font color="#FFFFFF"><%= freedomain %></font></a> 
                                    </div>
                                  </td>
                                </tr>
                                <tr bgcolor="#FFFFFF"> 
                                  <td height="22" bgcolor="#FFFFFF" width="25%"> 
                                    <div align="center">产品名称：</div>
                                  </td>
                                  <td colspan="2"> 
                                    <%
								  query="select top 1 g_nme from pdtlst where g_prd='"&trim(rs("h_prd"))&"'"
								  rs1.open query,conn,1,1
								  if not rs1.eof then
								  response.write trim(rs1("g_nme"))
								  end if
								  rs1.close
								  %>
                                  </td>
                                </tr>
                                <tr bgcolor="#FFFFFF"> 
                                  <td height="22" bgcolor="#FFFFFF"> 
                                    <div align="center">主机空间：</div>
                                  </td>
                                  <td colspan="2"> <%=clng(rs("h_sze"))+clng(rs("h_szeadd"))%> 
                                    M &nbsp;&nbsp; 
                                    <input type="button" name="Submit3" value="查看空间使用情况" class=dud_button1  onClick="javascript:location.href='hst_sze.asp?hnme=<%=hnme%>';"   <%=startstr%>  style="cursor:hand;">
                                  </td>
                                </tr>
                                <form action="hst_mng.asp" method =post name= webcontrol>
                                  <tr bgcolor="#FFFFFF"> 
                                    <td height="22" bgcolor="#FFFFFF"> 
                                      <div align="center">WEB 状态：</div>
                                    </td>
                                    <td colspan="2"> 
                                      <%
if rs("h_regstt")=1 then
statestring="启动"
startstr="disabled=1"
stopstr=" "
elseif rs("h_regstt")=2 then
statestring="暂停"
startstr=" "
stopstr=" disabled=1"
elseif rs("h_regstt")=5 then
statestring="被停止"
startstr="disabled=1"
stopstr=" disabled=1"
elseif rs("h_regstt")=4 then
statestring="被删除"
startstr="disabled=1"
stopstr=" disabled=1"
end if 
%>
                                      <input type="button" name="Submit" value="启动 WEB" class=dud_button1  onClick="javascript:document.webcontrol.hst_regstt.value=1;document.webcontrol.submit();"   <%=startstr%>  style="cursor:hand;">
                                      <input type="button" name="Submit2" value="暂停 WEB" class=dud_button1 onClick="javascript:document.webcontrol.hst_regstt.value=2;document.webcontrol.submit();"  <%=stopstr%>  style="cursor:hand;">
                                      （当前WEB 已经 <font color=#ff0000><%=statestring%></font>） 
                                      <input type=hidden name="hostname" value="<%=hostname%>" >
                                      <input type=hidden name="hst_regstt" value="" >
                                      <input type=hidden name="oldstatus" value="<%=RS("h_regstt")%>" >
                                      <input type=hidden name=module value="hst_regstt">
                                    </td>
                                  </tr>
                                </form>
                                <%
if rs("h_ftpstt")=1 then
statestring="启动"
startstr="disabled=1"
stopstr=" "
elseif rs("h_ftpstt")=2 then
statestring="暂停"
startstr=" "
stopstr=" disabled=1"
elseif rs("h_ftpstt")=5 then
statestring="被停止"
startstr="disabled=1"
stopstr=" disabled=1"
end if 
%>
                                <form action="hst_mng.asp" method =post name= ftpcontrol>
                                  <tr bgcolor="#FFFFFF"> 
                                    <td height="22" bgcolor="#FFFFFF"> 
                                      <div align="center">FTP 状态：</div>
                                    </td>
                                    <td colspan="2"> 
                                      <input type="button" name="Submit4" value="启动 FTP" class=dud_button1  onClick="javascript:document.ftpcontrol.hst_ftpstt.value=1;document.ftpcontrol.submit();"   <%=startstr%>  style="cursor:hand;">
                                      <input type="button" name="Submit22" value="暂停 FTP" class=dud_button1 onClick="javascript:document.ftpcontrol.hst_ftpstt.value=2;document.ftpcontrol.submit();"  <%=stopstr%>  style="cursor:hand;">
                                      （当前FTP 已经 <font color=#ff0000><%=statestring%></font>） 
                                      <input type=hidden name="hostname" value="<%=hostname%>" >
                                      <input type=hidden name="hst_ftpstt" value="" >
                                      <input type=hidden name=module value="hst_ftpstt">
                                    </td>
                                  </tr>
                                  <tr bgcolor="#FFFFFF"> 
                                    <td height="22" bgcolor="#FFFFFF"> 
                                      <div align="center">备案编号：</div>
                                    </td>
                                    <td colspan="2"> <% if trim(rs("h_icpstt"))="0" then 
						%><input type="button" name="Submit3" value="备案" class=dud_button1 onclick="javascript:location.href='hst_icp.asp?hnme=<%=rs("h_ftpusr")%>';"><%
						else
						response.write rs("h_icp")
						end if %></td>
                                  </tr>
                                </form>
                                <tr bgcolor="#FFFFFF"> 
                                  <td height="22" bgcolor="#FFFFFF"> 
                                    <div align="center">购买日期：</div>
                                  </td>
                                  <td colspan="2"> <%= rs("h_addtme") %></td>
                                </tr>
                                <tr bgcolor="#FFFFFF"> 
                                  <td height="22" bgcolor="#FFFFFF"> 
                                    <div align="center">到期日期：</div>
                                  </td>
                                  <td colspan="2"> 
                                    <%
						If RS("h_regtpe")=1 and rs("h_regstt")<>0 Then
							Response.Write 	""& rs("h_exptme") &""
						  else
							Response.Write "下定单申请状态或试用状态,尚未正式购买"
						End If
				  %>
                                  </td>
                              </table>
                            </td>
                          </tr>
                          <tr> 
                            <td> 
                              <table width="100%" border="0" cellspacing="0" cellpadding="0"  id=identity>
                                <tr> 
                                  <td>&nbsp;</td>
                                </tr>
                                <tr> 
                                  <td> 
                                    <table align="center" width="100%" bgcolor="#666666" cellpadding="4" cellspacing="1" border="0">
                                      <tr align="middle" bgcolor="#8b8b8b" bordercolordark="#FFFFFF"> 
                                        <td colspan="3" height="22"> 
                                          <div align="center"><b><font color="#FFFFFF">订单信息</font></b></div>
                                        </td>
                                      </tr>
                                      <tr bgcolor="#FFFFFF"> 
                                        <td height="22" width="25%"> 
                                          <div align="center" style="display:block;">单位名称：</div>
                                        </td>
                                        <td colspan="2"><%=rs("h_copnme_cn")%></td>
                                      </tr>
                                      <tr bgcolor="#FFFFFF"> 
                                        <td height="22"> 
                                          <div align="center">联系人：</div>
                                        </td>
                                        <td colspan="2"><%=rs("h_ctt_cn")%></td>
                                      </tr>
                                      <tr bgcolor="#FFFFFF"> 
                                        <td height="22"> 
                                          <div align="center">联系地址：</div>
                                        </td>
                                        <td colspan="2"><%=rs("h_adr_cn")%></td>
                                      </tr>
                                      <tr bgcolor="#FFFFFF"> 
                                        <td height="22"> 
                                          <div align="center">邮政编码：</div>
                                        </td>
                                        <td colspan="2"><%=rs("h_cde")%></td>
                                      </tr>
                                      <tr bgcolor="#FFFFFF"> 
                                        <td height="22"> 
                                          <div align="center">联系电话：</div>
                                        </td>
                                        <td colspan="2"><%=rs("h_tel")%></td>
                                      </tr>
                                      <tr bgcolor="#FFFFFF"> 
                                        <td height="22"> 
                                          <div align="center">传真：</div>
                                        </td>
                                        <td colspan="2"><%=rs("h_fax")%></td>
                                      </tr>
                                      <tr bgcolor="#FFFFFF"> 
                                        <td height="22"> 
                                          <div align="center">电子邮件：</div>
                                        </td>
                                        <td colspan="2"><%=rs("h_eml")%></td>
                                      </tr>
                                    </table>
                                  </td>
                                </tr>
                              </table>
                            </td>
                          </tr>
                          <tr> 
                            <td height="163"  valign="top"> <br>
                              <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">上传帐号</font></b></div>
                                  </td>
                                </tr>
                                <tr align="middle" bgcolor="#ffffff"> 
                                  <td height="22"  align=center width="25%">FTP服务器：</td>
                                  <td height="27" ><%=rs("h_svrip")%></td>
                                  <td height="27" width="20%">&nbsp;</td>
                                </tr>
                                <tr> 
                                  <td bgcolor="#FFFFFF" height="22"> 
                                    <div align="center">FTP用户名：</div>
                                  </td>
                                  <%

wstr=getpassoutcode(rs("h_ftppss"))
						  %>
                                  <td bgcolor="#FFFFFF" height="27"><%=rs("h_ftpusr")%></td>
                                  <td bgcolor="#FFFFFF">&nbsp;<a href="ftp://<%=rs("h_ftpusr")%>:<%=wstr%>@<%=rs("h_svrip")%>" target="_blank">上传</a></td>
                                </tr>
                                <form action="hst_mng.asp" method=post>
                                  <tr> 
                                    <td bgcolor="#FFFFFF" height="22" align="center"> 
                                      FTP密&nbsp; 码： </td>
                                    <td bgcolor="#FFFFFF" height="27"> 
                                      <input class="input" name="h_ftppss" size="30" value="<%=wstr%>" maxlength="17">
                                    </td>
                                    <td bgcolor="#FFFFFF"> 
                                      <input name="Clear" type="submit" value="修改"  class=dud_button1>
                                      <input type=hidden name="hostname" value="<%=hostname%>" >
                                      <input type=hidden name=module value=hst_ftppss>
                                    </td>
                                  </tr>
                                </form>
                                <tr> 
                                  <td bgcolor="#FFFFFF" height="22">&nbsp;</td>
                                  <td bgcolor="#FFFFFF" colspan="2" height="27">修改FTP密码后,新密码立即生效,请妥善保管您的密码,切勿告诉他人。</td>
                                </tr>
                                <tr> 
                                  <td bgcolor="#FFFFFF" height="22">&nbsp;</td>
                                  <td bgcolor="#FFFFFF" colspan="2" height="27">文件上传推荐使用cuteFtp或leapFtp，文件传至wwwroot目录下。</td>
                                </tr>
                              </table>
                            </td>
                          </tr>
                          <tr> 
                            <td height="122" width="98%" valign="top"> <br>
                              <table align="center" border="0" cellpadding="4" cellspacing="1" width="100%" bordercolordark="#FFFFFF" bgcolor="#666666">
                                <tr bgcolor="#8b8b8b"> 
                                  <td height="22" colspan="3"> 
                                    <div align=center><b><font color="#FFFFFF">绑定域名</font></b></div>
                                  </td>
                                </tr>
                                <%
								SerBindArray=split(rs("h_dme"),",")
								bindmax=Ubound(SerBindArray)
								For i= 0 To bindmax
							%>
                                <form action="hst_mng.asp" method="post">
                                  <tr align="middle" bgcolor="#ffffff"> 
                                    <td width="25%" height="22" > 
                                      <p align="center"><%= i+1 %> 
                                    </td>
                                    <td  width="300"   > <a href="http://<%=SerBindArray(i)%>" target=_blank><%= SerBindArray(i)%> 
                                      </a> 
                                      <input type=hidden name="hst_dme_del" value="<%= SerBindArray(i)%>">
                                    </td>
                                    <td width="20%" align=left> 
                                      <input type=submit  name="image" class=dud_button1 value="删除" >
                                      <input type=hidden name="hostname" value="<%=hostname%>" >
                                      <input type=hidden name="module" value="hst_dmedel">
                                    </td>
                                  </tr>
                                </form>
                                <%
								Next
							If bindmax+1<h_maxdns Then
						%>
                                <form name=AddNewBindings action="hst_mng.asp" method=post>
                                  <tr bgcolor="#FFFFFF"> 
                                    <td height="22" colspan="3"> 
                                      <div align=center>加新域名: 
                                        <input name=h_dme_new size="12">
                                        <input type=hidden name="hostname" value="<%=hostname%>" >
                                        <input type=hidden name="module" value="hst_dmeadd">
                                        <input name="sxss" type="submit" value="确定"  class=dud_button1>
                                      </div>
                                    </td>
                                  </tr>
                                </form>
                                <%
							End If
						%>
                                <tr> 
                                  <td bgcolor="#FFFFFF" height="22" width="25%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                                  <td bgcolor="#FFFFFF" height="60" colspan="2" style="line-height:150%">主机一经申请立即生效，系统将自动分配一个三级域名。<br>
                                    您可以自己绑定独立域名。注意域名IP指向为: <font color=#ff0000><%= rs("h_svrip") %></font></td>
                                </tr>
                              </table>
                            </td>
                          </tr>
                          <tr> 
                            <td height="70" width="98%" valign="top"> <br>
                              <table align="center" border="0" cellpadding="4" cellspacing="1" width="100%" bordercolordark="#FFFFFF" bgcolor="#666666">
                                <tr bgcolor="#8b8b8b"> 
                                  <td height="22" colspan="3"> 
                                    <div align=center><b><font color="#FFFFFF">默认首页</font></b></div>
                                  </td>
                                </tr>
                                <form name=AddNewBindings action="hst_mng.asp" method=post>
                                  <tr> 
                                    <td  bgcolor="#FFFFFF" height="22" colspan="3"> 
                                      <div align=center>加新文档: 
                                        <input name=hst_dftdoc_edt size="50" value="<%=trim(rs("h_dftdoc"))%>">
                                        <input type=hidden name="hostname" value="<%=hostname%>" >
                                        <input type=hidden name="module" value="hst_dftdocedt">
                                        <input name="sxs" type="submit" value="确定"  class=dud_button1 
										<% if h_sst=2 then
										response.write " disabled=1" 
										end if
										 %>
										>
                                      </div>
                                    </td>
                                  </tr>
                                  <tr> 
                                    <td bgcolor="#FFFFFF" height="22" width="25%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                                    <td bgcolor="#FFFFFF" height="60" colspan="2" style="line-height:150%">当在浏览器输入网页路径而没有指定具体文件名时，系统将按照所设置的默认文档查找网页。例如：输入http://www.domain.com/，系统就将在所设置的默认文档中从左到右搜索存在的网页并加以显示。</td>
                                  </tr>
                                </form>
                              </table>
                            </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                    <%
rs.close
%>
                    <tr> 
                      <td height="4" width="99%" valign="top" bgcolor="#FFFFFF" >&nbsp;</td>
                    </tr>
                  </table>
                  <br>
                  <br>
                  <%
Function showstatus(regstt,regtpe,exptme)
if cdate(exptme)-date()<0 then
regstt=20
elseif cdate(exptme)-date()<7 and regtpe<>0 then
regstt=19
elseif cdate(exptme)-date()<30 and regtpe<>0 then
regstt=18
end if
regtpe_str=right("000"&cstr(regtpe),2)
regstt_str=right("000"&cstr(regstt),2)
gifstr=regtpe_str&regstt_str&".gif"
showstatus="<img src=/icons/"&gifstr&">"   

End Function
%>
                  <%
Sub SHOWSELECT(regstt,regtpe)
if  regtpe=0 then
stt_str="(试用)"
elseif regtpe=5 then
stt_str="(赠送)"
else
stt_str="(正式)"
end if
%>
                  <select name=hst_regstt>
                    <option <%If regstt=1 Then Response.Write " selected value=x" %> value=1 >运行中<%=stt_str%></option>
                    <option <%If regstt=2 Then Response.Write " selected value=x" %> value=2 >暂停中<%=stt_str%></option>
                    <option <%If regstt=5 Then Response.Write " selected value=x" %> value=5>管理员停止<%=stt_str%></option>
                    <option <%If regstt=0 Then Response.Write " selected value=x" %> value=0>未开设<%=stt_str%></option>
                    <option <%If regstt=4 Then Response.Write " selected value=x" %> value=4>已经删除<%=stt_str%></option>
                    <option <%If regstt=3 Then Response.Write " selected value=x" %> value=3>处理中<%=stt_str%></option>
                    <option <%If regstt=17 Then Response.Write " selected value=x" %> value=3>删除A<%=stt_str%></option>
                  </select>
                  <%

End sub
%>
                  <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"-->


