extranet/application/views/default/scripts/pieces/associationactes.phtml

136 lines
3.4 KiB
PHTML
Raw Normal View History

<div id="center">
<h1>PI&Egrave;CES OFFICIELLES</h1>
<div class="paragraph">
<table class="identite">
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">
Num&eacute;ro identifiant Siren
</td>
<td width="350" class="StyleInfoData">
<?=$this->SirenTexte($this->siren)?>
</td>
</tr>
<tr>
<td width="30">&nbsp;</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">
<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>
<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>
<style>
.fieldgrp label {width:200px;}
</style>
<form name="commandeAsso" action="<?=$this->url(array('controller'=>'pieces', 'action'=>'cmdassociation'))?>" method="post">
<input type="hidden" name="siret" value="<?=$this->siret?>" />
<input type="hidden" name="id" value="<?=$this->id?>" />
<div class="fieldgrp">
<label>Votre Référence</label>
<div class="field">
<input type="text" class="longfield" name="ref" value="">
</div>
</div>
<div class="fieldgrp">
<label>Votre téléphone</label>
<div class="field">
<input type="text" name="tel" value="" maxlength="14" />
</div>
</div>
<div class="fieldgrp">
<label>Adresse email du destinataire</label>
<div class="field">
<input name="email" type="text" value="<?=$this->email?>" size="50"/>
</div>
</div>
<div class="fieldgrp">
<label>&nbsp;</label>
<div class="field">
<input type="submit" class="button" name="kbis" value="Valider" title="Commander les statuts de l'association...">
</div>
</div>
</form>
<?php if (count($this->actes)!=0){?>
<table class="greffe">
<thead>
<tr><th>Date</th><th>Type</th><th>Décisions</th>
</tr>
</thead>
<tbody>
<?php foreach($this->actes as $acte):?>
<tr>
<td class="date"><?=$acte['date']?></td>
<td class="type"><?=$acte['type']?>
<span class="fichier">
2012-02-17 10:43:43 +00:00
<a href="<?=$acte['href']?>" title="<?=$acte['title']?>">
<img alt="PDF" src="/themes/default/images/interfaces/icone_pdf.gif"/>
</a>
</span>
<td></td>
</td>
</tr>
<?php endforeach;?>
</tbody>
</table>
<?php }?>
<?php
//Lien pour upload acte association
if ($this->ModeEdition) {
?>
<a id="acteUpload" href="<?=$this->url(array('controller'=>'saisie', 'action'=>'association', 'type'=>'acte', 'siren'=>$this->siren))?>" title="Envoi Acte/Statut Association">
<b>Envoyer un acte</b>
</a>
<script>
$('#acteUpload').on('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: {
Fermer: function() { $(this).dialog('close'); }
},
close: function() { $('#dialogacteupload').remove(); }
};
$('<div id="dialogacteupload"></div>').dialog(dialogOpts);
return false;
});
</script>
<?php }?>
</div>
</div>