<%@ Page Language="C#" EnableTheming="false"  Title="快乐建站{EnjooSite}1.0版-配置向导-第2步：系统配置" MasterPageFile="~/Install/InstallTemplate.Master" Codebehind="Step02_ConfigureHost.aspx.cs" AutoEventWireup="True" Inherits="EnjooSite.Web.Install.Step02_ConfigureHost" %>

<asp:Content ID="mainContent" ContentPlaceHolderID="Content" runat="server">
    <fieldset>
		<legend>快乐建站{EnjooSite}-系统配置</legend>
	    <ol>
		    <li>第1步: 安装数据库</li>
		    <li><strong>第2步: 系统配置</strong></li>
		    <li>第3步: 创建管理员Blog</li>
	    </ol>

		<p>
			输入超级管理员相关信息.
		</p>
		<p>
		    超级管理员：快乐建站{EnjooSite}系统主机管理。可以添加、编辑或者更新快乐建站{EnjooSite}系统关联Blog用户，同时可以配置快乐建站{EnjooSite}系统相关参数，以及主站栏目规划等。
		</p>
		<p>
		    超级管理员将被标记为快乐建站{EnjooSite}系统当前实例的所有者，将不允许删除。
		</p>
	
	    <p style="color:#f00;"><asp:Literal id="ltlMessage" Runat="server" /></p>
	    
	
		<div id="hostForm" runat="server">
			<asp:ValidationSummary ID="vldHostAdminSummary" runat="server" ValidationGroup="HostAdministration" HeaderText="请仔细检查以下错误提示：" />
			
			<label for="txtUserName">用户</label> 
			<asp:TextBox ID="txtUserName" runat="server" CssClass="textbox" ValidationGroup="HostAdministration" />
			<asp:RequiredFieldValidator ID="vldHostUsernameRequired" runat="server" ControlToValidate="txtUserName" ValidationGroup="HostAdministration" ErrorMessage="用户名不能为空" Text="*" Display="Dynamic" />
			
			<label for="txtEmail">邮箱</label> 
			<asp:TextBox ID="txtEmail" runat="server" CssClass="textbox" />
			<asp:RequiredFieldValidator ID="vldHostEmailRequired" runat="server" ControlToValidate="txtEmail" ValidationGroup="HostAdministration" Text="*" Display="Dynamic" />
			<asp:RegularExpressionValidator ID="vldHostEmail" runat="server" ControlToValidate="txtEmail" ValidationGroup="HostAdministration" Text="*" ValidationExpression="^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$" ErrorMessage="Email格式错误" Display="Dynamic" />
		    	
			<label for="txtPassword">密码</label> 
			<asp:TextBox ID="txtPassword" runat="server" CssClass="textbox" TextMode="Password" />
			<asp:RequiredFieldValidator ID="vldHostAdminPassword" runat="server" ControlToValidate="txtPassword" ValidationGroup="HostAdministration" Text="*" Display="Dynamic" />
			
			<label for="txtConfirmPassword">再次输入密码</label> 
			<asp:TextBox ID="txtConfirmPassword" runat="server" CssClass="textbox" TextMode="Password" />
			<asp:RequiredFieldValidator ID="vldHostComparePassword" runat="server" ControlToValidate="txtConfirmPassword" ValidationGroup="HostAdministration" Text="*" Display="Dynamic" />
			<asp:CompareValidator ID="vldHostPasswordsMatch" runat="server" ControlToValidate="txtConfirmPassword" ControlToCompare="txtPassword" ValidationGroup="HostAdministration" Text="*" ErrorMessage="密码输入不一致" Display="Dynamic" />
			
			<label for="txtSiteName">网站标题</label>
			<asp:TextBox ID="txtSiteName" runat="server" CssClass="textbox" />
			<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtSiteName" ValidationGroup="HostAdministration" Text="*" ErrorMessage="网站名称不能为空" Display="Dynamic" />
						
			<label for="txtSiteDescription">网站说明</label>
			<asp:TextBox ID="txtSiteDescription" runat="server" CssClass="textbox" />
			<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtSiteDescription" ValidationGroup="HostAdministration" Text="*" ErrorMessage="网站说明不能为空" Display="Dynamic" />

			<label for="txtAggregateUrl">当前网站绑定域名</label> 
			<asp:TextBox ID="txtAggregateUrl" runat="server" CssClass="textbox" ValidationGroup="HostAdministration" />
			<asp:RequiredFieldValidator ID="vldAggregateUrlRequired" runat="server" ControlToValidate="txtAggregateUrl" ValidationGroup="HostAdministration" Text="*" Display="Dynamic" />
            <asp:RegularExpressionValidator ID="vldAggregateUrlRegular" runat="server" 
                ControlToValidate="txtAggregateUrl" ValidationGroup="HostAdministration" 
                Text="*" ValidationExpression="([\w-]+\.)+[\w-]+(/[\w- ./?%&amp;=]*)?" 
                ErrorMessage="域名格式错误" Display="Dynamic" />
		    
		    <label for="txtLicense">授权序列号</label>
			<asp:TextBox ID="txtLicense" runat="server" CssClass="textbox" />					

			
		</div>
		<asp:Button id="btnSave" Runat="server" ValidationGroup="HostAdministration" Text="保存" CssClass="button" onclick="btnSave_Click" />
	</fieldset>
</asp:Content>