Avis RNCS : Couleur "entreprise radiée" et gestion erreur, issue #0001920
This commit is contained in:
parent
f40c0fb74a
commit
5246e7e67e
@ -1796,9 +1796,6 @@ class IdentiteController extends Zend_Controller_Action
|
||||
*/
|
||||
public function avisrncspdfAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$this->_helper->viewRenderer->setNoRender(true);
|
||||
|
||||
//Vérification des permissions
|
||||
$user = new Scores_Utilisateur();
|
||||
if ( !$user->checkPerm('avisrncs') ) {
|
||||
@ -1822,6 +1819,11 @@ class IdentiteController extends Zend_Controller_Action
|
||||
elseif ( is_string($result) ) {
|
||||
$this->view->assign('message', $result);
|
||||
} else {
|
||||
|
||||
// --- Disable render and layout
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$this->_helper->viewRenderer->setNoRender(true);
|
||||
|
||||
// --- Variables
|
||||
$locale = new Zend_Locale('fr_FR');
|
||||
|
||||
@ -2000,9 +2002,10 @@ class IdentiteController extends Zend_Controller_Action
|
||||
$pdf->SetFont('times', '', 10);
|
||||
$pdf->Ln(1);
|
||||
if ($RadiationDate) {
|
||||
//@todo : Couleur texte rouge
|
||||
$pdf->setColorArray('text', array(255,0,0));
|
||||
$pdf->Cell(0, 0, "Cette entreprise est radiée au RNCS.", 0, 1, 'C');
|
||||
}
|
||||
$pdf->setColorArray('text', array(255,255,255));
|
||||
$pdf->Cell(0, 0, "Dénomination sociale : ".$Nom, 0, 1, 'L');
|
||||
if( empty($Sigle) ) {
|
||||
$pdf->Cell(0, 0, "Sigle : -", 0, 1, 'L');
|
||||
|
@ -14,48 +14,10 @@ Erreur
|
||||
|
||||
<?php } else {?>
|
||||
|
||||
<style>
|
||||
div.avisrncs-title { text-align:center; }
|
||||
div.avisrncs-title h1 { background:none !important; color:#000000 !important; }
|
||||
div.avisrncs-content h3 { border-bottom:1px solid; }
|
||||
div.avisrncs-header p { margin:0; padding:0; }
|
||||
div.avisrncs-footer p { margin:0; padding:0; }
|
||||
</style>
|
||||
Erreur inconnu.
|
||||
|
||||
<div class="paragraph">
|
||||
<div class="avisrncs-header">
|
||||
<p>Avis de situtation RNCS édité le <?=$this->AvisDateTxt?></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="avisrncs-title">
|
||||
<h2><?=$this->translate("AVIS DE SITUATION RNCS")?></h2>
|
||||
<p><?=$this->translate("REGISTRE NATIONAL DU COMMERCES ET DES SOCIETES")?></p>
|
||||
<p><?=$this->translate("Avis en date du ")?><?=$this->AvisDateTxt?></p>
|
||||
</div>
|
||||
|
||||
<div class="paragraph">
|
||||
<div class="avisrncs-content">
|
||||
<h3><?=$this->translate("IDENTIFICATION")?></h3>
|
||||
|
||||
<?php if ($this->RadiationDate) {?>
|
||||
<p style="font:weight;">Cette entreprise est radiée au RNCS.</p>
|
||||
<?php }?>
|
||||
|
||||
<p>Dénomination sociale : <?=$this->Nom?></p>
|
||||
<p>Sigle : <?=$this->Sigle?></p>
|
||||
<p>Enseigne : <?=$this->Enseigne?></p>
|
||||
<p>Nom Commercial : <?=$this->NomComercial?></p>
|
||||
<p>Numéro d'identification : <?=$this->SirenTexte($this->Siren)?> RCS <?=$this->Tribunal?></p>
|
||||
<p>Numéro de gestion : <?=$this->NumGest?></p>
|
||||
<p>Date d'immatriculation : <?=$this->ImmatDate?></p>
|
||||
|
||||
<?php if ($this->RadiationDate) {?>
|
||||
<p>Date de radiation : <?=$this->RadiationDate?></p>
|
||||
<?php } ?>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?php if (empty($this->AutrePage)) {?>
|
||||
</div>
|
||||
<?php }?>
|
Loading…
Reference in New Issue
Block a user