view->total = number_format($session->ciblage['total'], 0, '', ' '); $this->view->insee = number_format($session->ciblage['insee'], 0, '', ' '); } public function selectionAction(){} public function historiqueAction(){} public function resetAction() { $session = new Zend_Session_Namespace('ciblage'); unset($session->ciblage); $this->_redirect('./'); } public function criteresAction() { $entreprise = array(); $economique = array(); $geographique = array(); $financier = array(); $juridique = array(); $select = array(); require_once 'Scores/SessionCiblage.php'; $session = new Zend_Session_Namespace('ciblage'); if(!empty($session->ciblage)) { foreach($session->ciblage as $item => $valeur) { if (in_array($item, $this->entreprise)) $entreprise[$item] = $valeur; else if (in_array($item, $this->economique)) $economique[$item] = $valeur; else if (in_array($item, $this->geographique)) $geographique[$item] = $valeur; else if (in_array($item, $this->financier)) $financier[$item] = $valeur; else if (in_array($item, $this->juridique)) $juridique[$item] = $valeur; } $nbCriteres = count($entreprise); $Count['entreprise'] = $nbCriteres; $nbCriteres = count($geographique); $Count['geographique'] = $nbCriteres; $nbCriteres = count($juridique); $Count['juridique'] = $nbCriteres; $nbCriteres = count($financier); $Count['financier'] = $nbCriteres; $nbCriteres = count($economique); $Count['economique'] = $nbCriteres; } $this->view->Count = $Count; $this->view->entreprise = $this->entreprise; $this->view->geographique = $this->geographique; $this->view->economique = $this->economique; $this->view->juridique = $this->juridique; $this->view->financier = $this->financier; } }