From e86916e5e255afce1eb80f31d0b61eca25209174 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Mon, 9 May 2016 15:44:29 +0200 Subject: [PATCH] Legal - Juridique Controller --- .../legal/controllers/JuridiqueController.php | 576 ++++++++++++++++++ .../scripts/juridique/annonce-ajax.phtml | 1 + .../default/scripts/juridique/annonce.phtml | 161 +++++ .../scripts/juridique/annoncenum.phtml | 1 + .../scripts/juridique/annonces-balo.phtml | 3 + .../scripts/juridique/annonces-resume.phtml | 31 + .../default/scripts/juridique/annonces.phtml | 235 +++++++ .../scripts/juridique/competences-adm.phtml | 47 ++ .../scripts/juridique/competences-avo.phtml | 3 + .../scripts/juridique/competences-cad.phtml | 2 + .../scripts/juridique/competences-cfe.phtml | 37 ++ .../scripts/juridique/competences-hui.phtml | 46 ++ .../scripts/juridique/competences-jal.phtml | 37 ++ .../scripts/juridique/competences-pre.phtml | 37 ++ .../scripts/juridique/competences-tri.phtml | 38 ++ .../scripts/juridique/competences.phtml | 91 +++ .../scripts/juridique/conventions.phtml | 73 +++ .../views/default/scripts/juridique/ctx.phtml | 98 +++ .../default/scripts/juridique/ctxdetail.phtml | 112 ++++ .../default/scripts/juridique/infosreg.phtml | 80 +++ .../default/scripts/juridique/marques.phtml | 96 +++ 21 files changed, 1805 insertions(+) create mode 100644 application/modules/legal/views/default/scripts/juridique/annonce-ajax.phtml create mode 100644 application/modules/legal/views/default/scripts/juridique/annonce.phtml create mode 100644 application/modules/legal/views/default/scripts/juridique/annoncenum.phtml create mode 100644 application/modules/legal/views/default/scripts/juridique/annonces-balo.phtml create mode 100644 application/modules/legal/views/default/scripts/juridique/annonces-resume.phtml create mode 100644 application/modules/legal/views/default/scripts/juridique/annonces.phtml create mode 100644 application/modules/legal/views/default/scripts/juridique/competences-adm.phtml create mode 100644 application/modules/legal/views/default/scripts/juridique/competences-avo.phtml create mode 100644 application/modules/legal/views/default/scripts/juridique/competences-cad.phtml create mode 100644 application/modules/legal/views/default/scripts/juridique/competences-cfe.phtml create mode 100644 application/modules/legal/views/default/scripts/juridique/competences-hui.phtml create mode 100644 application/modules/legal/views/default/scripts/juridique/competences-jal.phtml create mode 100644 application/modules/legal/views/default/scripts/juridique/competences-pre.phtml create mode 100644 application/modules/legal/views/default/scripts/juridique/competences-tri.phtml create mode 100644 application/modules/legal/views/default/scripts/juridique/competences.phtml create mode 100644 application/modules/legal/views/default/scripts/juridique/conventions.phtml create mode 100644 application/modules/legal/views/default/scripts/juridique/ctx.phtml create mode 100644 application/modules/legal/views/default/scripts/juridique/ctxdetail.phtml create mode 100644 application/modules/legal/views/default/scripts/juridique/infosreg.phtml create mode 100644 application/modules/legal/views/default/scripts/juridique/marques.phtml diff --git a/application/modules/legal/controllers/JuridiqueController.php b/application/modules/legal/controllers/JuridiqueController.php index b3d9bbc7f..21418ca4e 100644 --- a/application/modules/legal/controllers/JuridiqueController.php +++ b/application/modules/legal/controllers/JuridiqueController.php @@ -1 +1,577 @@ theme = Zend_Registry::get('theme'); + + $request = $this->getRequest(); + $this->siret = $request->getParam('siret'); + $this->id = $request->getParam('id', 0); + + require_once 'Scores/WsScores.php'; + } + + /** + * Affichage de la liste des annonces ou d'une annonce + */ + public function annoncesAction() + { + $request = $this->getRequest(); + + $autrePage = $request->getParam('apage'); + $vue = $request->getParam('vue', 'bodacc'); + + $idAnn = $request->getParam('idAnn', null); + $siren = substr($this->siret, 0,9); + + $source = $request->getParam('source'); + if (!empty($source)) { + switch ($source){ + case 1: $vue='bodacc'; break; + case 2: $vue='balo'; break; + case 3: $vue='asso'; break; + } + } + + $session = new Scores_Session_Entreprise($this->siret, $this->id); + $fj = $session->getFormeJuridique(); + if ( $fj>9000 && $fj<9999 && intval($siren)==0 ) { + $vue = 'asso'; + } + + $this->view->assign('id', $session->getId()); + $this->view->assign('siren', $siren); + $this->view->assign('siret', $this->siret); + $this->view->assign('raisonSociale', $session->getRaisonSociale()); + $this->view->assign('AutrePage', $autrePage); + + if ($session->getSource()=='006' || $session->getSourceId()=='007') { + + $this->view->assign('AutreSource', true); + + } else { + + $this->view->assign('vue', $vue); + + //Pagination + $page = $request->getParam('page', 1); + if ( $page <= 0 ) $page = 1; + $nbAffichage = 20; + $position = ($page - 1 ) * $nbAffichage; + + $ws = new WsScores(); + switch ( $vue ) { + case 'bodacc': + case 'abod': + default: + if(intval($siren)==0) { + $idAnn = $session->getSourceId(); + } + $infos = $ws->getAnnoncesLegales($siren, $idAnn, null, $position, $nbAffichage); + break; + case 'balo': + $infos = $ws->getAnnoncesBalo($siren, $idAnn, null, $position, $nbAffichage); + break; + case 'asso': + if ( intval($siren)==0 && substr($session->getAutreId(),0,1)=='W' ) { + $infos = $ws->getAnnoncesAsso($session->getAutreId(), $idAnn, null, $position, $nbAffichage); + } elseif (intval($siren)!=0) { + $infos = $ws->getAnnoncesAsso($siren, $idAnn, null, $position, $nbAffichage); + } else { + $idAnn = $session->getSourceId(); + $infos = $ws->getAnnoncesAsso($siren, $idAnn, null, $position, $nbAffichage); + } + break; + case 'bomp': + $filtre = $request->getParam('filtre', null); + $this->view->assign('filtre', $filtre); + $infos = $ws->getAnnoncesBoamp($siren, $idAnn, $filtre, $position, $nbAffichage); + break; + } + if ($infos === false) $this->_forward('soap', 'error'); + Zend_Registry::get('firebug')->info($infos); + require_once 'Scores/Annonces.php'; + $objAnnonces = new Annonces($infos->result->item); + + $typeAnnonces = array( + 'Bodacc', + 'Balo', + 'Bomp', + 'Asso', + ); + + $user = new Scores_Utilisateur(); + $this->view->assign('hasModeEdition', $user->checkModeEdition()); + + $this->view->assign('exportObjet', $infos); + $this->view->assign('surveillance', $user->checkPerm('survannonce')); + + //Affichage pour une annonce + if (!empty($idAnn) && in_array($vue, array('bodacc', 'abod', 'balo', 'asso', 'bomp')) ) { + + if ( $user->checkModeEdition() ){ + $this->view->headScript()->appendFile($this->theme->pathScript.'/saisieannonces.js', 'text/javascript'); + } + + $classType = 'annonces'.ucfirst($vue); + foreach($objAnnonces->$classType as $ann) { + if($ann->id==$idAnn) break; + } + Zend_Registry::get('firebug')->info($ann); + $annonce = array( + 'Desc' => $objAnnonces->getAnnonceDesc($ann), + 'Entree' => $objAnnonces->getAnnonceEntree($ann), + 'EntreeSD' => $objAnnonces->getAnnonceEntreeSD($ann), + 'Even' => $objAnnonces->getAnnonceEven($ann), + 'Texte' => $objAnnonces->getAnnonceTexte($ann), + 'Type' => $objAnnonces->getType($ann), + 'Code' => $objAnnonces->getCode($ann), + 'Annee' => $objAnnonces->getAnnee($ann), + 'Num' => $objAnnonces->getNum($ann), + 'Deleted' => $objAnnonces->isDeleted($ann), + 'Entites' => $objAnnonces->getAnnonceEntite($ann) + ); + + $this->view->assign('source', $session->getSource()); + if ( intval($this->siret)==0 ){ + $this->view->assign('sourceId', $session->getSourceId()); + } else { + $this->view->assign('sourceId', null); + } + $this->view->assign('idAnn', $idAnn); + $this->view->assign('annonce', $annonce); + + if ($request->getParam('q')=='ajax') + { + $this->_helper->layout()->disableLayout(); + //$this->_helper->viewRenderer->setNoRender(true); + $this->renderScript('juridique/annonce-ajax.phtml'); + } else { + + $this->view->assign('PageCurrent', $page); + + //Définir url pour téléchargement pdf + if ( in_array($annonce['Code'], array('BODA', 'BODB', 'BODC')) && intval($annonce['Annee'])>=2008) { + $lienBodacc = $this->view->url(array( + 'controller' => 'juridique', + 'action' => 'bodaccpdf', + 'type' => substr($annonce['Code'],3,1), + 'annee' => $annonce['Annee'], + 'num' => $annonce['Num'], + ), 'default', true); + $this->view->assign('lienBodacc', $lienBodacc); + } + + $this->renderScript('juridique/annonce.phtml'); + } + + // --- Affichage pour la liste des annonces + } else { + + // --- Titre de la page + if ( empty($autrePage) ) { + if( empty($siren) ){ + $titre = 'Identifiant '.$this->id; + } else { + $titre = 'Siret '.$siren; + } + $this->view->headTitle()->prepend('Annonces Légales - '.$titre); + } + + // ---- Calcul pagination + $nbReponses = count($infos->result->item); + $nbReponsesTotal = $infos->nbReponses; + if ($nbReponses < $nbReponsesTotal) { + $pageTotal = ceil( $nbReponsesTotal / $nbAffichage ); + $pageCurrent = $page; + $pagePrev = $page - 1; + if ($pagePrev < 1) { + $pagePrev = 1; + } + $pageNext = $page + 1; + if( $pageNext > $pageTotal ) { + $pageNext = $pageTotal; + } + } else { + $pageTotal = $pageCurrent = 1; + } + $this->view->assign('PageTotal', $pageTotal); + $this->view->assign('PagePrev', $pagePrev); + $this->view->assign('PageNext', $pageNext); + $this->view->assign('PageCurrent', $pageCurrent); + + $this->view->assign('nbReponses', empty($nbReponses) ? 0 : $nbReponses); + $this->view->assign('nbReponsesTotal', empty($nbReponsesTotal) ? 0 : $nbReponsesTotal); + + foreach ( $typeAnnonces as $type ) { + $classType = 'annonces'.$type; + $annonces = array(); + if ( count( $objAnnonces->$classType ) > 0 ) { + foreach( $objAnnonces->$classType as $ann ) { + $annonces[] = $objAnnonces->getAnnonceResume($ann); + } + $this->view->assign($classType, $annonces); + } + } + $this->view->headScript()->appendFile($this->theme->pathScript.'/annonces.js', 'text/javascript'); + } + } + } + + /** + * Liste des contentieux + */ + public function ctxAction() + { + $request = $this->getRequest(); + $session = new Scores_Session_Entreprise($this->siret, $this->id); + + $this->view->headTitle()->prepend("Contentieux"); + $this->view->headTitle()->prepend("Siret ".$this->siret); + + $siren = substr($this->siret, 0,9); + $type = $request->getParam('type', 'DF'); + $this->view->Type = $type; + $typeList = array( + 'DE' => 'demandeur', + 'DF' => 'défendeur', + ); + $this->view->TypeLabel = ''; + if (array_key_exists($type, $typeList)) { + $this->view->TypeLabel = $typeList[$type]; + } + $this->view->TypeList = $typeList; + + $nbReponses = 20; + $page = $request->getParam('page', 1); + if ( $page <= 0 ) $page = 1; + $position = ($page - 1 ) * $nbReponses; + + $params = new stdClass(); + $params->companyId = $siren; + $params->tiers = $type; + $params->p = $position; + $params->limit = $nbReponses; + + try { + $ws = new Scores_Ws_Client('entreprise', '0.9'); + $response = $ws->getGreffeAffaireList($params); + if ($response === false) { + $this->view->msg = "Erreur"; + } else { + + $this->view->List = $response->List->item; + // --- Pagination + $nbReponsesTotal = $response->Nb; + $pageTotal = $pageCurrent = 1; + $pagePrev = null; + $pageNext = null; + if ($nbReponses < $nbReponsesTotal) { + $pageTotal = ceil( $nbReponsesTotal / $nbReponses ); + $pageCurrent = $page; + $pagePrev = $page - 1; + if ($pagePrev < 1) { + $pagePrev = 1; + } + $pageNext = $page + 1; + if( $pageNext > $pageTotal ) { + $pageNext = $pageTotal; + } + } + $this->view->assign('PageTotal', $pageTotal); + $this->view->assign('PagePrev', $pagePrev); + $this->view->assign('PageNext', $pageNext); + $this->view->assign('PageCurrent', $pageCurrent); + + $this->view->assign('nbReponses', empty($nbReponses) ? 0 : $nbReponses); + $this->view->assign('nbReponsesTotal', empty($nbReponsesTotal) ? 0 : $nbReponsesTotal); + + $this->view->assign('siren', $siren); + $this->view->assign('siret', $this->siret); + $this->view->assign('raisonSociale', $session->getRaisonSociale()); + + } + } catch (Exception $e) { + $this->view->msg = $e->getMessage(); + } + } + + public function ctxdetailAction() + { + $request = $this->getRequest(); + $session = new Scores_Session_Entreprise($this->siret, $this->id); + $siren = substr($this->siret, 0,9); + + $this->view->headTitle()->prepend("Contentieux"); + $this->view->headTitle()->prepend("Siret ".$this->siret); + + $this->view->assign('siren', $siren); + $this->view->assign('siret', $this->siret); + $this->view->assign('raisonSociale', $session->getRaisonSociale()); + + $id = $request->getParam('affaireId'); + + $params = new stdClass(); + $params->id = $id; + + try { + $ws = new Scores_Ws_Client('entreprise', '0.9'); + $response = $ws->getGreffeAffaireDetail($params); + if ($response === false) { + $this->view->msg = "Erreur"; + } else { + $this->view->Affaire = $response; + } + } catch (Exception $e) { + $this->view->msg = $e->getMessage(); + } + } + + /** + * Affichage infos réglementées + */ + 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); + $session = new Scores_Session_Entreprise($this->siret, $this->id); + + $ws = new WsScores(); + if ($idAnn!=false) { + $this->view->assign('idAnn', $idAnn); + $infos = $ws->getInfosReg($siren,$idAnn); + } else { + $infos = $ws->getInfosReg($siren); + } + if ($infos === false) $this->forward('soap', 'error'); + + if (is_string($infos)){ + $this->view->assign('message', $infos); + } + + $objAnnonces = $infos->result->item; + $annonces = array(); + if (count($objAnnonces)>0) { + foreach ( $objAnnonces as $item ) { + $dateParution = new Zend_Date($item->DateParution, 'yyyy-MM-dd'); + $dateInsertion = new Zend_Date($item->dateInsertionSD, 'yyyy-MM-dd'); + $annonces[] = array( + 'id' => $item->id, + 'titre' => $item->titre, + 'communique' => $item->communique, + 'source' => $item->source, + 'DateParution' => $dateParution->toString('dd/MM/yyyy'), + 'dateInsertionSD' => $dateInsertion->toString('dd/MM/yyyy'), + ); + } + } + + $this->view->assign('annonces', $annonces); + $this->view->assign('siren', $siren); + $this->view->assign('siret', $this->siret); + $this->view->assign('raisonSociale', $session->getRaisonSociale()); + $this->view->assign('exportObjet', $infos); + } + + /** + * Affichage listes des compétences + */ + 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); + $session = new Scores_Session_Entreprise($this->siret, $this->id); + + $abbrev = array( + ' TGI ' => 'TRIBUNAL DE GRANDE INSTANCE DE ', + ' TI ' => 'TRIBUNAL D\'INSTANCE DE ', + ' TC ' => 'TRIBUNAL DE COMMERCE DE ', + ' TGICC ' => 'TRIBUNAL DE GRANDE INSTANCE A COMPETENCE COMMERCIALE ', + ' TICC ' => 'TRIBUNAL D\'INSTANCE A COMPETENCE COMMERCIALE ' + ); + + if (!empty($type)){ + $ws = new WsScores(); + $infos = $ws->getListeCompetences($this->siret, $type, $session->getCodeCommune()); + if ($infos === false) $this->_forward('soap', 'error'); + + $competences = $infos->result->item; + Zend_Registry::get('firebug')->info($infos); + if( $type=='tri' || $type=='cfe' ) { + $i=0; + foreach($competences as $comp){ + $competences[$i]->Nom = strtr(' '.strtoupper($comp->Nom), $abbrev); + $i++; + } + } + $this->view->assign('competences', $competences); + $this->view->assign('type', $type); + $this->view->assign('exportObjet', $infos); + } + + $this->view->assign('siren', $siren); + $this->view->assign('siret', $this->siret); + $this->view->assign('raisonSociale', $session->getRaisonSociale()); + } + + /** + * Affichage des la listes des conventions collectives + * Enter description here ... + */ + 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); + $this->view->assign('siret', $this->siret); + $this->view->assign('raisonSociale', $session->getRaisonSociale()); + $ws = new WsScores(); + $infos = $ws->getListeConventions($siren); + $conventions = $infos->result->item; + Zend_Registry::get('firebug')->info($conventions); + $this->view->assign('conventions', $conventions); + $this->view->assign('exportObjet', $infos); + } + + /** + * Affichage des marques déposées + */ + public function marquesAction() + { + $this->view->headTitle()->prepend("Marques Déposées"); + $this->view->headTitle()->prepend("Siret ".$this->siret); + + $this->view->headScript()->appendFile($this->theme->pathScript.'/marques.js', 'text/javascript'); + + $request = $this->getRequest(); + $idObject = $request->getParam('idObject', 0); + $siren = substr($this->siret, 0,9); + $session = new Scores_Session_Entreprise($this->siret, $this->id); + $this->view->assign('siren', $siren); + $this->view->assign('siret', $this->siret); + $this->view->assign('raisonSociale', $session->getRaisonSociale()); + $ws = new WsScores(); + $infos = $ws->getMarques($siren, $idObject); + if ($infos === false) $this->_forward('soap', 'error'); + + $marques = $infos->result->item; + $this->view->assign('marques', $marques); + $this->view->assign('idObject', $idObject); + $this->view->assign('exportObjet', $marques); + Zend_Registry::get('firebug')->info($infos); + } + + /** + * Affiche le lien pour télécharger le fichier concernant le dépot + */ + public function getmarqueAction() + { + $this->_helper->layout()->disableLayout(); + $this->_helper->viewRenderer->setNoRender(true); + $request = $this->getRequest(); + $numdepot = $request->getParam('numdepot', ''); + if (empty($numdepot)){ + echo 'Paramètres incorrects'; + exit; + } + $c = Zend_Registry::get('config'); + $directory = $c->profil->path->shared.'/persist/marques'; + $file = $numdepot.'.pdf'; + + //Le fichier n'existe pas alors on le télécharger + if(!file_exists($directory.'/'.$file) + || filesize($directory.'/'.$file)==0 ) { + $cmd = 'php ' . APPLICATION_PATH . '/../scripts/jobs/getMarque.php ' . $numdepot; + Zend_Registry::get('firebug')->info($cmd); + $result = exec($cmd); + Zend_Registry::get('firebug')->info($result); + } + //On vérfie que le fichier existe après le téléchargement + if(file_exists($directory.'/'.$file) && filesize($directory.'/'.$file)>0) { + $href = $this->view->url(array('module'=>'file', 'controller'=>'index', 'action'=>'marque', 'q'=>$file), 'default', true); + echo 'Télécharger le PDF de l\'insciption au BOPI.'; + } else { + echo 'Document introuvable.'; + } + + } + + public function bodaccpdfAction() + { + $this->_helper->layout()->disableLayout(); + $this->_helper->viewRenderer->setNoRender(true); + $request = $this->getRequest(); + + $type = $request->getParam('type'); + $annee = $request->getParam('annee'); + $num = $request->getParam('num'); + + //$num doit être retraité pour être sur 4 position + $c = strlen($num); + for($i=0;$i<4-$c;$i++){ + $num = '0'.$num; + } + + $c = Zend_Registry::get('config'); + $file = $c->profil->path->shared.'/persist/bodacc/'.$type.'/'.$annee.'/'. + 'BODACC_'.$type.'_'.$annee.'_'.$num.'.pdf'; + + if ( !file_exists($file) ) { + exec('php ' . APPLICATION_PATH . "/../scripts/jobs/getBodaccPdf.php $type $annee $num >> getBodaccPdf.log"); + } + + if (file_exists($file)) { + $href = $this->view->url(array('module'=>'file', 'controller'=>'bodacc', 'action'=>'actual', + 'q' => basename($file)), 'default', true); + echo "Cliquer ici pour télécharger le fichier."; + } else { + echo "Erreur lors du chargement du fichier."; + } + } + + + public function annoncenumAction() + { + $this->_helper->layout()->disableLayout(); + + $request = $this->getRequest(); + $siren = $request->getParam('siren'); + + $ws = new WsScores(); + $result = $ws->getAnnoncesNum($siren); + Zend_Registry::get('firebug')->info($result); + $numWS = array(); + if (count($result->item)>0) { + foreach ($result->item as $item) { + $numWS[$item->type] = $item->num; + } + } + $types = array('bodacc', 'balo', 'boamp', 'asso'); + + $num = array(); + foreach($types as $type) { + if ( array_key_exists($type, $numWS) ) { + $num['Type'.ucfirst($type)] = $numWS[$type]; + } + } + + $this->view->assign('num', $num); + } +} \ No newline at end of file diff --git a/application/modules/legal/views/default/scripts/juridique/annonce-ajax.phtml b/application/modules/legal/views/default/scripts/juridique/annonce-ajax.phtml new file mode 100644 index 000000000..430a3fef3 --- /dev/null +++ b/application/modules/legal/views/default/scripts/juridique/annonce-ajax.phtml @@ -0,0 +1 @@ +RemplaceSiren(substr($this->annonce['Texte'],0,1000))?> \ No newline at end of file diff --git a/application/modules/legal/views/default/scripts/juridique/annonce.phtml b/application/modules/legal/views/default/scripts/juridique/annonce.phtml new file mode 100644 index 000000000..5f78c9030 --- /dev/null +++ b/application/modules/legal/views/default/scripts/juridique/annonce.phtml @@ -0,0 +1,161 @@ +
+

ANNONCES LÉGALES

+
+ + + + + + + + + + + +surveillance) {?> + + + + + +
 Numéro identifiant SirenSirenTexte($this->siren)?>
 Dénomination Sociale + raisonSociale?> + hasModeEdition) : ?> + (Edition) + +
  + action('infos','surveillance', null, array( + 'source' => 'annonces', + 'siret' => $this->siret + ))?> +
+
+ +annonce['Type']) { + case 'balo': + ?>

BALO

ÉVÉNEMENTS LÉGAUX

Associations

Marchés publics

+
+ +annonce['Deleted'])) {?> +
+
+

+ Cette parution a fait l'objet d'une annonce corrective, le annonce['Deleted']?>

+
+
+ + +

+annonce['Desc'].' '.$this->annonce['Entree'].' '.$this->annonce['EntreeSD'];?> +hasModeEdition){ + $liensEdit = array( + 'edit' => array( + 'class' => 'annonceSaisie', + 'title' => 'Edition annonce', + 'img' => '', + ), + 'delete' => array( + 'class' => 'annonceSaisie', + 'title' => 'Suppression annonce', + 'img' => '', + ), + 'copy' => array( + 'class' => 'annonceSaisie', + 'title' => 'Dupliquer sur autre Siren', + 'img' => '', + ), + 'even' => array( + 'class' => 'annonceSaisie', + 'title' => "Modifier le type d'événement", + 'img' => '', + ), + + ); + foreach ( $liensEdit as $lienId => $lienItem ){ + ?> + + +

+ +

annonce['Even']?>

+

RemplaceSiren($this->annonce['Texte'])?>

+
+ +
+lienBodacc ) { ?> + + +Bodacc au format PDF +Télécharger le bulletin officiel + + +
+ +
+annonce['Entites'])>0) {?> +

Entités concernées par l'annonce :

+ +annonce['Entites'] as $entite) {?> + + + + + + +
event->LibEven?>raisonSociale?> +siret)>1000) {?> + +SiretTexte($entite->siret)?> + + +
+ +
+ +
+siret)!=0) {?> +url(array( + 'controller' => 'juridique', + 'action' => 'annonces', + 'siret' => $this->siret, + 'id' => $this->id, + 'vue' => $this->vue, + 'page' => $this->PageCurrent, +), 'default', true); +?> +Revenir à la liste des annonces + +
+ +render('cgu.phtml', $this->cgu)?> +
\ No newline at end of file diff --git a/application/modules/legal/views/default/scripts/juridique/annoncenum.phtml b/application/modules/legal/views/default/scripts/juridique/annoncenum.phtml new file mode 100644 index 000000000..81f0e761d --- /dev/null +++ b/application/modules/legal/views/default/scripts/juridique/annoncenum.phtml @@ -0,0 +1 @@ +num)?> diff --git a/application/modules/legal/views/default/scripts/juridique/annonces-balo.phtml b/application/modules/legal/views/default/scripts/juridique/annonces-balo.phtml new file mode 100644 index 000000000..6109c873e --- /dev/null +++ b/application/modules/legal/views/default/scripts/juridique/annonces-balo.phtml @@ -0,0 +1,3 @@ +
+
infos); ?>
+
\ No newline at end of file diff --git a/application/modules/legal/views/default/scripts/juridique/annonces-resume.phtml b/application/modules/legal/views/default/scripts/juridique/annonces-resume.phtml new file mode 100644 index 000000000..aaae30b52 --- /dev/null +++ b/application/modules/legal/views/default/scripts/juridique/annonces-resume.phtml @@ -0,0 +1,31 @@ +deleted!='') { + $class = ' class="deleted"'; +} +?> +> + + Le date?> + + + + logo)) {?> + + + + + + + lib?> + + RemplaceSiren($this->texte)?> + + diff --git a/application/modules/legal/views/default/scripts/juridique/annonces.phtml b/application/modules/legal/views/default/scripts/juridique/annonces.phtml new file mode 100644 index 000000000..ae1467b86 --- /dev/null +++ b/application/modules/legal/views/default/scripts/juridique/annonces.phtml @@ -0,0 +1,235 @@ +AutrePage)):?> +
+ + +AutrePage)):?> +

