123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734 |
-
- <style>
- .result-box{
-
- }
- </style>
-
- <?php
- $result_map = "";
- $show_class = [];
- $xl = ['不限制','中专','高技','大专','本科','硕士','博士'];
-
- $sql = 'select * from ey_zcwd_position where type='.$detail['sbzy'].' and catid='.$detail['sbzyson'].' and sbdj='.$detail['sbdj'].' and is_del=0 and status=1'.$sql_end.' order by sf asc';
- $is_list_empty = '';
-
- $list_data = [];
-
-
-
-
- $str_no_err = [];
- ?>
- {eyou:sql sql="$sql" cachetime='3600' empty='' id="field"}
- <?php
- $is_list_empty = $field['id'];
- $list_data[] = $field;
- ?>
- {/eyou:sql}
-
-
- {eyou:if condition='(!empty($is_list_empty))'}
- <?php
-
- $tyu_num = 1;
- ?>
- {eyou:volist name='$list_data' id='field'}
-
- <div class="ta-list-li-box result-box-{$tyu_num} result-box">
- <div class="tllb-t">
-
-
-
- <?php
- if($tyu_num == 1){
- $t = '收起';
- $t_class = 'zklp-2';
- }else{
- $t = '展开';
- $t_class = 'zklp-3';
- }
- ?>
-
-
-
- {eyou:if condition='((int)$field.sf === 0)'}
-
- <span class="zklp-l">({$tyu_num})根据你的条件符合申报全国地区,结果如下:</span>
- <span class="zklp zklp{$tyu_num} {$t_class}" data="{$tyu_num}">{$t}</span>
- {eyou:else /}
- <?php
- if((int)$field['sf'] > 0){
- $sql22 = "select id,name from ey_citysite where id=".$field['sf'];
- $sql222 = '';
- if((int)$field['cs'] > 0){
- $sql222 = "select id,name from ey_citysite where id=".$field['cs'];
- }
- }
- ?>
- {eyou:sql sql='$sql22' cachetime='3600' empty='' id="kop"}
- <?php
- $aname = $kop['name'];
- ?>
- {/eyou:sql}
- {eyou:if condition='((int)$field.cs > 0)'}
- {eyou:sql sql='$sql222' cachetime='3600' empty='' id="kop"}
- <?php
- $bname = $kop['name'];
- ?>
- {/eyou:sql}
- {/eyou:if}
-
- <span class="zklp-l">(<font class="sort-num">{$tyu_num}</font>)根据你的条件符合申报{$aname}{$bname}地区,结果如下:</span>
- <span class="zklp zklp{$tyu_num} {$t_class}" data="{$tyu_num}">{$t}</span>
- {/eyou:if}
- </div>
- <div class="clear"></div>
- <div class="tllb-b p-con68 klp{$tyu_num}">
-
-
-
-
-
- <?php
- $num = 0;
- $sql2 = "select * from ey_zcwe_position where type=".$field['id']." and is_del=0 and status=1";
- $son_details = [];
- ?>
- {eyou:sql sql="$sql2" cachetime='3600' empty='暂无相关数据' id="field2"}
- <?php
- $son_details[] = $field2;
- ?>
- {/eyou:sql}
-
-
- <ul class="nav nav-tabs" id="myTab{$tyu_num}" role="tablist">
- <?php
- $io_num = 1;
- ?>
- {eyou:volist name='$son_details' id='field2'}
-
- <li class="nav-item {eyou:if condition='($io_num == 1)'} active {/eyou:if} result-box-{$tyu_num}-son-{$io_num}">
-
- <a class="nav-link {eyou:if condition='($io_num == 1)'}active{/eyou:if} result-box-{$tyu_num}-son-{$io_num} result-box" id="home-tab{$io_num}" data-toggle="tab" style="color: #000 !important;" href="#home{$io_num}" role="tab" aria-controls="home" aria-selected="true">
- 情况<font class="sort-num-i">{$i}</font>
- </a>
- </li>
- <?php
- $io_num++;
- ?>
- {/eyou:volist}
- </ul>
-
-
-
- <div class="tab-content" id="myTabContent">
- <?php
- $io_d_num = 1;
- ?>
- {eyou:volist name='$son_details' id='field2'}
-
- <div class="tab-pane fade {eyou:if condition='($io_d_num == 1)'} active in {/eyou:if} result-box-{$tyu_num}-son-{$io_d_num} result-box" id="home{$io_d_num}" role="tabpanel" aria-labelledby="home-tab{$io_d_num}">
-
- <table class="" style="">
-
- <colgroup>
- <col class="t-wid1 batman">
- <col class="t-wid2 flash">
- <col class="t-wid3 flash">
- <col class="t-wid4 flash">
- </colgroup>
-
- <thead>
- <tr>
- <th>字段信息</th>
- <th>实际要求</th>
- <th>填写资料</th>
- <th>匹配结果</th>
- </tr>
- </thead>
-
- <tbody>
- <?php
-
- ?>
- <tr>
- <td>学历</td>
- <td><?php echo $xl[$field2['xlyq']];?></td>
- <td><?php echo $xl[$detail['xl']];?></td>
- <td>
- <?php
- if($field2['xlyq'] <= $detail['xl']){
-
- echo '<font class="td-r"><img src="https://oss.zc10000.com/static/botstrap-step/img_6.png" /></font>';
- $num++;
- }else{
- echo '<font class="td-b"><img src="https://oss.zc10000.com/static/botstrap-step/img_7.png" /></font>';
-
- $str_no_err[$field['id']][$field2['id']]['xlyq'] = '学历不符';
- }
- ?>
- </td>
- </tr>
-
- <tr>
- <td>年龄</td>
- <td>
- <?php
- if((int)$field2['is_ega'] === 0){
- echo "不限制";
- }else{
- echo $field2['ega_0'].'-'.$field2['ega_1'].'岁';
- }
- ?>
- </td>
- <td>
- {$detail.nl}岁
- </td>
- <td>
- <?php
- if((int)$field2['is_ega'] === 0){
- echo '<font class="td-r"><img src="https://oss.zc10000.com/static/botstrap-step/img_6.png" /></font>';
- $num++;
- }else{
- if((int)$detail['nl'] <= (int)$field2['ega_1'] && (int)$detail['nl'] >= (int)$field2['ega_0']){
-
- echo '<font class="td-r"><img src="https://oss.zc10000.com/static/botstrap-step/img_6.png" /></font>';
- $num++;
- }else{
- echo '<font class="td-b"><img src="https://oss.zc10000.com/static/botstrap-step/img_7.png" /></font>';
-
- $str_no_err[$field['id']][$field2['id']]['nl'] = '年龄不符';
- }
- }
- ?>
- </td>
- </tr>
- <tr>
- <td>毕业专业</td>
- <td>
- {eyou:if condition='((int)$field2.byzy === 0)'}
- 不限制
- {eyou:else /}
-
- <?php
-
-
-
-
-
-
- ?>
-
- 与申报类目一致
-
- {/eyou:if}
-
- </td>
- <td>
- <?php
-
-
-
-
-
-
- ?>
- {eyou:if condition='((int)$detail.byzy_is !== 0)'}
- 与申报类目一致
- {eyou:else /}
- {eyou:if condition='($detail.byzy_name != "")'}
- {$detail.byzy_name}
- {eyou:else /}
- 未填写
- {/eyou:if}
- {/eyou:if}
-
- </td>
-
- <td>
- <?php
-
-
-
- if((int)$detail['byzy_is'] === 1){
-
- echo '<font class="td-r"><img src="https://oss.zc10000.com/static/botstrap-step/img_6.png" /></font>';
- $num++;
- }else{
- echo '<font class="td-b"><img src="https://oss.zc10000.com/static/botstrap-step/img_7.png" /></font>';
-
- $str_no_err[$field['id']][$field2['id']]['byzy'] = '专业不符';
- }
-
- ?>
- </td>
-
-
- </tr>
- <tr>
- <td>学校类型</td>
- <td>
- {eyou:if condition='((int)$field2.xxlx === 0)'}
- 不限制
- {eyou:else /}
- <?php
- if((int)$field2['xxlx'] === 1) echo "全日制";
- if((int)$field2['xxlx'] === 2) echo "非全日制";
- ?>
- {/eyou:if}
- </td>
- <td>
- {eyou:if condition='((int)$detail.xxlx === 1)'}
- 全日制
- {eyou:else /}
- 非全日制
- {/eyou:if}
- </td>
- <td>
- {eyou:if condition='((int)$field2.xxlx === 0)'}
-
- <?php
- echo '<font class="td-r"><img src="https://oss.zc10000.com/static/botstrap-step/img_6.png" /></font>';
- $num++;
- ?>
- {eyou:else /}
- <?php
- if((int)$field2['xxlx'] === (int)$detail['xxlx']){
-
- echo '<font class="td-r"><img src="https://oss.zc10000.com/static/botstrap-step/img_6.png" /></font>';
- $num++;
- }else{
-
- echo '<font class="td-b"><img src="https://oss.zc10000.com/static/botstrap-step/img_7.png" /></font>';
- $str_no_err[$field['id']][$field2['id']]['xxlx'] = '学校类型不符';
- }
- ?>
- {/eyou:if}
- </td>
- </tr>
- <tr>
- <td>毕业时间</td>
- <td>
- {eyou:if condition='((int)$field2.bysj === 0)'}
- 不要求
- {eyou:else /}
- 要求>={$field2.bysj_time}年
- {/eyou:if}
- </td>
- <td>
-
- <?php
-
-
-
- $startDate = new DateTime($detail['bysj']);
-
- $now = new DateTime('now');
-
- $interval = date_diff($startDate, $now);
-
-
- if($interval->y > 0){
- echo '已毕业'.$interval->y . '年';
- }else{
- echo '刚毕业不足1年';
- }
-
- ?>
-
-
- </td>
- <td>
- <?php
- if((int)$field2['bysj'] === 0){
-
- echo '<font class="td-r"><img src="https://oss.zc10000.com/static/botstrap-step/img_6.png" /></font>';
- $num++;
- }else{
- if((int)$field2['bysj_time'] <= $interval->y){
-
- echo '<font class="td-r"><img src="https://oss.zc10000.com/static/botstrap-step/img_6.png" /></font>';
- $num++;
- }else{
-
- echo '<font class="td-b"><img src="https://oss.zc10000.com/static/botstrap-step/img_7.png" /></font>';
- $str_no_err[$field['id']][$field2['id']]['bysj'] = '毕业时间不符';
- }
- }
- ?>
- </td>
- </tr>
- <tr>
- <td>前置证书</td>
- <td>
- <?php
- $zhengshu3 = '';
- $zs_all = [];
-
-
- $sql5 = "select * from ey_zcwf_position where type_son=".$field2['id']." and is_del=0 and status=1 and is_zs=1";
- ?>
- {eyou:sql sql="$sql5" cachetime='3600' empty='不限制' id="field3"}
-
- <?php
- if($i > 1){
- echo "或<br/>";
- }
- ?>
-
- <?php
-
- $zhengshu3 = json_decode($field3['zhengshu'],true);
- $sjnx = json_decode($field3['sjnx'],true);
-
-
-
- $zs_all[] = [
- 'a' => $zhengshu3,
- 'b' => $sjnx
- ];
-
- $zhengshu3_str = '0';
- foreach ($zhengshu3 as $k => $v){
- if((int)$v > 0) {
- $zhengshu3_str .= ',' . $v;
- }
- }
- $sql3 = "select id,title from ey_zczs_position where id IN(".$zhengshu3_str.") and is_del=0 and status=1";
- ?>
- {eyou:if condition='($zhengshu3_str != "0")'}
- {eyou:sql sql="$sql3" cachetime='3600' empty='' id="field4"}
- <?php
- $key_s = array_search($field4['id'], $zhengshu3);
- $year_s = $sjnx[$key_s];
- ?>
- {$field4.title}<br/>(需要{$year_s}年)<br/>
- {/eyou:sql}
- {eyou:else /}
-
- {/eyou:if}
-
-
- {/eyou:sql}
- </td>
- <td>
-
-
- <?php
-
- $zhengshu = json_decode($detail['zs'],true);
- $zsnx = json_decode($detail['zsnx'],true);
- $zhengshu_str = '0';
- foreach ($zhengshu as $k => $v){
- if((int)$v > 0){
- $zhengshu_str .= ','.$v;
- }
- }
- $sql3 = "select id,title from ey_zczs_position where id IN(".$zhengshu_str.") and is_del=0 and status=1";
- ?>
-
- {eyou:if condition='($zhengshu_str != "0")'}
- {eyou:sql sql="$sql3" cachetime='3600' empty='' id="field3"}
- <?php
- $key_s = array_search($field3['id'], $zhengshu);
- $year_s = $zsnx[$key_s];
- ?>
- {$field3.title}<br/>(拥有{$year_s}年)<br/>
- {/eyou:sql}
- {eyou:else /}
- 无
- {/eyou:if}
-
- </td>
-
- <td>
- <?php
-
-
-
- if(empty($zhengshu3)){
-
- echo '<font class="td-r"><img src="https://oss.zc10000.com/static/botstrap-step/img_6.png" /></font>';
- $num++;
- }else{
- if(empty($zhengshu)){
-
-
- echo '<font class="td-b"><img src="https://oss.zc10000.com/static/botstrap-step/img_7.png" /></font>';
- $str_no_err[$field['id']][$field2['id']]['xxlx'] = '未拥有证书';
- }else{
-
-
- $ik = 1;
- $ik2 = 1;
- $ik3 = 1;
- foreach ($zs_all as $k => $v){
- if($k > 0){
-
- }
-
-
- $ik4 = 0;
- foreach ($v['a'] as $k2 => $v2){
-
-
-
-
- $run_1 = '';
- $run_2 = '';
- $run_3 = '';
- if((int)$v2 > 0) {
- if (in_array($v2, $zhengshu)) {
-
- $key_i = array_search($v2, $zhengshu);
-
- if ((int)$zsnx[$key_i] >= (int)$v['b'][$k2]) {
- $run_1 = '<font style="color: blue;">符合</font><br/>' . $ik . '项';
- $ik++;
- } else {
- $run_2 = '<font style="color: blue;">年限不符合</font><br/>' . $ik2 . '项';
- $ik2++;
- }
- } else {
- $run_3 = '<font style="color: blue;">未拥有</font><br/>' . $ik3 . '项';
- $ik3++;
- }
- $ik4++;
- }
-
-
-
-
- }
-
-
-
-
- if(($ik-1) === $ik4){
-
-
- $res = '<font class="td-r"><img src="https://oss.zc10000.com/static/botstrap-step/img_6.png" /></font>';
- $num++;
-
- break;
- }else{
-
-
- $res = '<font class="td-b"><img src="https://oss.zc10000.com/static/botstrap-step/img_7.png" /></font>';
- $str_no_err[$field['id']][$field2['id']]['xxlx'] = '证书要求不符';
- }
- }
- echo $res;
- }
- }
- ?>
-
-
- </td>
-
-
- </tr>
- <tr>
- <td>综合评估</td>
- <td colspan="3" style="vertical-align:middle;">
-
- <?php
-
- if($num >= 6){
-
- $show_class['a'][] = 'result-box-'.$tyu_num;
- $show_class['b'][] = 'result-box-'.$tyu_num.'-son-'.$io_d_num;
-
-
- echo "<font style='color: blue;'>完全符合要求!</font>";
-
- $bname_str = '';
- if(!empty($bname)){
- $bname_str = '/'.$bname;
- }
- $area_name_str_0 = $aname.$bname_str;
-
- if (strpos($result_map,$area_name_str_0) !== false) {
-
- }else{
- $result_map .= $area_name_str_0.'地区<br/>';
- }
- $str_no_err[$field['id']][$field2['id']]['zhpg'] = 2;
- $str_no_err[$field['id']][$field2['id']]['diqu'] = $aname.'/'.$bname_str;
-
- }else if($num === 0){
-
- $show_class['c'][] = 'result-box-'.$tyu_num;
- $show_class['d'][] = 'result-box-'.$tyu_num.'-son-'.$io_d_num;
-
- echo "<font style='color: red;'>完全不符合要求!</font>";
- $str_no_err[$field['id']][$field2['id']]['zhpg'] = 0;
- }else{
-
- $show_class['c'][] = 'result-box-'.$tyu_num;
- $show_class['d'][] = 'result-box-'.$tyu_num.'-son-'.$io_d_num;
-
- echo "<font style='color: #ff4c08;'>未完全符合要求!</font>";
- $str_no_err[$field['id']][$field2['id']]['zhpg'] = 1;
- }
- $num = 0;
- ?>
-
- </td>
- </tr>
- </tbody>
- </table>
- </div>
-
- <?php
- $io_d_num++;
- ?>
- {/eyou:volist}
- </div>
-
- </div>
- </div>
-
- <?php
- $tyu_num++;
- ?>
- {/eyou:volist}
- {/eyou:if}
-
-
- <?php
-
- $result_map_add = '<div></div>';
- ?>
- {eyou:if condition='(empty($is_list_empty))'}
- <?php
- $is_tg = 0;
- ?>
- <div class="alert alert-danger" role="alert" style="margin-top:10px;margin-bottom:8px;">
-
-
- <font class='result-div'>{$scen}</font>
- </div>
- {eyou:else /}
-
-
- <?php
- if(empty($result_map)){
- $info = '';
- $result_map = "<font class='result-div'>抱歉!未找到完全符合条件的地区!</font>";
- $class = 'alert-danger';
- $is_tg = 0;
- $result_map_add = '<div></div>';
- }else{
-
- $info = "<font class='result-div'>找到以下条件完全符合申请的地区:</font>";
- $class = 'alert-success';
- $is_tg = 1;
- $result_map_add = $result_map;
- }
- ?>
- <div class="alert {$class}" role="alert" style="margin-top:10px;display: block;margin-bottom:8px;">
- <?php
- echo $info;
- echo "<font class='result-div'>".$result_map."</font>";
- ?>
- </div>
-
- <?php
- if($is_tg === 1) {
- echo "<p><font style='margin-bottom: 10px; margin-right: 10px;'>下载文件:</font>";
- if (!empty($map_area)) {
- foreach ($map_area as $k => $v) {
- if (strpos($result_map, $v) !== false) {
- $downname = explode('.'.$map_file[$v]);
-
- echo "<a href='" . $base_url . $map_file[$v] . "' target='_blank' download='".$downname[0]."' style='color:#000 !important;margin-right:10px;'>" . $map_file[$v] . "</a>";
- }
- }
- }
- echo "</p>";
- }
- ?>
-
- {/eyou:if}
-
- <?php
- echo "<p><font style='margin-bottom: 10px; margin-right: 10px;'>业绩材料下载:</font>";
-
- echo "<a href='./uploads/pdf/0/职称申报材料汇总.pdf' target='_blank' download='职称申报材料汇总' style='color:red !important;margin-right:10px;font-weight: bold;text-decoration: underline;'>职称申报材料汇总.pdf</a>";
- echo "</p>";
- ?>
-
- <?php
-
-
- foreach ($show_class[c] as $k => $v){
- foreach ($show_class[a] as $k2 => $v2) {
- if($v == $v2){
- unset($show_class[c][$k]);
- }
- }
- }
-
- ?>
|