Meilleur affichage
This commit is contained in:
parent
8c6981b0b4
commit
73fbed51a4
@ -1,10 +1,109 @@
|
||||
<?php
|
||||
class DashboardController extends Zend_Controller_Action
|
||||
{
|
||||
protected $typeActes= array(
|
||||
'a00' => 'MODIFICATION',
|
||||
'a01' => 'MODIFICATION',
|
||||
'a02' => 'DISSOLUTION',
|
||||
'a03' => 'CONSTITUTION',
|
||||
'a04' => 'STATUTS CONSTITUTIFS',
|
||||
'a06' => 'STATUTS A JOUR',
|
||||
'a07' => 'STATUTS A JOUR',
|
||||
'a08' => 'STATUTS A JOUR ET DECLARATION DE CONFORMITE',
|
||||
'a09' => 'STATUTS APRES TRANSFERT DE SIEGE',
|
||||
'a1D' => 'AUGMENTATION ET REDUCTION CAPITAL',
|
||||
'a25' => 'AUGMENTATION DE CAPITAL',
|
||||
'a26' => 'REDUCTION DE CAPITAL',
|
||||
'a31' => 'TRANSFERT SIEGE SOCIAL HORS RESSORT O',
|
||||
'a33' => 'CHANGEMENT DE GERANT',
|
||||
'a39' => 'CHANGEMENT DE COMMISSAIRE AUX COMPTES',
|
||||
'a77' => 'CONTINUATION MALGRE LA PERTE DE LA MOITIE DU CAPITAL',
|
||||
'aA1' => 'STATUTS',
|
||||
'aAA' => 'ACTE',
|
||||
'aAB' => 'ACTE MODIFICATIF',
|
||||
'aAC' => 'ACTE RECTIFICATIF',
|
||||
'aAD' => 'ACTE SOUS SEING PRIVE',
|
||||
'aAE' => 'AMPLIATION',
|
||||
'aAG' => 'AVENANT',
|
||||
'aAH' => 'AVENANT AUX STATUTS',
|
||||
'aAI' => 'ATTESTATION',
|
||||
'aAJ' => 'ANNEXES',
|
||||
'aAK' => 'ATTESTATION BANCAIRE',
|
||||
'aAP' => 'PROJET APPORT PARTIEL D",ACTIF',
|
||||
'aAT' => 'DELIVRANCE DE L",INFORMATION FAITE AU CONJOINT SUR LES CONSEQUENCES DES DETTES',
|
||||
'aCA' => 'CERTIFICAT',
|
||||
'aCB' => 'COMPTES DE CLOTURE DE LIQUIDATION',
|
||||
'aCD' => 'CONTRAT',
|
||||
'aCE' => 'CONVENTION',
|
||||
'aCF' => 'CERTIFICAT DE SOUSCRIPTION D",ACTIONS',
|
||||
'aDA' => 'DECISION DE GERANCE',
|
||||
'aDB' => 'DECISION DE L",ASSOCIE UNIQUE',
|
||||
'aDC' => 'DECISION DES ASSOCIES',
|
||||
'aDE' => 'DECLARATION DE CONFORMITE',
|
||||
'aDF' => 'DECLARATION DE SOUSCRIPTION ET DE VERSEMENT',
|
||||
'aDH' => 'DECLARATION DE CONFORMITE (ART.374 L24/07/1966)',
|
||||
'aDI' => 'DECISION DE L",ACTIONNAIRE UNIQUE',
|
||||
'aDP' => 'DECISION DU PRESIDENT',
|
||||
'aEA' => 'EXPEDITION',
|
||||
'aEB' => 'EXPEDITION NOTARIEE',
|
||||
'aEC' => 'EXTRAIT DU PROCES-VERBAL',
|
||||
'aFU' => 'PROJET DE FUSION',
|
||||
'aIF' => 'PROJET APPORT PARTIEL D",ACTIF',
|
||||
'aJA' => 'JUGEMENT',
|
||||
'aLA' => 'LETTRE',
|
||||
'aLB' => 'LISTE DES SIEGES SOCIAUX ANTERIEURS',
|
||||
'aLC' => 'LETTRE DE DEMISSION',
|
||||
'aLD' => 'LETTRE DE NOMINATION',
|
||||
'aLF' => 'LISTE DES SOUSCRIPTEURS',
|
||||
'aLS' => 'CERTIFICAT DE DEPOT DES FONDS AVEC LISTE DES SOUSCRIPTEURS',
|
||||
'aNA' => 'NOMINATION DE REPRESENTANT',
|
||||
'aO9' => 'NOMINATION DE GERANT(S)',
|
||||
'aOA' => 'ORDONNANCE',
|
||||
'aOB' => 'ORDONNANCE DE REFERE',
|
||||
'aOC' => 'ORDONNANCE DU PRESIDENT',
|
||||
'aOD' => 'ORDONNANCE SUR REQUETE',
|
||||
'aOE' => 'ORDONNANCE',
|
||||
'aPA' => 'PROCES VERBAL',
|
||||
'aPC' => 'PROCES VERBAL D",ASSEMBLEE CONSTITUTIVE',
|
||||
'aPD' => 'PROCES VERBAL D",ASSEMBLEE DU DIRECTOIRE',
|
||||
'aPE' => 'PROCES VERBAL D",ASSEMBLEE GENERALE',
|
||||
'aPF' => 'PROCES VERBAL D",ASSEMBLEE GENERALE EXTRAORDINAIRE',
|
||||
'aPG' => 'PROCES VERBAL D",ASSEMBLEE GENERALE ORDINAIRE',
|
||||
'aPH' => 'PROCES VERBAL D",ASSEMBLEE MIXTE',
|
||||
'aPI' => 'PROCES VERBAL D",ASSEMBLEES ORDINAIRE ET EXTRAORDINAIRE',
|
||||
'aPL' => 'PROCES VERBAL DIRIGEANT SOCIAL',
|
||||
'aPM' => 'PROCES VERBAL DU CONSEIL D",ADMINISTRATION',
|
||||
'aPN' => 'PROCES VERBAL DU CONSEIL DE SURVEILLANCE',
|
||||
'aPO' => 'PROCES VERBAL DE LA GERANCE',
|
||||
'aPT' => 'PROJET DE TRAITE D",APPORT',
|
||||
'aPU' => 'PROJET DE FUSION',
|
||||
'aPV' => 'PV D",ASSEMBLEE',
|
||||
'aQ2' => 'CONSTITUTION DE LA SOCIETE',
|
||||
'aR1' => 'CESSION DE PARTS (OU DONATION)',
|
||||
'aR4' => 'TRAITE DE FUSION',
|
||||
'aRA' => 'RAPPORT',
|
||||
'aRB' => 'RAPPORT COMMISSAIRE AUX COMPTES',
|
||||
'aRC' => 'RAPPORT COMMISSAIRE FUSION',
|
||||
'aRE' => 'RAPPORT CR/CPTES TRANSFORM. STE',
|
||||
'aRG' => 'RAPPORT DU COMMISSAIRE A LA FUSION',
|
||||
'aRH' => 'RAPPORT DU COMMISSAIRE A LA SCISSION',
|
||||
'aRI' => 'RAPPORT DU COMMISSAIRE A LA TRANSFORMATION',
|
||||
'aRK' => 'RAPPORT DU COMMISSAIRE AUX APPORTS',
|
||||
'aRL' => 'RAPPORT DU COMMISSAIRE AUX APPORTS ET A LA FUSION',
|
||||
'aRQ' => 'RAPPORT GERANCE',
|
||||
'aRS' => 'RAPPORT SPECIAL DU CONSEIL D",ADMINISTRATION',
|
||||
'aRU' => 'PROJET',
|
||||
'aTA' => 'TRAITE',
|
||||
'aTB' => 'TRAITE D",APPORT-FUSION',
|
||||
'aTC' => 'TRAITE DE FUSION',
|
||||
'aUA' => 'ATTESTATION DU CONJOINT COMMUN EN BIENS',
|
||||
);
|
||||
|
||||
public function init()
|
||||
{
|
||||
require_once 'Scores/WsScores.php';
|
||||
require_once 'Scores/Utilisateur.php';
|
||||
require_once 'common/dates.php';
|
||||
}
|
||||
|
||||
public function preDispatch()
|
||||
@ -199,7 +298,7 @@ class DashboardController extends Zend_Controller_Action
|
||||
} elseif (!empty($date)) {
|
||||
$listCommandes = $gestionCommande->listCommandesGreffe($date, $etat, $mode);
|
||||
}
|
||||
|
||||
|
||||
//Liste des différents états pour les commandes
|
||||
if ($mode!='-'){
|
||||
${'status'.$mode} = $gestionCommande->listStatus($mode);
|
||||
@ -219,7 +318,6 @@ class DashboardController extends Zend_Controller_Action
|
||||
$cmdEtatSelect = array();
|
||||
$cmdEtatSelect[] = array('value'=>0, 'select'=>'', 'affichage'=>'');
|
||||
$typeCommande = $listCommandes[$i]->typeCommande;
|
||||
Zend_Registry::get('firebug')->info($typeCommande);
|
||||
if (isset(${'status'.$typeCommande})){
|
||||
foreach(${'status'.$typeCommande} as $item){
|
||||
$select = '';
|
||||
@ -237,24 +335,35 @@ class DashboardController extends Zend_Controller_Action
|
||||
|
||||
//Lien vers le fichier
|
||||
$documentLien = '';
|
||||
$document = '';
|
||||
switch($type)
|
||||
{
|
||||
case 'greffe':
|
||||
case 'greffes':
|
||||
if (preg_match('/^([0-9a-zA-Z]{2}-).*?$/', $listCommandes[$i]->refDocument, $matches)){
|
||||
if (substr($listCommandes[$i]->refDocument,0,3)=='ST-'){
|
||||
$document = 'DERNIER STATUS À JOUR';
|
||||
} else {
|
||||
$explodedRef = explode('-', $listCommandes[$i]->refDocument);
|
||||
$dateref = WDate::dateT('Ymd','d/m/Y',$explodedRef[1]);
|
||||
$depot = ', Dépôt n°'.$explodedRef[6].' au '.$dateref;
|
||||
$document = $this->typeActes['a'.substr($listCommandes[$i]->refDocument,0,2)].$depot;
|
||||
}
|
||||
$documentLien = $this->view->url(array(
|
||||
'controller' => 'pieces',
|
||||
'action' => 'actes',
|
||||
'siret' => $listCommandes[$i]['siren'],
|
||||
'siret' => $listCommandes[$i]->siren,
|
||||
));
|
||||
} elseif (preg_match('/^([0-9]{4}).*?$/', $listCommandes[$i]->refDocument, $matches)){
|
||||
$document = 'Bilan de '.$matches[1];
|
||||
$documentLien = $this->view->url(array(
|
||||
'controller' => 'pieces',
|
||||
'action' => 'bilans',
|
||||
'siret' => $listCommandes[$i]['siren'],
|
||||
'siret' => $listCommandes[$i]->siren,
|
||||
));
|
||||
}
|
||||
break;
|
||||
}
|
||||
$listCommandes[$i]->document = $document;
|
||||
$listCommandes[$i]->documentLien = $documentLien;
|
||||
}
|
||||
}
|
||||
|
@ -90,8 +90,8 @@ $compteur++;
|
||||
</td>
|
||||
<td width="40%">
|
||||
<?php if ($item->typeCommande=='G'):?>
|
||||
<u>Commande Greffe normal</u><br/>
|
||||
<?php elseif ($item['typeCommande']=='C'):?>
|
||||
<u>Commande Greffe standard</u><br/>
|
||||
<?php elseif ($item->typeCommande=='C'):?>
|
||||
<u>Commande Greffe par courrier S&D</u><br/>
|
||||
<a href="<?=$this->url(array(
|
||||
'controller'=>'dashboard',
|
||||
@ -100,12 +100,20 @@ $compteur++;
|
||||
), null, true)?>" target="_blank">
|
||||
Générer le courrier</a><br/>
|
||||
<?php endif;?>
|
||||
|
||||
Document : <?=$item->document?> <br/>
|
||||
<br/>
|
||||
Ref : <?=$item->refDocument?><br/>
|
||||
Lib : <?=$item->libDocument?><br/>
|
||||
<br/>
|
||||
Login : <?=$item->login?><br/>
|
||||
Email : <?=$item->emailCommande?><br/>
|
||||
|
||||
</td>
|
||||
<td width="40%">
|
||||
Date de commande : <?=$item->dateCommande?></br>
|
||||
Date de reception : <?=$item->dateReception?><br/>
|
||||
<b>Date de reception : <?=$item->dateReception?></b><br/>
|
||||
<br/>
|
||||
Changer l'etat :
|
||||
<select name="<?=$item->idCommande?>" class="changeEtat">
|
||||
<?php foreach($item->cmdEtatSelect as $etat) {?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user