IsPostBack) { $sitelloTO = TOFactory::getTO('SitelloTO'); $rs = $sitelloTO->getProvinciaAttive(); $this->provincia->setDataSource($rs); $this->provincia->dataBind(); $page = isset($_GET['page']) ? $_GET['page'] : 'def'; if($page == 'Amici') { $this->bannerAmici->setVisible(true); } $rs = $sitelloTO->getAllOnline(10); $this->societaList->setDataSource($rs); $this->societaList->dataBind(); $rs = $sitelloTO->getPiuCliccate(10); $this->societaList1->setDataSource($rs); $this->societaList1->dataBind(); /* WathDog */ $page = isset($_GET["page"]) ? $_GET["page"] : 'def' ; $sitoWatchDog = new SitoWatchDog($page); $sitoWatchDog->checkGiocaCookie("online"); $pageViewId = $sitoWatchDog->getPaveViewId(); $source = "bergamo:0:".$pageViewId; $this->source = $source; } } public function onClickCerca($sender, $param) { if($this->IsValid) { $provincia = $this->provincia->getSelectedItem()->Text; $this->Application->transfer('Cerca', array('op' => 'searchByProv', 'provincia' => $provincia)); $this->squadra->setText(''); } } public function onClickCercaNome($sender, $param) { if($this->IsValid) { $squadra = $this->squadra->getText(); $this->Application->transfer('Cerca', array('op' => 'searchByName', 'societa' => $squadra)); $this->squadra->setText(''); } } public function getSource() { return $this->source; } } ?>