<!--#include virtual="/incs/config.asp"-->
<!--#include virtual="/incs/top.asp"-->
<% chk_log()%>
<%
chk_newpwr 4,20,4
spid=SafeRequest("spid")
if not chk_int(spid) then
call errorpage(-2,"对不起，参数错误!")
end if
conn.open constr
query="select * from v_svrpol where sp_id="&spid
rs.open query,conn,1,1
if rs.eof then
call errorpage(-2,"对不起，该服务器不存在！")
end if
  %>
<script language="javascript">
  <!--
  function svrcontrol(actiontype)
  {
  if(confirm("是否确认执行该操作！"))
  document.location.href="pdt_mng.asp?module=svr_reboot&spid=<%=spid%>&actiontype="+actiontype;
  }
  function svccontrol(servicename,actiontype)
  {
  if(confirm("是否确认执行该操作！"))
  document.location.href="pdt_mng.asp?module=svr_svc_reboot&spid=<%=spid%>&servicename="+servicename+"&actiontype="+actiontype;
  }
  //-->
  </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>服务器修改</strong></span></b></font></td>
          <td valign=bottom noWrap align=right 
                        width="75%"> <a href="svr_lst.asp" class=commonface>服务器列表</a> 
            <font color="#000000">|</font> <a href="javascript:showurl('svr_add.asp');" 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>
    </td>
  </tr>
  <tr> 
    <td  colspan=2 valign="top" height="28"><br>
      <table width="75%" border="0" cellspacing="0" cellpadding="10" class=datalist align="center">
        <tbody> 
        <form action=pdt_mng.asp method=post name=theform>
          <tr> 
            <td ><b>基本信息（本功能仅用于定义虚拟主机赠送的三级域名，不支持代理商添加自己的服务器，请在上级服务商的指导下使用本功能）</b></td>
          </tr>
          <tr> 
            <td class=datagroup> 
              <table border="0" align="left" cellpadding="0" cellspacing="0" class="datalist" width="95%">
                <tr> 
                  <td valign="middle" width="18%" nowrap>服务器名称<font color="red">*</font></td>
                  <td valign="middle" align="left" width="10">：</td>
                  <td valign="middle"> 
                    <input disabled=1 id="sp_nme" name="sp_nme" type="text" maxlength="16" size="28" class="normalform" value="<%=rs("sp_nme")%>">
                    由字母数字下划线组成 <input name="sp_ifagt" value="<%=rs("sp_ifagt")%>" type=hidden></td>
                  <td valign="middle">&nbsp; </td>
                </tr>
                
                <tr> 
                  <td valign="middle" nowrap>开设状态<font color="red">*</font></td>
                  <td valign="middle" align="left">：</td>
                  <td valign="middle" colspan="2"> 
                    <select name="sp_stta" disabled=1 class=normalform>
                      <option value="1" <%if cint(rs("sp_stt"))=1 then
					  response.write " selected "
					  end if %>>开设（正常使用中）</option>
                      <option value="2" <%if cint(rs("sp_stt"))=2 then
					  response.write " selected "
					  end if %>>暂停（暂时停止使用）</option>
                      <option value="0" <%if cint(rs("sp_stt"))=0 then
					  response.write " selected "
					  end if %>>封机（不再开设新站）</option>
                    </select><input name="sp_stt" value="<%=rs("sp_stt")%>" type=hidden><input   name="sp_odr" type="hidden"  value="<%=rs("sp_odr")%>">
                  </td>
                </tr>
                
                <tr> 
                  <td valign="middle" nowrap>免费域名后缀<font color="red">*</font></td>
                  <td valign="middle" align="left">：</td>
                  <td valign="middle" colspan="2"> 
                    <input id="sp_odr" name="sp_dme" type="text" maxlength="35" size="28" class="normalform" value="<%=rs("sp_dme")%>">
                    申请主机时免费赠送的三级域名的后缀，如：免费域名后缀填为server.domain.com，而客户申请的主机名为ftpuser，则客户免费得到的三级域名便是ftpuser.<font color="#0000C4">server.domain.com</font></td>
                </tr>
                <tr> 
                  <td valign="middle" nowrap>所属分类<font color="red">*</font></td>
                  <td valign="middle" align="left">：</td>
                  <td valign="middle" colspan="2"> 
                    <select name="sp_tpess" disabled=1>
                      <option value="NULL">未定义</option>
                      <% query="select * from svrtpe order by st_tid"
					rs1.open query,conn,1,1
					while not rs1.eof 
					if rs("sp_tpe")=rs1("st_tid") then
					response.write "<option selected value="&rs1("st_tid")&">"&rs1("st_nme")&"</option>"
					else
					response.write "<option  value="&rs1("st_tid")&">"&rs1("st_nme")&"</option>"
					end if
					rs1.movenext
					wend
					rs1.close
					%>
                    </select><input   name="sp_tpe" type="hidden"  value="<%=rs("sp_tpe")%>">
                  </td>
                </tr>
                <tr> 
                  <td valign="middle" nowrap>其它说明</td>
                  <td valign="middle" align="left">：</td>
                  <td valign="middle" colspan="2"> 
                    <textarea  name="sp_inf" cols="60" class="normalform" rows="3"><%=rs("sp_inf")%></textarea>
                  </td>
                </tr>
              </table>
              <br>
            </td>
          </tr>
          <tr> 
            <td ><b>服务器设置（以下修改将同步所有相同IP的服务器）</b></td>
          </tr>
          <tr> 
            <td class=datagroup> 
              <table border="0" align="left" cellpadding="0" cellspacing="0" class="datalist" width="95%">
                <tr> 
                  <td valign="middle" width="18%" nowrap>互联网IP<font color="red">*</font></td>
                  <td valign="middle" align="left" width="10">：</td>
                  <td valign="middle"> 
                    <input id="sp_ip" name="sp_ipd" disabled=1 type="text" maxlength="15" size="28" class="normalform" value="<%=rs("sp_ip")%>"><input   name="sp_ip" type="hidden"  value="<%=rs("sp_ip")%>">
                  </td>
                </tr>
                <tr> 
                  <td valign="middle" nowrap>所属机房<font color="red">*</font></td>
                  <td valign="middle" align="left">：</td>
                  <td valign="middle"> 
                    <select name="sp_plcss" class=normalform disabled=1>
                      <option value="0" >未定义</option>
                      <%
					query="select * from svrplc order by sc_nme"
				    rs1.open query,conn,1,1
					while not rs1.eof
					response.write "<option value='"&rs1("sc_sid")&"' "
					if rs1("sc_sid")=rs("sp_plc") then
					response.write " selected"
					end if
					response.write ">"&trim(rs1("sc_nme"))&"</option>"
					rs1.movenext
					wend
					rs1.close
					%>
                    </select><input   name="sp_plc" type="hidden"  value="<%=rs("sp_plc")%>">
                  </td>
                </tr>
                <tr> 
                  <td valign="middle" nowrap>操作系统<font color="red">*</font></td>
                  <td valign="middle" align="left">：</td>
                  <td valign="middle"> 
                    <select name="sp_opss" class=normalform disabled=1>
                      <option value="1" <%if cint(rs("sp_op"))=1 then
					  response.write " selected "
					  end if %>>Win2000系统</option>
                      <option value="3" <%if cint(rs("sp_op"))=3 then
					  response.write " selected "
					  end if %>>Win2003系统</option>
                      <option value="2" <%if cint(rs("sp_op"))=2 then
					  response.write " selected "
					  end if %>>Linux系统</option>
                    </select><input   name="sp_op" type="hidden"  value="<%=rs("sp_op")%>">
                  </td>
                </tr>
              </table>
              <br>
              <br>
            </td>
          </tr>
          <tr> 
            <td >&nbsp;</td>
          </tr>
          <tr> 
            <td class=datagroup> 
              <table border="0" align="left" cellpadding="0" cellspacing="0" class="datalist" width="95%">
                <tr> 
                  <td valign="middle" width="18%" nowrap height="30">修改<font color="red"></font></td>
                  <td valign="middle" align="left" width="10">： </td>
                  <td valign="middle" align="left"> 
                    <input type="submit" name="Submit" value="修 改" class=btxx>
                    <input type="reset" name="Submit2" value="重 置" class=btxx>
                    <input type="hidden" name="module" value="svr_edt">
                    <input type="hidden" name="spid" value="<%=spid%>">
                  </td>
                  <td valign="middle" align="left" width="20">&nbsp;</td>
                  <td valign="middle" align="left" width="18％"></td>
                  <td valign="middle" align="left" width="10"></td>
                  <td valign="middle" align="left"> 
                    
                  </td>
                </tr>
              </table>
              <br>
            </td>
          </tr>
        </form>
        <%if rs("sp_op")=3 then %>
        <% end if %>
        </tbody> 
      </table>
      <br>
      <br>
      <br>
      <br>
    </td>
  </tr>
  </tbody> 
</table>
<!--#include virtual="/incs/bottom.asp"-->


