12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- $route_param = request()->route();
- $tid = $route_param['tid']?(int)$route_param['tid']:0;
- $aid = $route_param['aid']?(int)$route_param['aid']:0;
- $tagid = $route_param['tagid']?(int)$route_param['tagid']:0;
- $is_mobile = isMobile();
- $web_domain = request()->domain();
- $web_url = request()->url();
-
- //var_dump($eyou['field']);
- //var_dump($route_param);
-
- $area_id = 0;
- $area_name = '';
- $areaname = (int)$route_param['areaname'];
-
-
- $number = $aid;
- ?>
-
-
- {eyou:if condition='($areaname === 0)'}
-
-
- <?php
- $area_domain = $route_param['areaname'];
- $area_id = 0;
- $sql = "SELECT id,name,domain FROM ey_citysite WHERE domain = '".$area_domain."'";
- //echo $sql;
- ?>
-
- {eyou:sql sql='$sql' cachetime='3600' id='area'}
- {eyou:php}
- $area_id = ''.$area['id'].'';
- $area_name = ''.$area['name'].'';
- {/eyou:php}
- {/eyou:sql}
-
-
- {/eyou:if}
|