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

<asp:Content ID="Content0" ContentPlaceHolderID="HeadContent" runat="server">
    <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/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../../Scripts/Admin.js" type="text/javascript"></script>
    <script src="<%=Url.Content("~/Content/fckeditor/fckeditor.js")%>" type="text/javascript"></script>
    <%Html.EnableClientValidation(); %>
    <script type="text/javascript">
    	$(function () {
    		$("input[type='text'],textarea[id!='ReplyContent']").each(function () {
    			if (this.id!="ReplyTime") {
    				$(this).after(this.value).hide();
    			}
    		});
    	});
	</script>
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    查看应聘
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div>
        <%= Html.ActionLink("返回列表","TalentsList") %></div>
    <hr />
    <% using (Html.BeginForm())
       {%>
    <div>
        <%--应聘职位--%>
        <span class="editor-label"><%= Html.LabelFor(model => model.TalentsName) %>：</span>
        <span class="editor-field"><%= Html.TextBoxFor(model => model.TalentsName) %> <%= Html.DisplayToolTipFor(model => model.TalentsName) %>
            <%= Html.ValidationMessageFor(model => model.TalentsName) %></span></div>
    <div>
        <%--姓名--%>
        <span class="editor-label"><%= Html.LabelFor(model => model.Linkman) %>：</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"><%= Html.LabelFor(model => model.Sex) %>：</span>
        <span class="editor-field"><%= Html.TextBoxFor(model => model.Sex) %> <%= Html.DisplayToolTipFor(model => model.Sex) %>
            <%= Html.ValidationMessageFor(model => model.Sex) %></span></div>
    <div>
        <%--出生日期--%>
        <span class="editor-label"><%= Html.LabelFor(model => model.BirthDate) %>：</span>
        <span class="editor-field"><%= Html.TextBoxCalendarFor(model => model.BirthDate, new { style = "width:140px" }) %>
            <%= Html.DisplayToolTipFor(model => model.BirthDate) %> <%= Html.ValidationMessageFor(model => model.BirthDate) %></span></div>
    <div>
        <%--身高--%>
        <span class="editor-label"><%= Html.LabelFor(model => model.Stature) %>：</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"><%= Html.LabelFor(model => model.Marriage) %>：</span>
        <span class="editor-field"><%= Html.TextBoxFor(model => model.Marriage) %> <%= Html.DisplayToolTipFor(model => model.Marriage) %>
            <%= Html.ValidationMessageFor(model => model.Marriage) %></span></div>
    <div>
        <%--户口所在地--%>
        <span class="editor-label"><%= Html.LabelFor(model => model.RegResidence) %>：</span>
        <span class="editor-field"><%= Html.TextBoxFor(model => model.RegResidence) %> <%= Html.DisplayToolTipFor(model => model.RegResidence) %>
            <%= Html.ValidationMessageFor(model => model.RegResidence) %></span></div>
    <div>
        <%--教育经历--%>
        <span class="editor-label"><%= Html.LabelFor(model => model.EduResume) %>：</span>
        <span class="editor-field"><%= Html.TextAreaFor(model => model.EduResume)%> <%= Html.DisplayToolTipFor(model => model.EduResume) %>
            <%= Html.ValidationMessageFor(model => model.EduResume) %></span></div>
    <div>
        <%--工作经历--%>
        <span class="editor-label"><%= Html.LabelFor(model => model.JobResume) %>：</span>
        <span class="editor-field"><%= Html.TextAreaFor(model => model.JobResume)%> <%= Html.DisplayToolTipFor(model => model.JobResume) %>
            <%= Html.ValidationMessageFor(model => model.JobResume) %></span></div>
    <div>
        <%--手机号码--%>
        <span class="editor-label"><%= Html.LabelFor(model => model.Mobile) %>：</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"><%= Html.LabelFor(model => model.Telephone) %>：</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"><%= Html.LabelFor(model => model.Email) %>：</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"><%= Html.LabelFor(model => model.Address) %>：</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"><%= Html.LabelFor(model => model.ZipCode) %>：</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"><%= Html.LabelFor(model => model.AddTime) %>：</span>
        <span class="editor-field"><%= Html.TextBoxFor(model => model.AddTime, new { style = "width:140px" }) %>
            <%= Html.DisplayToolTipFor(model => model.AddTime) %> <%= Html.ValidationMessageFor(model => model.AddTime) %></span></div>
	<div>
		<%--回复时间--%>
		<span class="editor-label"><%= Html.LabelFor(model => model.ReplyTime) %>：</span>
		<span class="editor-field"><%= Html.TextBoxCalendarFor(model => model.ReplyTime, new { style = "width:140px" }) %> <%= Html.DisplayToolTipFor(model => model.ReplyTime) %> <%= Html.ValidationMessageFor(model => model.ReplyTime) %></span></div>
    <div>
        <%--回复内容--%>
        <span class="editor-label"><%= Html.LabelFor(model => model.ReplyContent) %>：</span>
        <span class="editor-field"><%= Html.TextAreaFor(model => model.ReplyContent, new { style = "width:50%;height:120px" })%> <%= Html.DisplayToolTipFor(model => model.ReplyContent) %>
            <%= Html.ValidationMessageFor(model => model.ReplyContent) %></span></div>
	<%
		   if (!string.IsNullOrEmpty(Model.CustomFields) && Model.CustomFields.Contains("|ffcms.com|") && Model.CustomFields.Contains(":ffcms.com:"))
		   {
			   var cf = Model.CustomFields.Split(new string[] { "|ffcms.com|" }, StringSplitOptions.RemoveEmptyEntries);
			   foreach (var item in cf)
			   {
				   var field = item.Split(new string[] { ":ffcms.com:" }, StringSplitOptions.None);
			 %>
	<div>
		<span class="editor-label"><label for="<%= field[0] %>"><%= field[0]%></label></span>
		<span class="editor-field"><input type="text" id="<%= field[0] %>" name="<%= field[0] %>" value="<%= field[1] %>" /></span>
	</div>
			<%
			   }
		   }
		   else
		   {
			   var table = CustomFields.Context.XPathSelectElement("/table[@name='" + Model.Table.TableName + "']");
				var fields = table.Elements();
			   foreach (var field in fields)
			   {
				   var fieldName = field.Attribute("name").Value;
				   var defaultvalue = field.Attribute("defaultvalue").Value;
				   %>
	<div>
		<span class="editor-label"><label for="<%= fieldName %>"><%= fieldName %></label></span>
		<span class="editor-field"><input type="text" id="<%= fieldName %>" name="<%= fieldName %>" value="<%= defaultvalue %>" /></span>
	</div>
				   <%
			   }
		   }
	 %>
    <div style="display:none">
        <%--会员编号--%>
        <span class="editor-label"><%= Html.LabelFor(model => model.MemID) %>：</span>
        <span class="editor-field"><%= Html.TextBoxFor(model => model.MemID, new { value = 0}) %>
            <%= Html.DisplayToolTipFor(model => model.MemID) %> <%= Html.ValidationMessageFor(model => model.MemID) %></span></div>
    <div style="display:none">
        <%--招聘编号--%>
        <span class="editor-label"><%= Html.LabelFor(model => model.JobID) %>：</span>
        <span class="editor-field"><%= Html.TextBoxFor(model => model.JobID, new { value = 0}) %>
            <%= Html.DisplayToolTipFor(model => model.JobID) %> <%= Html.ValidationMessageFor(model => model.JobID) %></span></div>
    <div>
        <%----%>
        <%= Html.HiddenFor(model=>model.ID) %></div>
    <p><input type="submit" value="保 存" /> </p>
    <% } %>
</asp:Content>

