<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">
<table>
<tr>
	<td width="30">&nbsp;</td>
	<td width="550" colspan="2" class="StyleInfoData">
	Il n'est pas possible de visualiser les statuts des associations en ligne.
	</td>
</tr>
<tr>
	<td width="30">&nbsp;</td>
	<td width="550" colspan="2" class="StyleInfoData">
	<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>
	<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?>" />
	<p>Commander les statuts de l'association (d&eacute;lai approximatif de 15 jours)</p>
	<br/>Votre référence <input type="text" name="reference" value="" /><br/>
	<br/>Votre téléphone <input type="text" name="tel" value="" maxlength="14" /><br/>
	<br/>Adresse email du destinataire
	<input name="email" type="text" value="<?=$this->email?>" size="20"/>
	<br/>
	<input
		class="imgButton"
		type="image"
		src="/themes/default/images/boutton_valider_off.gif"
		name="submit" onmouseover="this.src='/themes/default/images/boutton_valider_on.gif'"
		onmouseout="this.src='/themes/default/images/boutton_valider_off.gif'"
		title="Commander les statuts de l'association...">
	</form>
	</td>
</tr>
<?php
//Lien pour upload acte association
if ($this->ModeEdition) {
?>
<tr>
	<td width="30">&nbsp;</td>
	<td colspan="2">
	<a id="acteUpload" href="./?page=saisieajax&q=acte" title="Envoi Acte/Statut Association">
	<b>Envoyer un acte</b>
	</a>
	<script>
	$('#acteUpload').live('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: {
				Annuler: function() { $(this).dialog('close'); }
			},
			close: function() { $('#dialogacteupload').remove(); }
		};
		$('<div id="dialogacteupload"></div>').dialog(dialogOpts);
		return false;
	});
	</script>
	</td>
</tr>
<?php }?>

</table>
</div>
	
</div>