ANNONCES LÉGALES

+
+ + + + + + + + + + + +surveillance) {?> + + + + + +
 Numéro identifiant SirenSirenTexte($this->siren)?>
 Dénomination SocialeraisonSociale?> + hasModeEdition) : ?> + (Edition) + +
  + action('infos','surveillance', null, array( + 'source' => 'annonces', + 'siret' => $this->siret + ))?> +
+
+ + +AutreSource){ ?> +

EVÉNEMENTS LÉGAUX

+
+ Aucune annonces disponible pour cette entité. +
+ + +AutrePage)) {?> + + +
+
+ + + + + + + + + +
+
+ + +vue=='bodacc'){ ?> +

EVÉNEMENTS LÉGAUX

+
+ annoncesBodacc)==0){ ?> + Néant + + + partialLoop('juridique/annonces-resume.phtml', $this->annoncesBodacc)?> +
+ +
+ + +vue=='balo'){ ?> +

BALO

+
+ annoncesBalo)==0){ ?> + Néant + + + partialLoop('juridique/annonces-resume.phtml', $this->annoncesBalo)?> +
+ +
+ + +vue=='bomp'){ ?> +
+
+ + +
+ +
+ +

Marchés publics

+
+annoncesBomp)==0) { ?> +Néant + + +partialLoop('juridique/annonces-resume.phtml', $this->annoncesBomp)?> +
+ +
+ + +vue=='asso') { ?> +

Associations

+
+annoncesAsso)==0){ ?> +Néant + + +partialLoop('juridique/annonces-resume.phtml', $this->annoncesAsso)?> +
+ +
+ + +AutrePage)) {?> + +PageTotal>1) {?> +
+ +
+ + + + +AutrePage)) {?> +render('cgu.phtml', $this->cgu)?> + + +AutrePage)) {?> + + + + + +AutrePage)) {?> +
+ \ No newline at end of file diff --git a/application/modules/legal/views/default/scripts/juridique/competences-adm.phtml b/application/modules/legal/views/default/scripts/juridique/competences-adm.phtml new file mode 100644 index 000000000..2b53c8210 --- /dev/null +++ b/application/modules/legal/views/default/scripts/juridique/competences-adm.phtml @@ -0,0 +1,47 @@ +

Administrateur(s) / Mandataire(s) judiciaires

+
+competences)>0 ) {?> +
    +competences as $comp) {?> +
  • Nom?>
    +Type=='A') echo 'Administrateur judiciaire
    '; + elseif ($comp->Type=='M') echo 'Mandataire judiciaire
    '; + if (intval($comp->Siret)!=0) { ?> + RCS + partial()->view->SiretTexte($comp->Siret)?> +
    + + IdSup)*1>0) { ?> + (SCP : partial()->view->SirenTexte($comp->IdSup)?>) +
    + + Adr?>
    + AdrComp<>'') echo $comp->AdrComp.'
    ';?> + CP.' '.$comp->Ville?>
    + Tel<>'') echo 'Tél : '.wordwrap($comp->Tel,2,".",true).'
    ';?> + Fax<>'') echo 'Fax : '.wordwrap($comp->Fax,2,".",true).'
    ';?> + Web)<>'') { + if (substr($comp->Web,0,7)<>'http://') + $siteWeb='http://'.$comp->Web; + else + $siteWeb=$comp->Web; + echo 'Site internet : '.$siteWeb.'
    '; + }?> + Mail<>'') echo 'Courriel : '.$comp->Mail.'
    ';?> + Remarque<>'') echo 'Remarque : '.$comp->Remarque.'
    ';?> +
  • + +
