Compare commits
3 Commits
SD-32
...
etabliseme
Author | SHA1 | Date | |
---|---|---|---|
|
63b6fd8e13 | ||
|
54b5952899 | ||
|
c3c966a518 |
@ -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)
|
||||
|
@ -1,5 +1,15 @@
|
||||
<div id="center">
|
||||
<h1><?=$this->translate("LISTE DES É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 }?>
|
||||
|
@ -33,6 +33,12 @@ return array(
|
||||
'debug' => true,
|
||||
'errorMsg' => array('0902'),
|
||||
'log' => 'mail',
|
||||
)
|
||||
),
|
||||
),
|
||||
'0.8' => array(
|
||||
'getListeEtablissements' => array(
|
||||
'debug' => true,
|
||||
'log' => 'mail',
|
||||
),
|
||||
),
|
||||
);
|
Loading…
Reference in New Issue
Block a user