<%@ Page Language="C#" AutoEventWireup="true" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
	<title>域名注册</title>
</head>
<body>

	<script runat="server">
		protected void Submit_Click(object sender, EventArgs e)
		{
			this.Result.Text = Domain.Reg(
				this.DName.Value
				, this.DSuff.Value
				, string.Empty
				, this.Password.Value
				, uint.Parse(this.BuyNum.Value)
				, this.NameZh.Value
				, this.NameEn.Value
				, this.linkmanZh.Value
				, this.linkmanEn.Value
				, this.Prov.Value
				, this.CityZh.Value
				, this.CityEn.Value
				, this.AddrZh.Value
				, this.AddrEn.Value
				, this.PostCode.Value
				, this.Telc.Value
				, this.Tela.Value
				, this.Teln.Value
				, this.Faxc.Value
				, this.Faxa.Value
				, this.Faxn.Value
				, this.EMail.Value
				);
		}
	</script>

	<form id="Form1" name="form1" method="post" runat="server">
		<table width="720" border="1" align="center" cellpadding="5" cellspacing="2" bordercolor="#CCCCCC">
			<tr bgcolor="FFA800">
				<td align="center" colspan="2">
					<font color="#FFFFFF">域名注册</font>
				</td>
			</tr>
			<tr>
				<td bgcolor="#f3f3f3" align="right">
					域名：
				</td>
				<td>
					<input type="text" size="15" id="DName" runat="server">
					.
					<select size="1" id="DSuff" runat="server">
						<option selected>.com</option>
						<option>.cn</option>
						<option>.net</option>
						<option>.org</option>
						<option>.cc</option>
						<option>.tv</option>
						<option>.biz</option>
						<option>.info</option>
						<option>.com.cn</option>
						<option>.net.cn</option>
						<option>.org.cn</option>
						<option>.gov.cn</option>
						<option>.ac.cn</option>
						<option>.bj.cn</option>
						<option>.sh.cn</option>
						<option>.tj.cn</option>
						<option>.cq.cn</option>
						<option>.he.cn</option>
						<option>.sx.cn</option>
						<option>.nm.cn</option>
						<option>.ln.cn</option>
						<option>.jl.cn</option>
						<option>.hl.cn</option>
						<option>.js.cn</option>
						<option>.zj.cn</option>
						<option>.ah.cn</option>
						<option>.fj.cn</option>
						<option>.jx.cn</option>
						<option>.sd.cn</option>
						<option>.ha.cn</option>
						<option>.hb.cn</option>
						<option>.hn.cn</option>
						<option>.gd.cn</option>
						<option>.gx.cn</option>
						<option>.hi.cn</option>
						<option>.sc.cn</option>
						<option>.gz.cn</option>
						<option>.yn.cn</option>
						<option>.xz.cn</option>
						<option>.sn.cn</option>
						<option>.gs.cn</option>
						<option>.qh.cn</option>
						<option>.nx.cn</option>
						<option>.xj.cn</option>
						<option>.tw.cn</option>
						<option>.hk.cn</option>
						<option>.mo.cn</option>
						<option>.中国</option>
						<option>.公司</option>
						<option>.网络</option>
						<option value="">通用网址</option>
					</select>
				</td>
			</tr>
			<tr>
				<td bgcolor="#f3f3f3" align="right">
					注册年限：
				</td>
				<td>
					<select size="1" id="BuyNum" runat="server">
						<option value="1" selected>1</option>
						<option value="2">2</option>
						<option value="3">3</option>
						<option value="4">4</option>
						<option value="5">5</option>
						<option value="6">6</option>
						<option value="7">7</option>
						<option value="8">8</option>
						<option value="9">9</option>
						<option value="10">10</option>
					</select>
					年
				</td>
			</tr>
			<tr>
				<td bgcolor="#f3f3f3" align="right">
					管理密码：
				</td>
				<td>
					<input size="30" maxlength="80" id="Password" runat="server">
				</td>
			</tr>
			<tr>
				<td bgcolor="#f3f3f3" align="right">
					域名所有者中文：
				</td>
				<td>
					<input size="30" maxlength="80" id="NameZh" runat="server">
				</td>
			</tr>
			<tr>
				<td bgcolor="#f3f3f3" align="right">
					域名所有者英文：
				</td>
				<td>
					<input size="30" maxlength="100" id="NameEn" runat="server">
				</td>
			</tr>
			<tr>
				<td bgcolor="#f3f3f3" align="right">
					联系人姓名中文：
				</td>
				<td>
					<input size="30" maxlength="20" id="linkmanZh" runat="server">
				</td>
			</tr>
			<tr>
				<td bgcolor="#f3f3f3" align="right">
					联系人姓名英文：
				</td>
				<td>
					<input size="30" maxlength="30" id="linkmanEn" runat="server">
				</td>
			</tr>
			<tr>
				<td bgcolor="#f3f3f3" align="right">
					省份：
				</td>
				<td>
					<select size="1" id="Prov" runat="server">
						<option value="NULL" selected>请选择</option>
						<option value="Beijing">北京</option>
						<option value="Hongkong">香港</option>
						<option value="Aomen">澳门</option>
						<option value="Taiwan">台湾</option>
						<option value="Shanghai">上海</option>
						<option value="Guangdong">广东</option>
						<option value="Shandong">山东</option>
						<option value="Sichuan">四川</option>
						<option value="Fujian">福建</option>
						<option value="Jiangsu">江苏</option>
						<option value="Zhejiang">浙江</option>
						<option value="Tianjin">天津</option>
						<option value="Chongqing">重庆</option>
						<option value="Hebei">河北</option>
						<option value="Henan">河南</option>
						<option value="Heilongjiang">黑龙江</option>
						<option value="Jinlin">吉林</option>
						<option value="Liaoning">辽宁</option>
						<option value="Neimenggu">内蒙古</option>
						<option value="Hainan">海南</option>
						<option value="Shanxi">山西</option>
						<option value="Shanxi3">陕西</option>
						<option value="Anhui">安徽</option>
						<option value="Jiangxi">江西</option>
						<option value="Gansu">甘肃</option>
						<option value="Xinjiang">新疆</option>
						<option value="Hubei">湖北</option>
						<option value="Hunan">湖南</option>
						<option value="Yunnan">云南</option>
						<option value="Guangxi">广西</option>
						<option value="Ningxia">宁夏</option>
						<option value="Guizhou">贵州</option>
						<option value="Qinghai">青海</option>
						<option value="Xizang">西藏</option>
					</select>
				</td>
			</tr>
			<tr>
				<td bgcolor="#f3f3f3" align="right">
					城市中文：</td>
				<td>
					<input size="30" maxlength="80" id="CityZh" runat="server">
				</td>
			</tr>
			<tr>
				<td bgcolor="#f3f3f3" align="right">
					城市英文：</td>
				<td>
					<input size="30" maxlength="80" id="CityEn" runat="server">
				</td>
			</tr>
			<tr>
				<td bgcolor="#f3f3f3" align="right">
					街道地址中文：</td>
				<td>
					<input size="30" maxlength="80" id="AddrZh" runat="server">
				</td>
			</tr>
			<tr>
				<td bgcolor="#f3f3f3" align="right">
					街道地址英文：</td>
				<td>
					<input size="30" maxlength="80" id="AddrEn" runat="server">
				</td>
			</tr>
			<tr>
				<td bgcolor="#f3f3f3" align="right">
					邮政编码：</td>
				<td>
					<input size="30" maxlength="80" id="PostCode" runat="server">
				</td>
			</tr>
			<tr>
				<td bgcolor="#f3f3f3" align="right">
					电话：</td>
				<td>
					<input size="3" maxlength="3" value="86" id="Telc" runat="server">-
					<input size="4" maxlength="4" id="Tela" runat="server">-
					<input size="15" maxlength="15" id="Teln" runat="server">
					<br>
					国家码 - &nbsp;&nbsp; 区号&nbsp;&nbsp; - &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;电话号码
				</td>
			</tr>
			<tr>
				<td bgcolor="#f3f3f3" align="right">
					传真：</td>
				<td>
					<input size="3" maxlength="3" value="86" id="Faxc" runat="server">
					<b>-</b>
					<input size="4" maxlength="4" id="Faxa" runat="server">
					<b>-</b>
					<input size="15" maxlength="15" id="Faxn" runat="server">
					<br>
					国家码 - &nbsp;&nbsp; 区号&nbsp;&nbsp; - &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;传真号码
				</td>
			</tr>
			<tr>
				<td bgcolor="#f3f3f3" align="right">
					电子邮件：</td>
				<td>
					<input size="30" maxlength="80" id="EMail" runat="server">
				</td>
			</tr>
			<tr>
				<td colspan="2" align="center">
					<asp:Button ID="Submit" runat="server" Text="提交" OnClick="Submit_Click" />
				</td>
			</tr>
			<tr>
				<td align="left" colspan="2">
					<span style="color: red">结果：</span>
					<asp:Label ID="Result" ForeColor="Red" runat="server" />
				</td>
			</tr>
		</table>
	</form>
</body>
</html>