+ +Aucune information. + +
\ No newline at end of file diff --git a/application/modules/legal/views/default/scripts/juridique/competences-avo.phtml b/application/modules/legal/views/default/scripts/juridique/competences-avo.phtml new file mode 100644 index 000000000..e5f75300f --- /dev/null +++ b/application/modules/legal/views/default/scripts/juridique/competences-avo.phtml @@ -0,0 +1,3 @@ +

Avocat(s)

+
+
\ No newline at end of file diff --git a/application/modules/legal/views/default/scripts/juridique/competences-cad.phtml b/application/modules/legal/views/default/scripts/juridique/competences-cad.phtml new file mode 100644 index 000000000..ff04c27d4 --- /dev/null +++ b/application/modules/legal/views/default/scripts/juridique/competences-cad.phtml @@ -0,0 +1,2 @@ +

Cadastre et Hypothèques

+
\ No newline at end of file diff --git a/application/modules/legal/views/default/scripts/juridique/competences-cfe.phtml b/application/modules/legal/views/default/scripts/juridique/competences-cfe.phtml new file mode 100644 index 000000000..d2a50d7e3 --- /dev/null +++ b/application/modules/legal/views/default/scripts/juridique/competences-cfe.phtml @@ -0,0 +1,37 @@ +

Centre de formalités des entreprises

