38 lines
948 B
PHP
38 lines
948 B
PHP
<?php
|
|
class IndexController extends Zend_Controller_Action
|
|
{
|
|
public function indexAction()
|
|
{
|
|
$session = new Zend_Session_Namespace('ciblage');
|
|
|
|
$this->view->total = number_format($session->ciblage['total'], 0, '', ' ');
|
|
$this->view->insee = number_format($session->ciblage['insee'], 0, '', ' ');
|
|
}
|
|
|
|
//Selection
|
|
public function selectionAction(){}
|
|
|
|
//Sauvegarde critères + comptage (bouton actualisation comptage)
|
|
//Liste des fichiers d'extraction
|
|
public function historiqueAction(){}
|
|
|
|
public function resetAction()
|
|
{ $session = new Zend_Session_Namespace('ciblage');
|
|
unset($session->ciblage);
|
|
|
|
$this->_redirect('./');
|
|
}
|
|
|
|
public function criteresAction()
|
|
{
|
|
require_once 'Scores/SessionCiblage.php';
|
|
$session = new Zend_Session_Namespace('ciblage');
|
|
|
|
$nbCriteres = count($session->ciblage);
|
|
$this->view->count = (($nbCriteres == 0)?0:($nbCriteres - 2));
|
|
$this->view->entreprise = $session->ciblage;
|
|
}
|
|
|
|
}
|
|
|