<%@ 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.UserEdit%>
		</div>
		<div class="WebContent" style="margin-left: 30%">
			<script type="text/javascript">
				$(document).ready(function () {
					$("#frmuseredit input[type='text']").css("width", "200px");
				});
			</script>
			<%using (Html.BeginForm("UserEdit", "Home", FormMethod.Post, new { id = "frmuseredit" }))
	 { %>
			<%= Html.AntiForgeryToken()%>
			<div>
				<%--会员帐号--%>
				<span class="editor-label"><%= Language.Context.User.LabelUserName %></span>
				<span class="editor-field"><%= Html.Encode(Model.MemName) %></span>
			</div>
			<div>
				<%--性别--%>
				<span class="editor-label"><%= Language.Context.Global.LabelSex %></span>
				<span class="editor-field">
					<label><%= Html.RadioButtonFor(model => model.Sex, Language.Context.Global.Man) %><%= Language.Context.Global.Man %></label>
					<label><%= Html.RadioButtonFor(model => model.Sex, Language.Context.Global.Woman)%><%= Language.Context.Global.Woman %></label>
				</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>
				<%--真实姓名--%>
				<span class="editor-label"><%= Language.Context.User.LabelRealName %></span>
				<span class="editor-field"><%= Html.TextBoxFor(model => model.RealName) %><%= Html.DisplayToolTipFor(model => model.RealName) %><%= Html.ValidationMessageFor(model => model.RealName) %></span>
			</div>
			<div>
				<%--公司名称--%>
				<span class="editor-label"><%= Language.Context.User.LabelCompany %></span>
				<span class="editor-field"><%= Html.TextBoxFor(model => model.Company) %><%= Html.DisplayToolTipFor(model => model.Company) %><%= Html.ValidationMessageFor(model => model.Company) %></span>
			</div>
			<div>
				<%--联系地址--%>
				<span class="editor-label"><%= Language.Context.User.LabelAddress %></span>
				<span class="editor-field"><%= Html.TextBoxFor(model => model.Address) %><%= Html.DisplayToolTipFor(model => model.Address) %><%= Html.ValidationMessageFor(model => model.Address) %></span>
			</div>
			<div>
				<%--邮政编码--%>
				<span class="editor-label"><%= Language.Context.User.LabelZipCode %></span>
				<span class="editor-field"><%= Html.TextBoxFor(model => model.ZipCode) %><%= Html.DisplayToolTipFor(model => model.ZipCode) %><%= Html.ValidationMessageFor(model => model.ZipCode) %></span>
			</div>
			<div>
				<%--联系电话--%>
				<span class="editor-label"><%= Language.Context.User.LabelTelephone %></span>
				<span class="editor-field"><%= Html.TextBoxFor(model => model.Telephone) %><%= Html.DisplayToolTipFor(model => model.Telephone) %><%= Html.ValidationMessageFor(model => model.Telephone) %></span>
			</div>
			<div>
				<%--传真号码--%>
				<span class="editor-label"><%= Language.Context.User.LabelFax %></span>
				<span class="editor-field"><%= Html.TextBoxFor(model => model.Fax) %><%= Html.DisplayToolTipFor(model => model.Fax) %><%= Html.ValidationMessageFor(model => model.Fax) %></span>
			</div>
			<div>
				<%--手机号码--%>
				<span class="editor-label"><%= Language.Context.User.LabelMobile %></span>
				<span class="editor-field"><%= Html.TextBoxFor(model => model.Mobile) %><%= Html.DisplayToolTipFor(model => model.Mobile) %><%= Html.ValidationMessageFor(model => model.Mobile) %></span>
			</div>
			<div>
				<%----%><%= Html.HiddenFor(model=>model.ID) %>
				<span class="editor-label">&emsp;</span>
				<span class="editor-field"><input type="submit" value="<%= Language.Context.User.InputValueSave %>" class="btn w60" /> <input
					type="reset" class="btn w60" /></span>
			</div>
			<% } %>
		</div>
	</div>
</asp:Content>

