chengkun
2025-04-27 ecc546d7df6ad021bfbc531674b10c2ffd224637
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
 
 
class index_controller extends map_controller
{
 
    function index_action()
    {
        $this->yunset($this->MODEL('cache') ->GetCache(array('job', 'com', 'city', 'hy')));
        
        if ($_GET[r] < 500) {
            
            $zoom = 15;
        } elseif ($_GET[r] >= 500 && $_GET[r] < 5000) {
            
            $zoom = 13;
        } else {
            
            $zoom = 11;
        }
        $this -> yunset('zoom', $zoom);
        $this -> yunset('getinfo', $_GET);
        $this -> seo('map');
        $this -> yun_tpl(array('index'));
    }
}
?>