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

<asp:Content ID="Content1" 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(); %>
	<script type="text/javascript">
		$(document).ready(function () {
			$("#frmTalentsSubmit").submit(function () {
				if ($.trim($("#frmTalentsSubmit #txtValidateCode").val()).length < 5) {
					alert("<%= Language.Context.Global.JsAlertValidationErr %>");
					$("#frmTalentsSubmit #txtValidateCode").focus();
					return false;
				}
			});
		});
	</script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<div class="MainWidth">
		<div id="left">
			<div class="tr">
				<div class="tl">
					<div class="tm">
					</div>
				</div>
			</div>
			<div class="mr">
				<div style="position: relative" class="ml">
					<div style="visibility: visible" class="Item">
						<div class="LeftNavTitle"><%= Language.Context.Jobs.JobsList %></div>
						<div>
							<%Html.RenderPartial("partial_LeftNav_Jobs");%></div>
					</div>
				</div>
			</div>
			<div class="br">
				<div class="bl">
					<div class="bm">
					</div>
				</div>
			</div>
		</div>
		<div id="right">
			<div class="tr">
				<div class="tl">
					<div class="tm">
					</div>
				</div>
			</div>
			<div class="mr">
				<div style="position: relative" class="ml">
					<div class="Item">
						<div class="Location">
							<%= Html.ActionLink(Language.Context.Global.HomePage, "Index")%> <%= Html.ActionLink(Language.Context.Jobs.JobsList, "JobsList", new { id = "" })%>
							<%= Language.Context.Jobs.TalentsSubmit %>
						</div>
						<div class="WebContent">
							<% using (Html.BeginForm("TalentsSubmit", "Home", null, FormMethod.Post, new { id = "frmTalentsSubmit" }))
		  { %>
							<div>
								<%--职位名称--%>
								<span class="editor-label"><%= Language.Context.Talents.LabelTalentsName %></span>
								<span class="editor-field"><%= Html.TextBoxFor(model => model.TalentsName, new { style = "width:260px" })%>
									<%= Html.DisplayToolTipFor(model => model.TalentsName) %> <%= Html.ValidationMessageFor(model => model.TalentsName) %></span>
							</div>
							<div>
								<%--真实姓名--%>
								<span class="editor-label"><%= Language.Context.Talents.LabelLinkMan %></span>
								<span class="editor-field"><%= Html.TextBoxFor(model => model.Linkman) %> <%= Html.DisplayToolTipFor(model => model.Linkman) %>
									<%= Html.ValidationMessageFor(model => model.Linkman) %></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.Talents.LabelBirthDate %></span>
								<span class="editor-field"><%= Html.TextBoxCalendarFor(model => model.BirthDate, new { style = "width:75px" }) %>
									<%= Html.DisplayToolTipFor(model => model.BirthDate) %> <%= Html.ValidationMessageFor(model => model.BirthDate) %></span>
							</div>
							<div>
								<%--婚姻状况--%>
								<span class="editor-label"><%= Language.Context.Talents.LabelMarriage%></span>
								<span class="editor-field">
									<label><%= Html.RadioButtonFor(m => m.Marriage, Language.Context.Talents.MarriageFalse)%><%= Language.Context.Talents.MarriageFalse%></label>
									<label><%= Html.RadioButtonFor(m => m.Marriage, Language.Context.Talents.MarriageTrue)%><%= Language.Context.Talents.MarriageTrue%></label>
								</span>
							</div>
							<div>
								<%--身高--%>
								<span class="editor-label"><%= Language.Context.Talents.LabelStature %></span>
								<span class="editor-field"><%= Html.TextBoxFor(model => model.Stature, new { value = 0}) %>
									<%= Html.DisplayToolTipFor(model => model.Stature) %> <%= Html.ValidationMessageFor(model => model.Stature) %></span>
							</div>
							<div>
								<%--户口所在地--%>
								<span class="editor-label"><%= Language.Context.Talents.LabelRegResidence %></span>
								<span class="editor-field"><%= Html.TextBoxFor(model => model.RegResidence, new { style = "width:260px" })%>
									<%= Html.DisplayToolTipFor(model => model.RegResidence) %> <%= Html.ValidationMessageFor(model => model.RegResidence) %></span>
							</div>
							<div>
								<%--教育经历--%>
								<span class="editor-label"><%= Language.Context.Talents.LabelEduResume %></span>
								<span class="editor-field"><%= Html.TextAreaFor(model => model.EduResume, new { style = "width:540px;height:100px" })%>
									<%= Html.DisplayToolTipFor(model => model.EduResume) %> <%= Html.ValidationMessageFor(model => model.EduResume) %></span>
							</div>
							<div>
								<%--工作经历--%>
								<span class="editor-label"><%= Language.Context.Talents.LabelJobResume %></span>
								<span class="editor-field"><%= Html.TextAreaFor(model => model.JobResume, new { style = "width:540px;height:100px" })%>
									<%= Html.DisplayToolTipFor(model => model.JobResume) %> <%= Html.ValidationMessageFor(model => model.JobResume) %></span>
							</div>
							<div>
								<%--联系电话--%>
								<span class="editor-label"><%= Language.Context.Talents.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.Talents.LabelMobile %></span>
								<span class="editor-field"><%= Html.TextBoxFor(model => model.Mobile) %> <%= Html.DisplayToolTipFor(model => model.Mobile) %>
									<%= Html.ValidationMessageFor(model => model.Mobile) %></span>
							</div>
							<div>
								<%--联系地址--%>
								<span class="editor-label"><%= Language.Context.Talents.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.Talents.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.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.AntiForgeryToken()%> <%= Html.HiddenFor(model=>model.ID) %> <%= Html.HiddenFor(model => model.MemID, new { value = 0 })%>
								<%Html.RenderPartial("ValidateCode"); %>
							</div>
							<div style="margin-top: 5px">
								<span class="editor-label"></span>
								<span class="editor-field"><input type="submit" value="<%= Language.Context.Jobs.TalentsSubmit %>" class="btn w90" /></span>
							</div>
							<% } %>
						</div>
					</div>
				</div>
			</div>
			<div class="br">
				<div class="bl">
					<div class="bm">
					</div>
				</div>
			</div>
		</div>
		<br class="clearfloat" />
	</div>
</asp:Content>

