Ajout helper pour affichage siren et siret
This commit is contained in:
parent
660f21060a
commit
7f2404adb4
10
application/views/default/helpers/SirenTexte.php
Normal file
10
application/views/default/helpers/SirenTexte.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
class Zend_View_Helper_SirenTexte extends Zend_View_Helper_Abstract
|
||||
{
|
||||
public function SirenTexte($siren)
|
||||
{
|
||||
return substr($siren, 0, 3).' '.
|
||||
substr($siren, 3, 3).' '.
|
||||
substr($siren, 6, 3);
|
||||
}
|
||||
}
|
11
application/views/default/helpers/SiretTexte.php
Normal file
11
application/views/default/helpers/SiretTexte.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
class Zend_View_Helper_SiretTexte extends Zend_View_Helper_Abstract
|
||||
{
|
||||
public function SiretTexte($siret)
|
||||
{
|
||||
return substr($siret, 0, 3).' '.
|
||||
substr($siret, 3, 3).' '.
|
||||
substr($siret, 6, 3).' '.
|
||||
'<i>'.substr($siret, 9, 5).'</i>';
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user