191 lines
5.8 KiB
PHP
191 lines
5.8 KiB
PHP
<?php
|
|
/*
|
|
* Commande de pièces
|
|
*/
|
|
|
|
if (!$_SESSION['connected']) die();
|
|
|
|
if (!$_SESSION['connected'])
|
|
{
|
|
echo 'Vous devez être connecté afin de pouvoir utiliser cette fonctionnalité';
|
|
exit;
|
|
}
|
|
elseif (!preg_match('/KBIS/i', $_SESSION['tabInfo']['droits']))
|
|
{
|
|
echo 'Vous n\'avez pas les droits nécessaires pour utiliser cette fonctionnalité (2)';
|
|
exit;
|
|
}
|
|
|
|
//Paramètres
|
|
$siret = trim(preg_replace('/[^0-9]/', '', $_REQUEST['siret']));
|
|
if (strlen($siret)<>0 && strlen($siret)<>9 && strlen($siret)<>14) die('Paramètres incorrects !');
|
|
|
|
?>
|
|
<style>
|
|
#identite { margin-left:30px; }
|
|
form { }
|
|
form em { color:#FF0000;}
|
|
fieldset {border:0; margin:0; padding:0;}
|
|
fieldset legend{ padding:0 0 0 10px;}
|
|
.fieldgrp{clear:both; margin:0 0 .5em 30px; overflow:hidden;}
|
|
.fieldgrp:after{content:"."; display:block; clear:both; visibility:hidden; line-height:0; height:0; }
|
|
.fieldgrp label{font-weight:bold; margin-left:30px; width:100px; clear:both; padding:0 10px 0 0; line-height:22px;_padding-top:3px; float:left; display:block; font-size:108%;}
|
|
.fieldgrp label span{font-weight:normal;}
|
|
.fieldgrp label abbr{color:#4B911C; font-size:120%; vertical-align:middle;}
|
|
.field { float:left; padding:0 10px 0 0; line-height:22px; _padding-top:3px;}
|
|
.field .longfield{width:215px;}
|
|
.field .longfield-select{width:220px;}
|
|
.field .smallfield{width:95px;}
|
|
.field .medfield{width:110px;}
|
|
.field span { display:block; }
|
|
.field input, .field select{ font-size:110%; margin:2px 0; }
|
|
.field input[type="radio"] { margin:0 5px 0 5px; border:0; }
|
|
input[type="checkbox"] { margin:0 5px 0 5px; border:0; }
|
|
.submit {text-align:center;}
|
|
#kbisM {display:none;}
|
|
#kbisC {display:none;}
|
|
#privilegesM {display:none;}
|
|
</style>
|
|
<link rel="stylesheet" type="text/css" href="./css/reset.css" media="screen"/>
|
|
<link rel="stylesheet" type="text/css" href="./css/SimplyButtons.css" media="screen"/>
|
|
<script type="text/javascript" src="./js/SimplyButtons.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function()
|
|
{
|
|
$('input[type=radio][name=method]').click(function()
|
|
{
|
|
var value = $('input[type=radio][name=method]:checked').val();
|
|
$('input[type=radio][name=method]').each(function(){
|
|
if($(this).val()!=value) { $('#kbis'+$(this).val()).css('display', 'none'); }
|
|
});
|
|
if(value=='T'){ /*Renvoi vers la page de téléchargement des kbis*/ }
|
|
else if(value=='M' || value=='C') {
|
|
if($('#kbis'+value).css('display')=='none') $('#kbis'+value).css('display', 'block');
|
|
}
|
|
});
|
|
|
|
$('input[type=checkbox][name=privileges[type]]').click(function()
|
|
{
|
|
var nbCheck = 0;
|
|
$('input[type=checkbox][name=privileges[type]]:checked').each(function()
|
|
{
|
|
nbCheck++;
|
|
});
|
|
if( nbCheck>0 )
|
|
{
|
|
$('#privilegesM').css('display', 'block');
|
|
}else{
|
|
$('#privilegesM').css('display', 'none');
|
|
}
|
|
});
|
|
|
|
|
|
});
|
|
</script>
|
|
|
|
<div id="center">
|
|
<h1>COMMMANDES DE PIÉCES</h1>
|
|
|
|
<table id="identite">
|
|
<tr>
|
|
<td width="200" class="StyleInfoLib">Numéro identifiant Siren</td>
|
|
<td class="StyleInfoData"><?=$siret?></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="200" class="StyleInfoLib">Raison Sociale</td>
|
|
<td class="StyleInfoData"><?=$_SESSION['tabInfo']['entrep']['raisonSociale']?></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h2>EXTRAIT KBIS</h2>
|
|
|
|
<form name="kbis" method="post" action="#">
|
|
<input type="hidden" name="siren" value="<?=$siren?>"/>
|
|
|
|
<div class="fieldgrp">
|
|
<div class="field">
|
|
<input class="noborder" type="radio" name="method" value="T">Visualiser/Télécharger le kbis<br/>
|
|
<input class="noborder" type="radio" name="method" value="M">Recevoir le kbis par email<br/>
|
|
<input class="noborder" type="radio" name="method" value="C">Recevoir le kbis original par courrier<br/>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="kbisM" class="fieldgrp">
|
|
<label>E-mail</label>
|
|
<div class="field">
|
|
<input type="text" name="email" value="">
|
|
<span>Précisez votre e-mail pour recevoir le kbis.</span>
|
|
</div>
|
|
|
|
<a href="#" class="button">
|
|
<span><span>Valider</span></span>
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div id="kbisC">
|
|
|
|
<div class="fieldgrp">
|
|
<label>Societe</label>
|
|
<div class="field"><input type="text" name="nom" value=""/></div>
|
|
</div>
|
|
<div class="fieldgrp">
|
|
<label>Nom</label>
|
|
<div class="field"><input type="text" name="nom" value=""/></div>
|
|
</div>
|
|
<div class="fieldgrp">
|
|
<label>Prenom</label>
|
|
<div class="field"><input type="text" name="prenom" value=""/></div>
|
|
</div>
|
|
<div class="fieldgrp">
|
|
<label>Adresse</label>
|
|
<div class="field"><input type="text" name="adresse" value=""/></div>
|
|
</div>
|
|
<div class="fieldgrp">
|
|
<label>CP</label>
|
|
<div class="field"><input type="text" name="cp" value=""/></div>
|
|
</div>
|
|
<div class="fieldgrp">
|
|
<label>Ville</label>
|
|
<div class="field"><input type="text" name="ville" value=""/></div>
|
|
</div>
|
|
|
|
<a href="#" class="button">
|
|
<span><span>Valider</span></span>
|
|
</a>
|
|
</div>
|
|
|
|
</form name="pieces" method="post" action="#">
|
|
|
|
<h2>PRIVILÉGES & NANTISSEMENTS</h2>
|
|
|
|
<form name="privileges" method="post" action="#">
|
|
<input type="hidden" name="siren" value="<?=$siren?>"/>
|
|
|
|
<div class="fieldgrp">
|
|
<input class="noborder" type="checkbox" name="privileges[type]" value="privSecu">Privilèges de la sécurité sociale et des régimes complémentaires<br/>
|
|
<input class="noborder" type="checkbox" name="privileges[type]" value="privTres">Privilèges du Trésor Public<br/>
|
|
<input class="noborder" type="checkbox" name="privileges[type]" value="nantFond">Nantissements du fonds de commerce ou du fonds artisanal (conventionnels et judiciaires)<br/>
|
|
<input class="noborder" type="checkbox" name="privileges[type]" value="nantVend">Privilèges du vendeur de fonds de commerce et d'action résolutoire<br/>
|
|
<input class="noborder" type="checkbox" name="privileges[type]" value="declCrea">Déclarations de créances<br/>
|
|
</div>
|
|
|
|
<div id="privilegesM" class="fieldgrp">
|
|
<label>E-mail</label>
|
|
<div class="field">
|
|
<input type="text" name="email" value="">
|
|
<span>Précisez votre e-mail pour recevoir le kbis.</span>
|
|
</div>
|
|
|
|
<a href="#" class="button">
|
|
<span><span>Valider</span></span>
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|