Code spéciaux pour gérer efficacement
This commit is contained in:
parent
34624d7bbb
commit
1d60e3a51a
@ -56,10 +56,10 @@ class GeographiqueController extends Zend_Controller_Action
|
||||
foreach ($result as $item) {
|
||||
$output[] = array(
|
||||
'label' => $item->libdep . $separator . $item->numdep,
|
||||
'value' => $item->numdep
|
||||
'value' => 'D'.$item->numdep
|
||||
);
|
||||
}
|
||||
return ($output);
|
||||
return $output;
|
||||
}
|
||||
|
||||
protected function completedVil($q)
|
||||
@ -73,11 +73,11 @@ class GeographiqueController extends Zend_Controller_Action
|
||||
$result = $table->fetchAll($sql);
|
||||
foreach ($result as $item) {
|
||||
$output[] = array(
|
||||
'label' => $item->Commune . $separator . $item->Codepos,
|
||||
'value' => $item->INSEE
|
||||
'label' => $item->Commune . $separator . $item->Codepos,
|
||||
'value' => 'C'.$item->INSEE
|
||||
);
|
||||
}
|
||||
return ($output);
|
||||
return $output;
|
||||
}
|
||||
|
||||
protected function getDeptFromReg($dep)
|
||||
@ -93,7 +93,7 @@ class GeographiqueController extends Zend_Controller_Action
|
||||
$string .= $res['numdep'].',';
|
||||
}
|
||||
$string = substr($string, 0, strlen($string)-1);
|
||||
return ($string);
|
||||
return $string;
|
||||
}
|
||||
|
||||
protected function completedReg($q)
|
||||
@ -108,11 +108,11 @@ class GeographiqueController extends Zend_Controller_Action
|
||||
$result = $table->fetchAll($sql);
|
||||
foreach ($result as $item) {
|
||||
$output[] = array(
|
||||
'label' => $item->REGION .' '.$item->NCCENR . $separator . $item->REGION,
|
||||
'value' => $this->getDeptFromReg($item->REGION)
|
||||
'label' => $item->NCCENR . $separator . $item->REGION,
|
||||
'value' => 'R'.$item->REGION
|
||||
);
|
||||
}
|
||||
return ($output);
|
||||
return $output;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user