25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
function tpl_format_iban($iban)
{
return implode(' ', str_split($iban, 4));
}
function tpl_format_rib($iban)
{
$rib = utils::IBAN_RIB($iban);
$rib = explode(' ', $rib);
$out = '<table class="rib"><thead><tr><th>Banque</th><th>Guichet</th><th>Compte</th><th>Clé</th></tr></thead>';
$out.= '<tbody><tr><td>'.$rib[0].'</td><td>'.$rib[1].'</td><td>'.$rib[2].'</td><td>'.$rib[3].'</td></tr></tbody></table>';
return $out;
}
|
>
>
>
|
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
function tpl_format_iban($iban)
{
return implode(' ', str_split($iban, 4));
}
function tpl_format_rib($iban)
{
if (substr($iban, 0, 2) != 'FR')
return '';
$rib = utils::IBAN_RIB($iban);
$rib = explode(' ', $rib);
$out = '<table class="rib"><thead><tr><th>Banque</th><th>Guichet</th><th>Compte</th><th>Clé</th></tr></thead>';
$out.= '<tbody><tr><td>'.$rib[0].'</td><td>'.$rib[1].'</td><td>'.$rib[2].'</td><td>'.$rib[3].'</td></tr></tbody></table>';
return $out;
}
|