253 lines
10 KiB
PHTML
253 lines
10 KiB
PHTML
<style>
|
|
#center p { margin:5px; padding:5px;}
|
|
.infoTitle {clear:both; float:left; width:250px; margin-left:30px; padding:0 10px 0 0;}
|
|
.infoData {float:left; width:320px; margin:2px 0;}
|
|
form { }
|
|
form em { color:#FF0000;}
|
|
fieldset {border:0; margin:0; padding:0;}
|
|
fieldset legend{ padding:0 0 0 10px;}
|
|
.fieldgrp{clear:both; width:100%; margin-bottom:.5em; 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:250px; 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 {width:320px; 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 input, .field select{ font-size:110%; margin:2px 0; }
|
|
.field input[type="radio"] { margin:0 5px 0 5px; }
|
|
div.submit{ margin-left:200px; 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;}
|
|
.noborder {border:none;}
|
|
</style>
|
|
|
|
<div id="center">
|
|
<h1 class="titre">Demande d'avis de credit personnalisé</h1>
|
|
|
|
<?php
|
|
if($this->commande == false){
|
|
?>
|
|
|
|
<div id="message"><?=$this->message;?></div>
|
|
|
|
<form action="<?=$this->url(array('controller'=>'evaluation', 'action'=>'aviscredit'))?>" method="post" enctype="multipart/form-data">
|
|
|
|
<h2>Entreprise concernée : </h2>
|
|
|
|
<div class="infoTitle StyleInfoLib">Numéro identifiant Siren</div>
|
|
<div class="infoData">
|
|
<?=$this->SirenTexte($this->Etab->Siren)?>
|
|
<input type="hidden" name="InfoEnq[Siren]" value="<?=$this->Etab->Siren?>"/>
|
|
</div>
|
|
|
|
<div class="infoTitle StyleInfoLib">Numéro identifiant Siret</div>
|
|
<div class="infoData"><?=$this->SiretTexte($this->Etab->Siret)?></div>
|
|
|
|
<div class="infoTitle StyleInfoLib">Numéro de TVA Intracom.</div>
|
|
<div class="infoData"><?=substr($this->Etab->TvaNumero,0,2).' '.substr($this->Etab->TvaNumero,2,2).' '.substr($this->Etab->TvaNumero,-9)?></div>
|
|
|
|
<div class="infoTitle StyleInfoLib">Raison Sociale</div>
|
|
<div class="infoData"><?=$this->Etab->Nom?></div>
|
|
|
|
<div class="infoTitle StyleInfoLib">Adresse</div>
|
|
<div class="infoData"><?=$this->Etab->Adresse.' '.$this->Etab->CP.' '.$this->Etab->Ville?></div>
|
|
|
|
<div class="fieldgrp">
|
|
<label class="StyleInfoLib">Téléphone <?php if (trim($this->Etab->Tel)==''){?><font color="Red">*</font><?php }?> / Fax</label>
|
|
<div class="field">
|
|
<?php if (trim($this->Etab->Tel)!=''){ print $this->Etab->Tel; }else{?><input type="text" name="InfoEnq[Entrep][Tel]" value="<?=$this->InfoEnq['Entrep']['Tel']?>"/><?php } ?> <b>/</b>
|
|
<?php if (trim($this->Etab->Fax)!=''){ print $this->Etab->Fax; }else{?><input type="text" name="InfoEnq[Entrep][Fax]" value="<?=$this->InfoEnq['Entrep']['Fax']?>"/><?php } ?>
|
|
</div>
|
|
</div>
|
|
|
|
<?php if (trim($this->Etab->Tel)!=''){?>
|
|
<div class="fieldgrp">
|
|
<label class="StyleInfoLib"> Autre téléphone :</label>
|
|
<div class="field"><input type="text" name="InfoEnq[Entrep][AutreTel]" value="<?=$this->InfoEnq['Entrep']['AutreTel'];?>"/> </div>
|
|
</div>
|
|
<?php } ?>
|
|
|
|
<div class="fieldgrp">
|
|
<label class="StyleInfoLib">E-mail</label>
|
|
<div class="field"><?php if (trim($this->Etab->Mail)!=''){ print $this->Etab->Mail; }else{?><input type="text" name="InfoEnq[Entrep][Mail]" value="<?=$this->InfoEnq['Entrep']['Mail']?>"/><?php }?></div>
|
|
</div>
|
|
|
|
<?php if (trim($this->Etab->Mail)!=''){ ?>
|
|
<div class="fieldgrp">
|
|
<label class="StyleInfoLib">Autre e-mail</label>
|
|
<div class="field"><input type="text" name="InfoEnq[Entrep][AutreMail]" value="<?=$this->InfoEnq['Entrep']['AutreMail']?>"/></div>
|
|
</div>
|
|
<?php }?>
|
|
|
|
|
|
<div class="fieldgrp">
|
|
<label class="StyleInfoLib">Site Web</label>
|
|
<div class="field"><?php if (trim($this->Etab->Web)!=''){ print $this->Etab->Web; }else{?><input type="text" name="InfoEnq[Entrep][Web]" value="<?=$this->InfoEnq['Entrep']['Web']?>"/><?php }?></div>
|
|
</div>
|
|
|
|
<h2>Demandeur : </h2>
|
|
|
|
<input type="hidden" name="login" value="<?=$this->user->getLogin()?>" />
|
|
|
|
<div class="fieldgrp">
|
|
<label class="StyleInfoLib">Votre Identité</label>
|
|
<div class="field"><input type="text" name="InfoUser[Identite]" value="<?=$this->user->getNom().' '.$this->user->getPrenom(); ?>"/></div>
|
|
</div>
|
|
|
|
<div class="fieldgrp">
|
|
<label class="StyleInfoLib">Votre Téléphone <font color="Red"></font>:</label>
|
|
<div class="field"><input type="text" name="InfoUser[Tel]" value="<?php
|
|
if(isset($this->InfoUser['Tel'])){echo $this->InfoUser['Tel'];}
|
|
else echo $this->user->getTel(); ?>" /></div>
|
|
</div>
|
|
|
|
<div class="fieldgrp">
|
|
<label class="StyleInfoLib">Votre E-mail <font color="Red">*</font></label>
|
|
<div class="field"><input type="text" name="InfoUser[Email]" value="<?php
|
|
if(isset($this->InfoUser['Email'])){echo $this->InfoUser['Email'];}
|
|
else echo $this->user->getEmail(); ?>"/></div>
|
|
</div>
|
|
|
|
<div class="fieldgrp">
|
|
<label class="StyleInfoLib">Votre Référence</label>
|
|
<div class="field"><input type="text" name="InfoUser[Ref]" value="<?php
|
|
if(isset($this->InfoUser['Ref'])){echo $this->InfoUser['Ref'];}
|
|
?>"/></div>
|
|
</div>
|
|
|
|
<h2>La relation commerciale : </h2>
|
|
|
|
<div class="fieldgrp">
|
|
<label class="StyleInfoLib">Précisions sur la demande</label>
|
|
<div class="field">
|
|
<select id="precision" name="InfoEnq[PrecisionsChoix]">
|
|
<option value="">Choisissez...</option>
|
|
<option value="Sur un client" <?php if($this->InfoEnq['PrecisionsChoix']=='Sur un client'){print 'selected="selected"';};?>>Sur un client</option>
|
|
<option value="Sur un prospect" <?php if($this->InfoEnq['PrecisionsChoix']=='Sur un prospect'){print 'selected="selected"';};?>>Sur un prospect</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="fieldgrp">
|
|
<label class="StyleInfoLib">Ancienneté de la relation :</label>
|
|
<div class="field">
|
|
<input type="text" name="InfoEnq[Anciennete]" size="2" value="<?=$this->InfoEnq['Anciennete']?>"/>
|
|
<input class="noborder" type="radio" name="InfoEnq[AncienneteDuree]" value="Mois" <?php if($this->InfoEnq['AncienneteDuree']=='Mois'){ print 'checked="checked"';}?>/>Mois
|
|
<input class="noborder" type="radio" name="InfoEnq[AncienneteDuree]" value="Annees" <?php if($this->InfoEnq['AncienneteDuree']=='Annees'){ print 'checked="checked"';}?>/>Années
|
|
</div>
|
|
</div>
|
|
|
|
<div class="fieldgrp">
|
|
<label class="StyleInfoLib">Impayées :</label>
|
|
<div class="field">
|
|
<input class="noborder" type="radio" name="InfoEnq[ImpayeesChoix]" value="oui" <?php if($this->InfoEnq['ImpayeesChoix']=='oui'){ print 'checked="checked"';}?>/>Oui
|
|
<input class="noborder" type="radio" name="InfoEnq[ImpayeesChoix]" value="non" <?php if($this->InfoEnq['ImpayeesChoix']=='non'){ print 'checked="checked"';}?>/>Non
|
|
</div>
|
|
</div>
|
|
|
|
<div id="impayees">
|
|
|
|
<div class="fieldgrp">
|
|
<label class="StyleInfoLib">Montant :</label>
|
|
<div class="field"><input type="text" name="InfoEnq[Impayees][Montant]" value="<?=$this->InfoEnq['Impayees']['Montant']?>"/> €</div>
|
|
</div>
|
|
|
|
<div class="fieldgrp">
|
|
<label class="StyleInfoLib">Nombre :</label>
|
|
<div class="field"><input type="text" name="InfoEnq[Impayees][Nombre]" value="<?=$this->InfoEnq['Impayees']['Nombre']?>"/></div>
|
|
</div>
|
|
|
|
<div class="fieldgrp">
|
|
<label class="StyleInfoLib">Date :</label>
|
|
<div class="field"><input type="text" name="InfoEnq[Impayees][Date]" value="<?=$this->InfoEnq['Impayees']['Date']?>"/> (Format : JJ/MM/AAAA)</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="fieldgrp">
|
|
<label class="StyleInfoLib">Retard de paiement :</label>
|
|
<div class="field">
|
|
<input class="noborder" type="radio" name="InfoEnq[RetardPaiementChoix]" value="oui" <?php if($this->InfoEnq['RetardPaiementChoix']=='oui'){ print 'checked="checked"';}?>/>Oui
|
|
<input class="noborder" type="radio" name="InfoEnq[RetardPaiementChoix]" value="non" <?php if($this->InfoEnq['RetardPaiementChoix']=='non'){ print 'checked="checked"';}?>/>Non
|
|
</div>
|
|
</div>
|
|
|
|
<div id="retardpaiement">
|
|
|
|
<div class="fieldgrp">
|
|
<label class="StyleInfoLib">Montant :</label>
|
|
<div class="field"><input type="text" name="InfoEnq[RetardPaiement][Montant]" value="<?=$this->InfoEnq['RetardPaiement']['Montant']?>"/> €</div>
|
|
</div>
|
|
|
|
<div class="fieldgrp">
|
|
<label class="StyleInfoLib">Nombre :</label>
|
|
<div class="field"><input type="text" name="InfoEnq[RetardPaiement][Nombre]" value="<?=$this->InfoEnq['RetardPaiement']['Nombre']?>"/></div>
|
|
</div>
|
|
|
|
<div class="fieldgrp">
|
|
<label class="StyleInfoLib">Date :</label>
|
|
<div class="field"><input type="text" name="InfoEnq[RetardPaiement][Date]" value="<?=$this->InfoEnq['RetardPaiement']['Date']?>"/> (Format : JJ/MM/AAAA)</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="fieldgrp">
|
|
<label class="StyleInfoLib">Litiges techniques ou commerciaux :</label>
|
|
<div class="field">
|
|
<input class="noborder" type="radio" name="InfoEnq[LitigeChoix]" value="oui" <?php if($this->InfoEnq['LitigeChoix']=='oui'){ print 'checked="checked"';}?>/>Oui
|
|
<input class="noborder" type="radio" name="InfoEnq[LitigeChoix]" value="non" <?php if($this->InfoEnq['LitigeChoix']=='non'){ print 'checked="checked"';}?>/>Non
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div id="litige">
|
|
|
|
<div class="fieldgrp">
|
|
<label class="StyleInfoLib">Précisions :</label>
|
|
<div class="field">
|
|
<textarea name="InfoEnq[Litige][Precisions]"><?=$this->InfoEnq['Litige']['Precisions']?></textarea>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="fieldgrp">
|
|
<label class="StyleInfoLib">Observations ou questions spéciales</label>
|
|
<div class="field"><textarea name="InfoEnq[Observation]"><?=$this->InfoEnq['Observation']; ?></textarea></div>
|
|
</div>
|
|
|
|
<h2>Votre demande : </h2>
|
|
|
|
<div class="fieldgrp">
|
|
<label class="StyleInfoLib">Encours Réel</label>
|
|
<div class="field"><input type="text" name="InfoEnq[EncoursReel]" value="<?=$this->InfoEnq['EncoursReel']?>"/> €</div>
|
|
</div>
|
|
|
|
<div class="fieldgrp">
|
|
<label class="StyleInfoLib">Encours demandé</label>
|
|
<div class="field"><input type="text" name="InfoEnq[EncoursDemande]" value="<?=$this->InfoEnq['EncoursDemande']?>"/> €</div>
|
|
</div>
|
|
|
|
|
|
<div class="submit"><p class="submit-button"><input type="submit" name="submit" value="Envoyer" /></p></div>
|
|
|
|
</form>
|
|
<?php
|
|
}
|
|
|
|
if($this->commande == true)
|
|
{
|
|
?>
|
|
<p>Votre demande à été prise en compte pour le siren <b><?=$this->siren?></b>.</p>
|
|
<p><a href="<?=$this->url(array('controller'=>'identite', 'action'=>'fichier', 'siret'=>$this->siren), null, true)?>">
|
|
Retour à la fiche identite
|
|
</a></p>
|
|
<?php
|
|
}
|
|
?>
|
|
</div>
|