Affichage des informations bancaires (RIB)

This commit is contained in:
Michael RICOIS 2013-11-06 10:07:18 +00:00
parent ccb785f39c
commit 7f50f5b949
2 changed files with 37 additions and 77 deletions

View File

@ -1,92 +1,51 @@
<style type="text/css">
ul.relation {
list-style-type: none;
}
ul.relation li {
clear: both;
}
.banque {
text-decoration: underline;
width: 35%;
float: left;
margin-bottom: 10px;
}
.adresse {
width: 30%;
float: left;
margin-bottom: 10px;
}
.codeBanque {
width: 10%;
float: left
}
.codeGuichet {
width: 10%;
float: left;
}
.clearfix:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
</style>
<div id="center">
<h1 class="titre">RELATIONS BANCAIRES</h1>
<div class="paragraph">
<table class="identite">
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">
Num&eacute;ro identifiant Siren
</td>
<td width="350" class="StyleInfoData">
<?=$this->SirenTexte($this->siren)?>
</td>
</tr>
<tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Num&eacute;ro identifiant Siren</td>
<td width="350" class="StyleInfoData"><?=$this->SirenTexte($this->siren)?></td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Raison Sociale</td>
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?></td>
</tr>
</tr>
</table>
</div>
<h2>Liste des relations bancaires</h2>
<div class="paragraph">
<?php
if(count($this->banques)>0)
{
?>
<ul class="relation clearfix">
<?php
foreach($this->banques as $relation)
{
?>
<li>
<div class="banque"><?=$relation->libBanque?></div>
<div class="adresse"><?php if($relation->adresse1!='') {?>
<?=$relation->adresse1?><br />
<?php } ?> <?php if($relation->adresse2!='') {?>
<?=$relation->adresse2?><br />
<?php } ?> <?=$relation->cp?> <?=$relation->ville?></div>
<div class="codeBanque"><?php if( $relation->codeBanque*1!=0 ){ echo $relation->codeBanque; } ?></div>
<div class="codeGuichet"><?php if( $relation->codeGuichet*1!=0 ){ echo $relation->codeGuichet; }?></div>
</li>
<?php
}
?>
</ul>
<?php
} else {
?>
<?php if(count($this->banques)>0) { ?>
<table class="data">
<thead>
<tr>
<th>Nom de la Banque</th>
<th>Adresse</th>
<th>Code Banque</th>
<th>Code Guichet</th>
</tr>
</thead>
<tbody>
<?php foreach($this->banques as $relation) { ?>
<tr>
<td valign="top" style="text-decoration:underline;"><?=$relation->libBanque?></td>
<td>
<?php if($relation->adresse1!='') {?>
<?=$relation->adresse1?><br />
<?php } ?>
<?php if($relation->adresse2!='') {?>
<?=$relation->adresse2?><br />
<?php } ?> <?=$relation->cp?> <?=$relation->ville?>
</td>
<td align="center"><?php if( $relation->codeBanque*1!=0 ){ echo $relation->codeBanque; } ?></td>
<td align="center"><?php if( $relation->codeGuichet*1!=0 ){ echo $relation->codeGuichet; }?></td>
</tr>
<?php } ?>
</tbody>
</table>
<?php } else { ?>
<p>Aucune information.</p>
<?php } ?>
</div>

View File

@ -416,6 +416,7 @@ a:hover {color: #000066; text-decoration:none;}
table.identite {border-collapse:separate;border-spacing:4px;}
table.data {width:100%;}
table.data td {border:1px solid #ccc; padding:5px;}
table.data th {border:1px solid #ccc; padding:5px;}
.confidentiel {border-top:1px solid; padding-top:5px; font-style:italic; font-size:9px;}
.ui-dialog {text-align:left;}
.ui-widget {font-size: 1em;}