issue #0001725 : Conditionnal display of page title when "apage" is set
This commit is contained in:
parent
6803742efb
commit
6b93dd3529
@ -18,16 +18,21 @@ class DirigeantController extends Zend_Controller_Action
|
||||
*/
|
||||
public function listeAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
$autrePage = $this->getRequest()->getParam('apage');
|
||||
|
||||
$siren = substr($this->siret, 0, 9);
|
||||
|
||||
$this->view->headTitle()->prepend('Liste des dirigeants');
|
||||
$this->view->headTitle()->prepend('Siret '.$this->siret);
|
||||
if (empty($autrePage)) {
|
||||
$this->view->headTitle()->prepend('Liste des dirigeants');
|
||||
$this->view->headTitle()->prepend('Siret '.$this->siret);
|
||||
}
|
||||
|
||||
$ws = new WsScores();
|
||||
$infos = $ws->getDirigeants($siren);
|
||||
|
||||
if ($infos === false){
|
||||
$this->_forward('soap', 'error');
|
||||
$this->forward('soap', 'error');
|
||||
}
|
||||
|
||||
$dirigeants = $infos->result->item;
|
||||
|
@ -43,20 +43,19 @@ class IdentiteController extends Zend_Controller_Action
|
||||
*/
|
||||
public function ficheAction()
|
||||
{
|
||||
//Modification du titre
|
||||
if( empty($this->siret) ){
|
||||
$titre = 'Identifiant '.$this->id;
|
||||
} else {
|
||||
$titre = 'Siret '.$this->siret;
|
||||
}
|
||||
$this->view->headTitle()->prepend('Identité - '.$titre);
|
||||
|
||||
$user = new Scores_Utilisateur();
|
||||
|
||||
$autrePage = $this->getRequest()->getParam('apage');
|
||||
|
||||
//Récupération des informations
|
||||
if (empty($autrePage)) {
|
||||
//Modification du titre
|
||||
if( empty($this->siret) ){
|
||||
$titre = 'Identifiant '.$this->id;
|
||||
} else {
|
||||
$titre = 'Siret '.$this->siret;
|
||||
}
|
||||
$this->view->headTitle()->prepend('Identité - '.$titre);
|
||||
$ws = new WsScores();
|
||||
$infos = $ws->getIdentite($this->siret, $this->id);
|
||||
if ($infos === false) {
|
||||
@ -556,7 +555,7 @@ class IdentiteController extends Zend_Controller_Action
|
||||
$nbMonthForRecentLien = 3;
|
||||
|
||||
$request = $this->getRequest();
|
||||
|
||||
$autrePage = $this->getRequest()->getParam('apage');
|
||||
$lienRef = $request->getParam('lienref', null);
|
||||
|
||||
$user = new Scores_Utilisateur();
|
||||
@ -568,7 +567,9 @@ class IdentiteController extends Zend_Controller_Action
|
||||
|
||||
$this->view->assign('lienref', $lienRef);
|
||||
|
||||
$this->view->headTitle()->prepend('Liens inter-entreprises - Id '.$lienRef);
|
||||
if (empty($autrePage)) {
|
||||
$this->view->headTitle()->prepend('Liens inter-entreprises - Id '.$lienRef);
|
||||
}
|
||||
|
||||
$identite = $ws->getLienRef($lienRef);
|
||||
$this->view->assign('raisonSociale', $identite->raisonSociale);
|
||||
@ -596,8 +597,9 @@ class IdentiteController extends Zend_Controller_Action
|
||||
} else {
|
||||
$siren = substr($this->siret,0,9);
|
||||
|
||||
$this->view->headTitle()->prepend('Liens inter-entreprises - Siren '.$siren);
|
||||
|
||||
if (empty($autrePage)) {
|
||||
$this->view->headTitle()->prepend('Liens inter-entreprises - Siren '.$siren);
|
||||
}
|
||||
$session = new Scores_Session_Entreprise($this->siret, $this->id);
|
||||
|
||||
$this->view->assign('isin', $session->getIsin());
|
||||
|
Loading…
Reference in New Issue
Block a user