Brak opisu
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 870B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. $route_param = request()->route();
  3. $tid = $route_param['tid']?(int)$route_param['tid']:0;
  4. $aid = $route_param['aid']?(int)$route_param['aid']:0;
  5. $tagid = $route_param['tagid']?(int)$route_param['tagid']:0;
  6. $is_mobile = isMobile();
  7. $web_domain = request()->domain();
  8. $web_url = request()->url();
  9. //var_dump($eyou['field']);
  10. //var_dump($route_param);
  11. $area_id = 0;
  12. $area_name = '';
  13. $areaname = (int)$route_param['areaname'];
  14. $number = $aid;
  15. ?>
  16. {eyou:if condition='($areaname === 0)'}
  17. <?php
  18. $area_domain = $route_param['areaname'];
  19. $area_id = 0;
  20. $sql = "SELECT id,name,domain FROM ey_citysite WHERE domain = '".$area_domain."'";
  21. //echo $sql;
  22. ?>
  23. {eyou:sql sql='$sql' cachetime='3600' id='area'}
  24. {eyou:php}
  25. $area_id = ''.$area['id'].'';
  26. $area_name = ''.$area['name'].'';
  27. {/eyou:php}
  28. {/eyou:sql}
  29. {/eyou:if}