bug
This commit is contained in:
parent
e14b13234a
commit
4505717013
@ -4,8 +4,8 @@ require_once 'sphinxapi/sphinxapi-2.0.2.php';
|
||||
Class Ciblage
|
||||
{
|
||||
private $sphinx;
|
||||
private $alpha = '';
|
||||
private $presentRcs = 0;
|
||||
private $alpha = '';
|
||||
private $presentRcs = 0;
|
||||
|
||||
public $index = 'ciblage';
|
||||
|
||||
@ -28,21 +28,19 @@ Class Ciblage
|
||||
$this->sphinx->SetServer($this->sphinx_host, $this->sphinx_port);
|
||||
$this->sphinx->SetMatchMode(SPH_MATCH_EXTENDED2);
|
||||
$this->sphinx->ResetFilters();
|
||||
/*if(!empty($structure)) {*/
|
||||
foreach($structure as $key => $valeur)
|
||||
{
|
||||
if (method_exists($this, $key)) {
|
||||
if(is_array($valeur)) {
|
||||
if($valeur[0] != "" and $valeur[0] != 'tous'){
|
||||
$this->$key($valeur);
|
||||
}
|
||||
} else {
|
||||
if($valeur != 'tous' and $valeur != "")
|
||||
$this->$key($valeur);
|
||||
foreach($structure as $key => $valeur)
|
||||
{
|
||||
if (method_exists($this, $key)) {
|
||||
if(is_array($valeur)) {
|
||||
if($valeur[0] != "" and $valeur[0] != 'tous'){
|
||||
$this->$key($valeur);
|
||||
}
|
||||
} else {
|
||||
if($valeur != 'tous' and $valeur != "")
|
||||
$this->$key($valeur);
|
||||
}
|
||||
}
|
||||
/*}*/
|
||||
}
|
||||
}
|
||||
|
||||
public function calculRedevanceInsee()
|
||||
|
@ -4,7 +4,7 @@ Class Fields
|
||||
protected $fields = array
|
||||
(
|
||||
'siege' => array(
|
||||
'label' => 'Siege',
|
||||
'label' => 'Sociétés Sieges',
|
||||
'fields' => array(
|
||||
'select' => array('value' => array(1 => 'Oui', 0 => 'Non')),
|
||||
),
|
||||
@ -13,7 +13,7 @@ Class Fields
|
||||
'type' => 'select'
|
||||
),
|
||||
'sirenGrp' => array(
|
||||
'label' => 'Siren de groupe',
|
||||
'label' => 'Société apartenant à un groupe',
|
||||
'fields' => array(
|
||||
'select' => array('value' => array('1' => 'Oui', '0' => 'Non')),
|
||||
),
|
||||
@ -22,7 +22,7 @@ Class Fields
|
||||
'type' => 'select'
|
||||
),
|
||||
'tel' => array(
|
||||
'label' => 'Telephone',
|
||||
'label' => 'Contenant un Telephone',
|
||||
'fields' => array(
|
||||
'select' => array('value' => array('1' => 'Oui', '0' => 'Non'))
|
||||
),
|
||||
@ -31,7 +31,7 @@ Class Fields
|
||||
'type' => 'select'
|
||||
),
|
||||
'fax' => array(
|
||||
'label' => 'Telecopie',
|
||||
'label' => 'Contenant un Fax',
|
||||
'fields' => array(
|
||||
'select' => array('value' => array('1' => 'Oui', '0' => 'Non'))
|
||||
),
|
||||
@ -41,7 +41,7 @@ Class Fields
|
||||
'class' => null
|
||||
),
|
||||
'web' => array(
|
||||
'label' => 'Site Internet',
|
||||
'label' => 'Contenant un site internet',
|
||||
'fields' => array(
|
||||
'select' => array('value' => array('1' => 'Oui', '0' => 'Non'))
|
||||
),
|
||||
@ -51,7 +51,7 @@ Class Fields
|
||||
'class' => null
|
||||
),
|
||||
'mail' => array(
|
||||
'label' => 'Email',
|
||||
'label' => 'Contenant une adresse email',
|
||||
'fields' => array(
|
||||
'select' => array('value' => array('1' => 'Oui', '0' => 'Non'))
|
||||
),
|
||||
@ -61,7 +61,7 @@ Class Fields
|
||||
'class' => null
|
||||
),
|
||||
'presentRcs' => array(
|
||||
'label' => 'Etablissement présent au RNCS',
|
||||
'label' => 'Société présente au RNCS',
|
||||
'fields' => array(
|
||||
'select' => array('value' => array('1' => 'Oui', '0' => 'Non'))
|
||||
),
|
||||
@ -71,7 +71,7 @@ Class Fields
|
||||
'class' => null
|
||||
),
|
||||
'adrDom' => array(
|
||||
'label' => 'Adresse de domiciliation',
|
||||
'label' => 'A une adresse de domiciliation',
|
||||
'fields' => array(
|
||||
'select' => array('value' => array('1' => 'Oui', '0' => 'Non'))
|
||||
),
|
||||
@ -81,7 +81,7 @@ Class Fields
|
||||
'class' => null
|
||||
),
|
||||
'dirNom' => array(
|
||||
'label' => 'Nom du principal dirigeant',
|
||||
'label' => 'Contenant le nom du principal dirigeant',
|
||||
'fields' => array(
|
||||
'select' => array('value' => array('1' => 'Oui', '0' => 'Non'))
|
||||
),
|
||||
@ -112,7 +112,7 @@ Class Fields
|
||||
'class' => null
|
||||
),
|
||||
'dateCrea_ent' => array(
|
||||
'label' => 'Date de création de l\'entreprose',
|
||||
'label' => 'Date de création de l\'entreprise',
|
||||
'fields' => array(
|
||||
'interval' => array('value' => array('0', '1000'))
|
||||
),
|
||||
@ -153,7 +153,7 @@ Class Fields
|
||||
),
|
||||
// economique
|
||||
'ape_etab' => array(
|
||||
'label' => 'Code NAF Etablissement',
|
||||
'label' => 'Codes NAF Etablissement',
|
||||
'fields' => array(
|
||||
'text' => array('value' => null),
|
||||
'textarea' => array('value' => null)
|
||||
@ -166,7 +166,7 @@ Class Fields
|
||||
'title' => 'Selection des codes NAF etablissement'
|
||||
),
|
||||
'ape_entrep' => array(
|
||||
'label' => 'Code NAF Entreprise',
|
||||
'label' => 'Codes NAF Entreprise',
|
||||
'fields' => array(
|
||||
'text' => array('value' => null),
|
||||
'textarea' => array('value' => null)
|
||||
@ -201,7 +201,7 @@ Class Fields
|
||||
'class' => null
|
||||
),
|
||||
'age_etab' => array(
|
||||
'label' => 'Code AGE Etablissement',
|
||||
'label' => 'L\'age de l\'etablissement',
|
||||
'fields' => array(
|
||||
'interval' => array('value' => null)
|
||||
),
|
||||
@ -211,7 +211,7 @@ Class Fields
|
||||
'class' => null
|
||||
),
|
||||
'age_entrep' => array(
|
||||
'label' => 'Code AGE Entreprise',
|
||||
'label' => 'L\'age de l\'entreprise',
|
||||
'fields' => array(
|
||||
'interval' => array('value' => null)
|
||||
),
|
||||
@ -325,7 +325,7 @@ Class Fields
|
||||
),
|
||||
//geographique
|
||||
'adr_cp' => array(
|
||||
'label' => 'Code postal',
|
||||
'label' => 'Codes postaux',
|
||||
'fields' => array(
|
||||
'text' => array('value' => null),
|
||||
'textarea' => array('value' => null)
|
||||
@ -370,7 +370,7 @@ Class Fields
|
||||
'class' => null
|
||||
),
|
||||
'procolHisto' => array(
|
||||
'label' => 'Présence d\'une procédure collective dans l\'histo.',
|
||||
'label' => 'Présence d\'une procédure collective dans l\'historique.',
|
||||
'fields' => array(
|
||||
'select' => array('value' => array('1' => 'Oui', '0' => 'Non')),
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user