Asso Statut

This commit is contained in:
Michael RICOIS 2015-07-28 13:24:59 +00:00
parent 20995376c5
commit bb730beb21
3 changed files with 18 additions and 11 deletions

View File

@ -829,24 +829,25 @@ class PiecesController extends Zend_Controller_Action
$params = new stdClass();
$params->companyId = $siren;
$result = $ws->getAssoActes($params);
$actes = array();
Zend_Registry::get('firebug')->info($result);
if (count($result->item) > 0) {
foreach ($result->item as $item) {
Zend_Registry::get('firebug')->info($item);
if ( $user->checkPerm('actes') ) {
$href = $this->view->url(array('controller'=>'pieces', 'action'=>'associationacte',
'date'=> $item->date), 'default', true);
'date'=> $item->Date), 'default', true);
$title = 'Télécharger le document correspondant';
} else {
$href = '#';
$title = "Vous n'avez pas les droits nécessaires pour commander le document correspondant.";
}
$actes[] = array(
'date' => substr($item->date,8,2).'/'.substr($item->date,5,2).'/'.substr($item->date,0,4),
'date' => substr($item->Date,8,2).'/'.substr($item->Date,5,2).'/'.substr($item->Date,0,4),
'type' => 'Statut',
'href' => $href,
'title' => $title,
'file' => $item->file,
'file' => $item->File,
'decision' => '',
);
}

View File

@ -25,7 +25,7 @@
<p>Nous ne disposons pas de l'intégralité des statuts des associations en ligne,
mais il est possible de commander les derniers statuts à jour de l'association
(d&eacute;lai approximatif de 15 jours)</p>
<a id="asso-statut" title="Statut Association" href="<?=$this->url(array('controller'=>'pieces',
'action'=>'cmdassociation'))?>">Commander les statuts de l'association...</a>
<script type="text/javascript">
@ -52,15 +52,19 @@
return false;
});
</script>
</div>
<div class="paragraph">
<?php if (count($this->actes)!=0){?>
<table class="greffe">
<thead>
<tr><th>Date</th><th>Type</th><th>Décisions</th>
<tr>
<th>Date</th>
<th>Type</th>
<th>Décisions</th>
</tr>
</thead>
<tbody>
<?php foreach($this->actes as $acte):?>
<?php foreach($this->actes as $acte) {?>
<tr>
<td class="date"><?=$acte['date']?></td>
<td class="type"><?=$acte['type']?>
@ -72,7 +76,7 @@
</td>
<td></td>
</tr>
<?php endforeach;?>
<?php }?>
</tbody>
</table>
<?php }?>
@ -111,5 +115,5 @@ $('#acteUpload').on('click', function(e){
<?php }?>
</div>
</div>

View File

@ -8,7 +8,9 @@ return array(
'debug' => true,
'errorMsg' => array('0902'),
),
'getAssoActes' => array(),
'getAssoActes' => array(
'debug' => true,
),
'getAssoActe' => array(),
)
);