+
+competences)>0 ) {?> +
    +competences as $comp) {?> +
  • + Nom?>
    +Siret)<>'') { ?> + RCS + partial()->view->SiretTexte($comp->Siret)?> +
    + + Adr?>
    + AdrComp<>'') echo $comp->AdrComp.'
    ';?> + CP.' '.$comp->Ville?>
    + Tel<>'') echo 'Tél : '.wordwrap($comp->Tel,2,".",true).'
    ';?> + Fax<>'') echo 'Fax : '.wordwrap($comp->Fax,2,".",true).'
    ';?> + Web)<>'') { + if (substr($comp->Web,0,7)<>'http://') + $siteWeb='http://'.$comp->Web; + else + $siteWeb=$comp->Web; + echo 'Site internet : '.$siteWeb.'
    '; + }?> + Mail<>'') echo 'Courriel : '.$comp->Mail.'
    ';?> + Remarque<>'') echo $comp->Remarque.'
    ';?> +
  • + +
+ +Aucune information. + +
\ No newline at end of file diff --git a/application/modules/legal/views/default/scripts/juridique/competences-hui.phtml b/application/modules/legal/views/default/scripts/juridique/competences-hui.phtml new file mode 100644 index 000000000..63db43e21 --- /dev/null +++ b/application/modules/legal/views/default/scripts/juridique/competences-hui.phtml @@ -0,0 +1,46 @@ +

