Utilisation de SessionCiblage
This commit is contained in:
parent
b73d2a946d
commit
0c9c0315aa
@ -9,10 +9,11 @@ class IndexController extends Zend_Controller_Action
|
||||
|
||||
public function indexAction()
|
||||
{
|
||||
$session = new Zend_Session_Namespace('ciblage');
|
||||
require_once 'Scores/SessionCoblage.php';
|
||||
$session = new SessionCiblage();
|
||||
|
||||
$this->view->total = number_format($session->ciblage['total'], 0, '', ' ');
|
||||
$this->view->insee = number_format($session->ciblage['insee'], 0, '', ' ');
|
||||
$this->view->total = number_format($session->getNb('total'), 0, '', ' ');
|
||||
$this->view->insee = number_format($session->getNb('insee'), 0, '', ' ');
|
||||
}
|
||||
|
||||
public function selectionAction(){}
|
||||
@ -37,10 +38,11 @@ class IndexController extends Zend_Controller_Action
|
||||
$select = array();
|
||||
|
||||
require_once 'Scores/SessionCiblage.php';
|
||||
$session = new Zend_Session_Namespace('ciblage');
|
||||
$session = new SessionCiblage();
|
||||
$criteres = $session->getCriteres();
|
||||
|
||||
if(!empty($session->ciblage)) {
|
||||
foreach($session->ciblage as $item => $valeur) {
|
||||
if(count($criteres)) {
|
||||
foreach($criteres as $item => $valeur) {
|
||||
if (in_array($item, $this->entreprise))
|
||||
$entreprise[$item] = $valeur;
|
||||
else if (in_array($item, $this->economique))
|
||||
|
Loading…
Reference in New Issue
Block a user