Ejemplo n.º 1
0
 public function networkMap()
 {
     $this->setData('activeTab', 'Network');
     $this->setData('activePulldown', 'Network Map');
     $this->setData('enableLimitSelector', true);
     $this->addJs('/js/network_map.js');
     $this->addJs('/js/market_info.js');
     $this->addJs('/js/update_outstanding.js');
     $this->addJs('/highmaps/js/highmaps.js');
     $this->addJs('/highmaps/js/modules/exporting.js');
     $this->addJs('//code.highcharts.com/mapdata/custom/world-highres.js');
     $paycoin = new PaycoinDb();
     $networkData = $paycoin->getNetworkMapData();
     $limit = $this->getLimit(25);
     $network = $paycoin->getNetworkByCity($limit);
     $this->setData('network', $network);
     $this->setData('networkData', $networkData);
     $this->setData('pageTitle', 'Network Map');
     $this->setData('cacheTime', 60);
     $this->render('header');
     $this->render('network_map');
     $this->render('footer');
 }