Préliminaire intégration Infogreffe
This commit is contained in:
parent
d09abba0d2
commit
9227e031a7
@ -14,6 +14,9 @@ class FichierController extends Zend_Controller_Action
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gestion du chargement des logos
|
||||
*/
|
||||
public function logoAction()
|
||||
{
|
||||
$file = $this->getRequest()->getParam('fichier');
|
||||
@ -42,6 +45,9 @@ class FichierController extends Zend_Controller_Action
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gestion du chargement des images du cache
|
||||
*/
|
||||
public function imgcacheAction()
|
||||
{
|
||||
$content_type = 'image/png';
|
||||
@ -62,6 +68,9 @@ class FichierController extends Zend_Controller_Action
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Gestion du chargement des fichiers des marques
|
||||
*/
|
||||
public function marqueAction()
|
||||
{
|
||||
$config = new Zend_Config_Ini(APPLICATION_PATH . '/configs/configuration.ini', 'path');
|
||||
@ -81,4 +90,13 @@ class FichierController extends Zend_Controller_Action
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Gestion des fichiers Actes et Bilans
|
||||
*/
|
||||
public function pdfAction()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
@ -1,28 +1,489 @@
|
||||
<?php
|
||||
class PiecesController extends Zend_Controller_Action
|
||||
{
|
||||
protected $association_cj = array(
|
||||
'9150', // Association syndicale libre
|
||||
'9220', // Association déclarée
|
||||
'9221', // Association déclarée "entreprises d'insertion par l'économique"
|
||||
'9222', // Association intermédiaire
|
||||
'9223', // Groupement d'employeurs
|
||||
'9230', // Association déclarée reconnue d'utilité publique
|
||||
'9240', // Congrégation
|
||||
'9260', // Association de droit local
|
||||
'9300', // Fondation
|
||||
);
|
||||
|
||||
protected $siret;
|
||||
protected $id;
|
||||
protected $entrep;
|
||||
|
||||
public function init()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
$this->siret = $request->getParam('siret');
|
||||
$this->id = $request->getParam('id', 0);
|
||||
require_once 'Scores/WsScores.php';
|
||||
require_once 'Scores/WsScores.php';
|
||||
require_once 'Scores/Utilisateur.php';
|
||||
require_once 'Scores/SessionEntreprise.php';
|
||||
require_once 'common/dates.php';
|
||||
require_once 'Infogreffe/Infogreffe.php';
|
||||
|
||||
$request = $this->getRequest();
|
||||
$this->siret = $request->getParam('siret');
|
||||
$this->id = $request->getParam('id', 0);
|
||||
$this->entrep = new SessionEntreprise($this->siret, $this->id);
|
||||
}
|
||||
|
||||
public function indexAction()
|
||||
public function indexAction(){}
|
||||
|
||||
public function commandeassociationAction()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
public function assocationAction()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function actesAction()
|
||||
{
|
||||
$this->view->headLink()->appendStylesheet('/themes/default/styles/pieces.css', 'all');
|
||||
$this->view->headScript()->appendFile('/themes/default/scripts/pieces.js', 'text/javascript');
|
||||
|
||||
//Catégorie Juridique
|
||||
$cj = $this->entrep->getFormeJuridique();
|
||||
if( in_array($cj, $this->association_cj) ) {
|
||||
$this->_forward($action);
|
||||
}
|
||||
|
||||
$user = new Utilisateur();
|
||||
|
||||
$request = $this->getRequest();
|
||||
|
||||
$siren = substr($this->siret,0,9);
|
||||
$vecteur = 'XL';
|
||||
$ref = '';
|
||||
|
||||
//Affichage des actes disponible
|
||||
$infogreffe = new Infogreffe();
|
||||
$reponse = $infogreffe->getGreffeActes($siren, $vecteur, $ref);
|
||||
//Gestion des erreurs dans la réponse
|
||||
|
||||
/*
|
||||
* Construire la réponse pour affichage
|
||||
* Date, Type, Décisions,
|
||||
*/
|
||||
$infosActes = array();
|
||||
|
||||
if (count($reponse['result'])>0) {
|
||||
|
||||
$items = $reponse['result'];
|
||||
//Traitement dernier statut à jour
|
||||
if(array_key_exists(0, $items))
|
||||
{
|
||||
$acteS = $items[0];
|
||||
$lienCommande = cmdDernierStatut($siren, $acteS);
|
||||
$data = '';
|
||||
$data.= $acteS['actes'][0]['type_lib'].' ';
|
||||
//Génération du lien de commande suivant le mode de diffusion
|
||||
$params = 'vue=statuts&siret='.$siren.'&ref='.$acteS['actes'][0]['ref'];
|
||||
switch($acteS['actes'][0]['mode'])
|
||||
{
|
||||
case 'C':
|
||||
if(hasPerm('actes', $_SESSION['tabInfo']))
|
||||
{
|
||||
$href = './?page=greffes&q=c&'.$params;
|
||||
$title = 'Commander le document correspondant';
|
||||
}
|
||||
else
|
||||
{
|
||||
$href = '#';
|
||||
$title = 'Vous n\'avez pas les droits nécessaires pour commander le document correspondant.';
|
||||
}
|
||||
$data.= '<a href="'.$href.'"'.$class.' title="'.$title.'"> <img alt="courrier" src="./img/icone_courrier.png"/></a>';
|
||||
break;
|
||||
}
|
||||
$cells[] = array( 'data'=> $data.$lienCommande , 'attrs'=>array('class'=>'type') );
|
||||
//=> Cellule 3
|
||||
$data = 'Le dernier statut à jour';
|
||||
$cells[] = array( 'data'=> $data, 'attrs'=>array('class'=>'decision') );
|
||||
$rows[] = array( 'data' => $cells );
|
||||
//Suppression du dernier statut à jour
|
||||
unset($items[0]);
|
||||
}
|
||||
//Fin traitement dernier statut à jour
|
||||
|
||||
//Traitement des actes normaux
|
||||
foreach($items as $key => $depot)
|
||||
{
|
||||
$infosActe = array();
|
||||
//Parcours standard des actes pour affichage
|
||||
foreach($depot['actes'] as $num => $acte)
|
||||
{
|
||||
$infosActe['date'] = $acte['date_acte'];
|
||||
$infosActe['mode'] = $acte['mode'];
|
||||
$infosActe['lib'] = $acte['type_lib'];
|
||||
$infosActe['ref'] = $acte['ref'];
|
||||
|
||||
$infos = array(
|
||||
'num_acte' => $acte['num_acte'],
|
||||
'date_acte' => $acte['date_acte'],
|
||||
'type' => $acte['type'],
|
||||
'type_lib' => $acte['type_lib'],
|
||||
'decision' => $acte['decision']
|
||||
);
|
||||
|
||||
switch($acte['mode'])
|
||||
{
|
||||
case 'fichier':
|
||||
if ( $user->checkPerm('actes') ) {
|
||||
$href = $this->view->url(array(
|
||||
'controller' => 'pieces',
|
||||
'action' => 'acte',
|
||||
'mode' => 'fichier',
|
||||
'siret' => $siren,
|
||||
'ref' => $acte['ref'],
|
||||
));
|
||||
$title = 'Télécharger le document correspondant';
|
||||
} else {
|
||||
$href = '#';
|
||||
$title = 'Vous n\'avez pas les droits nécessaires pour commander le document correspondant.';
|
||||
}
|
||||
break;
|
||||
case 'T':
|
||||
if ( $user->checkPerm('actes') ) {
|
||||
$href = $this->view->url(array(
|
||||
'controller' => 'pieces',
|
||||
'action' => 'acte',
|
||||
'mode' => 'T',
|
||||
'siret' => $siren,
|
||||
'ref' => $acte['ref'],
|
||||
));
|
||||
$title = 'Télécharger le document correspondant';
|
||||
} else {
|
||||
$href = '#';
|
||||
$title = 'Vous n\'avez pas les droits nécessaires pour commander le document correspondant.';
|
||||
}
|
||||
break;
|
||||
case 'C':
|
||||
if ( $user->checkPerm('actes') ) {
|
||||
$href = $this->view->url(array(
|
||||
'controller' => 'pieces',
|
||||
'action' => 'acte',
|
||||
'mode' => 'C',
|
||||
'siret' => $siren,
|
||||
'ref' => $acte['ref'],
|
||||
'infos' => serialize($infos)
|
||||
));
|
||||
$title = 'Recevoir le document directement par mail (sous 3/5 jours ouvrés)';
|
||||
} else {
|
||||
$href = '#';
|
||||
$title = 'Vous n\'avez pas les droits nécessaires pour commander le document correspondant.';
|
||||
}
|
||||
break;
|
||||
case 'courrier':
|
||||
if ( $user->checkPerm('actes') ) {
|
||||
$href = $this->view->url(array(
|
||||
'controller' => 'pieces',
|
||||
'action' => 'acte',
|
||||
'mode' => 'courrier',
|
||||
'siret' => $siren,
|
||||
'ref' => $acte['ref'],
|
||||
'infos' => serialize($infos)
|
||||
));
|
||||
$title = 'Recevoir le document directement par mail (sous 15 jours ouvrés)';
|
||||
} else {
|
||||
$href = '#';
|
||||
$title = 'Vous n\'avez pas les droits nécessaires pour commander le document correspondant.';
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
$infosActe['href'] = $href;
|
||||
$infosActe['title'] = $title;
|
||||
|
||||
$infosActe['decision'] = '';
|
||||
if($depot['num_depot']>=0)
|
||||
{
|
||||
$data = '';
|
||||
if(!empty($acte['decision']))
|
||||
{
|
||||
$data.= $acte['decision'].'<br/>';
|
||||
}
|
||||
$data.= 'Dépot n°'.$depot['num_depot'].' du '.$depot['date_depot'];
|
||||
if($acte['nbpages_acte']>1) {
|
||||
$data.= ', '.$acte['nbpages_acte'].' pages';
|
||||
} elseif($acte['nbpages_acte']==1) {
|
||||
$data.= ', '.$acte['nbpages_acte'].' page';
|
||||
}
|
||||
$infosActe['decision'] = $data;
|
||||
}
|
||||
|
||||
$infosActes[] = $infosActe;
|
||||
} // Fin acte
|
||||
} // Fin depot
|
||||
|
||||
}
|
||||
|
||||
$this->view->assign('InfosActes', $infosActes);
|
||||
$this->view->assign('siren', $siren);
|
||||
$this->view->assign('siret', $this->siret);
|
||||
$this->view->assign('raisonSociale', $this->entrep->getRaisonSociale());
|
||||
}
|
||||
|
||||
public function bilansAction()
|
||||
{
|
||||
$this->view->headLink()->appendStylesheet('/themes/default/styles/pieces.css', 'all');
|
||||
$this->view->headScript()->appendFile('/themes/default/scripts/pieces.js', 'text/javascript');
|
||||
|
||||
//Catégorie Juridique
|
||||
$cj = $this->entrep->getFormeJuridique();
|
||||
if( in_array($cj, $this->association_cj) ) {
|
||||
$this->_forward($action);
|
||||
}
|
||||
|
||||
$user = new Utilisateur();
|
||||
|
||||
$request = $this->getRequest();
|
||||
|
||||
$siren = substr($this->siret,0,9);
|
||||
$vecteur = 'XL';
|
||||
$ref = '';
|
||||
|
||||
//Affichage des bilans disponible
|
||||
$infogreffe = new Infogreffe();
|
||||
$reponse = $infogreffe->getGreffeBilans($siren, $vecteur, $ref);
|
||||
//Gestion des erreurs dans la réponse
|
||||
|
||||
/*
|
||||
echo '<pre>';
|
||||
print_r($reponse);
|
||||
echo '</pre>';
|
||||
exit;
|
||||
*/
|
||||
|
||||
$infosBilans = array();
|
||||
|
||||
if (count($reponse['result'])>0) {
|
||||
|
||||
$items = $reponse['result'];
|
||||
foreach($items as $key => $item)
|
||||
{
|
||||
$infosBilan = array();
|
||||
$infosBilan['date'] = $item['date_cloture'];
|
||||
$infosBilan['type'] = 'Comptes millésime '.$item['millesime'];
|
||||
$infosBilan['mode'] = $item['mode'];
|
||||
$infos = array(
|
||||
'date_cloture' => $item['date_cloture'],
|
||||
'type' => $item['millesime'],
|
||||
'decision' => $item['num_depot']
|
||||
);
|
||||
switch($item['mode'])
|
||||
{
|
||||
case 'fichier';
|
||||
if ( $user->checkPerm('actes') ) {
|
||||
$href = $this->view->url(array(
|
||||
'controller' => 'pieces',
|
||||
'action' => 'bilan',
|
||||
'siret' => $siren,
|
||||
'ref' => $item['ref'],
|
||||
'mode' => 'fichier',
|
||||
'info' => serialize($info),
|
||||
));
|
||||
$title = 'Télécharger le document correspondant';
|
||||
} else {
|
||||
$href = '#';
|
||||
$title = 'Vous n\'avez pas les droits nécessaires pour commander le document correspondant.';
|
||||
}
|
||||
break;
|
||||
case 'T':
|
||||
if ( $user->checkPerm('actes') ) {
|
||||
$href = $this->view->url(array(
|
||||
'controller' => 'pieces',
|
||||
'action' => 'bilan',
|
||||
'siret' => $siren,
|
||||
'ref' => $item['ref'],
|
||||
'mode' => 'T',
|
||||
));
|
||||
$title = 'Télécharger le document correspondant';
|
||||
} else {
|
||||
$href = '#';
|
||||
$title = 'Vous n\'avez pas les droits nécessaires pour commander le document correspondant.';
|
||||
}
|
||||
break;
|
||||
case 'C':
|
||||
if ( $user->checkPerm('actes') ) {
|
||||
$href = $this->view->url(array(
|
||||
'controller' => 'pieces',
|
||||
'action' => 'bilan',
|
||||
'siret' => $siren,
|
||||
'ref' => $item['ref'],
|
||||
'mode' => 'C',
|
||||
'infos' => serialize($infos),
|
||||
));
|
||||
$title = 'Recevoir le document directement par mail (sous 3/5 jours ouvrés)';
|
||||
} else {
|
||||
$href = '#';
|
||||
$title = 'Vous n\'avez pas les droits nécessaires pour commander le document correspondant.';
|
||||
}
|
||||
break;
|
||||
case 'courrier':
|
||||
if ( $user->checkPerm('actes') ) {
|
||||
$href = $this->view->url(array(
|
||||
'controller' => 'pieces',
|
||||
'action' => 'bilan',
|
||||
'siret' => $siren,
|
||||
'ref' => $item['ref'],
|
||||
'mode' => 'courrier',
|
||||
'infos' => serialize($infos),
|
||||
));
|
||||
$title = 'Recevoir le document directement par mail (sous 15 jours ouvrés)';
|
||||
} else {
|
||||
$href = '#';
|
||||
$title = 'Vous n\'avez pas les droits nécessaires pour commander le document correspondant.';
|
||||
}
|
||||
break;
|
||||
}
|
||||
$infosBilan['href'] = $href;
|
||||
$infosBilan['title'] = $title;
|
||||
|
||||
$infosBilan['decision'] = 'Dépot n°'.$item['num_depot'];
|
||||
|
||||
$infosBilans[] = $infosBilan;
|
||||
}
|
||||
}
|
||||
|
||||
$this->view->assign('InfosBilans', $infosBilans);
|
||||
$this->view->assign('siren', $siren);
|
||||
$this->view->assign('siret', $this->siret);
|
||||
$this->view->assign('raisonSociale', $this->entrep->getRaisonSociale());
|
||||
}
|
||||
|
||||
public function statutsAction(){}
|
||||
|
||||
public function bilanAction()
|
||||
{
|
||||
//Désactiver Affichage
|
||||
|
||||
$request = $this->getRequest();
|
||||
$vecteur = $request->getParam('mode');
|
||||
$info = $request->getParam('info');
|
||||
$ref = $request->getParam('ref');
|
||||
$siren = substr($this->siret,0,9);
|
||||
|
||||
switch($vecteur) {
|
||||
|
||||
case 'fichier':
|
||||
//$client->setLog('greffe_bilans', $siren, 0, $ref);
|
||||
$info = unserialize($info);
|
||||
if(file_exists(PATH_DATA.'/pdf/bilan-'.$siren.'-'.$ref.'.pdf')){
|
||||
$suffixe = 'bilan';
|
||||
}elseif(file_exists(PATH_DATA.'/pdf/acte-'.$siren.'-'.$ref.'.pdf')){
|
||||
$suffixe = 'acte';
|
||||
}
|
||||
$href = '/fichier/pdf/'.$suffixe.'-'.$siren.'-'.$ref.'.pdf';
|
||||
echo '<br/><a href="'.$href.'" target="_blank">Ouvrir le bilan millésime '.$info['type'].'</a>';
|
||||
break;
|
||||
break;
|
||||
|
||||
case 'T':
|
||||
$infogreffe = new Infogreffe();
|
||||
$reponse = $infogreffe->getGreffeBilans($siren, $vecteur, $ref);
|
||||
|
||||
if(empty($reponse['error'])) {
|
||||
$items = $reponse['result']['bilan'];
|
||||
}
|
||||
else {
|
||||
$error = $reponse['error']['errNum'].' - '.$reponse['error']['errMsg'];
|
||||
}
|
||||
|
||||
if ($error!='') {
|
||||
//$client->setLog('greffe_bilans', $siren, 0, 'Erreur '.$reponse['error']['errNum']);
|
||||
echo '<br/>Erreur : '.$error;
|
||||
exit;
|
||||
}
|
||||
|
||||
$info = unserialize(urldecode($info));
|
||||
foreach($items as $item) {
|
||||
if($item['url_acces']!==false) {
|
||||
//$client->setLog('greffe_bilan', $siren, 0, $ref);
|
||||
$href = '/fichier/pdf/'.$item['url_acces'];
|
||||
echo '<br/><a href="'.$href.'" target="_blank">Ouvrir le bilan millésime '.$item['millesime'].'</a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
//$client->setLog('greffe_bilans', $siren, 0, 'Erreur telechargement '.$ref);
|
||||
echo '<br/>Impossible de télécharger le fichier auprès de notre partenaire.';
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
exit;
|
||||
}
|
||||
|
||||
public function acteAction()
|
||||
{
|
||||
//Désactiver Affichage
|
||||
|
||||
$request = $this->getRequest();
|
||||
$vecteur = $request->getParam('mode');
|
||||
$info = $request->getParam('info');
|
||||
$ref = $request->getParam('ref');
|
||||
$siren = substr($this->siret,0,9);
|
||||
|
||||
switch($vecteur) {
|
||||
|
||||
case 'fichier':
|
||||
//$client->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;
|
||||
|
||||
case 'T':
|
||||
|
||||
$infogreffe = new Infogreffe();
|
||||
$reponse = $infogreffe->getGreffeActes($siren, $vecteur, $ref);
|
||||
|
||||
if (empty($reponse['error'])) {
|
||||
$items = $reponse['result']['actes'];
|
||||
} else {
|
||||
$error = $reponse['error']['errNum'].' - '.$reponse['error']['errMsg'];
|
||||
}
|
||||
|
||||
if ($error!='') {
|
||||
//$client->setLog('greffe_acte', $siren, 0, 'Erreur '.$reponse['error']['errNum']);
|
||||
echo '<br/>Erreur : '.$error;
|
||||
exit;
|
||||
}
|
||||
|
||||
foreach($items as $item) {
|
||||
if($item['num_acte']==$info['num_acte']) {
|
||||
if($item['url_acces']!==false) {
|
||||
//$client->setLog('greffe_actes', $siren, 0, $ref);
|
||||
$href = '/fichier/pdf/'.$item['url_acces'];
|
||||
echo '<br/><a href="'.$href.'" target="_blank">Ouvrir le fichier '.$item['type_acte_libelle'].' </a>';
|
||||
exit;
|
||||
} else {
|
||||
//$client->setLog('greffe_actes', $siren, 0, 'Erreur telechargement '.$ref);
|
||||
echo '<br/>Impossible de télécharger le fichier '.$item['type_acte_libelle'].' auprès de notre partenaire.';
|
||||
exit;
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Commande de pièces, kbis, privileges, nantissements
|
||||
*/
|
||||
public function commandeAction()
|
||||
{
|
||||
$this->view->headLink()
|
||||
->appendStylesheet('/themes/default/styles/pieces.css', 'all');
|
||||
$this->view->headScript()
|
||||
->appendFile('/themes/default/scripts/pieces.js', 'text/javascript');
|
||||
$this->view->headLink()->appendStylesheet('/themes/default/styles/pieces.css', 'all');
|
||||
$this->view->headScript()->appendFile('/themes/default/scripts/pieces.js', 'text/javascript');
|
||||
|
||||
$siren = substr($this->siret, 0, 9);
|
||||
|
||||
@ -41,19 +502,20 @@ class PiecesController extends Zend_Controller_Action
|
||||
if ($user->checkPerm('survpriv')){
|
||||
$permSurvPriv = true;
|
||||
}
|
||||
|
||||
|
||||
$this->view->assign('permKbis', $permKbis);
|
||||
$this->view->assign('permPriv', $permPriv);
|
||||
$this->view->assign('permSurvPriv', $permSurvPriv);
|
||||
|
||||
|
||||
$this->view->assign('siren', $siren);
|
||||
$this->view->assign('siret', $this->siret);
|
||||
$this->view->assign('raisonSociale', $session->getRaisonSociale());
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Affiche les privilèges en surveillance
|
||||
*/
|
||||
public function privilegesAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
|
13
application/views/default/scripts/pieces/acte.phtml
Normal file
13
application/views/default/scripts/pieces/acte.phtml
Normal file
@ -0,0 +1,13 @@
|
||||
<div id="center">
|
||||
<?=$this->partial('pieces/header.phtml', array(
|
||||
'siren' => $this->siren,
|
||||
'raisonSociale' => $this->raisonSociale
|
||||
))?>
|
||||
|
||||
<h2>Actes & Status</h2>
|
||||
<div class="paragraph">
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
66
application/views/default/scripts/pieces/actes.phtml
Normal file
66
application/views/default/scripts/pieces/actes.phtml
Normal file
@ -0,0 +1,66 @@
|
||||
<div id="center">
|
||||
|
||||
<h1>PIÈCES OFFICIELLES</h1>
|
||||
<div class="paragraph">
|
||||
<table class="identite">
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">
|
||||
Numéro identifiant Siren
|
||||
</td>
|
||||
<td width="350" class="StyleInfoData">
|
||||
<?=$this->SirenTexte($this->siren)?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Raison Sociale</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h2>Actes & Status</h2>
|
||||
<div class="paragraph">
|
||||
<table class="greffe">
|
||||
<thead>
|
||||
<tr><th>Date</th><th>Type</th><th>Décisions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($this->InfosActes as $acte):?>
|
||||
<tr>
|
||||
<td class="date"><?=$acte['date']?></td>
|
||||
<td class="type"><?=$acte['lib']?>
|
||||
<?php
|
||||
switch($acte['mode'])
|
||||
{
|
||||
case 'fichier':
|
||||
case 'T':
|
||||
?>
|
||||
<span class="fichier">
|
||||
<a href="<?=$acte['href']?>" title="<?=$acte['title']?>"><img alt="PDF" src="/themes/default/images/interfaces/icone_pdf.gif"/>
|
||||
</a>
|
||||
</span>
|
||||
<?php
|
||||
break;
|
||||
case 'courrier':
|
||||
case 'C':
|
||||
?>
|
||||
<a class="dialogcmd" href="<?=$acte['href']?>" title="<?=$acte['title']?>">
|
||||
<img alt="Courrier" src="/themes/default/images/interfaces/icone_courrier.png"/>
|
||||
</a>
|
||||
<?php
|
||||
break;
|
||||
}
|
||||
//Attention mode edition affichage lien factice
|
||||
?>
|
||||
</td>
|
||||
<td class="decision"><?=$acte['decision']?></td>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
108
application/views/default/scripts/pieces/associations.phtml
Normal file
108
application/views/default/scripts/pieces/associations.phtml
Normal file
@ -0,0 +1,108 @@
|
||||
<div id="center">
|
||||
|
||||
<h1>PIÈCES OFFICIELLES</h1>
|
||||
<div class="paragraph">
|
||||
<table class="identite">
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">
|
||||
Numéro identifiant Siren
|
||||
</td>
|
||||
<td width="350" class="StyleInfoData">
|
||||
<?=$this->SirenTexte($this->siren)?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Raison Sociale</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h2>Actes & Status</h2>
|
||||
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="550" colspan="2" class="StyleInfoData">Il n'est pas possible de visualiser les statuts des associations en ligne.</td>
|
||||
</tr>
|
||||
<?php
|
||||
if ( $action!='commande' && hasPerm('actes') ){
|
||||
?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="550" colspan="2" class="StyleInfoData">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
$('form[name=commandeAsso]').submit(function(){
|
||||
var eMail = $('input[name=email]').val();
|
||||
if(!checkEmail(eMail)){
|
||||
alert('Veuillez saisir une adresse email.');
|
||||
return false;
|
||||
} else { return true; }
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<form name="commandeAsso" action="./?page=greffes&action=commande&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>" method="post">
|
||||
<p>Commander les statuts de l'association (délai approximatif de 15 jours)</p>
|
||||
<br/>Votre référence <input type="text" name="reference" value="" /><br/>
|
||||
<br/>Votre téléphone <input type="text" name="tel" value="" maxlength="14" /><br/>
|
||||
<br/>Adresse email du destinataire
|
||||
<input name="email" type="text" value="<?php
|
||||
if ($_SESSION['tabInfo']['login']<>'testreunica' && $_SESSION['tabInfo']['login']<>'reunicacsf')
|
||||
echo $_SESSION['tabInfo']['email']
|
||||
?>" size="20"/>
|
||||
<br/>
|
||||
<input
|
||||
class="imgButton"
|
||||
type="image"
|
||||
src="./img/boutton_valider_off.gif"
|
||||
name="submit" onmouseover="this.src='./img/boutton_valider_on.gif'"
|
||||
onmouseout="this.src='./img/boutton_valider_off.gif'"
|
||||
title="Commander les statuts de l'association...">
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
//Lien pour upload acte association
|
||||
if (hasModeEdition()) {
|
||||
?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td colspan="2">
|
||||
<a id="acteUpload" href="./?page=saisieajax&q=acte"
|
||||
title="Envoi Acte/Statut Association">
|
||||
<b>Envoyer un actes</b>
|
||||
</a>
|
||||
<script>
|
||||
$('#acteUpload').live('click', function(e){
|
||||
e.preventDefault();
|
||||
var url = $(this).attr('href');
|
||||
var title = $(this).attr('title');
|
||||
var dialogOpts = {
|
||||
bgiframe: true,
|
||||
title: title,
|
||||
width: 500,
|
||||
height: 400,
|
||||
modal: true,
|
||||
open: function(event, ui) {
|
||||
$(this).html('Chargement...');
|
||||
$(this).load(url);
|
||||
},
|
||||
buttons: {
|
||||
Annuler: function() { $(this).dialog('close'); }
|
||||
},
|
||||
close: function() { $('#dialogacteupload').remove(); }
|
||||
};
|
||||
$('<div id="dialogacteupload"></div>').dialog(dialogOpts);
|
||||
return false;
|
||||
});
|
||||
</script>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
1
application/views/default/scripts/pieces/bilan.phtml
Normal file
1
application/views/default/scripts/pieces/bilan.phtml
Normal file
@ -0,0 +1 @@
|
||||
<?php
|
67
application/views/default/scripts/pieces/bilans.phtml
Normal file
67
application/views/default/scripts/pieces/bilans.phtml
Normal file
@ -0,0 +1,67 @@
|
||||
<div id="center">
|
||||
|
||||
<h1>PIÈCES OFFICIELLES</h1>
|
||||
<div class="paragraph">
|
||||
<table class="identite">
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">
|
||||
Numéro identifiant Siren
|
||||
</td>
|
||||
<td width="350" class="StyleInfoData">
|
||||
<?=$this->SirenTexte($this->siren)?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Raison Sociale</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h2>Compte annuels</h2>
|
||||
<div class="paragraph">
|
||||
<table class="greffe">
|
||||
<thead>
|
||||
<tr><th>Date de clôture</th><th>Type</th><th>Décisions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($this->InfosBilans as $bilan):?>
|
||||
<tr>
|
||||
<td class="date"><?=$bilan['date']?></td>
|
||||
<td class="type"><?=$bilan['type']?>
|
||||
<?php
|
||||
switch($bilan['mode'])
|
||||
{
|
||||
case 'fichier':
|
||||
case 'T':
|
||||
?>
|
||||
<span class="fichier">
|
||||
<a href="<?=$bilan['href']?>" title="<?=$bilan['title']?>">
|
||||
<img alt="PDF" src="/themes/default/images/interfaces/icone_pdf.gif"/>
|
||||
</a>
|
||||
</span>
|
||||
<?php
|
||||
break;
|
||||
case 'courrier':
|
||||
case 'C':
|
||||
?>
|
||||
<a class="dialogcmd" href="<?=$bilan['href']?>" title="<?=$bilan['title']?>">
|
||||
<img alt="Courrier" src="/themes/default/images/interfaces/icone_courrier.png"/>
|
||||
</a>
|
||||
<?php
|
||||
break;
|
||||
}
|
||||
//Attention mode edition affichage lien factice
|
||||
?>
|
||||
</td>
|
||||
<td class="decision"><?=$bilan['decision']?></td>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
18
application/views/default/scripts/pieces/header.phtml
Normal file
18
application/views/default/scripts/pieces/header.phtml
Normal file
@ -0,0 +1,18 @@
|
||||
<h1>PIÈCES OFFICIELLES</h1>
|
||||
<div class="paragraph">
|
||||
<table class="identite">
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">
|
||||
Numéro identifiant Siren
|
||||
</td>
|
||||
<td width="350" class="StyleInfoData">
|
||||
<?=$this->partial()->view->SirenTexte($this->siren)?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Raison Sociale</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?></td>
|
||||
</tr>
|
||||
</table>
|
1210
library/Infogreffe/Infogreffe.php
Normal file
1210
library/Infogreffe/Infogreffe.php
Normal file
File diff suppressed because it is too large
Load Diff
15
library/Infogreffe/config.ini
Normal file
15
library/Infogreffe/config.ini
Normal file
@ -0,0 +1,15 @@
|
||||
[PROD]
|
||||
WS_URL = "https://webservices.infogreffe.fr/WSContextInfogreffe/INFOGREFFE"
|
||||
WS_URI = "https://webservices.infogreffe.fr/"
|
||||
WS_USER = "85000109"
|
||||
WS_PASS = "166"
|
||||
FILETIME = 8
|
||||
PATH = APPLICATION_PATH "/../cache/infogreffe/"
|
||||
|
||||
[DEBUG]
|
||||
WS_URL = "https://wsrcte.extelia.fr/WSContextInfogreffe/INFOGREFFE"
|
||||
WS_URI = "https://wsrcte.extelia.fr/"
|
||||
WS_USER = "85000109"
|
||||
WS_PASS = "160409"
|
||||
FILETIME = 8
|
||||
PATH = APPLICATION_PATH "/../cache/infogreffe/"
|
80
library/Infogreffe/infogreffe.wsdl
Normal file
80
library/Infogreffe/infogreffe.wsdl
Normal file
@ -0,0 +1,80 @@
|
||||
|
||||
<definitions
|
||||
targetNamespace="java:com.experian.webserv.infogreffe"
|
||||
xmlns="http://schemas.xmlsoap.org/wsdl/"
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:tns="java:com.experian.webserv.infogreffe"
|
||||
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
>
|
||||
<types>
|
||||
<schema targetNamespace='java:com.experian.webserv.infogreffe'
|
||||
xmlns='http://www.w3.org/2001/XMLSchema'>
|
||||
</schema>
|
||||
</types>
|
||||
<message name="getProduitsWebServicesXMLRequest">
|
||||
<part name="arg0" type="xsd:string" />
|
||||
</message>
|
||||
<message name="getProduitsWebServicesXMLResponse">
|
||||
<part name="return" type="xsd:string" />
|
||||
</message>
|
||||
<message name="getProduitsWebServicesRequest">
|
||||
<part name="arg0" type="xsd:string" />
|
||||
<part name="arg1" type="xsd:string" />
|
||||
<part name="arg2" type="xsd:string" />
|
||||
<part name="arg3" type="xsd:string" />
|
||||
<part name="arg4" type="xsd:string" />
|
||||
<part name="arg5" type="xsd:string" />
|
||||
<part name="arg6" type="xsd:string" />
|
||||
<part name="arg7" type="xsd:string" />
|
||||
<part name="arg8" type="xsd:string" />
|
||||
<part name="arg9" type="xsd:string" />
|
||||
<part name="arg10" type="xsd:string" />
|
||||
</message>
|
||||
<message name="getProduitsWebServicesResponse">
|
||||
<part name="return" type="xsd:string" />
|
||||
</message>
|
||||
<message name="getVersionRequest">
|
||||
</message>
|
||||
<message name="getVersionResponse">
|
||||
<part name="return" type="xsd:string" />
|
||||
</message>
|
||||
<portType name="WebServicesProduitsPortType">
|
||||
<operation name="getProduitsWebServicesXML">
|
||||
<input message="tns:getProduitsWebServicesXMLRequest"/>
|
||||
<output message="tns:getProduitsWebServicesXMLResponse"/>
|
||||
</operation>
|
||||
<operation name="getProduitsWebServices">
|
||||
<input message="tns:getProduitsWebServicesRequest"/>
|
||||
<output message="tns:getProduitsWebServicesResponse"/>
|
||||
</operation>
|
||||
<operation name="getVersion">
|
||||
<input message="tns:getVersionRequest"/>
|
||||
<output message="tns:getVersionResponse"/>
|
||||
</operation>
|
||||
</portType>
|
||||
<binding name="WebServicesProduitsBinding" type="tns:WebServicesProduitsPortType">
|
||||
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
|
||||
<operation name="getProduitsWebServicesXML">
|
||||
<soap:operation soapAction="urn:getProduitsWebServicesXML"/>
|
||||
<input><soap:body use="encoded" namespace='urn:WebServicesProduits' encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input>
|
||||
<output><soap:body use="encoded" namespace='urn:WebServicesProduits' encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output>
|
||||
</operation>
|
||||
<operation name="getProduitsWebServices">
|
||||
<soap:operation soapAction="urn:getProduitsWebServices"/>
|
||||
<input><soap:body use="encoded" namespace='urn:WebServicesProduits' encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input>
|
||||
<output><soap:body use="encoded" namespace='urn:WebServicesProduits' encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output>
|
||||
</operation>
|
||||
<operation name="getVersion">
|
||||
<soap:operation soapAction="urn:getVersion"/>
|
||||
<input><soap:body use="encoded" namespace='urn:Version' encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input>
|
||||
<output><soap:body use="encoded" namespace='urn:Version' encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output>
|
||||
</operation>
|
||||
</binding>
|
||||
<service name="WebServicesProduits">
|
||||
<documentation>Service Soap Experian, Service Produit</documentation>
|
||||
<port name="WebServicesProduitsPort" binding="tns:WebServicesProduitsBinding">
|
||||
<soap:address location="https://webservices.infogreffe.fr:443/WSContextInfogreffe/INFOGREFFE"/>
|
||||
</port>
|
||||
</service>
|
||||
</definitions>
|
109
public/themes/default/scripts/pieces.js
Normal file
109
public/themes/default/scripts/pieces.js
Normal file
@ -0,0 +1,109 @@
|
||||
$(document).ready(function(){
|
||||
|
||||
$('input[type=radio][name=method]').click(function()
|
||||
{
|
||||
var value = $('input[type=radio][name=method]:checked').val();
|
||||
$('input[type=radio][name=method]').each(function(){
|
||||
if($(this).val()!=value) {
|
||||
$('#kbis'+$(this).val()).css('display', 'none');
|
||||
}
|
||||
});
|
||||
if(value=='M' || value=='C') {
|
||||
if($('#kbis'+value).css('display')=='none') {
|
||||
$('#kbis'+value).css('display', 'inline');
|
||||
}
|
||||
} else {
|
||||
window.location.href = value;
|
||||
}
|
||||
});
|
||||
|
||||
$('input.type[type=checkbox]').click(function()
|
||||
{
|
||||
var nbCheck = 0;
|
||||
$('input.type[type=checkbox]:checked').each(function()
|
||||
{
|
||||
nbCheck++;
|
||||
});
|
||||
if( nbCheck>0 )
|
||||
{
|
||||
$('#privilegesM').css('display', 'block');
|
||||
}else{
|
||||
$('#privilegesM').css('display', 'none');
|
||||
}
|
||||
});
|
||||
|
||||
$('form[name=kbis]').submit(function(){
|
||||
var method = $('input[name=method]:checked').val();
|
||||
if(method=='C')
|
||||
{
|
||||
return true;
|
||||
}else{
|
||||
var eMail = jQuery('input[name=email]', this).val();
|
||||
if(!checkEmail(eMail)){
|
||||
alert('Veuillez saisir une adresse email.');
|
||||
return false;
|
||||
} else { return true; }
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$('form[name=privileges]').submit(function(){
|
||||
var eMail = jQuery('input[name=email]', this).val();
|
||||
if(!checkEmail(eMail)){
|
||||
alert('Veuillez saisir une adresse email.');
|
||||
return false;
|
||||
} else { return true; }
|
||||
});
|
||||
|
||||
$('.dialogcmd').live('click', function(){
|
||||
var href = $(this).attr('href');
|
||||
if (href!='#') {
|
||||
var title = $(this).attr('title');
|
||||
var dialogOpts = {
|
||||
bgiframe: true,
|
||||
title: title,
|
||||
width: 550,
|
||||
height: 300,
|
||||
modal: true,
|
||||
open: function(event, ui) {
|
||||
$(this).html('Chargement...');
|
||||
$(this).load(href);
|
||||
},
|
||||
buttons: {
|
||||
Valider: function() {
|
||||
if ($('form[name=commande]').length){
|
||||
$('form[name=commande]').submit();
|
||||
$('#dialogcmd').dialog('option','buttons','');
|
||||
$('#dialogcmd > #output').html('Commande en cours, Veuillez patienter ...');
|
||||
} else {
|
||||
$(this).dialog('close');
|
||||
}
|
||||
},
|
||||
Annuler: function() { $(this).dialog('close'); }
|
||||
},
|
||||
close: function() { $('#dialogcmd').remove(); }
|
||||
};
|
||||
$('<div id="dialogcmd"></div>').dialog(dialogOpts);
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
$('span.fichier > a').live('click', function(e){
|
||||
e.preventDefault();
|
||||
var url = $(this).attr('href');
|
||||
if (url!='#'){
|
||||
var objet = $(this).parent('span');
|
||||
objet.html('<br/>Chargement du fichier...');
|
||||
$.post(url, function (data, textStatus){
|
||||
if( data=='' || data=='FALSE' || textStatus=='timeout' )
|
||||
{
|
||||
data = '<br/>Le chargement du fichier a échoué';
|
||||
}
|
||||
objet.replaceWith(data);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
});
|
56
public/themes/default/styles/pieces.css
Normal file
56
public/themes/default/styles/pieces.css
Normal file
@ -0,0 +1,56 @@
|
||||
.marge {margin-left:30px;}
|
||||
#identite { margin-left:30px; }
|
||||
form { }
|
||||
form em { color:#FF0000;}
|
||||
fieldset {border:0; margin:0; padding:0;}
|
||||
fieldset legend{ padding:0 0 0 10px;}
|
||||
.fieldgrp{clear:both; margin:0 0 .5em 30px; overflow:hidden;}
|
||||
.fieldgrp:after{content:"."; display:block; clear:both; visibility:hidden; line-height:0; height:0; }
|
||||
.fieldgrp label{font-weight:bold; margin-left:30px; width:80px; clear:both; padding:0 10px 0 0; line-height:22px;_padding-top:3px; float:left; display:block; font-size:108%;}
|
||||
.fieldgrp label span{font-weight:normal;}
|
||||
.fieldgrp label abbr{color:#4B911C; font-size:120%; vertical-align:middle;}
|
||||
.field { float:left; padding:0 10px 0 0; line-height:22px; _padding-top:3px;}
|
||||
.field .longfield{width:215px;}
|
||||
.field .longfield-select{width:220px;}
|
||||
.field .smallfield{width:95px;}
|
||||
.field .medfield{width:110px;}
|
||||
.field span { display:block; }
|
||||
.field input, .field select{ font-size:110%; margin:2px 0; }
|
||||
.field input[type="radio"] { margin:0 5px 0 5px; border:0; }
|
||||
input[type="checkbox"] { margin:0 5px 0 5px; border:0; }
|
||||
.submit {text-align:center;}
|
||||
.noborder {border:none;}
|
||||
#message {margin:10px 0 10px 30px;}
|
||||
|
||||
|
||||
table.greffe {
|
||||
width:90%;
|
||||
margin:5px 10px;
|
||||
border-collapse:collapse;
|
||||
}
|
||||
|
||||
table.greffe th {
|
||||
border:1px solid #000000;
|
||||
padding:8px 4px 8px 4px;
|
||||
background-color:#eeeeee;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
table.greffe .date { text-align: center; }
|
||||
|
||||
table.greffe td.date {
|
||||
background-color:#2b2b8b;
|
||||
color:white;
|
||||
font-weight:bold;
|
||||
}
|
||||
|
||||
table.greffe td {
|
||||
border:1px solid #000000;
|
||||
padding:8px 4px 8px 4px;
|
||||
}
|
||||
|
||||
table.greffe td.decision { width:50%; }
|
||||
|
||||
table.greffe td.type {
|
||||
text-align:center;
|
||||
}
|
Loading…
Reference in New Issue
Block a user