issue #0001725 : Titre des pages
This commit is contained in:
parent
239ce9211f
commit
1afeeb9a7d
@ -35,6 +35,8 @@ class AideController extends Zend_Controller_Action
|
||||
*/
|
||||
public function newlisteAction()
|
||||
{
|
||||
$this->view->headTitle()->prepend('Nouveautés');
|
||||
|
||||
$request = $this->getRequest();
|
||||
|
||||
//Selection
|
||||
|
@ -1,11 +1,11 @@
|
||||
<?php
|
||||
class BdfController extends Zend_Controller_Action
|
||||
{
|
||||
|
||||
|
||||
public function indexAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
|
||||
|
||||
//Type de module
|
||||
$module = $request->getParam('module', '');
|
||||
$siret = $request->getParam('siret', '');
|
||||
@ -16,18 +16,18 @@ class BdfController extends Zend_Controller_Action
|
||||
$rechet = $request->getParam('rechet', '');
|
||||
$ape = $request->getParam('ape', '');
|
||||
$service = $request->getParam('service', '');
|
||||
|
||||
|
||||
if ($siret != '' && $req != '' && substr($siret, 0, 9) != $req) {
|
||||
$siret = '';
|
||||
} else if (substr($siret, 0, 9) == $req || empty($req)) {
|
||||
$req = substr($siret, 0, 9);
|
||||
}
|
||||
|
||||
|
||||
if (is_array($module)){
|
||||
$session = new Zend_Session_Namespace('BDF');
|
||||
$session->module = $module;
|
||||
}
|
||||
|
||||
|
||||
//Titre
|
||||
$title = 'Banque De France - '.strtoupper($service);
|
||||
if ($siret == '') {
|
||||
@ -35,30 +35,30 @@ class BdfController extends Zend_Controller_Action
|
||||
} else {
|
||||
$title .= substr($siren,0,9);
|
||||
}
|
||||
$this->view->headTitle()->append('Banque de France - '.$titre);
|
||||
|
||||
|
||||
$this->view->headTitle()->prepend('Banque de France - '.$titre);
|
||||
|
||||
|
||||
require_once 'Scores/Bdf.php';
|
||||
$bdf = new BDF();
|
||||
|
||||
|
||||
$this->view->assign('siret', $siret);
|
||||
$this->view->assign('req', $req);
|
||||
$this->view->assign('module', $session->module);
|
||||
|
||||
|
||||
//Liste module FIBEN
|
||||
$listModulesFiben = $bdf->bdf_modules_fiben();
|
||||
$this->view->assign('listModulesFiben', $listModulesFiben);
|
||||
|
||||
|
||||
//Liste module FCC
|
||||
$listModulesFcc = $bdf->bdf_modules_fcc();
|
||||
$this->view->assign('listModulesFcc', $listModulesFcc);
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function moduleAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
|
||||
|
||||
//Type de module
|
||||
$module = $request->getParam('bdfmodule', '');
|
||||
$siret = $request->getParam('siret', '');
|
||||
@ -69,20 +69,20 @@ class BdfController extends Zend_Controller_Action
|
||||
$rechet = $request->getParam('rechet', '');
|
||||
$ape = $request->getParam('ape', '');
|
||||
$service = $request->getParam('service', '');
|
||||
|
||||
|
||||
if ($siret != '' && $req != '' && substr($siret, 0, 9) != $req) {
|
||||
$siret = '';
|
||||
} else if (substr($siret, 0, 9) == $req || empty($req)) {
|
||||
$req = substr($siret, 0, 9);
|
||||
}
|
||||
|
||||
|
||||
Zend_Registry::get('firebug')->info($module);
|
||||
|
||||
|
||||
$content = array();
|
||||
|
||||
|
||||
require_once 'Scores/Bdf.php';
|
||||
$bdf = new BDF();
|
||||
|
||||
|
||||
//Mode multi module
|
||||
if ($type=='u') {
|
||||
if (is_array($module)) {
|
||||
@ -136,7 +136,7 @@ class BdfController extends Zend_Controller_Action
|
||||
}
|
||||
$this->view->assign('content', $content);
|
||||
}
|
||||
|
||||
|
||||
public function module27Action()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
@ -144,7 +144,7 @@ class BdfController extends Zend_Controller_Action
|
||||
$params['bdfmodule'] = array(27);
|
||||
$this->_forward('module', null, null, $params);
|
||||
}
|
||||
|
||||
|
||||
public function module28Action()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
@ -152,7 +152,7 @@ class BdfController extends Zend_Controller_Action
|
||||
$params['bdfmodule'] = array(28);
|
||||
$this->_forward('module', null, null, $params);
|
||||
}
|
||||
|
||||
|
||||
public function module29Action()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
@ -160,7 +160,7 @@ class BdfController extends Zend_Controller_Action
|
||||
$params['bdfmodule'] = array(29);
|
||||
$this->_forward('module', null, null, $params);
|
||||
}
|
||||
|
||||
|
||||
public function module40Action()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
@ -168,7 +168,7 @@ class BdfController extends Zend_Controller_Action
|
||||
$params['bdfmodule'] = array(40);
|
||||
$this->_forward('module', null, null, $params);
|
||||
}
|
||||
|
||||
|
||||
public function module51Action()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
@ -176,6 +176,6 @@ class BdfController extends Zend_Controller_Action
|
||||
$params['bdfmodule'] = array(51);
|
||||
$this->_forward('module', null, null, $params);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -20,8 +20,8 @@ class DirigeantController extends Zend_Controller_Action
|
||||
{
|
||||
$siren = substr($this->siret, 0, 9);
|
||||
|
||||
$this->view->headTitle()->append('Liste des dirigeants');
|
||||
$this->view->headTitle()->append('Siret '.$this->siret);
|
||||
$this->view->headTitle()->prepend('Liste des dirigeants');
|
||||
$this->view->headTitle()->prepend('Siret '.$this->siret);
|
||||
|
||||
$ws = new WsScores();
|
||||
$infos = $ws->getDirigeants($siren);
|
||||
@ -60,8 +60,8 @@ class DirigeantController extends Zend_Controller_Action
|
||||
{
|
||||
$siren = substr($this->siret, 0, 9);
|
||||
|
||||
$this->view->headTitle()->append('Historique des dirigeants');
|
||||
$this->view->headTitle()->append('Siret '.$this->siret);
|
||||
$this->view->headTitle()->prepend('Historique des dirigeants');
|
||||
$this->view->headTitle()->prepend('Siret '.$this->siret);
|
||||
|
||||
$ws = new WsScores();
|
||||
$infos = $ws->getDirigeants($siren, true);
|
||||
@ -89,8 +89,8 @@ class DirigeantController extends Zend_Controller_Action
|
||||
{
|
||||
$siren = substr($this->siret, 0, 9);
|
||||
|
||||
$this->view->headTitle()->append('Liste des dirigeants opérationnels');
|
||||
$this->view->headTitle()->append('Siret '.$this->siret);
|
||||
$this->view->headTitle()->prepend('Liste des dirigeants opérationnels');
|
||||
$this->view->headTitle()->prepend('Siret '.$this->siret);
|
||||
|
||||
$ws = new WsScores();
|
||||
$infos = $ws->getDirigeantsOp($siren);
|
||||
|
@ -61,10 +61,9 @@ class EvaluationController extends Zend_Controller_Action
|
||||
*/
|
||||
public function indiscoreAction()
|
||||
{
|
||||
$user = new Scores_Utilisateur();
|
||||
|
||||
$user = new Scores_Utilisateur();
|
||||
if(!$user->checkPerm('INDISCORE') && !$user->checkPerm('INDISCOREP'))
|
||||
$this->_forward('perms', 'error');
|
||||
$this->forward('perms', 'error');
|
||||
|
||||
$this->view->assign('edition', $user->checkModeEdition());
|
||||
|
||||
@ -73,6 +72,8 @@ class EvaluationController extends Zend_Controller_Action
|
||||
|
||||
//Récupération des informations
|
||||
if (empty($autrePage)) {
|
||||
$this->view->headTitle()->prepend('IndiScore');
|
||||
$this->view->headTitle()->prepend('Siret '.$this->siret);
|
||||
$plus = false;
|
||||
if ($user->checkPerm('indiscorep')){
|
||||
$plus = true;
|
||||
@ -83,7 +84,7 @@ class EvaluationController extends Zend_Controller_Action
|
||||
|
||||
$ws = new WsScores();
|
||||
$infos = $ws->getIndiScore(substr($this->siret, 0,9), 0, 1, $plus, $ref, $encours, $email);
|
||||
if ($infos === false) $this->_forward('soap', 'error');
|
||||
if ($infos === false) $this->forward('soap', 'error');
|
||||
} else {
|
||||
$infos = $this->getRequest()->getParam('infos');
|
||||
}
|
||||
@ -103,11 +104,12 @@ class EvaluationController extends Zend_Controller_Action
|
||||
public function indiscore2Action()
|
||||
{
|
||||
$this->view->headScript()->appendFile('/themes/default/scripts/finance.js', 'text/javascript');
|
||||
$this->view->headTitle()->prepend("Rapport de synthèse");
|
||||
$this->view->headTitle()->prepend("Siret ".$this->siret);
|
||||
|
||||
$user = new Scores_Utilisateur();
|
||||
|
||||
if(!$user->checkPerm('INDISCORE2') && !$user->checkPerm('INDISCORE2P'))
|
||||
$this->_forward('perms', 'error');
|
||||
$this->forward('perms', 'error');
|
||||
|
||||
$siren = substr($this->siret,0,9);
|
||||
|
||||
@ -261,10 +263,12 @@ class EvaluationController extends Zend_Controller_Action
|
||||
public function indiscore3Action()
|
||||
{
|
||||
$this->view->headScript()->appendFile('/themes/default/scripts/evaluation.js', 'text/javascript');
|
||||
$this->view->headTitle()->prepend("Rapport complet");
|
||||
$this->view->headTitle()->prepend("Siret ".$this->siret);
|
||||
|
||||
$user = new Scores_Utilisateur();
|
||||
if(!$user->checkPerm('INDISCORE3') && !$user->checkPerm('INDISCORE3P'))
|
||||
$this->_forward('perms', 'error');
|
||||
$this->forward('perms', 'error');
|
||||
|
||||
// Lien pour le rapport personnalisé
|
||||
if ($user->getIdClient() == '110' || $user->checkModeEdition()) {
|
||||
@ -488,6 +492,8 @@ class EvaluationController extends Zend_Controller_Action
|
||||
public function enquetecAction()
|
||||
{
|
||||
$this->view->headScript()->appendFile('/themes/default/scripts/enquetec.js', 'text/javascript');
|
||||
$this->view->headTitle()->prepend("Enquete commerciale");
|
||||
$this->view->headTitle()->prepend("Siret ".$this->siret);
|
||||
|
||||
//isset($_REQUEST['pays']) ? $pays=$_REQUEST['pays'] : $pays='' ;
|
||||
|
||||
@ -591,8 +597,14 @@ class EvaluationController extends Zend_Controller_Action
|
||||
$this->view->assign('commandeEnquete', $commandeEnquete);
|
||||
}
|
||||
|
||||
/**
|
||||
* Demande d'avis de credit
|
||||
*/
|
||||
public function aviscreditAction()
|
||||
{
|
||||
$this->view->headTitle()->prepend("Avis de crédit");
|
||||
$this->view->headTitle()->prepend("Siret ".$this->siret);
|
||||
|
||||
$commande = false;
|
||||
|
||||
$request = $this->getRequest();
|
||||
@ -695,7 +707,10 @@ class EvaluationController extends Zend_Controller_Action
|
||||
*/
|
||||
public function scoringAction()
|
||||
{
|
||||
$user = new Scores_Utilisateur();
|
||||
$this->view->headTitle()->prepend("Scoring Credit Safe");
|
||||
$this->view->headTitle()->prepend("Siret ".$this->siret);
|
||||
|
||||
$user = new Scores_Utilisateur();
|
||||
if(!$user->checkModeEdition() or !$user->checkPerm('SCORECSF'))
|
||||
$this->render('error/perms', null, 'error');
|
||||
|
||||
@ -843,6 +858,9 @@ class EvaluationController extends Zend_Controller_Action
|
||||
|
||||
public function valorisationAction()
|
||||
{
|
||||
$this->view->headTitle()->prepend("Valorisation");
|
||||
$this->view->headTitle()->prepend("Siret ".$this->siret);
|
||||
|
||||
$user = new Scores_Utilisateur();
|
||||
if(!$user->checkPerm('INDISCORE3') && !$user->checkPerm('INDISCORE3P'))
|
||||
$this->_forward('perms', 'error');
|
||||
|
@ -17,7 +17,7 @@ class FinanceController extends Zend_Controller_Action
|
||||
|
||||
public function indexAction()
|
||||
{
|
||||
$this->_forward('index', 'index');
|
||||
$this->forward('index', 'index');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -25,7 +25,7 @@ class FinanceController extends Zend_Controller_Action
|
||||
*/
|
||||
public function syntheseAction()
|
||||
{
|
||||
$user = new Scores_Utilisateur();
|
||||
$user = new Scores_Utilisateur();
|
||||
$session = new Scores_Session_Entreprise($this->siret, $this->id);
|
||||
|
||||
$request = $this->getRequest();
|
||||
@ -35,6 +35,8 @@ class FinanceController extends Zend_Controller_Action
|
||||
|
||||
//Récupération des informations
|
||||
if (empty($autrePage)) {
|
||||
$this->view->headTitle()->prepend("Synthese financière");
|
||||
$this->view->headTitle()->prepend("Siret ".$this->siret);
|
||||
$ws = new WsScores();
|
||||
$infos = $ws->getRatios(substr($this->siret, 0, 9), 'synthese');
|
||||
if ($infos === false) $this->_forward('soap', 'error');
|
||||
@ -209,6 +211,8 @@ class FinanceController extends Zend_Controller_Action
|
||||
|
||||
//Récupération des informations
|
||||
if (empty($autrePage)) {
|
||||
$this->view->headTitle()->prepend("Bilan, Compte de résultat");
|
||||
$this->view->headTitle()->prepend("Siret ".$this->siret);
|
||||
$ws = new WsScores();
|
||||
$infos = $ws->getRatios(substr($this->siret, 0, 9), 'ratios');
|
||||
if ($infos === false) $this->_forward('soap', 'error');
|
||||
@ -452,11 +456,13 @@ class FinanceController extends Zend_Controller_Action
|
||||
*/
|
||||
public function ratiosAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
$request = $this->getRequest();
|
||||
$autrePage = $request->getParam('apage');
|
||||
|
||||
//Récupération des informations
|
||||
if (empty($autrePage)) {
|
||||
$this->view->headTitle()->prepend("Ratios");
|
||||
$this->view->headTitle()->prepend("Siret ".$this->siret);
|
||||
$ws = new WsScores();
|
||||
$infos = $ws->getRatios(substr($this->siret, 0, 9), 'ratios');
|
||||
if ($infos === false) $this->_forward('soap', 'error');
|
||||
@ -816,7 +822,10 @@ class FinanceController extends Zend_Controller_Action
|
||||
*/
|
||||
public function liasseAction()
|
||||
{
|
||||
$user = new Scores_Utilisateur();
|
||||
$this->view->headTitle()->prepend("Liasse fiscale");
|
||||
$this->view->headTitle()->prepend("Siret ".$this->siret);
|
||||
|
||||
$user = new Scores_Utilisateur();
|
||||
$this->view->assign('edition', $user->checkModeEdition());
|
||||
|
||||
/** Les ancres pour les liens **/
|
||||
@ -959,6 +968,9 @@ class FinanceController extends Zend_Controller_Action
|
||||
*/
|
||||
public function bourseAction()
|
||||
{
|
||||
$this->view->headTitle()->prepend("Bourse & Cotations");
|
||||
$this->view->headTitle()->prepend("Siret ".$this->siret);
|
||||
|
||||
require_once 'Scores/Logo.php';
|
||||
|
||||
$siren = substr($this->siret, 0, 9);
|
||||
@ -998,6 +1010,8 @@ class FinanceController extends Zend_Controller_Action
|
||||
$autrePage = $this->getRequest()->getParam('apage');
|
||||
//Récupération des informations
|
||||
if (empty($autrePage)) {
|
||||
$this->view->headTitle()->prepend("Relations Banquaires");
|
||||
$this->view->headTitle()->prepend("Siret ".$this->siret);
|
||||
$ws = new WsScores();
|
||||
$infos = $ws->getBanques(substr($this->siret, 0, 9));
|
||||
if ($infos === false) $this->_forward('soap', 'error');
|
||||
@ -1017,6 +1031,9 @@ class FinanceController extends Zend_Controller_Action
|
||||
*/
|
||||
public function fluxAction()
|
||||
{
|
||||
$this->view->headTitle()->prepend("Flux de trésorerie");
|
||||
$this->view->headTitle()->prepend("Siret ".$this->siret);
|
||||
|
||||
$request = $this->getRequest();
|
||||
$typeBilan = $request->getParam('type', 'N');
|
||||
$this->view->assign('typeBilan', $typeBilan);
|
||||
@ -1253,8 +1270,13 @@ class FinanceController extends Zend_Controller_Action
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Subvention accordés, principalement les associations
|
||||
*/
|
||||
public function subventionsAction()
|
||||
{
|
||||
$this->view->headTitle()->prepend("Subventions");
|
||||
$this->view->headTitle()->prepend("Siret ".$this->siret);
|
||||
$sessionEntreprise = new Scores_Session_Entreprise($this->siret, $this->id);
|
||||
$siren = substr($this->siret, 0, 9);
|
||||
$this->view->assign('raisonSociale', $sessionEntreprise->getRaisonSociale());
|
||||
@ -1273,8 +1295,14 @@ class FinanceController extends Zend_Controller_Action
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Détail d'une subvention
|
||||
*/
|
||||
public function subventionAction()
|
||||
{
|
||||
$this->view->headTitle()->prepend("Subvention");
|
||||
$this->view->headTitle()->prepend("Siret ".$this->siret);
|
||||
|
||||
$sessionEntreprise = new Scores_Session_Entreprise($this->siret, $this->id);
|
||||
$siren = substr($this->siret, 0, 9);
|
||||
$this->view->assign('raisonSociale', $sessionEntreprise->getRaisonSociale());
|
||||
|
@ -24,7 +24,7 @@ class IdentiteController extends Zend_Controller_Action
|
||||
case 'fiche':
|
||||
case 'fichepc':
|
||||
if (intval($this->siret)==0 && $this->id==0){
|
||||
$this->_forward('params', 'error');
|
||||
$this->forward('params', 'error');
|
||||
}
|
||||
break;
|
||||
}
|
||||
@ -35,7 +35,7 @@ class IdentiteController extends Zend_Controller_Action
|
||||
*/
|
||||
public function indexAction()
|
||||
{
|
||||
$this->_forward('index', 'index');
|
||||
$this->forward('index', 'index');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -49,7 +49,7 @@ class IdentiteController extends Zend_Controller_Action
|
||||
} else {
|
||||
$titre = 'Siret '.$this->siret;
|
||||
}
|
||||
$this->view->headTitle()->append('Identité - '.$titre);
|
||||
$this->view->headTitle()->prepend('Identité - '.$titre);
|
||||
|
||||
$user = new Scores_Utilisateur();
|
||||
|
||||
@ -60,7 +60,7 @@ class IdentiteController extends Zend_Controller_Action
|
||||
$ws = new WsScores();
|
||||
$infos = $ws->getIdentite($this->siret, $this->id);
|
||||
if ($infos === false) {
|
||||
$this->_forward('soap', 'error');
|
||||
$this->forward('soap', 'error');
|
||||
}
|
||||
} else {
|
||||
$infos = $this->getRequest()->getParam('infos');
|
||||
@ -200,7 +200,7 @@ class IdentiteController extends Zend_Controller_Action
|
||||
} else {
|
||||
$titre = 'Siret '.$this->siret;
|
||||
}
|
||||
$this->view->headTitle()->append('Fiche procédure collective - '.$titre);
|
||||
$this->view->headTitle()->prepend('Fiche procédure collective - '.$titre);
|
||||
|
||||
//Récupération des informations
|
||||
$ws = new WsScores();
|
||||
@ -311,7 +311,7 @@ class IdentiteController extends Zend_Controller_Action
|
||||
{
|
||||
$siren = substr($this->siret,0,9);
|
||||
$actif = $this->getRequest()->getParam('actif', -1);
|
||||
$this->view->headTitle()->append('Liste des établissements - Siren '.$siren);
|
||||
$this->view->headTitle()->prepend('Liste des établissements - Siren '.$siren);
|
||||
|
||||
$session = new Scores_Session_Entreprise($this->siret, $this->id);
|
||||
$user = new Scores_Utilisateur();
|
||||
@ -568,7 +568,7 @@ class IdentiteController extends Zend_Controller_Action
|
||||
|
||||
$this->view->assign('lienref', $lienRef);
|
||||
|
||||
$this->view->headTitle()->append('Liens inter-entreprises - Id '.$lienRef);
|
||||
$this->view->headTitle()->prepend('Liens inter-entreprises - Id '.$lienRef);
|
||||
|
||||
$identite = $ws->getLienRef($lienRef);
|
||||
$this->view->assign('raisonSociale', $identite->raisonSociale);
|
||||
@ -596,7 +596,7 @@ class IdentiteController extends Zend_Controller_Action
|
||||
} else {
|
||||
$siren = substr($this->siret,0,9);
|
||||
|
||||
$this->view->headTitle()->append('Liens inter-entreprises - Siren '.$siren);
|
||||
$this->view->headTitle()->prepend('Liens inter-entreprises - Siren '.$siren);
|
||||
|
||||
$session = new Scores_Session_Entreprise($this->siret, $this->id);
|
||||
|
||||
@ -680,6 +680,9 @@ class IdentiteController extends Zend_Controller_Action
|
||||
$this->view->assign('AutrePage', $this->getRequest()->getParam('apage'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Fiche identite d'un lien
|
||||
*/
|
||||
public function lienficheAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
@ -945,6 +948,9 @@ class IdentiteController extends Zend_Controller_Action
|
||||
$this->view->assign('result', $result);
|
||||
}
|
||||
|
||||
/**
|
||||
* Documents liées à une fiche lien
|
||||
*/
|
||||
public function liendocAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
@ -967,7 +973,7 @@ class IdentiteController extends Zend_Controller_Action
|
||||
public function evenementsAction()
|
||||
{
|
||||
$siren = substr($this->siret,0,9);
|
||||
$this->view->headTitle()->append('Evènements - Siren '.$siren);
|
||||
$this->view->headTitle()->prepend('Evènements - Siren '.$siren);
|
||||
|
||||
$session = new Scores_Session_Entreprise($this->siret, $this->id);
|
||||
|
||||
@ -1066,6 +1072,9 @@ class IdentiteController extends Zend_Controller_Action
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Téléchargement des cartes IRIS
|
||||
*/
|
||||
public function irisAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
@ -1092,7 +1101,7 @@ class IdentiteController extends Zend_Controller_Action
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Informations géographiques
|
||||
*/
|
||||
public function geoAction()
|
||||
{
|
||||
@ -1237,6 +1246,9 @@ class IdentiteController extends Zend_Controller_Action
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Impression capture image arborescence du groupe
|
||||
*/
|
||||
public function groupesarboimgAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
@ -1282,6 +1294,9 @@ class IdentiteController extends Zend_Controller_Action
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Arborescence du groupe
|
||||
*/
|
||||
public function groupesarboAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
@ -1329,6 +1344,12 @@ class IdentiteController extends Zend_Controller_Action
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Récursivité pour l'arborescence du groupe
|
||||
* @param unknown $items
|
||||
* @param string $detectSiren
|
||||
* @return multitype:multitype:string multitype: multitype:multitype:string multitype: NULL
|
||||
*/
|
||||
public function groupesArboChildren($items, $detectSiren = '')
|
||||
{
|
||||
$output = array();
|
||||
@ -1368,8 +1389,14 @@ class IdentiteController extends Zend_Controller_Action
|
||||
return $output;
|
||||
}
|
||||
|
||||
/**
|
||||
* Groupe
|
||||
*/
|
||||
public function groupeAction()
|
||||
{
|
||||
$this->view->headTitle()->prepend("Groupe");
|
||||
$this->view->headTitle()->prepend("Siret ".$this->siret);
|
||||
|
||||
$siren = substr($this->siret,0,9);
|
||||
|
||||
$ws = new WsScores();
|
||||
@ -1384,6 +1411,9 @@ class IdentiteController extends Zend_Controller_Action
|
||||
*/
|
||||
public function contactsAction()
|
||||
{
|
||||
$this->view->headTitle()->prepend("Contacts");
|
||||
$this->view->headTitle()->prepend("Siret ".$this->siret);
|
||||
|
||||
$session = new Scores_Session_Entreprise($this->siret, $this->id);
|
||||
|
||||
$user = new Scores_Utilisateur();
|
||||
|
@ -220,6 +220,9 @@ class JuridiqueController extends Zend_Controller_Action
|
||||
*/
|
||||
public function infosregAction()
|
||||
{
|
||||
$this->view->headTitle()->prepend("Informations Réglementées");
|
||||
$this->view->headTitle()->prepend("Siret ".$this->siret);
|
||||
|
||||
$request = $this->getRequest();
|
||||
$idAnn = $request->getParam('idann', false);
|
||||
$siren = substr($this->siret, 0,9);
|
||||
@ -232,7 +235,7 @@ class JuridiqueController extends Zend_Controller_Action
|
||||
} else {
|
||||
$infos = $ws->getInfosReg($siren);
|
||||
}
|
||||
if ($infos === false) $this->_forward('soap', 'error');
|
||||
if ($infos === false) $this->forward('soap', 'error');
|
||||
|
||||
if (is_string($infos)){
|
||||
$this->view->assign('message', $infos);
|
||||
@ -267,6 +270,9 @@ class JuridiqueController extends Zend_Controller_Action
|
||||
*/
|
||||
public function competencesAction()
|
||||
{
|
||||
$this->view->headTitle()->prepend("Compétences Territoriales");
|
||||
$this->view->headTitle()->prepend("Siret ".$this->siret);
|
||||
|
||||
$request = $this->getRequest();
|
||||
$type = $request->getParam('type', '');
|
||||
$siren = substr($this->siret,0,9);
|
||||
@ -310,6 +316,9 @@ class JuridiqueController extends Zend_Controller_Action
|
||||
*/
|
||||
public function conventionsAction()
|
||||
{
|
||||
$this->view->headTitle()->prepend("Conventions Collectives");
|
||||
$this->view->headTitle()->prepend("Siret ".$this->siret);
|
||||
|
||||
$siren = substr($this->siret, 0,9);
|
||||
$session = new Scores_Session_Entreprise($this->siret, $this->id);
|
||||
$this->view->assign('siren', $siren);
|
||||
@ -328,6 +337,9 @@ class JuridiqueController extends Zend_Controller_Action
|
||||
*/
|
||||
public function marquesAction()
|
||||
{
|
||||
$this->view->headTitle()->prepend("Marques Déposées");
|
||||
$this->view->headTitle()->prepend("Siret ".$this->siret);
|
||||
|
||||
$this->view->headScript()->appendFile('/themes/default/scripts/marques.js', 'text/javascript');
|
||||
|
||||
$request = $this->getRequest();
|
||||
|
@ -972,15 +972,6 @@ class PiecesController extends Zend_Controller_Action
|
||||
|
||||
break;
|
||||
|
||||
// Téléchargement du fichier sur le serveur
|
||||
case 'fichier':
|
||||
$ws->setLog('greffe_actes', $siren, 0, $ref);
|
||||
$info = unserialize(urldecode($info));
|
||||
$href = '/fichier/pdf/acte-'.$siren.'-'.$ref.'.pdf';
|
||||
echo '<br/><a href="'.$href.'" target="_blank">Ouvrir le fichier '.$info['type_lib'].' </a>';
|
||||
exit;
|
||||
break;
|
||||
|
||||
//Commande courrier infogreffe
|
||||
case 'C':
|
||||
|
||||
@ -1019,16 +1010,31 @@ class PiecesController extends Zend_Controller_Action
|
||||
|
||||
break;
|
||||
|
||||
// Téléchargement du fichier sur le serveur
|
||||
case 'fichier':
|
||||
$ws->setLog('greffe_actes', $siren, 0, $ref);
|
||||
$info = unserialize(urldecode($info));
|
||||
$href = '/fichier/pdf/acte-'.$siren.'-'.$ref.'.pdf';
|
||||
echo '<br/><a href="'.$href.'" target="_blank">Ouvrir le fichier '.$info['type_lib'].' </a>';
|
||||
exit;
|
||||
break;
|
||||
|
||||
//Commande fichier infogreffe
|
||||
case 'T':
|
||||
|
||||
//Vérification que le fichier ne soit pas en erreur
|
||||
//@todo : Suppression du mode fichier
|
||||
/**
|
||||
* Vérifier que le fichier existe dans notre référentiel
|
||||
*/
|
||||
|
||||
/**
|
||||
* Vérification que le fichier ne soit pas en erreur
|
||||
*/
|
||||
$erreur = new Application_Model_CommandesErreur();
|
||||
$sql = $erreur->select()
|
||||
->from($erreur, array('url', 'dateCommande'))
|
||||
->where("siren='$siren' AND type='acte' AND ref='$ref' AND erreur!=''");
|
||||
$repErreur = $erreur->fetchAll($sql)->toArray();
|
||||
|
||||
if (count($repErreur)>0){
|
||||
//Téléchagement
|
||||
$fichier = 'acte-'.$siren.'-'.$ref.'.pdf';
|
||||
@ -1045,7 +1051,11 @@ class PiecesController extends Zend_Controller_Action
|
||||
echo '<br/>Impossible de télécharger le fichier auprès de notre partenaire.';
|
||||
}
|
||||
|
||||
} else {
|
||||
}
|
||||
/**
|
||||
* Get the file at partner InfoGreffe
|
||||
*/
|
||||
else {
|
||||
|
||||
$infogreffe = new Infogreffe();
|
||||
$reponse = $infogreffe->getGreffeActes($siren, $vecteur, $ref);
|
||||
|
@ -17,7 +17,7 @@ class RechercheController extends Zend_Controller_Action
|
||||
|
||||
public function indexAction()
|
||||
{
|
||||
$this->_forward('entreprise');
|
||||
$this->forward('entreprise');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -26,7 +26,7 @@ class RechercheController extends Zend_Controller_Action
|
||||
public function entrepriseAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
$this->view->headTitle()->append('Recherche Entreprise');
|
||||
$this->view->headTitle()->prepend('Recherche Entreprise');
|
||||
$form = new Application_Form_RechercheEntreprise();
|
||||
if ( $request->isPost() || $request->isGet() ){
|
||||
$form->populate($request->getParams());
|
||||
@ -45,7 +45,7 @@ class RechercheController extends Zend_Controller_Action
|
||||
public function dirigeantAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
$this->view->headTitle()->append('Recherche Dirigeant');
|
||||
$this->view->headTitle()->prepend('Recherche Dirigeant');
|
||||
$form = new Application_Form_RechercheDirigeant();
|
||||
if ( $request->isPost() || $request->isGet() ){
|
||||
$form->populate($request->getParams());
|
||||
@ -59,7 +59,7 @@ class RechercheController extends Zend_Controller_Action
|
||||
public function worldcheckAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
$this->view->headTitle()->append('Recherche WorldCheck');
|
||||
$this->view->headTitle()->prepend('Recherche WorldCheck');
|
||||
$form = new Application_Form_RechercheWorldcheck();
|
||||
if ( $request->isPost() || $request->isGet() ){
|
||||
$form->populate($request->getParams());
|
||||
@ -87,7 +87,7 @@ class RechercheController extends Zend_Controller_Action
|
||||
*/
|
||||
public function annonceAction()
|
||||
{
|
||||
$this->view->headTitle()->append('Recherche Annonce');
|
||||
$this->view->headTitle()->prepend('Recherche Annonce');
|
||||
|
||||
$session = new Scores_Session_Recherche();
|
||||
$recherche = $session->item(0);
|
||||
|
Loading…
Reference in New Issue
Block a user