Huissiers

+
+competences)>0 ) {?> +
    +competences as $comp) {?> +
  • Nom?>
    + Huissier de justice
    +Siret)<>'' && trim($comp->Siret)*1<>0) { +?> + RCS + partial()->view->SiretTexte($comp->Siret)?> + IdSup)*1>0) { ?> + (SCP : partial()->view->SirenTexte($comp->IdSup)?>) + +
    + + Adr?>
    + AdrComp<>'') echo $comp->AdrComp.'
    ';?> + CP.' '.$comp->Ville?>
    + Tel<>'') echo 'Tél : '.wordwrap($comp->Tel,2,".",true).'
    ';?> + Fax<>'') echo 'Fax : '.wordwrap($comp->Fax,2,".",true).'
    ';?> + Web)<>'') { + if (substr($comp->Web,0,7)<>'http://') + $siteWeb = 'http://'.$comp->Web; + else + $siteWeb = $comp->Web; + echo 'Site internet : '.$siteWeb.'
    '; + }?> + Mail<>'') echo 'Courriel : '.$comp->Mail.'
    ';?> + Remarque<>'') echo 'Remarque : '.$comp->Remarque.'
    ';?> +
  • + +
+ +Aucune information. + +
\ No newline at end of file diff --git a/application/modules/legal/views/default/scripts/juridique/competences-jal.phtml b/application/modules/legal/views/default/scripts/juridique/competences-jal.phtml new file mode 100644 index 000000000..1ccc09cf4 --- /dev/null +++ b/application/modules/legal/views/default/scripts/juridique/competences-jal.phtml @@ -0,0 +1,37 @@ +

