exclusion sur ape_entrep
This commit is contained in:
parent
349dde60de
commit
e6e169fbe7
@ -5,9 +5,24 @@
|
||||
<ul id="fieldsblock">
|
||||
<li><?php echo $this->Field('capital', $this->fields->get('capital'));?></li>
|
||||
<li><?php echo $this->Field('ape_etab', $this->fields->get('ape_etab'));?></li>
|
||||
<li style="background-image:none;height:80px;"><?php echo $this->Field('ape_etab', $this->fields->get('ape_etab'), 'text');?></li>
|
||||
<li><?php echo $this->Field('ape_entrep', $this->fields->get('ape_entrep'));?></li>
|
||||
<li style="background-image:none;height:80px;"><?php echo $this->Field('ape_entrep', $this->fields->get('ape_entrep'), 'text');?></li>
|
||||
<li style="background-image:none;height:100px;">
|
||||
<div id="ape_etab_ex" class="exclusion" style="display:none">
|
||||
<?php echo $this->Field('ape_etab_ex', $this->fields->get('ape_etab_ex'), 'text');?>
|
||||
</div>
|
||||
<div id="ape_etab_in" class="inclusion">
|
||||
<?php echo $this->Field('ape_etab', $this->fields->get('ape_etab'), 'text');?>
|
||||
</div>
|
||||
Valeurs exclusions : <input value="1" type="checkbox" class="checkbox_ex" name="ape_etab" />
|
||||
</li>
|
||||
<li style="background-image:none;height:100px;">
|
||||
<div id="ape_entrep_ex" class="exclusion" style="display:none">
|
||||
<?php echo $this->Field('ape_entrep_ex', $this->fields->get('ape_entrep_ex'), 'text');?>
|
||||
</div>
|
||||
<div id="ape_entrep_in" class="inclusion">
|
||||
<?php echo $this->Field('ape_entrep', $this->fields->get('ape_entrep'), 'text');?>
|
||||
</div>
|
||||
Valeurs exclusions : <input value="1" type="checkbox" class="checkbox_ex" name="ape_entrep" />
|
||||
</li>
|
||||
<li><?php echo $this->Field('age_entrep', $this->fields->get('age_entrep'));?></li>
|
||||
<li><?php echo $this->Field('age_etab', $this->fields->get('age_etab'));?></li>
|
||||
<li><?php echo $this->Field('teff_entrep', $this->fields->get('teff_entrep'));?></li>
|
||||
|
@ -203,6 +203,19 @@ Class Fields
|
||||
'action' => 'naf',
|
||||
'title' => 'Selection des codes NAF etablissement'
|
||||
),
|
||||
'ape_etab_ex' => array(
|
||||
'label' => 'Activité de l\'établissement (Exclure)',
|
||||
'fields' => array(
|
||||
'text' => array('value' => null),
|
||||
'textarea' => array('value' => null)
|
||||
),
|
||||
'famille' => 'economique',
|
||||
'activated' => true,
|
||||
'type' => 'textarea',
|
||||
'class' => null,
|
||||
'action' => 'naf',
|
||||
'title' => 'Selection des codes NAF etablissement'
|
||||
),
|
||||
'ape_entrep' => array(
|
||||
'label' => 'Activité de l\'entreprise (Code NAF)',
|
||||
'fields' => array(
|
||||
@ -216,6 +229,19 @@ Class Fields
|
||||
'action' => 'naf',
|
||||
'title' => 'Selection des codes NAF entreprise'
|
||||
),
|
||||
'ape_entrep_ex' => array(
|
||||
'label' => 'Activité de l\'entreprise (Exclure)',
|
||||
'fields' => array(
|
||||
'text' => array('value' => null),
|
||||
'textarea' => array('value' => null)
|
||||
),
|
||||
'famille' => 'economique',
|
||||
'activated' => true,
|
||||
'type' => 'textarea',
|
||||
'class' => null,
|
||||
'action' => 'naf',
|
||||
'title' => 'Selection des codes NAF entreprise'
|
||||
),
|
||||
'NaceEtab' => array(
|
||||
'label' => 'Code NACE de l\'établissement',
|
||||
'fields' => array(
|
||||
@ -887,6 +913,8 @@ Class Fields
|
||||
{
|
||||
case 'ape_etab' :
|
||||
case 'ape_entrep' :
|
||||
case 'ape_etab_ex':
|
||||
case 'ape_entrep_ex':
|
||||
$nafs = explode(',', $valeur);
|
||||
foreach($nafs as $naf) {
|
||||
if($naf != ' ') {
|
||||
|
Loading…
Reference in New Issue
Block a user