90 lines
3.5 KiB
PHP
90 lines
3.5 KiB
PHP
<?php
|
|
require_once ('Giant/WSgiant.php');
|
|
require_once ('Giant/Search.lib.php');
|
|
require_once ('Scores/RechercheHistorique.php');
|
|
require_once ('Giant/CreditData.lib.php');
|
|
require_once ('Giant/Controller/RechercheController.php');
|
|
require_once ('Scores/Utilisateur.php');
|
|
require_once ('Giant/Functions.php');
|
|
|
|
class GiantController extends Zend_Controller_Action
|
|
{
|
|
protected $TestIndication = true;
|
|
|
|
public function init()
|
|
{
|
|
$this->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'));
|
|
$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 fullAction()
|
|
{
|
|
|
|
}
|
|
|
|
public function compactAction()
|
|
{
|
|
|
|
}
|
|
|
|
public function creditAction()
|
|
{
|
|
|
|
}
|
|
|
|
public function flexAction()
|
|
{
|
|
|
|
}
|
|
} |