Jounaux d'Annonces Légales

+
+competences)>0 ) {?> +
    +competences as $comp) {?> +
  • + Nom?>
    +Siret)<>'') { ?> + RCS + partial()->view->SiretTexte($comp->Siret)?> +
    + + Adr?>
    + AdrComp<>'') echo $comp->AdrComp.'
    ';?> + CP.' '.$comp->Ville?>
    + Tel<>'') echo 'Tél : '.wordwrap($comp->Tel,2,".",true).'
    ';?> + Fax<>'') echo 'Fax : '.wordwrap($comp->Fax,2,".",true).'
    ';?> + Web)<>'') { + if (substr($comp->Web,0,7)<>'http://') + $siteWeb='http://'.$comp->Web; + else + $siteWeb=$comp->Web; + echo 'Site internet : '.$siteWeb.'
    '; + }?> + Mail<>'') echo 'Courriel : '.$comp->Mail.'
    ';?> + Remarque<>'') echo $comp->Remarque.'
    ';?> +
  • + +
+ +Aucune information. + +
\ No newline at end of file diff --git a/application/modules/legal/views/default/scripts/juridique/competences-pre.phtml b/application/modules/legal/views/default/scripts/juridique/competences-pre.phtml new file mode 100644 index 000000000..321db6b04 --- /dev/null +++ b/application/modules/legal/views/default/scripts/juridique/competences-pre.phtml @@ -0,0 +1,37 @@ +

