date
This commit is contained in:
parent
adaaa66dd1
commit
2180eb9f3a
@ -85,7 +85,6 @@ Class Ciblage
|
||||
}
|
||||
public function execute($need = false, $limitD = false)
|
||||
{
|
||||
//echo $this->alpha;exit;
|
||||
if($need) {
|
||||
$return = array();
|
||||
$limit = 0;
|
||||
@ -197,6 +196,7 @@ Class Ciblage
|
||||
}
|
||||
protected function ex_domtom($valeur)
|
||||
{
|
||||
echo 'rentre';
|
||||
if($valeur == 1) {
|
||||
$this->setAlpha('adr_dept_ex', array(971, 972, 973, 974, 976), true);
|
||||
}
|
||||
@ -303,9 +303,8 @@ Class Ciblage
|
||||
$this->setAlpha('NaceEntrep', $valeur);
|
||||
}
|
||||
protected function dateCrea_etab($valeur) {
|
||||
if(empty($valeur[0])) {$valeur[0] = date('Ymd');}
|
||||
if(empty($valeur[1])) {$valeur[1] = date('Ymd');}
|
||||
|
||||
$valeur = $this->setMinMax('dateCrea_etab', $valeur);
|
||||
if(!is_array($valeur)) {
|
||||
$format = explode('/', $valeur);
|
||||
$valeur = $format[2].$format[1].$format[0];
|
||||
@ -320,9 +319,8 @@ Class Ciblage
|
||||
|
||||
}
|
||||
protected function dateCrea_ent($valeur) {
|
||||
if(empty($valeur[0])) {$valeur[0] = date('Ymd');}
|
||||
if(empty($valeur[1])) {$valeur[1] = date('Ymd');}
|
||||
|
||||
$valeur = $this->setMinMax('dateCrea_ent', $valeur);
|
||||
if(!is_array($valeur)) {
|
||||
$format = explode('/', $valeur);
|
||||
$valeur = $format[2].$format[1].$format[0];
|
||||
@ -333,12 +331,11 @@ Class Ciblage
|
||||
$valeur[0] = $format1[2].$format1[1].$format1[0];
|
||||
$valeur[1] = $format2[2].$format2[1].$format2[0];
|
||||
}
|
||||
$this->setFilterRange('dateCrea_etab', $valeur);
|
||||
$this->setFilterRange('dateCrea_ent', $valeur);
|
||||
}
|
||||
protected function dateImmat($valeur) {
|
||||
if(empty($valeur[0])) {$valeur[0] = date('Ymd');}
|
||||
if(empty($valeur[1])) {$valeur[1] = date('Ymd');}
|
||||
|
||||
$valeur = $this->setMinMax('dateImmat', $valeur);
|
||||
if(!is_array($valeur)) {
|
||||
$format = explode('/', $valeur);
|
||||
$valeur = $format[2].$format[1].$format[0];
|
||||
|
Loading…
Reference in New Issue
Block a user