123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743 |
-
- <?php
- $param = request()->param();
- function isValidChineseMobileNumber($number) {
- return preg_match('/^1\d{10}$/', $number) ? true : false;
- }
- if(!empty($param['p'])){
-
- if(isValidChineseMobileNumber($param['p'])) {
- $is_cha = 1;
- }else{
- $is_cha = 0;
- }
- }else{
- $is_cha = 0;
- }
-
- $is_detail = 0;
- if(!empty($param['h'])){
- $is_cha = 1;
- $is_detail = 1;
-
- $sql = "select * from ey_zc_form where code='".$param['h']."' and status=1 and is_del=0 limit 1";
-
- }
-
-
-
- ?>
-
- {eyou:if condition='($is_detail === 1)'}
- {eyou:sql sql='$sql' cachetime='3600' empty=''}
- {eyou:php}
- $detail = $field;
- $extend_info = json_decode($field['extend'],true);
- {/eyou:php}
- {/eyou:sql}
-
-
- <?php
-
-
- if((int)$detail['yxdq'] === 10001){
- $area_name = '不限制';
- }else if((int)$detail['yxdq'] === 20000){
- $area_name = '全国';
- }else if((int)$detail['yxdq'] === 0){
- $area_name = '未选';
- }else{
- $area_name = '';
- $sql2 = "select id,name from ey_citysite where id=".$detail['yxdq'];
- }
-
-
- $zc_name = '';
- $sql3 = "select id,title from ey_zc_position where id=".$detail['sbzy'];
-
-
- $zc_dj = '';
- $sql4 = "select id,title from ey_zcdj_position where id=".$detail['sbdj'];
- ?>
-
- {eyou:if condition='($area_name == "")'}
- {eyou:sql sql='$sql2' cachetime='3600' empty=''}
- {eyou:php}
- $area_name = $field['name'];
- {/eyou:php}
- {/eyou:sql}
- {/eyou:if}
-
- <?php
-
-
-
- ?>
-
- {/eyou:if}
-
-
-
-
- <style>
- .nav-item-b{
- color: #6b7386 !important;
- }
- .iconfont{
- color: #6b7386;
- }
- .nav-item:nth-child(4) .iconfont{
- color: red !important;
- }
- .nav-item:nth-child(4) .nav-item-b{
- color: red !important;
- }
- .table-bordered tr th{
- text-align: center;
- }
- .table-bordered tr td{
- text-align: center;
- }
- </style>
-
- <link rel="stylesheet" type="text/css" media="all" href="/template/pc/js/botstrap-step/daterangepicker.css" />
- <style>
-
- .daterange i {
- position: absolute;
- bottom: 18px;
- right: 14px;
- top: auto;
- cursor: pointer;
- }
- .daterange {
-
- position: relative;
- }
- .daterangepicker button{
- height: auto !important;
- line-height: 1.5 !important;
- }
- .daterange input{
- padding: 0 20px 0 20px;
- }
- .daterange label{
-
-
- }
- .daterangepicker{
-
- }
-
- .checkbox-inline input{
- transform: scale(1.2);
- }
-
- </style>
-
-
- <?php
-
-
-
- ?>
-
-
- <div class="top-content">
-
- <div class="inner-bg">
- <div class="container">
- <div class="row">
- <div class="col-sm-8 col-sm-offset-2 text" style="text-align: center;">
- <h1><strong>Bootstrap</strong> Multi Step Registration Form</h1>
- <div class="description">
- <p>
-
- </p>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-sm-6 col-sm-offset-3 form-box">
-
- <form role="form" action="" method="post" class="registration-form">
-
-
-
- {eyou:if condition='($is_cha === 1)'}
-
- <?php
-
-
- ?>
- <fieldset>
-
- <div class="form-top">
- <div class="form-top-left">
- <h3>Step 5 / 5</h3>
-
-
- <?php
- function hide_phone_number_regex($phone_number) {
- return preg_replace('/(\d{3})\d{4}(\d{4})/', '$1****$2', $phone_number);
- }
-
-
-
-
- ?>
- {eyou:if condition='($is_detail === 0)'}
- <p>查询结果展示:<br/><br/>
-
-
- 手机: <?php echo hide_phone_number_regex($param['p']); ?><br/>
- </p>
- {eyou:else /}
- <p>匹配结果展示:<br/><br/>
-
- 姓名: {$detail.ch}<br/>
- 手机: <?php echo hide_phone_number_regex($detail['sjhm']); ?><br/>
- 地区: {$extend_info.szsf}/{$extend_info.szcs}
- </p>
- {/eyou:if}
- </div>
- <div class="form-top-right">
- <i class="fa fa-twitter"></i>
- </div>
- </div>
-
-
-
-
-
-
- <div class="form-bottom" style="padding:0 !important;background: none;">
-
- {eyou:if condition='($is_detail === 0)'}
- <div class="panel" style="margin-top:15px;">
- <div class="panel-body">
- 查询最新10条结果:
- </div>
- <div class="panel-footer">
- <ul class="list-group">
- <?php
- $sql = "select id,code,addtime,ch from ey_zc_form where sjhm='".$param['p']."' and status=1 and is_del=0 order by addtime desc limit 0,10";
- ?>
- {eyou:sql sql="$sql" cachetime='3600' empty='未找到相关记录' id='field'}
- <li class="list-group-item" style="position:relative;">
- <a href="/cp?h={$field.code}">{$field.ch}于 {$field.addtime|MyDate="Y-m-d H:i:s",###} 提交</a>
- <span aria-hidden="true" style="position:absolute;right: 0px;top:12px;">»</span>
- </li>
- {/eyou:sql}
- </ul>
- </div>
- </div>
- {eyou:else /}
-
-
- <div class="well" style="margin-top:20px;">
-
- <?php
-
-
- ?>
- 申报专业: {$extend_info.sbzy}<br/>
- 申报等级: {$extend_info.sbdj}<br/>
-
- </div>
-
- {eyou:if condition='($detail.yxdq > 0 && $detail.yxdq < 10001)'}
-
- <?php
- $yxdi_id = $detail['yxdq'];
- $sql_end = ' and sf='.$yxdi_id;
- $scen = '抱歉!暂时未找到<预选地区>相关匹配结果信息!';
- $t = "预选地区";
- ?>
- {eyou:include file='/template/pc/components/index/kop.htm' /}
- <?php
- $yxdi_id = $detail['yxdq'];
- $sql_end = ' and sf!='.$yxdi_id;
- $scen = '抱歉!暂时未找到<其他区域>相关匹配结果信息!';
- $t = "其他推荐地区";
- ?>
- {eyou:include file='/template/pc/components/index/kop.htm' /}
-
- {eyou:else /}
- <?php
-
- $sql_end = '';
- $t = '';
- $scen = '抱歉!暂时未找到相关匹配结果信息!';
- ?>
- {eyou:include file='/template/pc/components/index/kop.htm' /}
- {/eyou:if}
-
-
-
-
- {/eyou:if}
-
-
-
- <button type="button" class="btn" onclick="location.href='https://www.zc10000.com/cp'">重新匹配</button>
-
-
-
-
-
-
-
- </div>
-
- </fieldset>
-
-
-
-
- {eyou:else /}
-
-
-
-
-
-
-
- <?php
-
-
- ?>
- <fieldset>
- <div class="form-top">
- <div class="form-top-left">
- <h3>Step 1 / 5</h3>
- <p>选择申报专业与等级:</p>
- </div>
- <div class="form-top-right">
- <i class="fa fa-user"></i>
- </div>
- </div>
- <div class="form-bottom">
- <div class="form-group">
-
-
-
- <select class="form-control" id="choose1" name="yxdq" style="display:none;">
- <option value="0">选择地区(可选)</option>
- <option value="10001">不限制</option>
- <option value="20000">全国</option>
- {eyou:sql sql="select id,name from ey_citysite where level=1 and status=1" cachetime='3600' empty='' id='field'}
- <option value="{$field.id}">{$field.name}</option>
- {/eyou:sql}
- </select>
- </div>
-
-
- <div class="form-group" style="margin-bottom: 15px;">
- <div class="col-sm-6 col-xs-6" style="padding-left:0px;padding-right:3px;">
- <select class="form-control" id="choose11" name="szsf">
- <option value="0">选择省份</option>
- {eyou:sql sql="select id,name from ey_citysite where status=1 and level=1" cachetime='3600' empty='' id='field'}
- <option value="{$field.id}">{$field.name}</option>
- {/eyou:sql}
- </select>
- </div>
- <div class="col-sm-6 col-xs-6" style="padding-right:0px;padding-left: 3px;">
- <select class="form-control" id="choose12" name="szcs">
- <option value="0">选择城市</option>
- </select>
- </div>
- <div class="clear"></div>
- </div>
-
- <div class="form-group">
-
-
-
- <select class="form-control" id="choose2" name="sbzy">
- <option value="0">选择申报专业</option>
- {eyou:sql sql="select id,title from ey_zc_position where is_del=0 and status=1" cachetime='3600' empty='' id='field'}
- <option value="{$field.id}">{$field.title}</option>
- {/eyou:sql}
- </select>
-
- </div>
- <div class="form-group">
-
-
- <select class="form-control" id="choose3" name="sbdj">
- <option value="0" selected>选择申报等级</option>
- </select>
- </div>
- <button type="button" class="btn btn-next">下一步</button>
- </div>
- </fieldset>
-
- <?php
-
-
- ?>
- <fieldset>
- <div class="form-top">
- <div class="form-top-left">
- <h3>Step 2 / 5</h3>
- <p>个人基本信息:</p>
- </div>
- <div class="form-top-right">
- <i class="fa fa-key"></i>
- </div>
- </div>
- <div class="form-bottom">
- <div class="form-group">
-
-
- <select class="form-control" id="choose6" name="nl">
- <option value="0">选择年龄</option>
- {eyou:for start='18' end='80'}
- <option value="{$i}">{$i}岁</option>
- {/eyou:for}
- </select>
- </div>
- <div class="form-group">
-
-
-
-
- <select class="form-control" id="choose5" name="xl">
- <option value="0">选择学历</option>
- <option value="1">中专</option>
- <option value="2">高技</option>
- <option value="3">大专</option>
- <option value="4">本科</option>
- <option value="5">硕士</option>
- <option value="6">博士</option>
- </select>
- </div>
-
-
-
-
-
- <div class="form-group">
-
-
- <select class="form-control" id="choose7" name="xxlx">
- <option value="0">选择学校类型</option>
- <option value="1">全日制</option>
- <option value="2">非全日制</option>
- </select>
- </div>
-
-
-
-
-
- <div id="zy_box" class="form-group" style="padding-left: 5px;position: relative;">
- <label class="col-sm-12 control-label" style="padding-left: 0;">是否以下相关毕业专业</label>
- <div class="col-sm-12" style="padding-left: 0;margin-bottom: 0px;" id="zys">
-
-
-
- </div>
- <div class="clear"></div>
- </div>
-
-
-
-
-
-
-
-
- <div class="form-group daterange" style="display:none;">
- <label style="margin-left: 5px;">选择毕业时间</label>
-
- <div class="">
- <input class="form-control" name="bysj" type="text" value="">
- <i class="fa fa-calendar"></i>
- </div>
- </div>
-
- <?php
- $end_year = date('Y', time()) + 1;
-
- ?>
- <select class="form-control" id="choose33" name="bysj2" style="margin-bottom: 15px;">
- <option value="0">选择毕业时间</option>
- {eyou:for start='1990' end="$end_year"}
- <option value="{$i}-07-01">{$i}年</option>
- {/eyou:for}
- </select>
-
-
-
-
-
-
- <button type="button" class="btn btn-previous">上一步</button>
- <button type="button" class="btn btn-next">下一步</button>
- </div>
- </fieldset>
-
- <?php
-
-
- ?>
-
- <fieldset>
- <div class="form-top">
- <div class="form-top-left">
- <h3>Step 3 / 5</h3>
- <p>前置条件咨询:</p>
- </div>
- <div class="form-top-right">
- <i class="fa fa-twitter"></i>
- </div>
- </div>
- <div class="form-bottom">
-
-
- <?php
-
- ?>
-
-
- <div class="form-group">
- <label class="col-sm-12 control-label" style="padding-left: 0;">选择相关证书以及时间年限</label>
- <div class="col-sm-12" style="padding-left: 0;margin-bottom: 15px;" id="zss">
-
-
- </div>
- <input type="hidden" id="zhengshu_val" name="zhengshu_val" value="" />
- </div>
-
-
-
-
-
- <button type="button" class="btn btn-previous">上一步</button>
- <button type="button" class="btn btn-next" id="jumpBtn">下一步</button>
- </div>
- </fieldset>
-
-
- <?php
-
-
- ?>
- <fieldset>
- <div class="form-top">
- <div class="form-top-left">
- <h3>Step 4 / 5</h3>
- <p>安全验证:</p>
- </div>
- <div class="form-top-right">
- <i class="fa fa-twitter"></i>
- </div>
- </div>
- <div class="form-bottom">
- <div class="form-group">
- <input type="text" name="ch" value="" placeholder="请输入称呼" class="form-first-name form-control" id="per-name">
- </div>
- <div class="form-group">
- <input type="text" name="sjhm" value="" placeholder="请输入手机号码" class="form-first-name form-control" id="per-phone">
- </div>
- <div class="form-group" style="position:relative;">
- <input type="text" name="yzm" value="" placeholder="请输入验证码" class="form-first-name form-control" id="per-code" style="width:60%;">
- <button type="button" class="btn btn-default get-code get-code-hover email-retrieve-code" id="retrieve-code" style="width: 38%;position:absolute;right: 0;top: 0;background-color:#19b9e7 !important;padding: 0 7px;">获取验证码</button>
- </div>
- <input type="hidden" name="__mobile_1_token__" value="" id="token" />
- <button type="button" class="btn btn-previous">上一步</button>
- <button type="submit" class="btn">获取结果</button>
- </div>
- </fieldset>
-
-
- {/eyou:if}
- </form>
-
- </div>
- </div>
- </div>
- </div>
-
- </div>
- <div class="col-sm-6 col-sm-offset-3 form-box" id="sele-box" style="padding-top:0;padding-bottom: 50px;text-align: left;margin-top:-60px;">
- <form class="form-inline">
- <div class="form-group" style="text-align: left;">
- <label for="exampleInputFile" style="color: #fff;">如果您提交过资料信息:</label>
- <label class="sr-only" for="form-first-name">请输入手机号码</label>
- <input type="text" name="p" placeholder="请输入手机号码" class="form-first-name form-control" id="ffnp" value="<?php echo $param['p']?$param['p']:$detail['sjhm']; ?>">
- <input type="hidden" name="t" value="" id="times"/>
- </div>
- <div class="form-group" style="position:relative;">
- <input type="text" name="cxyzm" value="" placeholder="请输入验证码" class="form-first-name form-control" id="cx-code" style="width:60%;">
- <button type="button" class="btn btn-default get-code get-code-hover email-retrieve-code" id="cx-rel-code" style="width: 38%;position:absolute;right: 0;top: 0;background-color:#19b9e7 !important;padding: 0 7px;">获取验证码</button>
- </div>
- <button type="submit" id="cx-submit" class="btn btn-default btn-sm" onclick="return false;">立即查询</button>
- </form>
- </div>
-
- <style>
- @media (min-width: 768px){
- #sele-box{
- text-align: center !important;
- margin-top:-100px !important;
- padding-bottom: 70px !important;
- }
- }
- </style>
-
-
-
-
- <div class="modal" id="loadingModal" tabindex="-1">
- <div class="modal-dialog">
- <div class="modal-content">
- <div class="modal-body text-center">
- <div class="spinner-border text-primary" role="status">
- <span class="visually-hidden">Loading...</span>
- </div>
-
- </div>
- </div>
- </div>
- </div>
-
-
- <div class="modal fade" tabindex="-1" role="dialog" id="myModal">
- <div class="modal-dialog" role="document">
- <div class="modal-content">
- <div class="modal-header" style="padding: 8px;">
- <button type="button" class="close" data-dismiss="modal" aria-label="Close" style="font-size: 24px;"><span aria-hidden="true">×</span></button>
- <h4 class="modal-title">提示</h4>
- </div>
- <div class="modal-body">
- <p>One fine body…</p>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-default" data-dismiss="modal" style="height: 30px;line-height: 30px;">关闭</button>
-
- </div>
- </div>
- </div>
- </div>
|