Préfectures et Sous-Préfectures

+
+competences)>0 ) {?> +
    +competences as $comp) {?> +
  • + Nom?>
    +Siret)<>'') { ?> + RCS + partial()->view->SiretTexte($comp->Siret)?> +
    + + Adr?>
    + AdrComp<>'') echo $comp->AdrComp.'
    ';?> + CP.' '.$comp->Ville?>
    + Tel<>'') echo 'Tél : '.wordwrap($comp->Tel,2,".",true).'
    ';?> + Fax<>'') echo 'Fax : '.wordwrap($comp->Fax,2,".",true).'
    ';?> + Web)<>'') { + if (substr($comp->Web,0,7)<>'http://') + $siteWeb='http://'.$comp->Web; + else + $siteWeb=$comp->Web; + echo 'Site internet : '.$siteWeb.'
    '; + }?> + Mail<>'') echo 'Courriel : '.$comp->Mail.'
    ';?> + Remarque<>'') echo $comp->Remarque.'
    ';?> +
  • + +
+ +Aucune information. + +
\ No newline at end of file diff --git a/application/modules/legal/views/default/scripts/juridique/competences-tri.phtml b/application/modules/legal/views/default/scripts/juridique/competences-tri.phtml new file mode 100644 index 000000000..0607fc88c --- /dev/null +++ b/application/modules/legal/views/default/scripts/juridique/competences-tri.phtml @@ -0,0 +1,38 @@ +

Tribunaux

+
+competences)>0 ) {?> +
    +competences as $comp) { ?> +
  • + Nom?>
    +Siret)<>'') { ?> + RCS + partial()->view->SiretTexte($comp->Siret)?> +
    + + Adr?>
    + AdrComp<>'') echo $comp->AdrComp.'
    ';?> + CP.' '.$comp->Ville?>
    + Tel<>'') echo 'Tél : '.wordwrap($comp->Tel,2,".",true).'
    ';?> + Fax<>'') echo 'Fax : '.wordwrap($comp->Fax,2,".",true).'
    ';?> + Web)<>'') { + if (substr($comp->Web,0,7)<>'http://') + $siteWeb='http://'.$comp->Web; + else + $siteWeb=$comp->Web; + echo 'Site internet : '.$siteWeb.'
    '; + }?> + Mail<>'') echo 'Courriel : '.$comp->Mail.'
    ';?> + Remarque<>'') echo $comp->Remarque.'
    ';?> + IdentifiantGreffe>0) echo 'Identifiant Greffe : '.$comp->IdentifiantGreffe;?> +
  • + +
+ +Aucune information. + +
\ No newline at end of file diff --git a/application/modules/legal/views/default/scripts/juridique/competences.phtml b/application/modules/legal/views/default/scripts/juridique/competences.phtml new file mode 100644 index 000000000..572a2188a --- /dev/null +++ b/application/modules/legal/views/default/scripts/juridique/competences.phtml @@ -0,0 +1,91 @@ +
+

COMPÉTENCES TERRITORIALES

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
  + Numéro identifiant Siren + + SirenTexte($this->siren)?> +
 Dénomination SocialeraisonSociale?>
 
  + Tribunaux +
  + Administrateurs & Mandataires judiciaires
  + Huissiers de justice +
  + Préfectures & Sous-préfectures +
  + Centres de formalités des Entreprises (CCI, Greffes, Métiers, Artisanat, Agriculture, URSSAF, Impôts, etc...) +
  + Journaux d'Annonces Légales +
+
+type) {?> +partial('juridique/competences-'.$this->type.'.phtml', array('competences' => $this->competences))?> + +render('cgu.phtml', $this->cgu)?> +
\ No newline at end of file diff --git a/application/modules/legal/views/default/scripts/juridique/conventions.phtml b/application/modules/legal/views/default/scripts/juridique/conventions.phtml new file mode 100644 index 000000000..f8ace9396 --- /dev/null +++ b/application/modules/legal/views/default/scripts/juridique/conventions.phtml @@ -0,0 +1,73 @@ +
+

CONVENTIONS COLLECTIVES APPLICABLES

+
+ + + + + + + + + + + +
  + Numéro identifiant Siren + + SirenTexte($this->siren)?> +
 Dénomination SocialeraisonSociale?>
+
+ +

Conventions collectives

+
+ +conventions)>0){ + foreach ($this->conventions as $conv) { +?> + + + + + + + + + + + + + +
+ + + + + + + +
  + + Brochure idCC,0,4)?> + + + nomCC?> + Journal Officiel + dateCC)<>'') echo ', '.$conv->dateCC; + if (trim($conv->nbPageCC)*1>0) echo ', '.$conv->nbPageCC.' pages.'; + if (trim($conv->isbnCC)<>'') echo '
ISBN '.$conv->isbnCC; + ?> +
+
+
  Néant
 
+
+ +render('cgu.phtml', $this->cgu)?> +
\ No newline at end of file diff --git a/application/modules/legal/views/default/scripts/juridique/ctx.phtml b/application/modules/legal/views/default/scripts/juridique/ctx.phtml new file mode 100644 index 000000000..22fc5e9ca --- /dev/null +++ b/application/modules/legal/views/default/scripts/juridique/ctx.phtml @@ -0,0 +1,98 @@ +
+

Contentieux Judiciaires

