123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723 |
-
- <style>
- .result-box{
- /*display: none !important;*/
- }
- </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 = '';
- //echo $sql;
- $list_data = [];
-
- //测试Db操作
- //$row_t = Db::table('ey_zcwd_position')->find();
- //var_dump($row_t);
- $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">
- <!--<div class="panel panel-primary" style="display:block;">
- <div class="panel-body">-->
-
-
- <?php
- if($tyu_num == 1){
- $t = '收起';
- $t_class = 'zklp-2';
- }else{
- $t = '展开';
- $t_class = 'zklp-3';
- }
- ?>
-
-
-
- {eyou:if condition='((int)$field.sf === 0)'}
- <!--({$t}匹配结果)全国通用申报要求对比结果如下:-->
- <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}
- <!--({$t}匹配结果){$aname}{$bname}地区申报要求对比结果如下:-->
- <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}">
- <!--</div>
- <div class="panel-footer" style="padding:3px 5px;">-->
-
-
- <!--查询专业-->
- <?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'}
- <!--active-->
- <li class="nav-item {eyou:if condition='($io_num == 1)'} active {/eyou:if} result-box-{$tyu_num}-son-{$io_num}">
- <!--active-->
- <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'}
- <!--active in-->
- <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="">
- <!--<caption>第{$i}种情况</caption>-->
- <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 style='color: blue;'>符合</font>";
- echo '<font class="td-r"><img src="/template/pc/js/botstrap-step/img_6.png" /></font>';
- $num++;
- }else{
- echo '<font class="td-b"><img src="/template/pc/js/botstrap-step/img_7.png" /></font>';
- //echo "<font style='color: red;'>不符合</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="/template/pc/js/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 style='color: blue;'>符合</font>";
- echo '<font class="td-r"><img src="/template/pc/js/botstrap-step/img_6.png" /></font>';
- $num++;
- }else{
- echo '<font class="td-b"><img src="/template/pc/js/botstrap-step/img_7.png" /></font>';
- //echo "<font style='color: red;'>不符合</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
- //查询出毕业专业 $deta
- /*$zhengshu2 = json_decode($field2['zhengshu2'],true);
- $zhengshu2_str = '0';
- foreach ($zhengshu2 as $k => $v){
- if((int)$v > 0) {
- $zhengshu2_str .= ',' . $v;
- }
- }
- $sql3 = "select id,title from ey_zczy_position where id IN(".$zhengshu2_str.") and is_del=0 and status=1";*/
-
- /*
- *
- * {eyou:if condition='($zhengshu2_str != "0")'}
- {eyou:sql sql="$sql3" cachetime='3600' empty='' id="field3"}
- {$field3.title}<br/>
- {/eyou:sql}
- {eyou:else /}
- 不限制
- {/eyou:if}
-
- */
- ?>
-
- 与申报类目一致
-
- {/eyou:if}
-
- </td>
- <td>
- <?php
- //查询出毕业专业 $deta
- /*$zhengshu = json_decode($detail['zy'],true);
- $zhengshu_str = '0';
- foreach ($zhengshu as $k => $v){
- if ((int)$v > 0) {
- $zhengshu_str .= ',' . $v;
- }
- }
- $sql3 = "select id,title from ey_zczy_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"}
- {$field3.title}<br/>
- {/eyou:sql}
- {eyou:else /}
- 无
- {/eyou:if}
- */
- ?>
- {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)$field2.byzy === 0 || empty($zhengshu2)){
- //echo "<font style='color: blue;'>符合</font>";
- echo '<font class="td-r"><img src="/template/pc/js/botstrap-step/img_6.png" /></font>';
- $num++;
- }else{
- if(empty($zhengshu)){
- echo '<font class="td-b"><img src="/template/pc/js/botstrap-step/img_7.png" /></font>';
- //echo "<font style='color: red;'>不符合</font>";
- $str_no_err[$field['id']][$field2['id']]['byzy'] = '专业不符';
- }else{
- //$run = "<font style='color: red;'>不符合</font>";
- $run = '<font class="td-b"><img src="/template/pc/js/botstrap-step/img_7.png" /></font>';
- $str_no_err[$field['id']][$field2['id']]['byzy'] = '专业不符';
- $ik = 1;
- foreach ($zhengshu as $k => $v){
- if(in_array($v,$zhengshu2)){
- //$run = '<font style="color: blue;">符合</font><br/>'.$ik.'项';
- //$run = '<font style="color: blue;">符合</font><br/>';
- $run = '<font class="td-r"><img src="/template/pc/js/botstrap-step/img_6.png" /></font>';
- $str_no_err[$field['id']][$field2['id']]['byzy'] = '';
- $ik++;
- }
- }
- echo $run;
- if($ik>1){
- $num++; //符合+1
- }
- }
- }*/
-
- if((int)$detail['byzy_is'] === 1){
- //一致
- echo '<font class="td-r"><img src="/template/pc/js/botstrap-step/img_6.png" /></font>';
- $num++;
- }else{
- echo '<font class="td-b"><img src="/template/pc/js/botstrap-step/img_7.png" /></font>';
- //echo "<font style='color: red;'>不符合</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)'}
- <!--<font style='color: blue;'>符合</font>-->
- <?php
- echo '<font class="td-r"><img src="/template/pc/js/botstrap-step/img_6.png" /></font>';
- $num++;
- ?>
- {eyou:else /}
- <?php
- if((int)$field2['xxlx'] === (int)$detail['xxlx']){
- //echo "<font style='color: blue;'>符合</font>";
- echo '<font class="td-r"><img src="/template/pc/js/botstrap-step/img_6.png" /></font>';
- $num++;
- }else{
- //echo "<font style='color: red;'>不符合</font>";
- echo '<font class="td-b"><img src="/template/pc/js/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
-
- //$detail['bysj']
- //假设我们要计算的时间是2000年1月1日
- $startDate = new DateTime($detail['bysj']);
- // 获取现在的日期
- $now = new DateTime('now');
- // 计算差值
- $interval = date_diff($startDate, $now);
- // 输出年份
- ////echo $interval->y . ' years';
- if($interval->y > 0){
- echo '已毕业'.$interval->y . '年';
- }else{
- echo '刚毕业不足1年';
- }
-
- ?>
-
-
- </td>
- <td>
- <?php
- if((int)$field2['bysj'] === 0){
- //echo "<font style='color: blue;'>符合</font>";
- echo '<font class="td-r"><img src="/template/pc/js/botstrap-step/img_6.png" /></font>';
- $num++;
- }else{
- if((int)$field2['bysj_time'] <= $interval->y){
- //echo "<font style='color: blue;'>符合</font>";
- echo '<font class="td-r"><img src="/template/pc/js/botstrap-step/img_6.png" /></font>';
- $num++;
- }else{
- //echo "<font style='color: red;'>不符合</font>";
- echo '<font class="td-b"><img src="/template/pc/js/botstrap-step/img_7.png" /></font>';
- $str_no_err[$field['id']][$field2['id']]['bysj'] = '毕业时间不符';
- }
- }
- ?>
- </td>
- </tr>
- <tr>
- <td>前置证书</td>
- <td>
- <?php
- $zhengshu3 = '';
- $zs_all = [];
- //(且或) 列出证书要求
- //调用需要的记录 is_zs
- $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
- //查询出证书 $deta
- $zhengshu3 = json_decode($field3['zhengshu'],true);
- $sjnx = json_decode($field3['sjnx'],true);
- //var_dump($field3);
- //var_dump($field3['zhengshu']);
- //var_dump($field3['sjnx']);
- $zs_all[] = [
- 'a' => $zhengshu3,
- 'b' => $sjnx
- ];
- //var_dump($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
- //查询出拥有的证书 $deta
- $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
- //var_dump($field['id']);
- //var_dump($zs_all);
- //表示没查出限制要求
- if(empty($zhengshu3)){
- //echo "<font style='color: blue;'>符合</font>";
- echo '<font class="td-r"><img src="/template/pc/js/botstrap-step/img_6.png" /></font>';
- $num++;
- }else{
- if(empty($zhengshu)){
- //用户没有证书
- //echo "<font style='color: red;'>不符合</font>";
- echo '<font class="td-b"><img src="/template/pc/js/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){
- //echo "或<br/>";
- }
- //第二轮 循环 且
- //var_dump($v['a']);
- $ik4 = 0; //真实有效数量
- foreach ($v['a'] as $k2 => $v2){
- //var_dump($v2);
- //var_dump($zhengshu);
- //第三轮 循环 每一项要求是否在 用户拥有的证书 里面
- //必须完全满足
- $run_1 = '';
- $run_2 = '';
- $run_3 = '';
- if((int)$v2 > 0) {
- if (in_array($v2, $zhengshu)) {
- //判断年限是否符合要求
- $key_i = array_search($v2, $zhengshu);
- //var_dump($zsnx[$key_i]);
- 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(!empty($run_1)) echo $run_1.'<br/>';
- //if(!empty($run_2)) echo $run_2.'<br/>';
- //if(!empty($run_3)) echo $run_3.'<br/>';
- }
-
- ////echo count($v['a']);
- //var_dump($ik);
- //var_dump(count($v['a']));
- if(($ik-1) === $ik4){
- ////echo "<font style='color: blue;'>符合1</font>";
- //$res = "<font style='color: blue;'>符合</font>";
- $res = '<font class="td-r"><img src="/template/pc/js/botstrap-step/img_6.png" /></font>';
- $num++;
- //跳出循环 已经符合其中 一个 且了
- break;
- }else{
- ////echo "<font style='color: red;'>不符合2</font>";
- //$res = "<font style='color: red;'>不符合</font>";
- $res = '<font class="td-b"><img src="/template/pc/js/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
- ////echo $num;
- if($num >= 6){
- //拼接需要显示的class
- $show_class['a'][] = 'result-box-'.$tyu_num;
- $show_class['b'][] = 'result-box-'.$tyu_num.'-son-'.$io_d_num;
-
- //多次循环可能大于6
- 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>-->
- </div>
- </div>
-
- <?php
- $tyu_num++;
- ?>
- {/eyou:volist}
- {/eyou:if}
-
- <!--以下输出结果-->
- <?php
- //var_dump($is_list_empty);
- ?>
- {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;">
- <!--<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
- <span class="sr-only">Error:</span>-->
- <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;
- }else{
- //$result_map;
- $info = "<font class='result-div'>找到以下条件完全符合申请的地区:</font>";
- $class = 'alert-success';
- $is_tg = 1;
- }
- ?>
- <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) {
- //存在该地区
- echo "<a href='" . $base_url . $map_file[$v] . ".pdf' target='_blank' download='".$map_file[$v]."' style='color:#000 !important;margin-right:10px;'>" . $map_file[$v] . "</a>";
- }
- }
- }
- echo "</p>";
- }
- ?>
-
- {/eyou:if}
-
- <?php
-
- //重新处理 $show_class
- foreach ($show_class[c] as $k => $v){
- foreach ($show_class[a] as $k2 => $v2) {
- if($v == $v2){
- unset($show_class[c][$k]);
- }
- }
- }
-
- ?>
|