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 892B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. ?>
  17. {eyou:if condition='($areaname === 0)'}
  18. <?php
  19. $area_domain = $route_param['areaname'];
  20. $area_id = 0;
  21. $sql = "SELECT id,name,domain FROM ey_citysite WHERE domain = '".$area_domain."'";
  22. //echo $sql;
  23. ?>
  24. {eyou:sql sql='$sql' cachetime='3600' id='area'}
  25. {eyou:php}
  26. $area_id = ''.$area['id'].'';
  27. $area_name = ''.$area['name'].'';
  28. {/eyou:php}
  29. {/eyou:sql}
  30. {/eyou:if}