Ajout vérification sur les kbis
This commit is contained in:
parent
b809ebbf98
commit
3b59b50f0e
@ -784,8 +784,22 @@ class PiecesController extends Zend_Controller_Action
|
||||
|
||||
$user = new Utilisateur();
|
||||
$permKbis = false;
|
||||
$kbisErrCJ = false;
|
||||
$kbisErrDEP = false;
|
||||
if ($user->checkPerm('kbis')){
|
||||
$permKbis = true;
|
||||
|
||||
//Vérification que le kbis est disponible
|
||||
//=> FormeJuridique
|
||||
if (($session->getFormeJuridique()>=91 && $session->getFormeJuridique()<=93)
|
||||
|| ($session->getFormeJuridique()>=9110 && $session->getFormeJuridique()<=9300) ) {
|
||||
$kbisErrCJ = true;
|
||||
}
|
||||
//=> Département
|
||||
$dep = substr($session->getCodeCommune(),0,2);
|
||||
if ( in_array($dep, array('00','57','67','68','97','98')) ) {
|
||||
$kbisErrDEP = true;
|
||||
}
|
||||
}
|
||||
$permPriv = false;
|
||||
if ($user->checkPerm('privileges')){
|
||||
@ -795,16 +809,25 @@ class PiecesController extends Zend_Controller_Action
|
||||
if ($user->checkPerm('survpriv')){
|
||||
$permSurvPriv = true;
|
||||
}
|
||||
|
||||
$this->view->assign('KbisErreurCJ', $kbisErrCJ);
|
||||
$this->view->assign('KbisErreurDEP', $kbisErrDEP);
|
||||
$this->view->assign('permKbis', $permKbis);
|
||||
$this->view->assign('permKbis', $permKbis);
|
||||
$this->view->assign('permPriv', $permPriv);
|
||||
$this->view->assign('permSurvPriv', $permSurvPriv);
|
||||
|
||||
$this->view->assign('user', $user);
|
||||
|
||||
$this->view->assign('siren', $siren);
|
||||
$this->view->assign('siret', $this->siret);
|
||||
$this->view->assign('raisonSociale', $session->getRaisonSociale());
|
||||
|
||||
}
|
||||
|
||||
public function kbispasserelleAction(){}
|
||||
|
||||
public function kbisinfogreffeAction(){}
|
||||
|
||||
|
||||
/**
|
||||
* Affiche les privilèges en surveillance
|
||||
|
@ -5,17 +5,26 @@
|
||||
<div class="field">
|
||||
<?php
|
||||
$disable = '';
|
||||
if(!$disponible){ $disable = 'disabled'; }
|
||||
if($this->partial()->view->KbisErreurCJ || $this->partial()->view->KbisErreurDEP){ $disable = 'disabled'; }
|
||||
?>
|
||||
<input class="noborder" type="radio" name="method" value="./?page=kbis&siret=<?=$siret?>" <?=$_REQUEST['method']=='T' ? 'checked' : ''?> <?=$disable?>/>
|
||||
Visualiser/Télécharger le kbis
|
||||
<?php if(!$disponible){ ?>
|
||||
(Il n'est pas possible de télécharger les kbis dans ce département)
|
||||
<?php }?><br/>
|
||||
<?php if($this->partial()->view->KbisErreurDEP){ ?><br/>K-Bis en ligne indisponible pour ce département. -
|
||||
Afin d'obtenir un extrait K-bis, contactez directement le greffe du tribunal à compétence commercial
|
||||
dont vous trouverez les coordonnées <a href="<?=$this->url(array(
|
||||
'controller' => 'juridique',
|
||||
'action' => 'competences',
|
||||
'type' => 'tri',
|
||||
'siret' => $this->partial()->view->siret,
|
||||
'id' => $this->partial()->view->id
|
||||
))?>">ici</a>.
|
||||
<?php }?>
|
||||
<?php if($this->partial()->view->KbisErreurCJ){ ?>(K-Bis inexistant pour cette forme juridique.)<?php }?>
|
||||
<br/>
|
||||
<input class="noborder" type="radio" name="method" value="M" <?=$_REQUEST['method']=='M' ? 'checked' : ''?>/>Recevoir le kbis par email<br/>
|
||||
<input class="noborder" type="radio" name="method" value="C" <?=$_REQUEST['method']=='C' ? 'checked' : ''?>/>Recevoir le kbis original par courrier<br/>
|
||||
<?php
|
||||
if(!$disponible)
|
||||
if($this->partial()->view->KbisErreurCJ || $this->partial()->view->KbisErreurDEP)
|
||||
{
|
||||
?>
|
||||
<p><i>Les pièces demandées seront commandées par courrier auprès du greffe. Prévoir un délai de 2 à 3 semaines.</i></p>
|
||||
@ -30,11 +39,10 @@ if(!$disponible)
|
||||
<div class="fieldgrp">
|
||||
<label>E-mail</label>
|
||||
<div class="field">
|
||||
<input type="text" class="longfield" name="emailKbisM" value="<?php
|
||||
if ($_SESSION['tabInfo']['login']<>'testreunica' &&
|
||||
$_SESSION['tabInfo']['login']<>'reunicacsf')
|
||||
echo $_SESSION['tabInfo']['email'];
|
||||
?>">
|
||||
<?php
|
||||
$user = $this->partial()->view->user;
|
||||
?>
|
||||
<input type="text" class="longfield" name="emailKbisM" value="<?=$user->getEmail()?>">
|
||||
<span>Précisez votre e-mail pour recevoir le kbis.</span>
|
||||
</div>
|
||||
</div>
|
||||
@ -56,13 +64,7 @@ if ($_SESSION['tabInfo']['login']<>'testreunica' &&
|
||||
<div id="kbisC">
|
||||
<div class="fieldgrp">
|
||||
<label>Votre E-mail</label>
|
||||
<div class="field"><input class="longfield" type="text" name="emailKbisC" value="<?php
|
||||
if(isset($_REQUEST['emailKbisC']) && !empty($_REQUEST['emailKbisC']) ){
|
||||
echo $_REQUEST['emailKbisC'];
|
||||
}elseif ($_SESSION['tabInfo']['login']<>'testreunica' &&
|
||||
$_SESSION['tabInfo']['login']<>'reunicacsf'){
|
||||
echo $_SESSION['tabInfo']['email']; }
|
||||
?>"/></div>
|
||||
<div class="field"><input class="longfield" type="text" name="emailKbisC" value="<?=$user->getEmail()?>"/></div>
|
||||
</div>
|
||||
<div class="fieldgrp">
|
||||
<label>Votre Societe</label>
|
||||
@ -70,23 +72,23 @@ if(isset($_REQUEST['emailKbisC']) && !empty($_REQUEST['emailKbisC']) ){
|
||||
</div>
|
||||
<div class="fieldgrp">
|
||||
<label>Votre Nom</label>
|
||||
<div class="field"><input class="longfield" type="text" name="nom" value="<?=$_REQUEST['nom']?>"/></div>
|
||||
<div class="field"><input class="longfield" type="text" name="nom" value="<?=$user->getNom()?>"/></div>
|
||||
</div>
|
||||
<div class="fieldgrp">
|
||||
<label>Votre Prenom</label>
|
||||
<div class="field"><input class="longfield" type="text" name="prenom" value="<?=$_REQUEST['prenom']?>"/></div>
|
||||
<div class="field"><input class="longfield" type="text" name="prenom" value="<?=$user->getPrenom()?>"/></div>
|
||||
</div>
|
||||
<div class="fieldgrp">
|
||||
<label>Votre Adresse</label>
|
||||
<div class="field"><input class="longfield" type="text" name="adresse" value="<?=$_REQUEST['adresse']?>"/></div>
|
||||
<div class="field"><input class="longfield" type="text" name="adresse" value=""/></div>
|
||||
</div>
|
||||
<div class="fieldgrp">
|
||||
<label>Votre Code Postal</label>
|
||||
<div class="field"><input class="longfield" type="text" name="cp" value="<?=$_REQUEST['cp']?>"/></div>
|
||||
<div class="field"><input class="longfield" type="text" name="cp" value=""/></div>
|
||||
</div>
|
||||
<div class="fieldgrp">
|
||||
<label>Votre Ville</label>
|
||||
<div class="field"><input class="longfield" type="text" name="ville" value="<?=$_REQUEST['ville']?>"/></div>
|
||||
<div class="field"><input class="longfield" type="text" name="ville" value=""/></div>
|
||||
</div>
|
||||
<div class="fieldgrp">
|
||||
<label> </label>
|
||||
|
@ -1,18 +0,0 @@
|
||||
<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>
|
Loading…
x
Reference in New Issue
Block a user