Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
Theme-WordPress-Adullact-org
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
11
Issues
11
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Adullact
Theme-WordPress-Adullact-org
Commits
839c176d
Commit
839c176d
authored
Jul 04, 2019
by
N. Peraldi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into 8-formulaire-adhesion-indiquer-les-champs-obligatoires
# Conflicts: # contact.php
parents
16d9a5a5
3d5e7d1b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
73 additions
and
93 deletions
+73
-93
adhesionForm.js
adhesionForm.js
+14
-4
contact.php
contact.php
+3
-8
functions.php
functions.php
+4
-4
traitementAdhesion.php
traitementAdhesion.php
+52
-77
No files found.
adhesionForm.js
View file @
839c176d
//liste des blocs qui peuvent être affichés / cachés
//liste des blocs qui peuvent être affichés / cachés
var
blocks
=
[
"
link
"
,
"
paraSecondSelection
"
,
"
cotisation
"
,
"
informationsCollectivite
"
,
"
formulaireEPCIMutualisant
"
,
"
boutonEnvoyer
"
];
var
blocks
=
[
"
link
"
,
"
paraSecondSelection
"
,
"
cotisation
"
,
"
informationsCollectivite
"
,
"
formulaireEPCIMutualisant
"
,
"
boutonEnvoyer
"
,
"
chorus_pro
"
];
var
maxCotisation
=
12000
;
var
maxCotisation
=
12000
;
...
@@ -59,14 +59,17 @@ function firstAction() {
...
@@ -59,14 +59,17 @@ function firstAction() {
else
if
(
strUser
===
"
Association
"
)
{
else
if
(
strUser
===
"
Association
"
)
{
setCotisation
(
"
Association
"
);
setCotisation
(
"
Association
"
);
displayMask
([
"
cotisation
"
,
"
informationsCollectivite
"
,
"
boutonEnvoyer
"
]);
displayMask
([
"
cotisation
"
,
"
informationsCollectivite
"
,
"
boutonEnvoyer
"
]);
document
.
getElementById
(
"
secondSelection
"
).
required
=
false
;
document
.
getElementById
(
"
secondSelection
"
).
required
=
false
;
setEPCIRequired
(
false
);
setEPCIRequired
(
false
);
setChorusProRequired
(
false
);
}
else
if
(
strUser
===
"
EPCIMutualisant
"
)
{
}
else
if
(
strUser
===
"
EPCIMutualisant
"
)
{
//formulaire contenant la formule spécifique à EPCI mutualisant
//formulaire contenant la formule spécifique à EPCI mutualisant
displayMask
([
"
formulaireEPCIMutualisant
"
]);
displayMask
([
"
formulaireEPCIMutualisant
"
]);
setEPCIRequired
(
true
);
setEPCIRequired
(
true
);
setChorusProRequired
(
true
);
}
else
if
(
strUser
===
"
none
"
)
{
}
else
if
(
strUser
===
"
none
"
)
{
//premier choix avec des tirets
//premier choix avec des tirets
...
@@ -80,6 +83,7 @@ function firstAction() {
...
@@ -80,6 +83,7 @@ function firstAction() {
displayMask
([
"
paraSecondSelection
"
]);
displayMask
([
"
paraSecondSelection
"
]);
setEPCIRequired
(
false
);
setEPCIRequired
(
false
);
setChorusProRequired
(
true
);
}
}
}
}
...
@@ -166,7 +170,7 @@ function secondAction() {
...
@@ -166,7 +170,7 @@ function secondAction() {
setCotisation
(
selectedTranch
);
setCotisation
(
selectedTranch
);
displayMask
([
"
paraSecondSelection
"
,
"
cotisation
"
,
"
informationsCollectivite
"
,
"
boutonEnvoyer
"
]);
displayMask
([
"
paraSecondSelection
"
,
"
cotisation
"
,
"
informationsCollectivite
"
,
"
boutonEnvoyer
"
,
"
chorus_pro
"
]);
}
else
{
}
else
{
displayMask
([
"
paraSecondSelection
"
]);
displayMask
([
"
paraSecondSelection
"
]);
}
}
...
@@ -196,6 +200,12 @@ function setCotisation(id, x = 0) {
...
@@ -196,6 +200,12 @@ function setCotisation(id, x = 0) {
}
}
}
}
function
setChorusProRequired
(
boolean
){
document
.
getElementById
(
"
siretCollectivite
"
).
required
=
boolean
;
document
.
getElementById
(
"
numeroEngagementCollectivite
"
).
required
=
boolean
;
document
.
getElementById
(
"
codeCollectivite
"
).
required
=
boolean
;
}
function
setEPCIRequired
(
boolean
)
{
function
setEPCIRequired
(
boolean
)
{
//le formulaire EPCI est il requis ? cela varie selon les choix faits par l'utilisateur
//le formulaire EPCI est il requis ? cela varie selon les choix faits par l'utilisateur
document
.
getElementById
(
"
nombreHabitantsEPCI
"
).
required
=
boolean
;
document
.
getElementById
(
"
nombreHabitantsEPCI
"
).
required
=
boolean
;
...
@@ -221,12 +231,12 @@ function traitementEPCIMutualisant() {
...
@@ -221,12 +231,12 @@ function traitementEPCIMutualisant() {
if
(
resultat
>
maxCotisation
)
{
if
(
resultat
>
maxCotisation
)
{
//valeur fixée en haut du
document
//valeur fixée en haut du
code
resultat
=
maxCotisation
;
resultat
=
maxCotisation
;
}
}
setCotisation
(
"
EPCIMutualisant
"
,
resultat
);
setCotisation
(
"
EPCIMutualisant
"
,
resultat
);
displayMask
([
"
cotisation
"
,
"
informationsCollectivite
"
,
"
formulaireEPCIMutualisant
"
,
"
boutonEnvoyer
"
]);
displayMask
([
"
cotisation
"
,
"
informationsCollectivite
"
,
"
formulaireEPCIMutualisant
"
,
"
boutonEnvoyer
"
,
"
chorus_pro
"
]);
}
}
}
}
}
}
...
...
contact.php
View file @
839c176d
...
@@ -94,8 +94,6 @@ if (isset($_POST)) {
...
@@ -94,8 +94,6 @@ if (isset($_POST)) {
}
}
}
}
}
}
get_header
();
get_header
();
?>
?>
...
@@ -201,7 +199,6 @@ get_header();
...
@@ -201,7 +199,6 @@ get_header();
return
true
;
return
true
;
}
}
}
}
return
false
;
return
false
;
}
}
...
@@ -321,7 +318,6 @@ get_header();
...
@@ -321,7 +318,6 @@ get_header();
</option>
</option>
<?php
<?php
}
}
//la tranche pour la cotisation
//la tranche pour la cotisation
$tranch
=
$classInTreatment
.
"-T"
.
$counter
;
$tranch
=
$classInTreatment
.
"-T"
.
$counter
;
...
@@ -331,7 +327,6 @@ get_header();
...
@@ -331,7 +327,6 @@ get_header();
name=
"optionSelect2"
>
<?php
echo
$actualLine
[
1
]
?>
</option>
name=
"optionSelect2"
>
<?php
echo
$actualLine
[
1
]
?>
</option>
<?php
<?php
$counter
+=
1
;
$counter
+=
1
;
}
}
?>
?>
...
@@ -369,8 +364,6 @@ get_header();
...
@@ -369,8 +364,6 @@ get_header();
<?php
<?php
$counter
+=
1
;
$counter
+=
1
;
}
}
?>
?>
...
@@ -381,7 +374,6 @@ get_header();
...
@@ -381,7 +374,6 @@ get_header();
</div>
</div>
<div
id=
"informationsCollectivite"
>
<div
id=
"informationsCollectivite"
>
<h3>
Coordonnées :
</h3>
<h3>
Coordonnées :
</h3>
<p>
Les champs portant une astérisque
<p>
Les champs portant une astérisque
...
@@ -438,6 +430,9 @@ get_header();
...
@@ -438,6 +430,9 @@ get_header();
<?php
generateDates
();
?>
<?php
generateDates
();
?>
</select>
</select>
</div>
<div
id=
"chorus_pro"
>
<h3>
Informations relatives à Chorus Pro
</h3>
<h3>
Informations relatives à Chorus Pro
</h3>
...
...
functions.php
View file @
839c176d
...
@@ -21,8 +21,8 @@ function childrens_of_member_category($category)
...
@@ -21,8 +21,8 @@ function childrens_of_member_category($category)
foreach
(
$childrens
as
$c
)
{
foreach
(
$childrens
as
$c
)
{
$temp_category
=
get_category
(
$c
);
//objet contenant les infos de la catégorie enfant
$temp_category
=
get_category
(
$c
);
//objet contenant les infos de la catégorie enfant
$my_link
=
"<a href=
\"
?cat="
;
$my_link
=
"<a href=
\"
?cat="
;
$my_link
.
=
$c
;
$my_link
.
=
$c
;
$my_link
.
=
"
\"
class=
\"
adullact-sort-button"
;
$my_link
.
=
"
\"
class=
\"
adullact-sort-button"
;
if
(
$temp_category
->
name
==
$category
)
{
if
(
$temp_category
->
name
==
$category
)
{
...
@@ -30,10 +30,10 @@ function childrens_of_member_category($category)
...
@@ -30,10 +30,10 @@ function childrens_of_member_category($category)
$my_link
.
=
" adullact-selected"
;
$my_link
.
=
" adullact-selected"
;
}
}
$my_link
.
=
"
\"
>"
;
$my_link
.
=
"
\"
>"
;
$my_link
.
=
$temp_category
->
name
;
$my_link
.
=
$temp_category
->
name
;
$my_link
.
=
"</a>"
;
$my_link
.
=
"</a>"
;
echo
$my_link
;
echo
$my_link
;
...
...
traitementAdhesion.php
View file @
839c176d
...
@@ -31,8 +31,7 @@ $errorInSiret = "Un numéro de SIRET est composé de 14 chiffres.";
...
@@ -31,8 +31,7 @@ $errorInSiret = "Un numéro de SIRET est composé de 14 chiffres.";
$positiveNumberRequired
=
"Vous devez entrer un nombre positif."
;
$positiveNumberRequired
=
"Vous devez entrer un nombre positif."
;
$numberRequired
=
"Vous devez entrer un nombre."
;
$numberRequired
=
"Vous devez entrer un nombre."
;
$fieldRequired
=
"Vous devez compléter ce champ."
;
$debug_mode_traitement
=
false
;
$debug_mode_traitement
=
false
;
...
@@ -58,13 +57,11 @@ $replacements = array(
...
@@ -58,13 +57,11 @@ $replacements = array(
function
sendAdhesionMail
(
$tab
)
function
sendAdhesionMail
(
$tab
)
{
{
//fonction utile pour l'envoi de mail grâce au $_POST
//fonction utile pour l'envoi de mail grâce au $_POST
//on étudie le $_POST et on transfère les lignes utiles à $tableauFinal
//on étudie le $_POST et on transfère les lignes utiles à $tableauFinal
global
$adresseMailCible
,
$subject
,
$elementsOfPostToTrash
,
$replacements
;
global
$adresseMailCible
,
$subject
,
$elementsOfPostToTrash
,
$replacements
;
$tableauFinal
=
array
();
$tableauFinal
=
array
();
foreach
(
$tab
as
$key
=>
$value
)
{
foreach
(
$tab
as
$key
=>
$value
)
{
if
(
!
isWordIn
(
$key
,
$elementsOfPostToTrash
))
{
if
(
!
isWordIn
(
$key
,
$elementsOfPostToTrash
))
{
if
(
$value
!=
""
&&
$value
!=
"none"
)
{
if
(
$value
!=
""
&&
$value
!=
"none"
)
{
...
@@ -78,7 +75,6 @@ function sendAdhesionMail($tab)
...
@@ -78,7 +75,6 @@ function sendAdhesionMail($tab)
$tableauFinal
[
$key
]
=
$value
;
$tableauFinal
[
$key
]
=
$value
;
}
}
}
}
}
}
$message
=
"Nouvelle requête pour le formulaire d'adhésion : <br><table>"
;
$message
=
"Nouvelle requête pour le formulaire d'adhésion : <br><table>"
;
...
@@ -92,25 +88,22 @@ function sendAdhesionMail($tab)
...
@@ -92,25 +88,22 @@ function sendAdhesionMail($tab)
$logMessage
=
$logMessage
.
$key
.
" : "
.
$value
.
"
\n
"
;
$logMessage
=
$logMessage
.
$key
.
" : "
.
$value
.
"
\n
"
;
}
}
$header
=
"Content-type: text/html; charset=utf-8
\r\n
"
;
$header
=
"Content-type: text/html; charset=utf-8
\r\n
"
;
if
(
mail
(
$adresseMailCible
,
$subject
,
$message
,
$header
))
{
if
(
mail
(
$adresseMailCible
,
$subject
,
$message
,
$header
))
{
writeInLog
(
"Nouvelle demande"
,
$logMessage
);
writeInLog
(
"Nouvelle demande"
,
$logMessage
);
}
}
else
{
else
{
writeInLog
(
"Erreur de l'envoi mail."
,
"Header :
\n
"
.
$header
.
"
\n
Infos :"
.
$logMessage
);
writeInLog
(
"Erreur de l'envoi mail."
,
"Header :
\n
"
.
$header
.
"
\n
Infos :"
.
$logMessage
);
}
}
}
}
function
writeInLog
(
$intitule
,
$text
){
function
writeInLog
(
$intitule
,
$text
)
{
global
$workingDirectory
,
$debug_mode_traitement
;
global
$workingDirectory
,
$debug_mode_traitement
;
date_default_timezone_set
(
'Europe/Paris'
);
date_default_timezone_set
(
'Europe/Paris'
);
$date
=
date
(
"d-m-Y"
);
$date
=
date
(
"d-m-Y"
);
$hour
=
date
(
"H:i:s"
);
$hour
=
date
(
"H:i:s"
);
...
@@ -122,19 +115,17 @@ function writeInLog($intitule, $text){
...
@@ -122,19 +115,17 @@ function writeInLog($intitule, $text){
$fichier
=
fopen
(
$filePath
,
"a"
);
$fichier
=
fopen
(
$filePath
,
"a"
);
if
(
$debug_mode_traitement
)
{
if
(
$debug_mode_traitement
)
{
var_dump
(
$fichier
);
var_dump
(
$fichier
);
}
}
if
(
fwrite
(
$fichier
,
$finalMessage
))
{
if
(
fwrite
(
$fichier
,
$finalMessage
)){
if
(
$debug_mode_traitement
)
{
if
(
$debug_mode_traitement
){
echo
"fichier écrit"
;
echo
"fichier écrit"
;
}
}
}
}
else
{
else
{
if
(
$debug_mode_traitement
)
{
if
(
$debug_mode_traitement
){
echo
"fichier pas écrit"
;
echo
"fichier pas écrit"
;
echo
"<br> chemin accesz : <br>"
.
$filePath
;
echo
"<br> chemin accesz : <br>"
.
$filePath
;
}
}
...
@@ -142,8 +133,6 @@ function writeInLog($intitule, $text){
...
@@ -142,8 +133,6 @@ function writeInLog($intitule, $text){
}
}
fclose
(
$fichier
);
fclose
(
$fichier
);
}
}
//-----------------------Toutes les fonctions de vérification de données------------------------
//-----------------------Toutes les fonctions de vérification de données------------------------
...
@@ -156,21 +145,17 @@ function verifFirstSelection($tab)
...
@@ -156,21 +145,17 @@ function verifFirstSelection($tab)
//première sélection présente
//première sélection présente
if
(
$tab
[
"firstSelection"
]
!=
"none"
&&
$tab
[
"firstSelection"
]
!=
""
)
{
if
(
$tab
[
"firstSelection"
]
!=
"none"
&&
$tab
[
"firstSelection"
]
!=
""
)
{
//l'utilisateur a sélectionné quelque chose. mais quoi ?
//l'utilisateur a sélectionné quelque chose. mais quoi ?
return
true
;
return
true
;
}
else
{
}
else
{
//sélection égale à "none" ou ""
//sélection égale à "none" ou ""
return
false
;
return
false
;
}
}
}
else
{
}
else
{
//première sélection absente du formulaire
//première sélection absente du formulaire
return
false
;
return
false
;
}
}
}
}
function
verifSecondSelection
(
$tab
,
$errors
)
function
verifSecondSelection
(
$tab
,
$errors
)
...
@@ -199,7 +184,6 @@ function verifEPCI($tab, $errors)
...
@@ -199,7 +184,6 @@ function verifEPCI($tab, $errors)
$nombreHab
=
$tab
[
"nombreHabitantsEPCI"
];
$nombreHab
=
$tab
[
"nombreHabitantsEPCI"
];
$nombreCom
=
$tab
[
"nombreCommunesMembresEPCI"
];
$nombreCom
=
$tab
[
"nombreCommunesMembresEPCI"
];
if
(
is_numeric
(
$nombreHab
))
{
if
(
is_numeric
(
$nombreHab
))
{
if
(
is_numeric
(
$nombreCom
))
{
if
(
is_numeric
(
$nombreCom
))
{
if
(
$nombreHab
>
0
)
{
if
(
$nombreHab
>
0
)
{
...
@@ -227,15 +211,13 @@ function verifEPCI($tab, $errors)
...
@@ -227,15 +211,13 @@ function verifEPCI($tab, $errors)
}
else
{
}
else
{
$errors
[
"EPCI hab"
]
=
$numberRequired
;
$errors
[
"EPCI hab"
]
=
$numberRequired
;
}
}
return
$errors
;
return
$errors
;
}
}
function
verifNom
(
$tab
)
function
verifNom
(
$tab
)
{
{
//vérifie si le nom de la collectivité est correct
//vérifie si le nom de la collectivité est correct
global
$maxNameCharacters
,
$tooLongName
;
global
$maxNameCharacters
,
$tooLongName
,
$fieldRequired
;
if
(
isset
(
$tab
[
"nomCollectivite"
]))
{
if
(
isset
(
$tab
[
"nomCollectivite"
]))
{
...
@@ -249,18 +231,16 @@ function verifNom($tab)
...
@@ -249,18 +231,16 @@ function verifNom($tab)
return
$tooLongName
;
return
$tooLongName
;
}
}
}
else
{
}
else
{
return
"vide"
;
return
$fieldRequired
;
}
}
}
}
return
"vide"
;
return
$fieldRequired
;
}
}
function
verifAdresse
(
$tab
)
function
verifAdresse
(
$tab
)
{
{
//vérifie si l'adresse est correcte
//vérifie si l'adresse est correcte
global
$tooLongAddress
,
$maxAddressCharacters
;
global
$tooLongAddress
,
$maxAddressCharacters
,
$fieldRequired
;
if
(
isset
(
$tab
[
"adresseCollectivite"
]))
{
if
(
isset
(
$tab
[
"adresseCollectivite"
]))
{
...
@@ -274,18 +254,18 @@ function verifAdresse($tab)
...
@@ -274,18 +254,18 @@ function verifAdresse($tab)
return
$tooLongAddress
;
return
$tooLongAddress
;
}
}
}
else
{
}
else
{
return
"vide"
;
return
$fieldRequired
;
}
}
}
else
{
}
else
{
return
"vide"
;
return
$fieldRequired
;
}
}
}
}
function
verifCodePostal
(
$tab
)
function
verifCodePostal
(
$tab
)
{
{
//vérifie si le code postal a été correctement entré
//vérifie si le code postal a été correctement entré
global
$debug_mode_traitement
,
$postalCodeError
;
global
$debug_mode_traitement
,
$postalCodeError
,
$fieldRequired
;
if
(
isset
(
$tab
[
"codePostalCollectivite"
]))
{
if
(
isset
(
$tab
[
"codePostalCollectivite"
]))
{
...
@@ -304,25 +284,21 @@ function verifCodePostal($tab)
...
@@ -304,25 +284,21 @@ function verifCodePostal($tab)
return
$postalCodeError
;
return
$postalCodeError
;
}
}
}
else
{
}
else
{
return
"vide"
;
return
$fieldRequired
;
}
}
}
else
{
}
else
{
return
"vide"
;
return
$fieldRequired
;
}
}
}
}
function
verifVille
(
$tab
)
function
verifVille
(
$tab
)
{
{
//vérifie la ville
//vérifie la ville
global
$maxCityCharacters
,
$tooLongCity
,
$errorInCityName
;
global
$maxCityCharacters
,
$tooLongCity
,
$errorInCityName
,
$fieldRequired
;
//vérifie si la ville est correcte
//vérifie si la ville est correcte
if
(
isset
(
$tab
[
"villeCollectivite"
]))
{
if
(
isset
(
$tab
[
"villeCollectivite"
]))
{
$ville
=
$tab
[
"villeCollectivite"
];
$ville
=
$tab
[
"villeCollectivite"
];
if
(
strlen
(
$ville
)
>
0
)
{
if
(
strlen
(
$ville
)
>
0
)
{
if
(
strlen
(
$ville
)
<
$maxCityCharacters
)
{
if
(
strlen
(
$ville
)
<
$maxCityCharacters
)
{
$ville
=
strtolower
(
$ville
);
$ville
=
strtolower
(
$ville
);
...
@@ -334,21 +310,20 @@ function verifVille($tab)
...
@@ -334,21 +310,20 @@ function verifVille($tab)
}
}
return
""
;
return
""
;
}
else
{
}
else
{
return
$tooLongCity
;
return
$tooLongCity
;
}
}
}
else
{
}
else
{
return
"vide"
;
return
$fieldRequired
;
}
}
}
else
{
}
else
{
return
"vide"
;
return
$fieldRequired
;
}
}
}
}
function
verifTel
(
$tab
)
function
verifTel
(
$tab
)
{
{
//vérifie le numéro de téléphone
//vérifie le numéro de téléphone
. il n'est pas obligatoire, on ne retourne pas d'erreur si vide.
global
$errorInTel
;
global
$errorInTel
;
if
(
isset
(
$tab
[
"telCollectivite"
]))
{
if
(
isset
(
$tab
[
"telCollectivite"
]))
{
...
@@ -364,16 +339,16 @@ function verifTel($tab)
...
@@ -364,16 +339,16 @@ function verifTel($tab)
return
$errorInTel
;
return
$errorInTel
;
}
}
}
else
{
}
else
{
return
"
vide
"
;
return
""
;
}
}
}
else
{
}
else
{
return
"
vide
"
;
return
""
;
}
}
}
}
function
verifUrl
(
$tab
)
function
verifUrl
(
$tab
)
{
{
//vérifie l'Url du site internet grâce à un filter var
//vérifie l'Url du site internet grâce à un filter var
. pas obligatoire, ne retourne pas d'erreurs si vide.
global
$incorrectUrl
;
global
$incorrectUrl
;
if
(
isset
(
$tab
[
"siteCollectivite"
]))
{
if
(
isset
(
$tab
[
"siteCollectivite"
]))
{
...
@@ -388,10 +363,10 @@ function verifUrl($tab)
...
@@ -388,10 +363,10 @@ function verifUrl($tab)
return
$incorrectUrl
;
return
$incorrectUrl
;
}
}
}
else
{
}
else
{
return
"
vide
"
;
return
""
;
}
}
}
else
{
}
else
{
return
"
vide
"
;
return
""
;
}
}
}
}
...
@@ -415,7 +390,7 @@ function verifPeriodeAdhesion($tab)
...
@@ -415,7 +390,7 @@ function verifPeriodeAdhesion($tab)
function
verifSiret
(
$tab
)
function
verifSiret
(
$tab
)
{
{
global
$debug_mode_traitement
,
$errorInSiret
;
global
$debug_mode_traitement
,
$errorInSiret
,
$fieldRequired
;
if
(
$debug_mode_traitement
)
{
if
(
$debug_mode_traitement
)
{
echo
"<br> on vérifie le siret <br> "
;
echo
"<br> on vérifie le siret <br> "
;
...
@@ -434,16 +409,18 @@ function verifSiret($tab)
...
@@ -434,16 +409,18 @@ function verifSiret($tab)
return
$errorInSiret
;
return
$errorInSiret
;
}
}
}
else
{
}
else
{
return
"vide"
;
return
$fieldRequired
;
}
}
}
else
{
}
else
{
return
"vide"
;
return
$fieldRequired
;
}
}
}