1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
-
- <?php
- /*
- * 产品列表页 是 主域名
- */
- ?>
-
- {eyou:php}
- $areaid = $route_param['areaid']?(int)$route_param['areaid']:0;
- $number = $areaid;
- //var_dump($areaid);
- {/eyou:php}
-
-
- {eyou:if condition='((int)$areaid === 0)'}
- {eyou:php}
- $areaid = 0;
- {/eyou:php}
- {eyou:elseif condition='((int)$areaid === 32)' /}
- {eyou:php}
- $areaid = 10000;
- {/eyou:php}
- {eyou:else /}
- {eyou:php}
- $sql = "SELECT aid FROM ey_seo_number WHERE number = $areaid and type=3";
- {/eyou:php}
- {eyou:sql sql='$sql' cachetime='3600' id='seo'}
- {eyou:php}
- $areaid = $seo['aid'];
- {/eyou:php}
- {/eyou:sql}
- {/eyou:if}
-
- {eyou:php}
- $area_name = '';
- $sql = "SELECT id,name FROM ey_citysite WHERE id = $areaid";
- {/eyou:php}
- {eyou:sql sql='$sql' cachetime='3600' id='area'}
- {eyou:php}
- $area_name = ''.$area['name'].'';
- {/eyou:php}
- {/eyou:sql}
-
- <?php
- //调试
- //var_dump($eyou['field']['seo_keywords']);
- ?>
|