No Description
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.

zc_detail.htm 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. $doc_aid = $aid;
  3. $route_param = request()->route();
  4. $tid = $route_param['tid']?(int)$route_param['tid']:0;
  5. $aid = $route_param['aid']?(int)$route_param['aid']:0;
  6. $tagid = $route_param['tagid']?(int)$route_param['tagid']:0;
  7. $is_mobile = isMobile();
  8. $web_domain = request()->domain();
  9. $web_url = request()->url();
  10. //var_dump($eyou['field']);
  11. //var_dump($route_param);
  12. $area_id = 0;
  13. $area_name = '';
  14. $areaname = (int)$route_param['areaname'];
  15. $number = $aid;
  16. $tgid = $eyou['field']['product_tag_id'];
  17. ?>
  18. {eyou:sql sql="select id,aid,number from ey_seo_number where type=10 and aid=$tgid" cachetime='3600' empty=''}
  19. {eyou:php}
  20. $tag_number = $field['number'];
  21. {/eyou:php}
  22. {/eyou:sql}
  23. {eyou:if condition='($areaname === 0)'}
  24. <?php
  25. $area_domain = $route_param['areaname'];
  26. $area_id = 0;
  27. $sql = "SELECT id,name,domain FROM ey_citysite WHERE domain = '".$area_domain."'";
  28. //echo $sql;
  29. ?>
  30. {eyou:sql sql='$sql' cachetime='3600' id='area'}
  31. {eyou:php}
  32. $area_id = ''.$area['id'].'';
  33. $area_name = ''.$area['name'].'';
  34. {/eyou:php}
  35. {/eyou:sql}
  36. {/eyou:if}
  37. <?php
  38. //【2024版政策文件下载】
  39. if (strpos($eyou['field']['title'], '评审') !== false) {
  40. $a = explode('评审',$eyou['field']['title']);
  41. $temp_title = $a[0].'评审';
  42. $ex = 1;
  43. $t_end = '【2024版政策文件下载】';
  44. }else{
  45. $temp_title = $eyou['field']['title'];
  46. $ex = 0;
  47. $t_end = '';
  48. }
  49. ?>