Modification pour la suppression du critère
This commit is contained in:
parent
1d261f6c7f
commit
66d8069d91
@ -34,15 +34,21 @@ Class IndexController extends Zend_Controller_Action
|
|||||||
{
|
{
|
||||||
$this->_helper->layout()->disableLayout();
|
$this->_helper->layout()->disableLayout();
|
||||||
|
|
||||||
|
$nameCritereToDelete = $this->getRequest()->getParam('critere');
|
||||||
|
|
||||||
$fields = new Scores_Fields();
|
$fields = new Scores_Fields();
|
||||||
$fields->unsetCritere($this->getRequest()->getParam('critere'));
|
$fields->unsetCritere($nameCritereToDelete);
|
||||||
|
|
||||||
|
//Comptage
|
||||||
|
require_once 'Scores/Ciblage.php';
|
||||||
|
$ciblage = new Ciblage($fields->getValues());
|
||||||
|
|
||||||
|
$total = $ciblage->execute();
|
||||||
|
$insee = $ciblage->calculRedevanceInsee();
|
||||||
|
|
||||||
|
$fields->setNb('total', $total);
|
||||||
|
$fields->setNb('insee', $insee);
|
||||||
|
|
||||||
$objet = new Object_Comptage();
|
|
||||||
$objet->count(null, null);
|
|
||||||
$this->_redirect('/');
|
$this->_redirect('/');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user