2012-10-04 16:01:20 +00:00
|
|
|
<div class="fieldgrp">
|
2012-10-31 10:09:27 +00:00
|
|
|
<label>Raison sociale</label>
|
2012-10-04 16:01:20 +00:00
|
|
|
<div class="field">
|
2012-11-12 17:55:37 +00:00
|
|
|
<input type="text" name="nom" value="<?=$this->RS?>"/>
|
2012-10-04 16:01:20 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="fieldgrp">
|
|
|
|
<label>Adresse</label>
|
|
|
|
<div class="field">
|
2012-11-12 17:55:37 +00:00
|
|
|
<input type="text" name="adresse_num" size="4" value="<?=$this->adresse_num?>"/>
|
|
|
|
<input type="text" name="adresse_btq" size="1" value="<?=$this->adresse_btq?>"/>
|
|
|
|
<input type="text" name="adresse_codvoie" size="4" value="<?=$this->adresse_codvoie?>"/>
|
|
|
|
<input type="text" name="adresse_libvoie" size="32" value="<?=$this->adresse_libvoie?>"/>
|
2012-10-15 09:12:59 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="fieldgrp">
|
|
|
|
<label>Adresse complément</label>
|
|
|
|
<div class="field">
|
2012-11-12 17:55:37 +00:00
|
|
|
<input type="text" name="adresse_comp" size="40" value="<?=$this->adresse_comp?>"/>
|
2012-10-04 16:01:20 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="fieldgrp">
|
|
|
|
<label>CP</label>
|
|
|
|
<div class="field">
|
2012-11-12 17:55:37 +00:00
|
|
|
<input type="text" name="adresse_cp" value="<?=$this->adresse_cp?>"/>
|
2012-10-04 16:01:20 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="fieldgrp">
|
|
|
|
<label>Ville</label>
|
|
|
|
<div class="field">
|
2012-11-12 17:55:37 +00:00
|
|
|
<input type="text" name="adresse_ville" value="<?=$this->adresse_ville?>"/>
|
2012-10-04 16:01:20 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2012-10-31 10:09:27 +00:00
|
|
|
|
|
|
|
<div class="fieldgrp">
|
|
|
|
<label>Pays</label>
|
|
|
|
<div class="field">
|
|
|
|
<select name="adresse_pays">
|
|
|
|
<option value="">-</option>
|
|
|
|
<?php foreach($this->countries as $code => $lib) {?>
|
|
|
|
<option value="<?=$code?>"><?=$lib?></option>
|
|
|
|
<?php }?>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="blocIdLocal">Selectionner un pays pour afficher les identifiants locaux</div>
|
|
|
|
|
2012-11-07 16:57:52 +00:00
|
|
|
<div class="fieldgrp">
|
|
|
|
<label>Téléphone</label>
|
|
|
|
<div class="field">
|
2012-11-12 17:55:37 +00:00
|
|
|
<input type="text" name="tel" value="<?=$this->tel?>"/>
|
2012-11-07 16:57:52 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="fieldgrp">
|
|
|
|
<label>Fax</label>
|
|
|
|
<div class="field">
|
2012-11-12 17:55:37 +00:00
|
|
|
<input type="text" name="fax" value="<?=$this->fax?>"/>
|
2012-11-07 16:57:52 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="fieldgrp">
|
|
|
|
<label>Web</label>
|
|
|
|
<div class="field">
|
2012-11-12 17:55:37 +00:00
|
|
|
<input type="text" name="web" value="<?=$this->web?>"/>
|
2012-11-07 16:57:52 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2012-11-09 11:33:00 +00:00
|
|
|
<div class="fieldgrp">
|
|
|
|
<label>au capital de</label>
|
|
|
|
<div class="field">
|
|
|
|
<input type="text" name="capital" value="<?=$this->capital?>"/> euros,
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="fieldgrp">
|
|
|
|
<label> en date du</label>
|
|
|
|
<div class="field">
|
|
|
|
<input type="text" name="dateCapital" value="<?=$this->dateCapital?>"/> (JJ/MM/AAAA)
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="fieldgrp">
|
|
|
|
<label>découpé en</label>
|
|
|
|
<div class="field">
|
|
|
|
<input type="text" name="nbActions" value="<?=$this->nbActions?>" /> action(s),
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="fieldgrp">
|
|
|
|
<label>en date du </label>
|
|
|
|
<div class="field">
|
|
|
|
<input type="text" name="dateNbActions" value="<?=$this->dateNbActions?>"/> (JJ/MM/AAAA)
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<?php if ( $this->type=='participation' ) {?>
|
|
|
|
<fieldset>
|
|
|
|
<legend><i><u>Si disponible (holding, etc) saisir quelques éléments du bilan :</u></i></legend>
|
|
|
|
|
|
|
|
<div class="fieldgrp">
|
|
|
|
<label>Chiffre d'affaires</label>
|
|
|
|
<div class="field">
|
|
|
|
<input type="text" name="bilFL" value="<?=$this->bilFL?>"/> euros
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="fieldgrp">
|
|
|
|
<label>Résultat Net</label>
|
|
|
|
<div class="field">
|
|
|
|
<input type="text" name="bilHN" value="<?=$this->bilHN?>"/> euros
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="fieldgrp">
|
|
|
|
<label>Fonds Propres</label>
|
|
|
|
<div class="field">
|
|
|
|
<input type="text" name="bilFPr" value="<?=$this->bilFPr?>"/> euros
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="fieldgrp">
|
|
|
|
<label>Total Bilan</label>
|
|
|
|
<div class="field">
|
|
|
|
<input type="text" name="bilEE" value="<?=$this->bilEE?>"/> euros
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</fieldset>
|
|
|
|
<?php }?>
|
|
|
|
|
2012-10-23 15:28:17 +00:00
|
|
|
<script>
|
|
|
|
$('select[name=adresse_pays]').change(function(e){
|
2012-10-24 07:57:39 +00:00
|
|
|
$('div#blocIdLocal').html('');
|
2012-10-23 15:28:17 +00:00
|
|
|
AddSelectCountry($(this).val());
|
|
|
|
});
|
|
|
|
|
|
|
|
$('div#blocIdLocal').on('click', 'a.addIdLocal', function(e){
|
|
|
|
e.preventDefault();
|
|
|
|
var country = $('select[name=adresse_pays]').val();
|
|
|
|
AddSelectCountry(country, $(this).attr('href'));
|
|
|
|
});
|
|
|
|
|
|
|
|
function AddSelectCountry(code, n){
|
|
|
|
if (!n) { n=1; }
|
2012-10-24 07:57:39 +00:00
|
|
|
if (n<=3){
|
2012-11-09 11:33:00 +00:00
|
|
|
var html = 'Aucun identifiant !';
|
2012-10-24 07:57:39 +00:00
|
|
|
$.getJSON('/saisie/countryid', {code: code}, function(data){
|
|
|
|
var option = '';
|
|
|
|
$.each(data, function(i, item){
|
|
|
|
option = option + '<option value="'+item.internalId+'">'+item.name+'</option>';
|
|
|
|
});
|
|
|
|
if (option!=''){
|
|
|
|
html = '<div class="fieldgrp"><label>Identifiant local</label>'+
|
|
|
|
'<div class="field"><input type="text" name="idLoc'+n+'Num"/>'+
|
|
|
|
'<select name="idLoc'+n+'Type">'+option+'</select><a href="'+n+'" class="addIdLocal">[+]</a></div></div>';
|
|
|
|
}
|
|
|
|
$('div#blocIdLocal').append(html);
|
2012-10-23 15:28:17 +00:00
|
|
|
});
|
2012-10-24 07:57:39 +00:00
|
|
|
}
|
2012-10-23 15:28:17 +00:00
|
|
|
}
|
|
|
|
</script>
|