Gestion des entier avec les dates intval( quand le champs est un champ date...)

This commit is contained in:
Damien LASSERRE 2011-12-15 09:47:56 +00:00
parent dfee76ae12
commit 48a54afe3b

View File

@ -8,8 +8,18 @@ class ComptageController extends Zend_Controller_Action
$request = $this->getRequest();
$key = $request->getParam('cle');
$value = $request->getParam('valeur');
switch($key) {
case 'dateCrea_etab':
case 'dateCrea_ent':
case 'dateImmat':
$value = intval($request->getParam('valeur'));
break;
default:
$value = $request->getParam('valeur');
break;
}
//Session
require_once 'Scores/SessionCiblage.php';
$session = new SessionCiblage();
@ -17,7 +27,6 @@ class ComptageController extends Zend_Controller_Action
//Comptage
require_once 'Scores/Ciblage.php';
$ciblage = new Ciblage($session->getSession());
$total = $ciblage->execute();
$insee = $ciblage->calculeRedevanceInsee();