|
- @model Learun.Application.TwoDevelopment.EducationalAdministration.CdMajorEntity
- @{
- /**/
-
- ViewBag.Title = "";
- Layout = null;
- }
-
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="X-UA-Compatible" content="IE=7,IE=8,IE=9,IE=10" />
- <meta name="”renderer”" content="”webkit|ie-comp|ie-stand”" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge" />
- <meta name="renderer" content="webkit" />
- <title>网上报名-填写信息</title>
- <meta name="viewport" content="maximum-scale=1.0,width=device-width,initial-scale=1.0,user-scalable=no" />
- <link href="~/Content/bootstrap/bootstrap.min.css" rel="stylesheet" />
- <link href="~/Content/css/OnlineRegistrate/bootstrap.css" rel="stylesheet" />
- <link href="~/Content/css/OnlineRegistrate/zyjs.css" rel="stylesheet" />
- <link href="~/Content/css/OnlineRegistrate/default.css" rel="stylesheet" />
- <link href="~/Content/css/OnlineRegistrate/hddb.css" rel="stylesheet" />
- <link href="~/Content/css/OnlineRegistrate/style1.css" rel="stylesheet" />
- <link href="~/Content/css/OnlineRegistrate/zyxq.css" rel="stylesheet" />
- <link href="~/Content/jquery/plugin/layer/skin/default/layer.css" rel="stylesheet" />
-
- <script src="~/Content/jquery/jquery-1.10.2.min.js"></script>
- <script src="~/Content/bootstrap/bootstrap.min.js"></script>
- <script src="~/Content/datepicker/WdatePicker.js"></script>
- <script src="~/Content/jquery/plugin/layer/layer.js"></script>
-
- </head>
-
- <body style="overflow-x: hidden;">
- <div id="header"></div>
- <div class="page-container">
- <div class="page-content">
- <div class="row">
- <div class="col-md-12">
- <div class="section section-body">
- <div class="row tl-con" style="padding: 20px;">
- <div class="wybm_sbfzi">报名流程</div>
- <div class="wybm_tp">
- <div class="wybm_tpzi">
- <ul>
- <li class="wybm_xzzy"><a href="#">选择专业</a></li>
- <li class="wybm_txxx"><a href="#">填写信息</a></li>
- <li class="wybm_jf"><a href="#">报名成功</a></li>
- <li><a href="#">缴费</a></li>
- </ul>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-md-12">
- <div class="section join" id="tl_container">
- <div class="section-body">
- <form id="formEdit" name="formEdit" method="post" class="form-horizontal" action="PaymentMoney.aspx">
- <div>
- <div style="height: 76px; line-height: 76px; width: 95%; margin: 0px auto; border-bottom: 1px solid #e7e7e7;">
- <div style="float: left; margin-top: 15px;">
- <img src="~/Content/images/OnlineRegistrate/wybm2.png" width="36" height="45" />
- </div>
- <div style="text-align: left; font-family: 黑体; padding-left: 15px; font-weight: 900; float: left; font-size: 18px; color: #7c7c7c;">
- 我要报名
- </div>
- <div style="float:right; color:red;">
- 如已报名,请直接<a href="../Default/Login.aspx" style="text-align:center;"> 登录</a>
- </div>
- </div>
- <div class="wybm_nr">
- <div class="wybm_z">
- <ul>
- <span class="wybm_gnml">功能目录</span>
- <li><a target="_blank" href="http://www.sxyjjsxy.cn/zongxiao/contents/33/97.html">招生简章</a></li>
- <li><a target="_blank" href="http://www.sxyjjsxy.cn/zongxiao/contents/33/96.html">招生计划</a></li>
- <li><a target="_blank" href="/OnlineRegistrate/MajorInfo">招生专业</a></li>
- <li><a target="_blank" href="http://www.sxyjjsxy.cn/zongxiao/contents/33/70.html">报名须知</a></li>
- <li><a target="_blank" href="http://www.sxyjjsxy.cn/zongxiao/contents/33/476.html">报名咨询</a></li>
- <li><a target="_blank" href="http://www.sxyjjsxy.cn/zongxiao/contents/33/71.html">乘车线路</a></li>
- </ul>
-
- <div>
- <img src="~/Content/images/OnlineRegistrate/ewm_03.png" width="187" height="191" />
- </div>
- </div>
- <div class="wybm_y">
- <div style="line-height: 50px; background: #0193df; font-size: 18px; text-align: center; color: #ffffff;">
- <div class="tl-time text-center">在线报名</div>
- </div>
- <input type="hidden" name="MajorId" value="@Model.MajorNo" />
- <div style="width: 700px; height: 35px; line-height: 35px; float: left; margin-top: 10px;">
- <div style="width: 140px; height: 30px; float: left; text-align: right;">报名专业:</div>
- <div style="width: 360px; height: 35px; float: left; margin-left: 20px;">
- @Model.MajorName
- </div>
- </div>
- <div style="width: 700px; height: 35px; float: left; margin-top: 20px;">
- <div style="width: 140px; height: 30px; float: left; text-align: right;">所属校区:</div>
- <div style="width: 360px; height: 35px; float: left; margin-left: 20px;">
- @Model.SchoolName
- </div>
- </div>
- <div style="width: 700px; height: 35px; float: left; margin-top: 20px;">
- <div style="width: 140px; height: 30px; float: left; text-align: right;">文化程度:</div>
- <div style="width: 360px; height: 35px; float: left; margin-left: 20px;">
- @Model.RecruitObjectText
- </div>
- </div>
- <div style="width: 700px; height: 35px; margin-top: 15px; float: left;">
- <div style="width: 140px; height: 30px; line-height: 30px; float: left; text-align: right;">姓 名:</div>
- <div style="width: 360px; height: 35px; float: left; margin-left: 20px;">
- <input type="text" name="RealName" id="RealName" class="form-control" placeholder="请输入姓名~" value="" />
- <span class="errTip"></span>
- </div>
- </div>
- <div style="width: 700px; height: 35px; margin-top: 5px; float: left;">
- <div style="width: 140px; height: 30px; float: left; margin-top: 25px; line-height: 30px; text-align: right;">性 别:</div>
- <div style="width: 36px; height: 35px; float: left; margin-left: 20px; margin-top: 25px;">
- <select class="form-control input-auto courseType" id="SexId" name="SexId">
- @foreach (var item in ViewBag.Sex)
- {
- <option value="@item.F_ItemValue">@item.F_ItemName</option>
- }
- </select>
- <span class="errTip"></span>
- </div>
- </div>
- <div style="width: 700px; height: 35px; float: left; margin-top: 55px;">
- <div style="width: 140px; height: 30px; float: left; line-height: 30px; text-align: right;">出生日期:</div>
- <div style="width: 188px; height: 35px; float: left; margin-left: 20px;">
- <input type="text" id="BirthDate" name="BirthDate" placeholder="请输入出生日期~" onclick="WdatePicker({ dateFmt: 'yyyy-MM-dd' })" class="form-control" />
- <span class="errTip"></span>
- </div>
- </div>
- <div style="width: 700px; height: 35px; float: left; margin-top: 30px;">
- <div style="width: 140px; height: 30px; float: left; line-height: 30px; text-align: right;">手 机 号:</div>
- <div style="width: 360px; height: 35px; float: left; margin-left: 20px;">
- <input type="text" id="Mobile" name="Mobile" class="form-control" placeholder="请输入手机号~" value="" />
- <span class="errTip"></span>
- </div>
- </div>
- <div style="width: 700px; height: 35px; float: left; margin-top: 30px;">
- <div style="width: 140px; height: 30px; float: left; line-height: 30px; text-align: right;">家庭住址:</div>
- <div style="width: 360px; height: 35px; float: left; margin-left: 20px;">
- <input type="text" id="DetailedAddress" name="DetailedAddress" class="form-control" placeholder="请输入所在省市县乡(镇)村~" value="" />
- <span class="errTip"></span>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-offset-2 col-sm-8 text-center margin-top-15">
- <button type="button" id="button" class="btn btn-primary">下一步</button>
- <a id="button1" href="/OnlineRegistrate/MajorIntroduce?majorNo=@Model.MajorNo" class="btn btn-primary">返回</a>
- </div>
- </div>
- </form>
-
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div id="footer"></div>
- <script>
- $(function () {
- $('#header').load('../Content/css/OnlineRegistrate/Header.html');
- $('#footer').load('../Content/css/OnlineRegistrate/Footer.html');
- })
- </script>
- <script>
- //错误提示
- var tip = function (target, msg) {
- var $tip = $(target).siblings('.errTip');
- $tip.hide();
- if (!!msg) {
- $tip.html('<img src="/Content/images/OnlineRegistrate/yuan.png" /> ' + msg);
- $tip.show();
- }
- };
- //点击“下一步”
- $("#button").on('click', function () {
- //姓名
- if (!$.trim($("#RealName").val())) {
- tip("#RealName", $("#RealName").attr("placeholder"));
- return false;
- }
- //出生日期
- if (!$.trim($("#BirthDate").val())) {
- tip("#BirthDate", $("#BirthDate").attr("placeholder"));
- return false;
- }
- //手机号
- var Mobile = $.trim($("#Mobile").val());
- if (!Mobile) {
- tip("#Mobile", $("#Mobile").attr("placeholder"));
- return false;
- } else {
- var reg = /^((\(\d{2,3}\))|(\d{3}\-))?1\d{10}$/;
- if (!reg.test(Mobile)) {
- tip("#Mobile", "手机号格式不正确");
- return false;
- }
- }
- //家庭住址
- if (!$.trim($("#DetailedAddress").val())) {
- tip("#DetailedAddress", $("#DetailedAddress").attr("placeholder"));
- return false;
- }
- var data = {
- strEntity: JSON.stringify(getFormData($("#formEdit")))
- };
- $.ajax({
- type: 'post',
- url: '/OnlineRegistrate/SaveOnlineRegistrate',
- contentType: 'application/json',
- dataType: 'json',
- async: true,
- cache: false,
- data: JSON.stringify(data),
- success: function (result) {
- if (result.code == 200) {
- layer.msg(result.info);
- if (result.data) {
- window.location.href = "/OnlineRegistrate/SignUpSuccess?userId=" + result.data.Id;
- }
- } else {
- layer.msg(result.info);
- }
- },
- error: function (XMLHttpRequest, textStatus, errorThrown) {
- }
- });
- });
- //序列化为Json
- function getFormData($form) {
- var unindexed_array = $form.serializeArray();
- var indexed_array = {};
-
- $.map(unindexed_array, function (n, i) {
- indexed_array[n['name']] = n['value'];
- });
-
- return indexed_array;
- }
-
- </script>
- </body>
- </html>
|