Compare commits

...

3 Commits

Author SHA1 Message Date
Jean Vladimir TWAHIRWA
63b6fd8e13 utiliser la methode Scores_Ws_Client 2016-12-15 11:04:01 +01:00
Jean Vladimir TWAHIRWA
54b5952899 Ajouter une condition pour afficher l'erreur dans la vue 2016-12-15 11:03:09 +01:00
Jean Vladimir TWAHIRWA
c3c966a518 ajouter la methodes getListEtablissement 2016-12-15 11:02:35 +01:00
3 changed files with 1336 additions and 1311 deletions

View File

@ -361,10 +361,18 @@ class IdentiteController extends Zend_Controller_Action
$nbAffichage = 50;
$position = ($page - 1 ) * $nbAffichage;
$ws = new WsScores();
$infos = $ws->getListeEtablissements($siren, $actif, $position, $nbAffichage);
if ($infos === false) $this->_forward('soap', 'error');
$params = new stdClass();
$params->siren = $siren;
$params->actif = $actif;
$params->position = $position;
$params->nbAffichage = $nbAffichage;
$ws = new Scores_Ws_Client('entreprise', '0.8');
$infos = $ws->getListeEtablissements($params);
if ($infos === false) {
$this->view->msg = "Erreur";
} else {
$etabs = $infos->result->item;
$this->view->assign('actif', $actif);
@ -418,6 +426,7 @@ class IdentiteController extends Zend_Controller_Action
$this->view->assign('hasPrefCarte', $user->checkPref('cartes'));
$this->view->assign('listeEtablissement', $infos);
}
}
/**
* Affichage des établissements sur une carte (Google Maps)

View File

@ -1,5 +1,15 @@
<div id="center">
<h1><?=$this->translate("LISTE DES &Eacute;TABLISSEMENTS")?></h1>
<?php if ($this->msg) {?>
<div class="paragraph">
<div style="padding: 0 .7em;" class="ui-state-error ui-corner-all">
<p><span style="float: left; margin-right: .3em;" class="ui-icon ui-icon-alert"></span>
<strong>Alert:</strong> <?=$this->msg?></p>
</div>
</div>
<?php } else {?>
<div class="paragraph">
<table class="identite">
<tr>
@ -131,7 +141,7 @@
<?php }?>
<?php } ?>
<?php }?>
<?php if ( empty($this->AutrePage) ) {?>
<?=$this->render('cgu.phtml', $this->cgu)?>
<?php }?>

View File

@ -33,6 +33,12 @@ return array(
'debug' => true,
'errorMsg' => array('0902'),
'log' => 'mail',
)
),
),
'0.8' => array(
'getListeEtablissements' => array(
'debug' => true,
'log' => 'mail',
),
),
);