123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326 |
- <%@ page contentType="text/html;charset=UTF-8" %>
- <%@ include file="/webpage/include/taglibf.jsp"%>
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>${fns:getConfig("productName")}-在线报名</title>
- <link rel="stylesheet" type="text/css" href="${ctxStatic}/web/css/base.css" />
- <link rel="stylesheet" type="text/css" href="${ctxStatic}/web/css/second.css" />
- <script src="${ctxStaticWeb}/js/jquery-2.1.4.js"></script>
- <style>
- .new_l,.new_r{ margin:10px 0px;}
- .new_l{background-color:#FFF}
- .new_l h2{ border-bottom:1px solid #CCC; border-top:1px solid #CCC; line-height:38px; font-size:16px; background-color:#f8f8f8;}
- .new_l h2 a{color:#820402}
- .bg{ background-color:#fff; min-height:600px}
- .bg h2{ line-height:60px; color:#820402;}
- .btnSign { height:35px; line-height:35px; width:35%;background-color:#820402; color:#fff; border:0px; margin:20px}
- </style>
- <%@include file="/webpage/include/anihead.jsp" %>
- <%@include file="/webpage/include/summernote.jsp" %>
- <script type="text/javascript">
- $(document).ready(function() {
- /*jp.ajaxForm("#inputForm",function(data){
- if(data.success){
- jp.success(data.msg);
- document.getElementById("inputForm").reset();
- //jp.go("${ctx}/talent/sign/talentSign");
- }else{
- jp.error(data.msg);
- }
- ("#btnSave").button('reset');
- });*/
- $('#birth').datetimepicker({
- format: "YYYY-MM"
- });
- $("#talentType").change(function(){
- $("#typeDetail").empty();
- var selVal = $(this).children('option:selected').val();
- //var json = '${fns:toJson(fns:getDictList('leader_talent'))}';
- var options = "<option value='' label=''/>";
- if(selVal == 1){
- <c:forEach items="${fns:getDictList('leader_talent')}" var="dict">
- options += "<option value=${dict.value}>${dict.label}</option>";
- </c:forEach>
- }else if(selVal == 2){
- <c:forEach items="${fns:getDictList('corp_talent')}" var="dict">
- options += "<option value=${dict.value}>${dict.label}</option>";
- </c:forEach>
- }else if(selVal == 3){
- <c:forEach items="${fns:getDictList('tech_talent')}" var="dict">
- options += "<option value=${dict.value}>${dict.label}</option>";
- </c:forEach>
- }else if(selVal == 4){
- <c:forEach items="${fns:getDictList('high_talent')}" var="dict">
- options += "<option value=${dict.value}>${dict.label}</option>";
- </c:forEach>
- }else if(selVal == 5){
- <c:forEach items="${fns:getDictList('village_talent')}" var="dict">
- options += "<option value=${dict.value}>${dict.label}</option>";
- </c:forEach>
- }else if(selVal == 6){
- <c:forEach items="${fns:getDictList('social_talent')}" var="dict">
- options += "<option value=${dict.value}>${dict.label}</option>";
- </c:forEach>
- }
- $("#typeDetail").html(options);
- //console.log(json);
- })
- //富文本初始化
- $('#professionalDirection').summernote({
- height: 120,
- lang: 'zh-CN',
- callbacks: {
- onChange: function(contents, $editable) {
- $("input[name='professionalDirection']").val($('#professionalDirection').summernote('code'));//取富文本的值
- }
- }
- });
- $('#honors').summernote({
- height: 120,
- lang: 'zh-CN',
- callbacks: {
- onChange: function(contents, $editable) {
- $("input[name='honors']").val($('#honors').summernote('code'));//取富文本的值
- }
- }
- });
- });
- function sign() {
- var isValidate = jp.validateForm('#inputForm');//校验表单
- if(!isValidate){
- return false;
- }else{
- jp.confirm("确认进行报名吗?",function () {
- jp.post("${ctxF}/talentSign/save",$('#inputForm').serialize(),function (data) {
- if(data.success){
- jp.success(data.msg);
- /*$("#inputForm input").val("");
- $("#inputForm select").val("");
- $("#inputForm .select-item").html("");*/
- $('#inputForm')[0].reset()
- }else{
- jp.error(data.msg);
- $("#inputForm").find("button:submit").button("reset");
- }
- })
- })
- }
- }
- </script>
- </head>
- <body>
- <%@ include file="/webpage/modules/web/top.jsp"%>
- <%--<div class="second_banner"><div class="c second_banner_txt"><strong>在线报名</strong></div></div>--%>
- <form:form id="inputForm" modelAttribute="talentSign" action="${ctxF}/talentSign/save" method="post" class="form-horizontal">
- <div class="c">
- <div class="new_l">
- <h2> 当前位置:<a href="${ctx}/home">首页</a>>在线报名</h2>
- <form:hidden path="id"/>
- <input type="hidden" name="status" value="0" />
- <input type="hidden" name="flag" value="2"/>
- <table style="margin: 2px;" class="table table-bordered" bgcolor="#CCCCCC">
- <tr>
- <td class="width-10 active"><label class="pull-right"><font color="red">*</font>姓名:</label></td>
- <td class="width-15">
- <form:input path="name" htmlEscape="false" class="form-control required"/> </td>
- <td class="width-10 active"><label class="pull-right"><font color="red">*</font>性别:</label></td>
- <td class="width-15">
- <form:select path="sex" class="form-control required">
- <form:option value="" label=""/>
- <form:options items="${fns:getDictList('sex')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
- </form:select>
- </td>
- <td rowspan="3" class="width-15">
- <c:if test="${talentSign.photo !=null && talentSign.photo !='' }">
- <img src="${talentSign.photo}" width="152" height="130" >
- </c:if>
- <c:if test="${talentSign.photo == null || talentSign.photo ==''}">
- <img src="${ctxStatic}/common/images/default.jpg" width="152" height="130" >
- </c:if>
- <br>
- <div id="filePicker">选择图片</div>
- <sys:fileUpload path="photo" value="${talentSign.photo}" type="images" allowedExtensions="bmp,gif,jpeg,jpg,png" uploadPath="/talent/sign/talentSign"/> </td>
- </tr>
- <tr>
- <td class="width-15 active"><label class="pull-right"><font color="red">*</font>出生年月:</label></td>
- <td class="width-35">
- <div class='input-group form_datetime' id='birth'>
- <input type='text' name="birth" class="form-control required" value="${talentInfo.birth}"/>
- <span class="input-group-addon">
- <span class="glyphicon glyphicon-calendar"></span>
- </span>
- </div>
- </td>
- <td class="width-15 active"><label class="pull-right"><font color="red">*</font>民族:</label></td>
- <td class="width-35">
- <form:select path="nation" class="form-control required">
- <form:option value="" label=""/>
- <form:options items="${fns:getDictList('nation')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
- </form:select>
- </td>
- </tr>
- <tr>
- <td class="width-15 active"><label class="pull-right"><font color="red">*</font>籍贯:</label></td>
- <td class="width-35">
- <form:input path="nativePlace" htmlEscape="false" class="form-control "/>
- </td>
- <td class="width-15 active"><label class="pull-right"><font color="red">*</font>政治面貌:</label></td>
- <td class="width-35">
- <form:select path="politic" class="form-control required">
- <form:option value="" label=""/>
- <form:options items="${fns:getDictList('politic')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
- </form:select>
- </td>
- </tr>
- <tr>
- <td colspan="7">
- <table class="table table-bordered" bgcolor="#CCCCCC">
- <tr>
- <td class="width-15 active" ><label class="pull-right"><font color="red">*</font>第一学历:</label></td>
- <td class="width-35" >
- <form:select path="firstEdu" class="form-control required">
- <form:option value="" label=""/>
- <form:options items="${fns:getDictList('degree')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
- </form:select>
- </td>
- <td class="width-15 active"><label class="pull-right">第一学位:</label></td>
- <td class="width-35" >
- <form:select path="firstDegree" class="form-control ">
- <form:option value="" label=""/>
- <form:options items="${fns:getDictList('education')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
- </form:select>
- </td>
- </tr>
- <tr>
- <td class="width-15 active"><label class="pull-right">第二学历:</label></td>
- <td class="width-35" >
- <form:select path="secondEdu" class="form-control ">
- <form:option value="" label=""/>
- <form:options items="${fns:getDictList('degree')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
- </form:select>
- </td>
- <td class="width-15 active"><label class="pull-right">第二学位:</label></td>
- <td class="width-35" colspan="3">
- <form:select path="secondDegree" class="form-control ">
- <form:option value="" label=""/>
- <form:options items="${fns:getDictList('education')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
- </form:select>
- </td>
- </tr>
- <tr>
- <td class="width-15 active"><label class="pull-right"><font color="red">*</font>毕业院校及专业:</label></td>
- <td class="width-35" colspan="4">
- <form:input path="graduateAndMajor" htmlEscape="false" class="form-control required "/>
- </td>
- </tr>
- <tr>
- <td class="width-15 active"><label class="pull-right"><font color="red">*</font>身份证号:</label></td>
- <td class="width-35">
- <form:input path="idCard" htmlEscape="false" class="form-control isIdCardNo required"/>
- </td>
- <td class="width-15 active"><label class="pull-right">电子邮箱:</label></td>
- <td class="width-35" colspan="2">
- <form:input path="eMail" htmlEscape="false" class="form-control email"/>
- </td>
- </tr>
- <tr>
- <td class="width-15 active"><label class="pull-right">办公电话:</label></td>
- <td class="width-35">
- <form:input path="workTel" htmlEscape="false" class="form-control "/>
- </td>
- <td class="width-15 active"><label class="pull-right">手机:</label></td>
- <td class="width-35" colspan="2">
- <form:input path="mobile" htmlEscape="false" class="form-control isTel"/>
- </td>
- </tr>
- <tr>
- <td class="width-15 active"><label class="pull-right"><font color="red">*</font>域外/域内:</label></td>
- <td class="width-35" >
- <form:select path="types" class="form-control required ">
- <form:option value="" label=""/>
- <form:options items="${fns:getDictList('talent_in_out')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
- </form:select>
- </td>
- <td class="width-15 active"><label class="pull-right"><font color="red">*</font>人才类别</label></td>
- <td class="width-35" colspan="2">
- <form:select path="talentType" class="form-control required">
- <form:option value="" label=""/>
- <form:options items="${fns:getDictList('talent_local_type')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
- </form:select>
- </td>
- </tr>
- <tr>
- <td class="width-15 active"><label class="pull-right"><font color="red">*</font>所属地区:</label></td>
- <td >
- <div class=" input-group" >
- <sys:treeselect id="villageId" name="villageId" value="${talentInfo.villageId}" labelName="allName" labelValue="${talentInfo.allName}"
- title="区域" url="/sys/office/treeData" cssClass="form-control required" notAllowSelectRoot = "true" notAllowSelectParent="true"/>
- </div>
- </td>
- <td class="width-15 active"><label class="pull-right">人才类型:</label></td>
- <td >
- <form:select path="typeDetail" class="form-control ">
- <form:option value="" label=""/>
- </form:select>
- </td>
- </tr>
- <tr>
- <td class="width-15 active"><label class="pull-right">从业状况:</label></td>
- <td class="width-35" colspan="6">
- <form:select path="workSituation" class="form-control ">
- <form:option value="" label=""/>
- <form:options items="${fns:getDictList('talent_work')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
- </form:select>
- </td>
- </tr>
- <tr>
- <td class="width-15 active"><label class="pull-right">专业方向:</label></td>
- <td class="width-35" colspan="6">
- <input type="hidden" name="professionalDirection" value=" ${talentInfo.professionalDirection}"/>
- <div id="professionalDirection">
- ${fns:unescapeHtml(talentInfo.professionalDirection)}
- </div>
- </td>
- </tr>
- <tr>
- <td class="width-15 active"><label class="pull-right">获得荣誉情况:</label></td>
- <td class="width-35" colspan="6">
- <input type="hidden" name="honors" value=" ${talentInfo.honors}"/>
- <div id="honors">
- ${fns:unescapeHtml(talentInfo.honors)}
- </div>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <div style="text-align: center;">
- <button name="btnRegister" class="btnSign" onclick="sign();return false;" style="cursor: pointer" >立即报名</button>
- </div>
- <div style="height: 2px;"></div>
- </div>
- </div>
- </form:form>
- <%@ include file="/webpage/modules/web/footer.jsp"%>
- </body>
- </html>
|