2009-04-28 17:07:11 +00:00
|
|
|
|
<?php
|
|
|
|
|
if (!$_SESSION['connected']) die();
|
|
|
|
|
|
2009-04-28 16:00:13 +00:00
|
|
|
|
require_once(realpath(dirname(__FILE__).'/../../includes/').'/utils.php');
|
|
|
|
|
|
|
|
|
|
$siret=trim(preg_replace('/[^0-9]/', '', $_REQUEST['siret']));
|
|
|
|
|
if (strlen($siret)<>0 && strlen($siret)<>9 && strlen($siret)<>14) die('Param<61>tres incorrects !');
|
|
|
|
|
|
|
|
|
|
$idEntreprise=trim(preg_replace('/[^0-9]/', '', $_REQUEST['idEntreprise']))*1; // Si id=0 alors non communiqu<71>
|
|
|
|
|
if (($siret*1)==0 && $idEntreprise==0) die('Param<61>tres incorrects !');
|
|
|
|
|
$siren=substr($siret,0,9);
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
$O = $client->getIdentite($siret, $idEntreprise);
|
|
|
|
|
$etab=$O['result'];
|
|
|
|
|
$firephp->log($etab,'etab');
|
|
|
|
|
} catch (SoapFault $fault) {
|
|
|
|
|
require_once 'soaperror.php';
|
|
|
|
|
processSoapFault($client,$fault,$tabInfo);
|
|
|
|
|
die();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
Pav<EFBFBD> demandeur :
|
|
|
|
|
Votre profil de demandeur : Case <EFBFBD> coch<EFBFBD>e Achats, Commerce, Recouvrement, Contentieux, Autre (ZONE TEXTE) (obligatoire)
|
|
|
|
|
Votre identi<EFBFBD> : ZONE TEXTE LIBRE obligatoire
|
|
|
|
|
Vos coordon<EFBFBD>es (T<EFBFBD>l, Fax, e-mail) : ZONE TEXTE LIBRE (T<EFBFBD>l et email obligatoire)
|
|
|
|
|
|
|
|
|
|
Pav<EFBFBD> enqu<EFBFBD>te :
|
|
|
|
|
Type d'enqu<EFBFBD>te : PREMIER / GOLD
|
|
|
|
|
D<EFBFBD>lai : 2 jours / 7 jours
|
|
|
|
|
|
|
|
|
|
Pav<EFBFBD> entreprise concern<EFBFBD>e :
|
|
|
|
|
SIREN / SIRET / TVA Infos en provenance de notre Base
|
|
|
|
|
Raison Sociale : idem
|
|
|
|
|
Adresse : idem
|
|
|
|
|
T<EFBFBD>l<EFBFBD>phone : idem (si absent, zone de saisie obligatoire)
|
|
|
|
|
Fax : idem (si absent, zone de saisie)
|
|
|
|
|
E-mail : idem (si absent, zone de saisie)
|
|
|
|
|
Domiciliation bancaire : zone de saisie
|
|
|
|
|
Encours : saisie obligatoire en euro
|
|
|
|
|
Pr<EFBFBD>cision sur la demande :
|
|
|
|
|
- cette demande porte sur un client / fournisseur
|
|
|
|
|
- si fournisseur ==> est-il strat<EFBFBD>gique ou non ? Montant du CA r<EFBFBD>alis<EFBFBD> avec ledit fournisseur ?
|
|
|
|
|
- si client ==> ouverture de compte ou contr<EFBFBD>le cr<EFBFBD>dit ?
|
|
|
|
|
- si contr<EFBFBD>le cr<EFBFBD>dit ==> motif pr<EFBFBD>cis de celui-ci en zone texte libre
|
|
|
|
|
- anciennet<EFBFBD> de la relation (en mois ou ann<EFBFBD>e)
|
|
|
|
|
- nous signaler les retards de paiement ou les impay<EFBFBD>s (montants, dates) ; il s'agit l<> d'informations tr<EFBFBD>s importantes
|
|
|
|
|
- litiges techniques ou commerciaux connus...
|
|
|
|
|
|
|
|
|
|
Observations ou questions sp<EFBFBD>ciales : zone de saisie multiligne obligatoire */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//Demandeur
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//Enqu<71>te
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//Identit<69> Entreprise
|
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
<style>
|
|
|
|
|
#center { background: #ffffff; width:580px; padding:5px; }
|
|
|
|
|
#center h1 { margin:5px; padding:5px; background: #606060; color:#ffffff; font: 600 1.4em arial, verdana, sans-serif; }
|
|
|
|
|
#center h2 { margin:5px; padding:5px; background: #00008c; color:#ffffff; font: bold 1.2em arial, verdana, sans-serif; }
|
|
|
|
|
|
|
|
|
|
.infoTitle {clear:both; float:left; width:180px; margin-left:50px; padding:0 10px 0 0;}
|
|
|
|
|
.infoData {float:left; width:320px; margin:2px 0;}
|
|
|
|
|
|
|
|
|
|
form p { clear:both; margin-left:16em; }
|
|
|
|
|
form em { color:#FF0000;}
|
2009-04-28 17:07:11 +00:00
|
|
|
|
fieldset {border:0; margin:0; padding:0;}
|
2009-04-28 16:00:13 +00:00
|
|
|
|
fieldset legend{}
|
|
|
|
|
.fieldgrp{clear:both; width:100%; margin-bottom:.5em; overflow:hidden;}
|
|
|
|
|
.fieldgrp:after{content:"."; display:block; clear:both; visibility:hidden; line-height:0; height:0; }
|
|
|
|
|
label{font-weight:bold; margin-left:50px; width:180px; clear:both; padding:0 10px 0 0;line-height:22px;_padding-top:3px; float:left; display:block; color:#333; font-size:108%;}
|
|
|
|
|
label span{font-weight:normal;}
|
|
|
|
|
.fieldgrp label abbr{color:#4B911C;font-size:120%;vertical-align:middle;}
|
|
|
|
|
.field {width:320px; float:left; font-size:95%;}
|
|
|
|
|
.field .longfield{width:215px;}
|
|
|
|
|
.field .longfield-select{width:220px;}
|
|
|
|
|
.field .smallfield{width:95px;}
|
|
|
|
|
.field .medfield{width:110px;}
|
|
|
|
|
.field input, .field select{ font-size:110%; margin:2px 0; }
|
|
|
|
|
div.submit{clear:both; float:left; padding-left:0px; margin-top:1em;}
|
|
|
|
|
div.submit p.submit-button{margin-top:0;}
|
|
|
|
|
div.submit p.details{font-size:85%;color:#666;margin:0;}
|
|
|
|
|
div.submit p.required-note{margin-top:1em;}
|
|
|
|
|
div.submit p.required-note span{color:#4B911C;_color:#666;font-size:170%;vertical-align:top;}
|
|
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
<div id="center">
|
|
|
|
|
|
|
|
|
|
<h1 class="titre">ENQUÊTE COMMERCIALE</h1>
|
|
|
|
|
|
|
|
|
|
<form>
|
|
|
|
|
|
|
|
|
|
<h2>Entreprise concern<EFBFBD>e : </h2>
|
|
|
|
|
|
|
|
|
|
<div class="infoTitle StyleInfoLib">Numéro identifiant Siren</div>
|
2009-04-28 17:07:11 +00:00
|
|
|
|
<div class="infoData"><?php print substr($etab['Siren'],0,3).' '.substr($etab['Siren'],3,3).' '.substr($etab['Siren'],6,3); ?></div>
|
2009-04-28 16:00:13 +00:00
|
|
|
|
|
|
|
|
|
<div class="infoTitle StyleInfoLib">Numéro identifiant Siret</div>
|
2009-04-28 17:07:11 +00:00
|
|
|
|
<div class="infoData"><?php print substr($etab['Siren'],0,3).' '.substr($etab['Siren'],3,3).' '.substr($etab['Siren'],6,3).' <i>'.substr($etab['Siret'],9,5).'</i>' ?></div>
|
2009-04-28 16:00:13 +00:00
|
|
|
|
|
|
|
|
|
<div class="infoTitle StyleInfoLib">Numéro de TVA Intracom.</div>
|
2009-04-28 17:07:11 +00:00
|
|
|
|
<div class="infoData"><?php print substr($etab['TvaNumero'],0,2).' '.substr($etab['TvaNumero'],2,2).' '.substr($etab['TvaNumero'],-9); ?></div>
|
2009-04-28 16:00:13 +00:00
|
|
|
|
|
|
|
|
|
<div class="infoTitle StyleInfoLib">Raison Sociale</div>
|
2009-04-28 17:07:11 +00:00
|
|
|
|
<div class="infoData"><?php print $etab['Nom']; ?></div>
|
2009-04-28 16:00:13 +00:00
|
|
|
|
|
|
|
|
|
<div class="infoTitle StyleInfoLib">Adresse</div>
|
2009-04-28 17:07:11 +00:00
|
|
|
|
<div class="infoData"><?php print $etab['Adresse']; ?></div>
|
2009-04-28 16:00:13 +00:00
|
|
|
|
|
|
|
|
|
<?php
|
|
|
|
|
if (trim($etab['Tel'])!=''){
|
|
|
|
|
?>
|
|
|
|
|
<div class="infoTitle StyleInfoLib">T<EFBFBD>l<EFBFBD>phone</div>
|
2009-04-28 17:07:11 +00:00
|
|
|
|
<div class="infoData"><?php print $etab['Tel']; ?></div>
|
2009-04-28 16:00:13 +00:00
|
|
|
|
<?php
|
|
|
|
|
}else{
|
|
|
|
|
?>
|
|
|
|
|
<div class="fieldgrp">
|
2009-04-28 17:07:11 +00:00
|
|
|
|
<label class="StyleInfoLib">T<EFBFBD>l<EFBFBD>phone <font color="Red">*</font></label>
|
2009-04-28 16:00:13 +00:00
|
|
|
|
<div class="field"><input type="text" name="entrep[Tel]"/></div>
|
|
|
|
|
</div>
|
|
|
|
|
<?php
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
<?php
|
|
|
|
|
if (trim($etab['Fax'])!=''){
|
|
|
|
|
?>
|
|
|
|
|
<div class="infoTitle StyleInfoLib">Fax</div>
|
2009-04-28 17:07:11 +00:00
|
|
|
|
<div class="infoData"><?php print $etab['Fax']; ?></div>
|
2009-04-28 16:00:13 +00:00
|
|
|
|
<?php
|
|
|
|
|
}else{
|
|
|
|
|
?>
|
|
|
|
|
<div class="fieldgrp">
|
|
|
|
|
<label class="StyleInfoLib">Fax</label>
|
|
|
|
|
<div class="field"><input type="text" name="entrep[Fax]"/></div>
|
|
|
|
|
</div>
|
|
|
|
|
<?php
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
<?php
|
|
|
|
|
if (trim($etab['Email'])!=''){
|
|
|
|
|
?>
|
|
|
|
|
<div class="infoTitle StyleInfoLib">E-mail</div>
|
2009-04-28 17:07:11 +00:00
|
|
|
|
<div class="infoData"><?php print $etab['Mail']; ?></div>
|
2009-04-28 16:00:13 +00:00
|
|
|
|
<?php
|
|
|
|
|
}else{
|
|
|
|
|
?>
|
|
|
|
|
<div class="fieldgrp">
|
|
|
|
|
<label class="StyleInfoLib">E-mail</label>
|
|
|
|
|
<div class="field"><input type="text" name="entrep[Email]"/></div>
|
|
|
|
|
</div>
|
|
|
|
|
<?php
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
<div class="fieldgrp">
|
|
|
|
|
<label class="StyleInfoLib">Domiciliation bancaire</label>
|
|
|
|
|
<div class="field"><input type="text" name="entrep[banque]"/></div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="fieldgrp">
|
|
|
|
|
<label class="StyleInfoLib">Encours</label>
|
|
|
|
|
<div class="field"><input type="text" name="entrep[encours]"/></div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2009-04-28 17:07:11 +00:00
|
|
|
|
<h2>Demandeur : </h2>
|
|
|
|
|
|
|
|
|
|
<div class="fieldgrp">
|
|
|
|
|
<label class="StyleInfoLib">Votre profil <font color="Red">*</font>:</label>
|
|
|
|
|
<div class="field">
|
|
|
|
|
<select name="demandeur[Profil]">
|
|
|
|
|
<option value="Achats">Achats</option>
|
|
|
|
|
<option value="Commerce">Commerce</option>
|
|
|
|
|
<option value="Recouvrement">Recouvrement</option>
|
|
|
|
|
<option value="Contentieux">Contentieux</option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="fieldgrp">
|
|
|
|
|
<label class="StyleInfoLib">Autre profil :</label>
|
|
|
|
|
<div class="field"><input type="text" name="demandeur[Profil]" value="" /></div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="fieldgrp">
|
|
|
|
|
<label class="StyleInfoLib">Identit<EFBFBD> :</label>
|
|
|
|
|
<div class="field"><textarea name="identite"></textarea></div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<fieldset>
|
|
|
|
|
<legend>Coordonn<EFBFBD>es : </legend>
|
|
|
|
|
|
|
|
|
|
<div class="fieldgrp">
|
|
|
|
|
<label class="StyleInfoLib">T<EFBFBD>l<EFBFBD>phone <font color="Red">*</font>:</label>
|
|
|
|
|
<div class="field"><input type="text" name="demandeur[Tel]" /></div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="fieldgrp">
|
|
|
|
|
<label class="StyleInfoLib">E-mail <font color="Red">*</font>:</label>
|
|
|
|
|
<div class="field"><input type="text" name="demandeur[Email]" /></div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="fieldgrp">
|
|
|
|
|
<label class="StyleInfoLib">Fax :</label>
|
|
|
|
|
<div class="field"><input type="text" name="demandeur[Fax]" /></div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
|
|
<h2>Enqu<EFBFBD>te : </h2>
|
|
|
|
|
|
|
|
|
|
<div class="fieldgrp">
|
|
|
|
|
<label class="StyleInfoLib">Type d'enqu<EFBFBD>te</label>
|
|
|
|
|
<div class="field">
|
|
|
|
|
<select name="enquete[type]">
|
|
|
|
|
<option value="premier">PREMIER</option>
|
|
|
|
|
<option value="gold">GOLD</option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="fieldgrp">
|
|
|
|
|
<label class="StyleInfoLib">D<EFBFBD>lai</label>
|
|
|
|
|
<div class="field">Affichage du d<EFBFBD>lai</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2009-04-28 16:00:13 +00:00
|
|
|
|
<div class="fieldgrp">
|
|
|
|
|
<label class="StyleInfoLib">Pr<EFBFBD>cisions sur la demande</label>
|
|
|
|
|
<div class="field">
|
|
|
|
|
<select name="">
|
|
|
|
|
<option>Liste de choix ???</option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="fieldgrp">
|
|
|
|
|
<label class="StyleInfoLib">Observations ou questions sp<EFBFBD>ciales</label>
|
|
|
|
|
<div class="field"><textarea name="entrep[observation]"></textarea></div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|