extranet/includes/saisie/saisie_form.php
2011-12-06 16:39:18 +00:00

200 lines
7.0 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div>
<label>Num&eacute;ro identifiant Siret</label>
<?=substr($etab['Siren'],0,3).' '.
substr($etab['Siren'],3,3).' '.
substr($etab['Siren'],6,3).'&nbsp; <i>'.
substr($etab['Siret'],9,5).'</i>'?>
</div>
<div>
<label>Num&eacute;ro identifiant Siret du si&egrave;ge</label>
<a href="./?page=identite&siret=<?php echo $etab['SiretSiege']?>.">
<?php
echo substr($etab['SiretSiege'],0,3).' '.
substr($etab['SiretSiege'],3,3).' '.
substr($etab['SiretSiege'],6,3).
'&nbsp; <i>'.substr($etab['SiretSiege'],9,5).'</i>';
?>
</a>
</div>
<div>
<label>Raison Sociale</label>
<?php
echo $etab['Nom'];
if ($etab['Nom2']<>'') echo ' / '.$etab['Nom2'];
?>
</div>
<div class="clearfix">
<label>Adresse</label>
<div style="float:left;">
<?php
echo $etab['AdresseNum'].' '.$etab['AdresseRue'].'<br/>';
if (!empty($etab['Adresse'])) echo $etab['Adresse'].'<br/>';
if (!empty($etab['Adresse2'])) echo $etab['Adresse2'].'<br/>';
echo $etab['CP'].' '.$etab['Ville'];
?>
</div>
</div>
<div>
<label>&Eacute;tablissement</label>
<?php
if ($etab['Siege']==1) echo "Si&egrave;ge";
else echo "Secondaire";
if ($etab['Actif']==1) echo " actif";
else echo " inactif";
if($etab['Nic']*1==0 || $etab['Nic']*1>=99990)
echo " provisoire";
?>
</div>
<?php
$siteWeb = '';
if (substr($etab['Web'],0,7)<>'http://')
$siteWeb='http://'.$etab['Web'];
else
$siteWeb=$etab['Web'];
?>
<h2 id="dFormLogo" alt="<?=$etab['Siren']?>">Logo</h2>
<div class="blockh2">
<div id="formLogo"></div>
</div>
<h2>Raison sociale et coordonnées</h2>
<form name="form_saisie" action="./?page=saisie" method="post" enctype="multipart/form-data">
<input type="hidden" name="siret" value="<?=$siret?>"/>
<input type="hidden" name="id" value="<?=$idEntreprise?>"/>
<input type="hidden" name="siren" value="<?=$etab['Siren']?>"/>
<input type="hidden" name="nic" value="<?=$etab['Nic']?>"/>
<label>T&eacute;l&eacute;phone</label>
<input type="text" name="frmSaisie[tel]" size="25" maxlength="100" value="<?=trim($etab['Tel'])?>" />
<label>Fax</label>
<input type="text" name="frmSaisie[fax]" size="25" maxlength="100" value="<?=trim($etab['Fax'])?>" />
<label>Site Internet</label>
<input type="text" name="frmSaisie[web]" size="40" maxlength="100" value="<?=$siteWeb?>" />
<label>E-mail</label>
<input type="text" name="frmSaisie[mail]" size="40" maxlength="100" value="<?=trim($etab['Mail'])?>" />
<h2>Activité(s) et Chiffres d'Affaires</h2>
<label>Code ISIN</label>
<input type="text" name="frmSaisie[isin]" size="15" maxlength="15" value="<?=trim($etab['Isin'])?>" />
<label>Activit&eacute; d&eacute;clar&eacute;e de l'entreprise</label>
<textarea name="frmSaisie[activite]" rows="5" cols="40"><?=$etab['Activite']?></textarea>
<label>Capital Montant</label>
<input type="text" name="frmSaisie[capital_mt]" size="10" maxlength="11" value="<?=trim($etab['Capital'])*1.0?>" disabled="disabled"/>
<label>Capital Devise</label>
<select disabled="disabled" name="frmSaisie[capital_dev]">
<?php
$tmp=$client->getDevises();
$liste=$tmp['result'];
$selOne=false;
foreach ($liste as $iso=>$lib) {
if (trim($etab['CapitalDev'])==$iso) { $selOne=true; $sel='selected'; } else $sel='';
if (strlen($lib)>39) $lib=substr($lib,0,41).'...';
echo "<option value=\"$iso\" $sel >$lib</option>";
}
if (!$selOne) echo '<option value="0000" selected>-</option>';
?>
</select>
<h2>BODACC</h2>
<?php
$saisie = isset($_SESSION['saisie']) ? $_SESSION['saisie'] : array();
$saisie['tribunal'] = $etab['TribunalCode'];
require_once realpath(dirname(__FILE__)).'/saisie_form_event.php';
?>
<h2 id="dFormActionnaire">Actionnariat</h2>
<div id="formActionnaire">
<label>Siren actionnaire</label>
<input type="text" name="actionnaire[siren]" size="8" maxlength="12" value="" />
<label>Pourcentage</label><input type="text" class="percent" name="actionnaire[pct]" size="3" maxlength="5" value="" />
<span class="left">%</span>
<label>&nbsp;Major.&nbsp;/&nbsp;</label><input type="radio" class="widthauto" name="actionnaire[majMin]" value="maj" />
<label>&nbsp;Minor.</label><input type="radio" class="widthauto" name="actionnaire[majMin]" value="min" />
<label>au DateMAJ</label><input type="text" class="date" name="actionnaire[dateMAJ]" size="10" maxlength="10" value="" />
<span class="left">(Format JJ/MM/AAAA)</span>
<label>Pays</label>
<select name="actionnaire[pays]"><?=$strSelectPays?></select>
<label>Raison sociale</label>
<input type="text" name="actionnaire[nom]" size="35" maxlength="80" value=""/>
<span class="left">si &eacute;tranger</span>
</div>
<h2 id="dFormParticipation">Participations</h2>
<div id="formParticipation">
<label>Siren participation</label>
<input type="text" name="particip[siren]" size="8" maxlength="12" value="" />
<label>&agrave;</label>
<label>Pourcentage</label><input class="percent" type="text" name="particip[pct]" size="3" maxlength="5" value="" /><span class="left">%</span>
<label>&nbsp;Major.&nbsp;/&nbsp;</label><input type="radio" class="widthauto" name="particip[majMin]" value="maj" />
<label>&nbsp;Minor.</label><input type="radio" class="widthauto" name="particip[majMin]" value="min" />
<label>au DateMAJ</label><input type="text" class="date" name="particip[dateMAJ]" size="10" maxlength="10" value="" />
<span class="left">(Format JJ/MM/AAAA)</span>
<label>Pays</label><select name="particip[pays]"><?=$strSelectPays?></select>
<label>Raison sociale</label>
<input type="text" name="particip[nom]" size="35" maxlength="80" value=""/>
<span class="left">&nbsp;si &eacute;tranger</span>
</div>
<h2>Informations diverses</h2>
<label>Autre siren (doublon)</label>
<input type="text" size="11" name="frmSaisie[sirenDoublon]" value="<?=$etab['sirenDoublon']?>"/>
<label>Refus dinscription au Registre du Commerce et des Sociétés</label>
<input type="checkbox" name="refusRNCS" value="1"/>
<div id="divRefusRNCS"></div>
<?php
$waldec = '';
if (substr($etab['autreId'],0,1)=='W'){
$waldec = $etab['autreId'];
}
?>
<label>Identifiant R.N.A.</label>
<input type="text" size="11" name="frmSaisie[waldec]" value="<?=$waldec?>"/>
<label>Entreprise de domiciliation</label>
<select name="frmSaisie[domiciliataire]">
<option value="nd">Sans objet</option>
<option value="oui">Oui</option>
<option value="non">Non</option>
</select>
<label>Encours</label>
<input type="text" name="score[encours]" value="">
<span class="left">€</span>
<label>Note indiScore</label>
<input style="width:25px;" type="text" name="score[scoreSolv]" value="">
<span class="left"> / 100</span>
<label>Note Dirigeance</label>
<input style="width:25px;" type="text" name="score[scoreDir]" value="">
<span class="left"> / 100</span>
<label>Note Conformité</label>
<input style="width:25px;" type="text" name="score[scoreConf]" value="">
<span class="left"> / 100</span>
<?php
$disable = ' disabled';
if($etab['FJ'][0]==1 || in_array($etab['FJ'], array(2310, 2320, 2385))) {
$disable = '';
}
?>
<label>Entreprise ayant exercée son droit d'opposition en</label>
<input type="checkbox" name="oppositionInsee" value="1"<?=$disable?>/>
<div id="divOppositionInsee"></div>
<p class="submit"><input type="submit" name="submit" value="Sauver"/></p>
</form>