probleme svn

This commit is contained in:
Damien LASSERRE 2012-04-12 08:07:35 +00:00
parent e6e169fbe7
commit 512abb9d38
4 changed files with 40 additions and 7 deletions

View File

@ -9,9 +9,7 @@ class ArborescenceController extends Libs_Controller
$request = $this->getRequest(); $request = $this->getRequest();
$key = $request->getParam('key'); $key = $request->getParam('key');
$object = new Object_Naf(); $object = new Object_Naf();
//Récupération des valeurs enregistrées en session
$this->view->key = $key; $this->view->key = $key;
$this->view->naf = $object->naf($request->getParam('niveau', 1), $key); $this->view->naf = $object->naf($request->getParam('niveau', 1), $key);
} }

View File

@ -16,7 +16,7 @@ class ComptageController extends Zend_Controller_Action
$object = new Object_Comptage(); $object = new Object_Comptage();
echo $object->count($request->getParam('cle'), $request->getParam('valeur')); echo $object->count($request->getParam('cle'), $request->getParam('valeur'));
} }
public function resetAction() public function resetAction()
{ {
require_once 'Scores/SessionCiblage.php'; require_once 'Scores/SessionCiblage.php';
@ -40,7 +40,7 @@ class ComptageController extends Zend_Controller_Action
$this->view->noSelection = true; $this->view->noSelection = true;
} }
} }
public function saveAction() public function saveAction()
{ {
$this->_helper->layout()->disableLayout(); $this->_helper->layout()->disableLayout();

View File

@ -152,7 +152,7 @@ class EnrichissementController extends Zend_Controller_Action
->where('login=?', $user->username) ->where('login=?', $user->username)
->where('actif=?', 1); ->where('actif=?', 1);
$profil = $profilsM->fetchRow($sql); $profil = $profilsM->fetchRow($sql);
//
if ($profil!==null) if ($profil!==null)
{ {
$this->view->assign('profil', true); $this->view->assign('profil', true);

View File

@ -8,7 +8,8 @@ class GestionController extends Zend_Controller_Action
public function init() public function init()
{ {
$this->view->headLink()->appendStylesheet('/themes/default/styles/dashboard.css', 'all'); $this->view->headLink()->appendStylesheet('/themes/default/styles/dashboard.css', 'all');
$this->view->headScript()->appendFile('/themes/default/scripts/dashboard.js', 'text/javascript');
} }
public function indexAction() public function indexAction()
@ -89,4 +90,38 @@ class GestionController extends Zend_Controller_Action
public function profildelAction(){} public function profildelAction(){}
public function comptagesAction()
{
$table = new Table_Comptages();
$sql = $table->select()
->order('dateAjout DESC');
$this->view->comptages = $table->fetchAll($sql)->toArray();
}
public function enrichissementsAction()
{
$table = new Table_EnrichissementIdentifiants();
$sql = $table->select()
->order('dateAdded DESC');
$this->view->enrichissements = $table->fetchAll($sql)->toArray();
}
public function extractAction()
{
$id = $this->getRequest()->getParam('id');
$table = new Table_EnrichissementIdentifiants();
$sql = $table->select()
->where('idComptage = ?', $id);
$result = $table->fetchRow($sql);
if(!empty($result)) {
$result = $result->toArray();
$sirets = json_decode($result['identifiants']);
foreach($sirets as $siret) {
echo $siret."\n";
}
}else {
echo 'Aucune commande d\'enrichissement sur ce comptage';
}
exit;
}
} }