설명 없음
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

show.htm 25KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717
  1. <?php
  2. function hide_phone_number_regex($phone_number) {
  3. return preg_replace('/(\d{3})\d{4}(\d{4})/', '$1****$2', $phone_number);
  4. }
  5. $param = request()->param();
  6. function isValidChineseMobileNumber($number) {
  7. return preg_match('/^1\d{10}$/', $number) ? true : false;
  8. }
  9. if(!empty($param['p'])){
  10. //验证手机号码
  11. if(isValidChineseMobileNumber($param['p'])) {
  12. $is_cha = 1;
  13. }else{
  14. $is_cha = 0;
  15. }
  16. }else{
  17. $is_cha = 0;
  18. }
  19. $is_detail = 0;
  20. if(!empty($param['h'])){
  21. $is_cha = 1;
  22. $is_detail = 1;
  23. $sql = "select * from ey_zc_form where code='".$param['h']."' and status=1 and is_del=0 limit 1";
  24. }
  25. //缓存问题 增加时间参数即可
  26. ?>
  27. {eyou:if condition='($is_detail === 1)'}
  28. {eyou:sql sql='$sql' cachetime='3600' empty=''}
  29. {eyou:php}
  30. $detail = $field;
  31. $extend_info = json_decode($field['extend'],true);
  32. {/eyou:php}
  33. {/eyou:sql}
  34. <?php
  35. //区域
  36. if((int)$detail['yxdq'] === 10001){
  37. $area_name = '不限制';
  38. }else if((int)$detail['yxdq'] === 20000){
  39. $area_name = '全国';
  40. }else if((int)$detail['yxdq'] === 0){
  41. $area_name = '未选';
  42. }else{
  43. $area_name = '';
  44. $sql2 = "select id,name from ey_citysite where id=".$detail['yxdq'];
  45. }
  46. //职称
  47. $zc_name = '';
  48. $sql3 = "select id,title from ey_zc_position where id=".$detail['sbzy'];
  49. //职称等级
  50. $zc_dj = '';
  51. $sql4 = "select id,title from ey_zcdj_position where id=".$detail['sbdj'];
  52. ?>
  53. {eyou:if condition='($area_name == "")'}
  54. {eyou:sql sql='$sql2' cachetime='3600' empty=''}
  55. {eyou:php}
  56. $area_name = $field['name'];
  57. {/eyou:php}
  58. {/eyou:sql}
  59. {/eyou:if}
  60. <?php
  61. /*
  62. *
  63. * 减少sql调用
  64. *
  65. * {eyou:sql sql='$sql3' cachetime='3600' empty=''}
  66. {eyou:php}
  67. $zc_name = $field['title'];
  68. {/eyou:php}
  69. {/eyou:sql}
  70. {eyou:sql sql='$sql4' cachetime='3600' empty=''}
  71. {eyou:php}
  72. $zc_dj = $field['title'];
  73. {/eyou:php}
  74. {/eyou:sql}
  75. *
  76. *
  77. */
  78. ?>
  79. {/eyou:if}
  80. <!DOCTYPE html>
  81. <html lang="zh-CN">
  82. <head>
  83. <title>职称评审一键匹配系统</title>
  84. <meta name="keywords" content="职称评审系统">
  85. <meta name="description" content="职称评审系统,输入学历、区域、专业名称等,即可为您一建匹配符合相应的区域,并提供详细的申报流程指引及各地规则参考。">
  86. <meta charset="UTF-8">
  87. <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
  88. <meta name="renderer" content="webkit">
  89. <meta name="force-rendering" content="webkit">
  90. <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1">
  91. <meta name="applicable-device" content="pc,mobile">
  92. <meta name="author" content="order by ">
  93. <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
  94. <link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
  95. <!-- 可选的 Bootstrap 主题文件(一般不用引入) -->
  96. <link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap-theme.min.css" integrity="sha384-6pzBo3FDv/PJ8r2KRkGHifhEocL+1X2rVCTTkUfGk7/0pbek5mMa1upzvWbrUbOZ" crossorigin="anonymous">
  97. <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
  98. <script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>
  99. <body>
  100. <div style="width:600px;margin: 0 auto;">
  101. <div class="well" style="margin-top:20px;">
  102. <p>匹配结果展示:<br/><br/>
  103. <!--编号: 202410247774<br/>-->
  104. 姓名: {$detail.ch}<br/>
  105. 手机: <?php echo $detail['sjhm']; ?><br/>
  106. 地区: {$extend_info.szsf}/{$extend_info.szcs}
  107. </p>
  108. </div>
  109. <div class="well" style="margin-top:20px;">
  110. <?php
  111. /*
  112. *
  113. * 预选地区: {$area_name}<br/>
  114. */
  115. ?>
  116. 申报类目: {$extend_info.sbzy}<br/>
  117. 申报专业: {$extend_info.zcson?$extend_info.zcson:'默认'}<br/>
  118. 申报等级: {$extend_info.sbdj}<br/>
  119. </div>
  120. <?php
  121. //现在没有所谓预选和其他推荐的区分
  122. $sql_end = '';
  123. $t = '';
  124. $scen = '抱歉!暂时未找到相关匹配结果信息!';
  125. ?>
  126. <?php
  127. $result_map = "";
  128. $xl = ['不限制','中专','高技','大专','本科','硕士','博士'];
  129. //先列出全国 再其他省 再到市
  130. $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';
  131. $is_list_empty = '';
  132. ?>
  133. {eyou:sql sql="$sql" cachetime='3600' empty='' id="field"}
  134. <?php
  135. $is_list_empty = $field['id'];
  136. ?>
  137. <div class="panel panel-primary">
  138. <div class="panel-body">
  139. {eyou:if condition='((int)$field.sf === 0)'}
  140. ({$t}匹配结果)全国通用申报要求对比结果如下:
  141. {eyou:else /}
  142. <?php
  143. if((int)$field['sf'] > 0){
  144. $sql22 = "select id,name from ey_citysite where id=".$field['sf'];
  145. $sql222 = '';
  146. if((int)$field['cs'] > 0){
  147. $sql222 = "select id,name from ey_citysite where id=".$field['cs'];
  148. }
  149. }
  150. ?>
  151. {eyou:sql sql='$sql22' cachetime='3600' empty='' id="kop"}
  152. <?php
  153. $aname = $kop['name'];
  154. ?>
  155. {/eyou:sql}
  156. {eyou:if condition='((int)$field.cs > 0)'}
  157. {eyou:sql sql='$sql222' cachetime='3600' empty='' id="kop"}
  158. <?php
  159. $bname = $kop['name'];
  160. ?>
  161. {/eyou:sql}
  162. {/eyou:if}
  163. ({$t}匹配结果){$aname}{$bname}地区申报要求对比结果如下:
  164. {/eyou:if}
  165. </div>
  166. <div class="panel-footer" style="padding:3px 5px;">
  167. <!--查询专业-->
  168. <?php
  169. $num = 0;
  170. $sql2 = "select * from ey_zcwe_position where type=".$field['id']." and is_del=0 and status=1";
  171. ?>
  172. {eyou:sql sql="$sql2" cachetime='3600' empty='暂无相关数据' id="field2"}
  173. <table class="table table-bordered" style="margin-bottom:0px;margin-top:5px;">
  174. <thead>
  175. <tr>
  176. <th scope="col" style="text-align: center;">情况<br/>{$i}</th>
  177. <th scope="col">字段<br/>信息</th>
  178. <th scope="col">实际<br/>要求</th>
  179. <th scope="col">填写<br/>资料</th>
  180. <th scope="col">匹配<br/>结果</th>
  181. </tr>
  182. </thead>
  183. <tbody>
  184. <?php
  185. //先判断学历是否符合
  186. ?>
  187. <tr>
  188. <th scope="row">1</th>
  189. <td>学历</td>
  190. <td><?php echo $xl[$field2['xlyq']];?></td>
  191. <td><?php echo $xl[$detail['xl']];?></td>
  192. <td>
  193. <?php
  194. if($field2['xlyq'] <= $detail['xl']){
  195. //echo "<font style='color: blue;'>符合</font>";
  196. echo '<font class="td-r"><img src="/template/pc/js/botstrap-step/img_6.png" /></font>';
  197. $num++;
  198. }else{
  199. echo '<font class="td-b"><img src="/template/pc/js/botstrap-step/img_7.png" /></font>';
  200. //echo "<font style='color: red;'>不符合</font>";
  201. $str_no_err[$field['id']][$field2['id']]['xlyq'] = '学历不符';
  202. }
  203. ?>
  204. </td>
  205. </tr>
  206. <tr>
  207. <th scope="row">2</th>
  208. <td>年龄</td>
  209. <td>
  210. <?php
  211. if((int)$field2['is_ega'] === 0){
  212. echo "不限制";
  213. }else{
  214. echo $field2['ega_0'].'-'.$field2['ega_1'].'岁';
  215. }
  216. ?>
  217. </td>
  218. <td>
  219. {$detail.nl}岁
  220. </td>
  221. <td>
  222. <?php
  223. if((int)$detail['nl'] <= (int)$field2['ega_1'] && (int)$detail['nl'] >= (int)$field2['ega_0']){
  224. echo "<font style='color: blue;'>符合</font>";
  225. $num++;
  226. }else{
  227. echo "<font style='color: red;'>不符合</font>";
  228. }
  229. ?>
  230. </td>
  231. </tr>
  232. <tr>
  233. <th scope="row">3</th>
  234. <td>毕业<br/>专业</td>
  235. <td>
  236. {eyou:if condition='((int)$field2.byzy === 0)'}
  237. 不限制
  238. {eyou:else /}
  239. <?php
  240. /*//查询出毕业专业 $deta
  241. $zhengshu2 = json_decode($field2['zhengshu2'],true);
  242. $zhengshu2_str = '0';
  243. foreach ($zhengshu2 as $k => $v){
  244. if((int)$v > 0) {
  245. $zhengshu2_str .= ',' . $v;
  246. }
  247. }
  248. $sql3 = "select id,title from ey_zczy_position where id IN(".$zhengshu2_str.") and is_del=0 and status=1";*/
  249. /*
  250. *
  251. * {eyou:if condition='($zhengshu2_str != "0")'}
  252. {eyou:sql sql="$sql3" cachetime='3600' empty='' id="field3"}
  253. {$field3.title}<br/>
  254. {/eyou:sql}
  255. {eyou:else /}
  256. 不限制
  257. {/eyou:if}
  258. */
  259. ?>
  260. 与申报专业一致
  261. {/eyou:if}
  262. </td>
  263. <td>
  264. <?php
  265. //查询出毕业专业 $deta
  266. /*$zhengshu = json_decode($detail['zy'],true);
  267. $zhengshu_str = '0';
  268. foreach ($zhengshu as $k => $v){
  269. if ((int)$v > 0) {
  270. $zhengshu_str .= ',' . $v;
  271. }
  272. }
  273. $sql3 = "select id,title from ey_zczy_position where id IN(".$zhengshu_str.") and is_del=0 and status=1";*/
  274. /*
  275. * {eyou:if condition='($zhengshu_str != "0")'}
  276. {eyou:sql sql="$sql3" cachetime='3600' empty='' id="field3"}
  277. {$field3.title}<br/>
  278. {/eyou:sql}
  279. {eyou:else /}
  280. {/eyou:if}
  281. *
  282. */
  283. ?>
  284. {eyou:if condition='((int)$detail.byzy_is !== 0)'}
  285. 与申报专业一致
  286. {eyou:else /}
  287. {eyou:if condition='($detail.byzy_name != "")'}
  288. {$detail.byzy_name}
  289. {eyou:else /}
  290. 未填写
  291. {/eyou:if}
  292. {/eyou:if}
  293. </td>
  294. <td>
  295. <?php
  296. /*if((int)$field2.byzy === 0 || empty($zhengshu2)){
  297. echo "<font style='color: blue;'>符合</font>";
  298. $num++;
  299. }else{
  300. if(empty($zhengshu)){
  301. echo "<font style='color: red;'>不符合</font>";
  302. }else{
  303. $run = "<font style='color: red;'>不符合</font>";
  304. $ik = 1;
  305. foreach ($zhengshu as $k => $v){
  306. if(in_array($v,$zhengshu2)){
  307. //$run = '<font style="color: blue;">符合</font><br/>'.$ik.'项';
  308. $run = '<font style="color: blue;">符合</font><br/>';
  309. $ik++;
  310. }
  311. }
  312. echo $run;
  313. if($ik>1){
  314. $num++; //符合+1
  315. }
  316. }
  317. }*/
  318. if((int)$detail['byzy_is'] === 1){
  319. //一致
  320. echo '<font class="td-r"><img src="/template/pc/js/botstrap-step/img_6.png" /></font>';
  321. $num++;
  322. }else{
  323. echo '<font class="td-b"><img src="/template/pc/js/botstrap-step/img_7.png" /></font>';
  324. //echo "<font style='color: red;'>不符合</font>";
  325. $str_no_err[$field['id']][$field2['id']]['byzy'] = '专业不符';
  326. }
  327. ?>
  328. </td>
  329. </tr>
  330. <tr>
  331. <th scope="row">4</th>
  332. <td>学校<br/>类型</td>
  333. <td>
  334. {eyou:if condition='((int)$field2.xxlx === 0)'}
  335. 不限制
  336. {eyou:else /}
  337. <?php
  338. if((int)$field2['xxlx'] === 1) echo "全日制";
  339. if((int)$field2['xxlx'] === 2) echo "非全日制";
  340. ?>
  341. {/eyou:if}
  342. </td>
  343. <td>
  344. {eyou:if condition='((int)$detail.xxlx === 1)'}
  345. 全日制
  346. {eyou:else /}
  347. 非全日制
  348. {/eyou:if}
  349. </td>
  350. <td>
  351. {eyou:if condition='((int)$field2.xxlx === 0)'}
  352. <font style='color: blue;'>符合</font>
  353. <?php
  354. $num++;
  355. ?>
  356. {eyou:else /}
  357. <?php
  358. if((int)$field2['xxlx'] === (int)$detail['xxlx']){
  359. echo "<font style='color: blue;'>符合</font>";
  360. $num++;
  361. }else{
  362. echo "<font style='color: red;'>不符合</font>";
  363. }
  364. ?>
  365. {/eyou:if}
  366. </td>
  367. </tr>
  368. <tr>
  369. <th scope="row">5</th>
  370. <td>毕业<br/>时间</td>
  371. <td>
  372. {eyou:if condition='((int)$field2.bysj === 0)'}
  373. <?php /*不要求**/ ?>不要求
  374. {eyou:else /}
  375. <?php /*要求>={$field2.bysj_time}年**/ ?>要求>={$field2.bysj_time}年
  376. {/eyou:if}
  377. </td>
  378. <td>
  379. <?php
  380. //$detail['bysj']
  381. //假设我们要计算的时间是2000年1月1日
  382. $startDate = new DateTime($detail['bysj']);
  383. // 获取现在的日期
  384. $now = new DateTime('now');
  385. // 计算差值
  386. $interval = date_diff($startDate, $now);
  387. // 输出年份
  388. //echo $interval->y . ' years';
  389. if($interval->y > 0){
  390. echo '已毕业'.$interval->y . '年';
  391. }else{
  392. echo '刚毕业不足1年';
  393. }
  394. ?>
  395. </td>
  396. <td>
  397. <?php
  398. if((int)$field2['bysj'] === 0){
  399. echo "<font style='color: blue;'>符合</font>";
  400. $num++;
  401. }else{
  402. if((int)$field2['bysj_time'] <= $interval->y){
  403. echo "<font style='color: blue;'>符合</font>";
  404. $num++;
  405. }else{
  406. echo "<font style='color: red;'>不符合</font>";
  407. }
  408. }
  409. ?>
  410. </td>
  411. </tr>
  412. <tr>
  413. <th scope="row">6</th>
  414. <td>前置<br/>证书</td>
  415. <td>
  416. <?php
  417. $zhengshu3 = '';
  418. $zs_all = [];
  419. //(且或) 列出证书要求
  420. //调用需要的记录 is_zs
  421. $sql5 = "select * from ey_zcwf_position where type_son=".$field2['id']." and is_del=0 and status=1 and is_zs=1";
  422. ?>
  423. {eyou:sql sql="$sql5" cachetime='3600' empty='不限制' id="field3"}
  424. <?php
  425. if($i > 1){
  426. echo "或<br/>";
  427. }
  428. ?>
  429. <?php
  430. //查询出证书 $deta
  431. $zhengshu3 = json_decode($field3['zhengshu'],true);
  432. $sjnx = json_decode($field3['sjnx'],true);
  433. //var_dump($field3);
  434. //var_dump($field3['zhengshu']);
  435. //var_dump($field3['sjnx']);
  436. $zs_all[] = [
  437. 'a' => $zhengshu3,
  438. 'b' => $sjnx
  439. ];
  440. //var_dump($sjnx);
  441. $zhengshu3_str = '0';
  442. foreach ($zhengshu3 as $k => $v){
  443. if((int)$v > 0) {
  444. $zhengshu3_str .= ',' . $v;
  445. }
  446. }
  447. $sql3 = "select id,title from ey_zczs_position where id IN(".$zhengshu3_str.") and is_del=0 and status=1";
  448. ?>
  449. {eyou:if condition='($zhengshu3_str != "0")'}
  450. {eyou:sql sql="$sql3" cachetime='3600' empty='' id="field4"}
  451. <?php
  452. $key_s = array_search($field4['id'], $zhengshu3);
  453. $year_s = $sjnx[$key_s];
  454. ?>
  455. <?php /**{$field4.title}(需要{$year_s}年)**/?>{$field4.title}(需要{$year_s}年)<br/>
  456. {/eyou:sql}
  457. {eyou:else /}
  458. <!--忽略-->
  459. {/eyou:if}
  460. {/eyou:sql}
  461. </td>
  462. <td>
  463. <?php
  464. //查询出拥有的证书 $deta
  465. $zhengshu = json_decode($detail['zs'],true);
  466. $zsnx = json_decode($detail['zsnx'],true);
  467. $zhengshu_str = '0';
  468. foreach ($zhengshu as $k => $v){
  469. if((int)$v > 0){
  470. $zhengshu_str .= ','.$v;
  471. }
  472. }
  473. $sql3 = "select id,title from ey_zczs_position where id IN(".$zhengshu_str.") and is_del=0 and status=1";
  474. ?>
  475. {eyou:if condition='($zhengshu_str != "0")'}
  476. {eyou:sql sql="$sql3" cachetime='3600' empty='' id="field3"}
  477. <?php
  478. $key_s = array_search($field3['id'], $zhengshu);
  479. $year_s = $zsnx[$key_s];
  480. ?>
  481. <?php /**{$field3.title}(拥有{$year_s}年)**/ ?>{$field3.title}(拥有{$year_s}年)<br/>
  482. {/eyou:sql}
  483. {eyou:else /}
  484. {/eyou:if}
  485. </td>
  486. <td>
  487. <?php
  488. //var_dump($field['id']);
  489. //var_dump($zs_all);
  490. //表示没查出限制要求
  491. if(empty($zhengshu3)){
  492. echo "<font style='color: blue;'>符合</font>";
  493. $num++;
  494. }else{
  495. if(empty($zhengshu)){
  496. //用户没有证书
  497. echo "<font style='color: red;'>不符合</font>";
  498. }else{
  499. //判断是否包含
  500. //第一轮 循环 或
  501. foreach ($zs_all as $k => $v){
  502. if($k > 0){
  503. //echo "或<br/>";
  504. }
  505. $ik = 1;
  506. $ik2 = 1;
  507. $ik3 = 1;
  508. //第二轮 循环 且
  509. //var_dump($v['a']);
  510. $ik4 = 0; //真实有效数量
  511. foreach ($v['a'] as $k2 => $v2){
  512. //var_dump($v2);
  513. //var_dump($zhengshu);
  514. //第三轮 循环 每一项要求是否在 用户拥有的证书 里面
  515. //必须完全满足
  516. if((int)$v2 > 0) {
  517. if (in_array($v2, $zhengshu)) {
  518. //判断年限是否符合要求
  519. $key_i = array_search($v2, $zhengshu);
  520. //var_dump($zsnx[$key_i]);
  521. if ((int)$zsnx[$key_i] >= (int)$v['b'][$k2]) {
  522. $run_1 = '<font style="color: blue;">符合</font><br/>' . $ik . '项';
  523. $ik++;
  524. } else {
  525. $run_2 = '<font style="color: blue;">年限不符合</font><br/>' . $ik2 . '项';
  526. $ik2++;
  527. }
  528. } else {
  529. $run_3 = '<font style="color: blue;">未拥有</font><br/>' . $ik3 . '项';
  530. $ik3++;
  531. }
  532. $ik4++;
  533. }
  534. }
  535. //具体情况 循环且
  536. //echo $run_1;
  537. //echo $run_2;
  538. //echo $run_3;
  539. //echo count($v['a']);
  540. //var_dump($ik);
  541. //var_dump(count($v['a']));
  542. if(($ik-1) === $ik4){
  543. //echo "<font style='color: blue;'>符合1</font>";
  544. $res = "<font style='color: blue;'>符合</font>";
  545. $num++;
  546. //跳出循环 已经符合其中 一个 且了
  547. break;
  548. }else{
  549. //echo "<font style='color: red;'>不符合2</font>";
  550. $res = "<font style='color: red;'>不符合</font>";
  551. }
  552. }
  553. echo $res;
  554. }
  555. }
  556. ?>
  557. </td>
  558. </tr>
  559. <tr>
  560. <th scope="row">7</th>
  561. <td>综合<br/>评估</td>
  562. <td colspan="3" style="vertical-align:middle;">
  563. <?php
  564. //echo $num;
  565. if($num >= 6){
  566. //多次循环可能大于6
  567. echo "<font style='color: blue;'>完全符合要求!</font>";
  568. $bname_str = '';
  569. if(!empty($bname)){
  570. $bname_str = '/'.$bname;
  571. }
  572. $area_name_str_0 = $aname.$bname_str;
  573. if (strpos($result_map,$area_name_str_0) !== false) {
  574. //包含
  575. }else{
  576. $result_map .= $area_name_str_0.'地区<br/>';
  577. }
  578. }else if($num === 0){
  579. echo "<font style='color: red;'>完全不符合要求!</font>";
  580. }else{
  581. echo "<font style='color: #ff4c08;'>未完全符合要求!</font>";
  582. }
  583. $num = 0;
  584. ?>
  585. </td>
  586. </tr>
  587. </tbody>
  588. </table>
  589. {/eyou:sql}
  590. </div>
  591. </div>
  592. {/eyou:sql}
  593. <?php
  594. //var_dump($is_list_empty);
  595. ?>
  596. {eyou:if condition='(empty($is_list_empty))'}
  597. <div class="alert alert-danger" role="alert" style="">
  598. <!--<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
  599. <span class="sr-only">Error:</span>-->
  600. {$scen}
  601. </div>
  602. {eyou:else /}
  603. <?php
  604. if(empty($result_map)){
  605. $info = '';
  606. $result_map = "抱歉!未找到符合地区!";
  607. $class = 'alert-danger';
  608. }else{
  609. //$result_map;
  610. $info = "找到以下符合申请的地区:<br/><br/>";
  611. $class = 'alert-success';
  612. }
  613. ?>
  614. <div class="alert {$class}" role="alert" style="">
  615. <?php
  616. echo $info;
  617. echo $result_map;
  618. ?>
  619. </div>
  620. {/eyou:if}
  621. </div>
  622. </body>
  623. </html>