+ +msg) {?> +
+
+

+ Alert: msg?>

+
+
+ + +
+ + + + + + + + + + + + + + + + +
 Numéro identifiant SirenSirenTexte($this->siren)?>
 Dénomination SocialeraisonSociale?>
 Affaire(s) en tant que +
+ + +
+
+
+ +

Liste des affaires en tant que TypeLabel?>

+
+List) > 0) {?> + + + + + + + + + + + +List as $k => $item) {?> + + + + + + + + + +
DateCatégorieLibelléTiers demandeurEtat
+ Date, 'y-MM-dd'); + $dateString = $date->toString('dd/MM/y'); + } catch(Zend_Date_Exception $e){} + ?>CategoryLabel?>Label?> + TierName->item as $t) {?> + + + StatusLabel?>
+ +PageTotal>1) {?> +
+ +
+ + + +
+ + + +render('cgu.phtml', $this->cgu)?> +
diff --git a/application/modules/legal/views/default/scripts/juridique/ctxdetail.phtml b/application/modules/legal/views/default/scripts/juridique/ctxdetail.phtml new file mode 100644 index 000000000..f87e0452f --- /dev/null +++ b/application/modules/legal/views/default/scripts/juridique/ctxdetail.phtml @@ -0,0 +1,112 @@ +
+

Contentieux Judiciaires

+ +msg) {?> +
+
+

+ Alert: msg?>

+
+
+ + +
+ + + + + + + + + + + +
 Numéro identifiant SirenSirenTexte($this->siren)?>
 Dénomination SocialeraisonSociale?>
+
+ +

Détail de l'affaire

+
+ + + + + + + + + + + + + + + + + + + +Affaire->Histo, 'item') && count($this->Affaire->Histo->item) > 0) {?> +Affaire->Histo->item as $h){?> + + + + + + + + + +
TribunalAffaire->GreffeLabel?>
Date de l'affaire + Affaire->Date, 'y-MM-dd'); + $dateString = $date->toString('dd/MM/y'); + } catch(Zend_Date_Exception $e){} + ?> +
Etat de l'affaireAffaire->StatusLabel?>
Type de contentieuxAffaire->CategoryLabel?>
Nature de l'affaireAffaire->Label?>
Demandeurs + Affaire->Tiers->item) > 0) {?> + Affaire->Tiers->item as $t) {?> + TypeCode == 'DE') {?> +
+ companyNom?>companyId)) {?> (SirenTexte($t->companyId)?>) + Acteur)) {?> + Acteur->item as $acteur) {?> +
- Nom?> + + +
+ + + +
Défendeurs + Affaire->Tiers->item) > 0) {?> + Affaire->Tiers->item as $t) {?> + TypeCode == 'DF') {?> +
+ companyNom?>companyId)) {?> (SirenTexte($t->companyId)?>) + Acteur)) {?> + Acteur->item as $acteur) {?> +
- Nom?> + + +
+ + + +
Historique
+ Date, 'y-MM-dd'); + $dateString = $date->toString('dd/MM/y'); + } catch(Zend_Date_Exception $e){} + ?> + + Label?>
- Aucune information -
+
+ + + +
\ No newline at end of file diff --git a/application/modules/legal/views/default/scripts/juridique/infosreg.phtml b/application/modules/legal/views/default/scripts/juridique/infosreg.phtml new file mode 100644 index 000000000..a725b79e0 --- /dev/null +++ b/application/modules/legal/views/default/scripts/juridique/infosreg.phtml @@ -0,0 +1,80 @@ +
+

INFORMATIONS RÉGLEMENTÉES

+
+ + + + + + + + + + + +
  + Numéro identifiant Siren + + SirenTexte($this->siren)?> +
 Dénomination SocialeraisonSociale?>
+
+ +

Informations réglementées (sources diffuseurs: BusinessWire / Hugin / actunews / DI Release)

+
+annonces)>0) {?> + +idAnn) {?> + annonces as $item){ if ($item['id']==$this->idAnn) break; } ?> + + + + + + + + + + + + + + + + + + +
  + Information du . + Entrée en base S&D : +
 
 
 RemplaceSiren($item['communique'])?>
 
+ Revenir à la liste des annonces +
+ + +annonces as $item){?> + + + + + + +
 Le + + + +
+ + + + + + + + + +
  Néant
+ +
+ +render('cgu.phtml', $this->cgu)?> +
\ No newline at end of file diff --git a/application/modules/legal/views/default/scripts/juridique/marques.phtml b/application/modules/legal/views/default/scripts/juridique/marques.phtml new file mode 100644 index 000000000..e2692dff8 --- /dev/null +++ b/application/modules/legal/views/default/scripts/juridique/marques.phtml @@ -0,0 +1,96 @@ +
+

PROPRIÉTÉ INTELLECTUELLE

+
+ + + + + + + + + + + +
  + Numéro identifiant Siren + + SirenTexte($this->siren)?> +
 Dénomination SocialeraisonSociale?>
+
+ +idObject!=0) { ?> + +marques[0]; ?> +

Marque déposée - détail

+
+ +

Type de Marque : Perimetre?>

+

Marque : Marques?>

+

Classification de Nice : Classes?>

+

Produits et Services : +ProduitsServices->item)>0) {?> +ProduitsServices->item as $txt) {?> +

+ + +

+

Déposant : Deposant?>

+

Mandataire : Mandataire?>

+

Numéro : Depot?>

+

Statut : Statut?>

+

Date de dépôt / Enregistrement : Date?>

+

Lieu de dépôt : Lieu?>

+

Historique : +Historique->item)>0) {?> +Historique->item as $txt) {?> +
+ + +

+
+ + + +

Marque(s) déposée(s)

+
+ +marques)==0) { ?> + + + + +marques as $marque) { ?> + + + + + + + +
+ Aucune marque n'a été déposée par cette entreprise depuis 1982. +
+ Date, 'yyyy-MM-dd'); ?> + Dépôt n°Depot?> du toString('dd/MM/yyyy')?> + + + PDF + +
+
+ + Marques?> +
+
+ + + +render('cgu.phtml', $this->cgu)?> +
\ No newline at end of file