<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/ViewMasterPageSub.Master"
	Inherits="System.Web.Mvc.ViewPage<MvcEnterprise.Models.DataSet1+MembersRow>" %>

<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="server">
	<link href="../../Content/Skin/Validation.css" rel="stylesheet" type="text/css" />
	<script src="../../Scripts/MicrosoftAjax.js" type="text/javascript"></script>
	<script src="../../Scripts/MicrosoftMvcAjax.js" type="text/javascript"></script>
	<script src="../../Scripts/MicrosoftMvcValidation.js" type="text/javascript"></script>
	<script src="../../Scripts/Admin.js" type="text/javascript"></script>
	<%Html.EnableClientValidation(); %>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="LeftContent" runat="server">
	<div class="Item">
		<div class="LeftNavTitle"><%= Language.Context.User.LabelNavTitle %></div>
		<div>
			<%Html.RenderPartial("partial_LeftNav_User");%></div>
	</div>
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="RightContent" runat="server">
	<div class="Item">
		<div class="Location">
			<%= Html.ActionLink(Language.Context.Global.HomePage, "Index")%>
			<%= Language.Context.User.UserReg %>
		</div>
		<div class="WebContent" style="margin-left:35%">
			<script type="text/javascript">
				$(document).ready(function () {
					$("#validateImg").after(" <span id='vCodeErr' style='color:red'></span>");
					var username = $("#frmuserreg #MemName");
					username.blur(function () {
						if ($.trim(username.val()).length >= 3) {
							$("#err_msg").load('<% =Url.Action("UserRegCheckExist") %>', { "username": username.val() });
						}
					}).focus(function () {
						$("#err_msg").empty();
					});
					$("#frmuserreg #txtValidateCode").keydown(function () {
						$("#vCodeErr").text("");
					});
					$("#frmuserreg").submit(function () {
						if ($.trim($("#frmuserreg #txtValidateCode").val()).length < 5) {
							$("#vCodeErr").text("<%= Language.Context.Global.JsAlertValidationErr %>");
							return false;
						}
					});
				});
			</script>
			<%using (Html.BeginForm("UserReg", "Home", FormMethod.Post, new { id = "frmuserreg" })) { %>
			<%= Html.AntiForgeryToken()%>
			<div>
				<%--会员帐号--%>
				<span class="editor-label"><%= Language.Context.User.LabelUserName %></span>
				<span class="editor-field"><%= Html.TextBoxFor(model => model.MemName)%> <%= Html.DisplayToolTipFor(model => model.MemName)%> <%= Html.ValidationMessageFor(model => model.MemName)%></span>
				<span id="err_msg"></span>
			</div>
			<div>
				<%--会员密码--%>
				<span class="editor-label"><%= Language.Context.User.LabelPassword %></span>
				<span class="editor-field"><%= Html.PasswordFor(model => model.Password)%> <%= Html.DisplayToolTipFor(model => model.Password)%> <%= Html.ValidationMessageFor(model => model.Password)%></span>
			</div>
			<div>
				<%--电子邮件--%>
				<span class="editor-label"><%= Language.Context.Global.LabelEmail %></span>
				<span class="editor-field"><%= Html.TextBoxFor(model => model.Email)%> <%= Html.DisplayToolTipFor(model => model.Email)%> <%= Html.ValidationMessageFor(model => model.Email)%></span>
			</div>
			<div>
				<%Html.RenderPartial("ValidateCode"); %>
			</div>
			<div>
				<%----%>
				<%= Html.HiddenFor(model => model.ID)%>
			</div>
			<div>
				<span class="editor-label">&emsp;</span>
				<span class="editor-field"><input type="submit" value="<%= Language.Context.User.InputValueReg %>" class="btn w60" /> <input type="reset" class="btn w60" /></span>
			</div>
			<%}%>
		</div>
	</div>
</asp:Content>