<%@ Language=VBScript %>
<!--#include virtual="/inc-freehost-function/FreeHostFunction.asp"-->
<!--#include virtual="/inc-freehost-function/FreeHostFunctionMain.asp"-->
<%
id=session("DNSAUID")
If session("DNSAUID")="" Then
	ef=True
	ec="授权非法，请您先登陆。"
ElseIf not IsNumeric(id)  Then
	ef=True
	ec="ID应该是数字！"
end if

if not ef then
Set conn=Server.CreateObject("ADODB.Connection")
	conn.Open Application("FreeHostDBlink")
	Set dsdom = Server.CreateObject("ADODB.Recordset")	
		Sql="Select * from FreeHost.FreeHost_Product_Domain where id='"&id&"'"
			if Instr(1,sql, ";", 1)>0 or Instr(1,sql, "--", 1)>0 then
outcon="非法字符！"
Response.End
end if
	dsdom.Open Sql,conn,1,3
if dsdom.Eof then
	ef=True
	ec="不存在的域名！"
end if
end if

if not ef Then
Dim enc
Enddomaintypeid=GetDomaintype(dsdom("Domain"))
uname1=dsdom("uname1")
uname2=dsdom("uname2")
uname3=dsdom("uname3")
uname4=dsdom("uname4")
rname1=dsdom("rname1")
rname2=dsdom("rname2")
ust=dsdom("ust")
uprov=dsdom("uprov")
ucity1=dsdom("ucity1")
ucity2=dsdom("ucity2")
uaddr1=dsdom("uaddr1")
uaddr2=dsdom("uaddr2")
location=dsdom("location")
uzip=dsdom("uzip")
utelc=dsdom("utelc")
utela=dsdom("utela")
uteln=dsdom("uteln")
utele=dsdom("utele")
ufaxc=dsdom("ufaxc")
ufaxa=dsdom("ufaxa")
ufaxn=dsdom("ufaxn")
ufaxe=dsdom("ufaxe")
uemail=dsdom("uemail")
aname1=dsdom("aname1")
aname2=dsdom("aname2")
atelc=dsdom("atelc")
atela=dsdom("atela")
ateln=dsdom("ateln")
atele=dsdom("atele")
afaxc=dsdom("afaxc")
afaxa=dsdom("afaxa")
afaxn=dsdom("afaxn")
afaxe=dsdom("afaxe")
aemail=dsdom("aemail")
dns1=dsdom("dns1")
dns2=dsdom("dns2")
period=dsdom("years")
end if


