From 73fcc0f4cff8ca58f71a19bfcee1dcc8055ac913 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 10 Feb 2005 14:33:22 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20teste=20de=20la=20validit=E9=20du=20cod?= =?UTF-8?q?e=20SIREN?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/soc.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/htdocs/soc.php b/htdocs/soc.php index de89d5b908f..492396b4979 100644 --- a/htdocs/soc.php +++ b/htdocs/soc.php @@ -430,7 +430,20 @@ else if ($soc->url) { print 'http://'.$soc->url.''; } print ''; - print ''.$langs->trans('ProfIdSiren').''.$soc->siren.' '; + print ''.$langs->trans('ProfIdSiren').''; + + if ($soc->check_siren() == 0) + { + print ''.$soc->siren.' '; + } + else + { + print ''.$soc->siren; + // Siren invalide + print " Code Siren Invalide !"; + } + + print ''; print ''.$langs->trans('ProfIdSiret').''.$soc->siret.'';