125 lines
3.2 KiB
PHTML
125 lines
3.2 KiB
PHTML
<div id="result">
|
|
<form name="lienDoc" action="<?=$this->url(array('controller'=>'saisie', 'action'=>'liendocsave'),null,true)?>">
|
|
|
|
<input type="hidden" name="idNum" value="<?=$this->idNum?>"/>
|
|
<?php if ($this->mode == 'delete') {?>
|
|
|
|
<input type="hidden" name="mode" value="<?=$this->mode?>"/>
|
|
Supprimer le fichier <?=$this->doc->label?> ?
|
|
|
|
<?php } else {?>
|
|
<input type="hidden" name="idType" value="<?=$this->idType?>"/>
|
|
|
|
<fieldset>
|
|
<legend>Documents</legend>
|
|
|
|
<div class="fieldgrp">
|
|
<label>Périmètre du document : </label>
|
|
<div class="field">
|
|
<select name="periDoc">
|
|
<option value="G">Groupe complet</option>
|
|
<option value="GE">Groupe à l'étranger</option>
|
|
<option value="GF">Groupe en FR</option>
|
|
<option value="A">Action. directs et ind.</option>
|
|
<option value="AD">Action. directs</option>
|
|
<option value="Ad">L'actionnaire direct</option>
|
|
<option value="P">Participations directes et ind.</option>
|
|
<option value="PD">Part. directes,</option>
|
|
<option value="Pd">La participation directe</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="fieldgrp">
|
|
<label>Type :</label>
|
|
<div class="field">
|
|
<select name="typeDocument">
|
|
<option value="greffeactes">Greffe - Actes</option>
|
|
<option value="greffebilans">Greffe - Bilans</option>
|
|
<option value="sendfile">Autre</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="greffebilans" style="display:none;">
|
|
Liste des documents Infogreffe
|
|
</div>
|
|
|
|
<div id="greffeactes" style="display:none;">
|
|
Liste des documents Infogreffe
|
|
</div>
|
|
|
|
<div id="sendfile" style="display:none;">
|
|
|
|
<div class="fieldgrp">
|
|
<label>Fichier :</label>
|
|
<div class="field">
|
|
<input type="file" name="fichier" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="fieldgrp">
|
|
<label>Type : </label>
|
|
<div class="field">
|
|
<select name="fileType">
|
|
<option value="CA">Comptes Annuels</option>
|
|
<option value="CC">Comptes Consolidés</option>
|
|
<option value="DR">Document de référence</option>
|
|
<option value="RA">Rapport Annuel ou d'Activité</option>
|
|
<option value="RS">Rapport Semestriel</option>
|
|
<option value="RG">Rapport de gestion</option>
|
|
<option value="RF">Rapport financier</option>
|
|
<option value="OR">Organigramme</option>
|
|
<option value="AP">Article de presse</option>
|
|
<option value="AC">Acte</option>
|
|
<option value="ST">Statuts</option>
|
|
<option value="DW">Document Web/Internet</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="fieldgrp">
|
|
<label>Date du document ou date de cloture de l'exercice :</label>
|
|
<div class="field">
|
|
<input type="text" name="fileDate" value="" /> (JJ/MM/AAAAA)
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
<?php } ?>
|
|
|
|
<input type="submit" name="submit" value="Valider" />
|
|
</form>
|
|
</div>
|
|
|
|
<script type="text/javascript" src="/libs/form/jquery.form.js"></script>
|
|
<script>
|
|
$('select[name=typeDocument]').on('change', function(e){
|
|
e.preventDefault();
|
|
switch($(this).val()){
|
|
case 'greffeactes':
|
|
|
|
break;
|
|
case 'greffebilans':
|
|
|
|
break;
|
|
case 'sendfile':
|
|
$('div#sendfile').css('display','block');
|
|
break;
|
|
}
|
|
});
|
|
|
|
$('form[name=lienDoc]').on('submit', function(e){
|
|
e.preventDefault();
|
|
var options = {
|
|
target: 'div#result',
|
|
beforeSubmit: function(data){ $('div#result').html('Enregistrement...'); },
|
|
success: function(data){}
|
|
};
|
|
$(this).ajaxSubmit(options);
|
|
return false;
|
|
});
|
|
</script>
|