If Not ef Then%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>Mydns</title>
<style type="text/css">
<!--
.tableborder {
	BORDER-RIGHT: #345487 1px solid; PADDING-RIGHT: 0px; BORDER-TOP: #345487 1px solid; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; BORDER-LEFT: #345487 1px solid; WIDTH: 98%; PADDING-TOP: 0px; BORDER-BOTTOM: #345487 1px solid; BACKGROUND-COLOR: #fff
}
p9,body,td,p,br {  font-size: 9pt}
A:visited {	TEXT-DECORATION: none;color: #666666;}
A:hover { TEXT-DECORATION: none;color: #666666;}
A:link {
	TEXT-DECORATION: none;
	color: #666666;
}
.inp {height: 20px;width:100px}
.inp2 {height: 20px;width:50px}
-->
</style>
</head>
<BODY text=#000000 bgColor=#FFFFFF leftmargin="0" topmargin="0" bottommargin="0" rightmargin="0" marginwidth="0" marginheight="0"><br>
<br>
<br>
<br>

<form method="POST" action="default-sub.asp" name="domainform">
              <table border="0" cellspacing="0" cellpadding="1" bgcolor="#993300" align="center" width="630">
                <tr>
                  <td><table border="0" cellspacing="1" cellpadding="3" width="630">

                     
                      <tr>
                        <td bgcolor="#FF6600" width="30%"><font color="#FFFFFF">修改注册人相关信息</td>
                        <td bgcolor="#FFFFFF">　</td>
                      </tr>
                      <tr bgcolor="#FFCC66">
                        <td width="30%" bgcolor="#FFCC66"> 2.2 单位名称：（中文）<br>            </td>
                        <td bgcolor="#FFFFFF">
                          　<%=uname1%>
(不能更改)                      
                      </tr>
                      <tr>
                        <td width="30%" bgcolor="#FFCC66"> 2.3 单位名称：（英文）<br>            </td>
                        <td bgcolor="#FFFFFF">
                          　<%=uname2%>
                          (不能更改) </td>
                      </tr>
                      <tr>
                        <td bgcolor="#FFCC66">2.6 管理人：（中文）</td>
                        <td bgcolor="#FFFFFF"><input name="rname1" type="text" id="rname1" value="<%=rname1%>" size="20">
    如：王三四</td>
                      </tr>
                      <tr>
                        <td bgcolor="#FFCC66">2.7 管理人：（英文）<br>
    英文的姓和名之间必须有空格间隔</td>
                        <td bgcolor="#FFFFFF"><input name="rname2" type="text" id="rname2" value="<%=rname2%>" size="20">
    如：Wang ShanShi</td>
                      </tr>
                      <tr>
                        <td width="30%" bgcolor="#FFCC66">2.8 省份：</td>
                        <td bgcolor="#FFFFFF">
                          <input name="ust" type="hidden" id="ust" value="CN">
                          <select name="uprov" size="1">
                            <option value="Beijing">请选择</option>
                            <option value="Beijing" <%if uprov="Beijing" then%>selected<%end if%>>北京</option>
                            <option value="Hongkong" <%if uprov="Hongkong" then%>selected<%end if%>>香港</option>
                            <option value="Aomen" <%if uprov="Aomen" then%>selected<%end if%>>澳门</option>
                            <option value="Taiwan" <%if uprov="Taiwan" then%>selected<%end if%>>台湾</option>
                            <option value="Shanghai" <%if uprov="Shanghai" then%>selected<%end if%>>上海</option>
                            <option value="Guangdong" <%if uprov="Guangdong" then%>selected<%end if%>>广东</option>
                            <option value="Shandong" <%if uprov="Shandong" then%>selected<%end if%>>山东</option>
                            <option value="Sichuan" <%if uprov="Sichuan" then%>selected<%end if%>>四川</option>
                            <option value="Fujian" <%if uprov="Fujian" then%>selected<%end if%>>福建</option>
                            <option value="Jiangsu" <%if uprov="Jiangsu" then%>selected<%end if%>>江苏</option>
                            <option value="Zhejiang" <%if uprov="Zhejiang" then%>selected<%end if%>>浙江</option>
                            <option value="Tianjin" <%if uprov="Tianjin" then%>selected<%end if%>>天津</option>
                            <option value="Chongqing" <%if uprov="Chongqing" then%>selected<%end if%>>重庆</option>
                            <option value="Hebei" <%if uprov="Hebei" then%>selected<%end if%>>河北</option>
                            <option value="Henan" <%if uprov="Henan" then%>selected<%end if%>>河南</option>
                            <option value="Heilongjiang" <%if uprov="Heilongjiang" then%>selected<%end if%>>黑龙江</option>
                            <option value="Jinlin" <%if uprov="Jinlin" then%>selected<%end if%>>吉林</option>
                            <option value="Liaoning" <%if uprov="Liaoning" then%>selected<%end if%>>辽宁</option>
                            <option value="Neimenggu" <%if uprov="Neimenggu" then%>selected<%end if%>>内蒙古</option>
                            <option value="Hainan" <%if uprov="Hainan" then%>selected<%end if%>>海南</option>
                            <option value="Shanxi" <%if uprov="Shanxi" then%>selected<%end if%>>山西</option>
                            <option value="Shanxi3" <%if uprov="Shanxi3" then%>selected<%end if%>>陕西</option>
                            <option value="Anhui" <%if uprov="Anhui" then%>selected<%end if%>>安徽</option>
                            <option value="Jiangxi" <%if uprov="Jiangxi" then%>selected<%end if%>>江西</option>
                            <option value="Gansu" <%if uprov="Gansu" then%>selected<%end if%>>甘肃</option>
                            <option value="Xinjiang" <%if uprov="Xinjiang" then%>selected<%end if%>>新疆</option>
                            <option value="Hubei" <%if uprov="Hubei" then%>selected<%end if%>>湖北</option>
                            <option value="Hunan" <%if uprov="Hunan" then%>selected<%end if%>>湖南</option>
                            <option value="Yunnan" <%if uprov="Yunnan" then%>selected<%end if%>>云南</option>
                            <option value="Guangxi" <%if uprov="Guangxi" then%>selected<%end if%>>广西</option>
                            <option value="Ningxia" <%if uprov="Ningxia" then%>selected<%end if%>>宁夏</option>
                            <option value="Guizhou" <%if uprov="Guizhou" then%>selected<%end if%>>贵州</option>
                            <option value="Qinghai" <%if uprov="Qinghai" then%>selected<%end if%>>青海</option>
                            <option value="Xizang" <%if uprov="Xizang" then%>selected<%end if%>>西藏</option>
                          </select>
                        </td>
                      </tr>
                      <tr>
                        <td width="30%" bgcolor="#FFCC66">2.9 城市：（中文）</td>
                        <td bgcolor="#FFFFFF">
                          <input name="ucity1" id="ucity1" value="<%=ucity1%>" size="20" maxlength="20">
                          如：广州
                        </td>
                      </tr>
                      <tr>
                        <td width="30%" bgcolor="#FFCC66">2.10 城市：（英文）</td>
                        <td bgcolor="#FFFFFF">
                          <input name="ucity2" id="ucity2" value="<%=ucity2%>" size="20" maxlength="30">
                        如：GuangZhou</td>
                      </tr>
                      <tr>
                        <td width="30%" bgcolor="#FFCC66">2.11 街道地址：（中文）</td>
                        <td bgcolor="#FFFFFF">
                          <input name="uaddr1" id="uaddr1" value="<%=uaddr1%>" size="40" maxlength="100">
                        如：X区X路X号                        </td>
                      </tr>
                      <tr>
                        <td width="30%" bgcolor="#FFCC66">2.12 街道地址：（英文）</td>
                        <td bgcolor="#FFFFFF">
                          <input name="uaddr2" id="uaddr2" value="<%=uaddr2%>" size="40" maxlength="120">
                        如：Star Street                        </td>
                      </tr>
                      <tr>
                        <td width="30%" bgcolor="#FFCC66">2.14 邮政编码：</td>
                        <td bgcolor="#FFFFFF">
                          <input name="uzip" id="uzip" value="<%=uzip%>" size="10" maxlength="8">
                        如：100000                        </td>
                      </tr>
					  
					  <tr>
                        <td width="30%" bgcolor="#FFCC66">3.11 电话：</td>
                        <td bgcolor="#FFFFFF">
                          <input name="utelc" id="utelc" value="86" size="5" maxlength="7" readonly="true">
                          <b>-</b>
                          <input name="utela" id="utela" value="<%=utela%>" size="4" maxlength="4">
                          <b>-</b>
                          <input name="uteln" id="uteln" value="<%=uteln%>" size="15" maxlength="15">
                          <br>
            国家区号 - 地区区号 -电话号码</td>
                      </tr>
                      <tr>
                        <td width="30%" bgcolor="#FFCC66">3.12 传真：</td>
                        <td bgcolor="#FFFFFF">
                          <input name="ufaxc" id="ufaxc" value="86" size="5" maxlength="7" readonly="true">
                          <b>-</b>
                          <input name="ufaxa" id="ufaxa" value="<%=ufaxa%>" size="4" maxlength="4">
                          <b>-</b>
                          <input name="ufaxn" id="ufaxn" value="<%=ufaxn%>" size="15" maxlength="15">
                          <br>
            国家区号 - 地区区号 -传真号码</td>
                      </tr>
                      <tr>
                        <td width="30%" bgcolor="#FFCC66">3.13 电子邮件：</td>
                        <td bgcolor="#FFFFFF">
                          <input name="uemail" id="uemail" value="<%=uemail%>" size="40" maxlength="40">
                        </td>
                      </tr>
<!--				
                      <tr>
                        <td bgcolor="#FF6600" width="30%"><font color="#FFFFFF" size="2">4. 域名服务器</td>
                        <td bgcolor="#FFFFFF"> </td>
                      </tr>
  
                      <tr>
                        <td width="30%" bgcolor="#FFCC66">4.1 主域名服务器名字：</td>
                        <td bgcolor="#FFFFFF">
<input name="dns1" type="text" id="dns1" value="<%=dns1%>" size="30" maxlength="40">
                        </td>
                      </tr>
                      <tr>
                        <td width="30%" bgcolor="#FFCC66">4.5 辅域名服务器名字：</td>
                        <td bgcolor="#FFFFFF"> 
<input name="dns2" type="text" id="dns1" value="<%=dns2%>" size="30" maxlength="40">
                        </td>
                      </tr>
-->					  
                      <tr>
                        <td colspan="2" bgcolor="#FFFFFF" align="center">                          <br>
                          <br>
<input type="hidden" name="usercanselectapi" value="<%=Domain_API%>">　
<input type="submit" name="B1" value="保存">
<br>
                        <br></td>
                      </tr>
                  </table></td>
                </tr>
  </table>
              <br>
              <br>
              <br>
</form>
</body>
</html>
<%
response.end
End if

if ef then
Response.Redirect "e.asp?e="&ec
end if%>