view->headLink()->appendStylesheet('/themes/default/styles/giant.css', 'all'); $this->view->headScript()->appendFile('/themes/default/scripts/finance.js', 'text/javascript'); $this->view->headScript()->appendFile('/themes/default/scripts/giant.js', 'text/javascript'); $this->view->debug = false; } public function searchAction() { $user = new Utilisateur(); $rechercheParams = new RechercheHistorique(); if (count($rechercheParams->liste()) > 0) { $recherche = $rechercheParams->item(0); $type = $recherche['type']; $params = $recherche['params']; } $search = new GiantRechercheController($params['pays'], $this->TestIndication); $result = $search->Liste($params, $this->getRequest()->getParam('page')); $this->view->label = $search->getObjet()->getLabelDesc(); $this->view->labelResults = $search->getObjet()->getLabelResults; $this->view->pays = $params['pays']; $this->view->currentPage = $search->getObjet()->getCurrentPage(); $this->view->userMaxResult = $user->getNbRep(); $this->view->resultats = $result; $this->view->page = $this->getRequest()->getParam('page'); $this->view->referer = $search->getObjet()->getQuery(); $this->view->lienReferer = $search->getQueryLink($params); if($this->view->debug) $this->view->soap = $search->soapG; } public function identiteAction() { $rechercheParams = new RechercheHistorique(); if (count($rechercheParams->liste()) > 0) { $recherche = $rechercheParams->item(0); $type = $recherche['type']; $params = $recherche['params']; } $ListeRapport = new GiantRechercheController($params['pays'], $this->TestIndication); $result = $ListeRapport->ListeRapport($this->getRequest()->getParam('CompanyId')); ChromePhp::log($result); $this->view->modification = $ListeRapport->getModification($result->MonitoringOptions->MonitoringOption[0]); $this->view->description = $ListeRapport->getDescription(); $this->view->raisonSociale = $this->getRequest()->getParam('raisonSociale'); $this->view->listeRapport = $result; $this->view->CompanyId = $this->getRequest()->getParam('CompanyId'); $this->view->raisonSociale = $this->getRequest()->getParam('raisonSociale'); $this->view->CompanyRegisterNumber = $this->getRequest()->getParam('CompanyRegisterNumber'); $this->view->Pays = $this->getRequest()->getParam('Pays'); $this->view->Adresse = explode(':', $this->getRequest()->getParam('Adresse')); if($this->view->debug) $this->view->soap = $ListeRapport->soapG; } public function rapportAction() { $rechercheParams = new RechercheHistorique(); if (count($rechercheParams->liste()) > 0) { $recherche = $rechercheParams->item(0); $type = $recherche['type']; $params = $recherche['params']; } $Full = new GiantRechercheController($params['pays'], $this->TestIndication); $result = $Full->GetRapport($this->getRequest()->getParam('CompanyId'), $this->getRequest()->getParam('Type')); $identiteController = new GiantIdentiteController($result); $identiteController->ficheAction(); $this->view->fiche = $identiteController->getObjet('fiche'); } }