diff --git a/application/Bootstrap.php b/application/Bootstrap.php index bd5497aa..6dd579a9 100644 --- a/application/Bootstrap.php +++ b/application/Bootstrap.php @@ -29,16 +29,15 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap ->appendStylesheet($pathStyle.'/jquery.qtip.css', 'all') ->appendStylesheet($pathStyle.'/main.css', 'all') ->appendStylesheet('/themes/jstree/default/style.css'); - $view->headScript() ->appendFile($pathScript.'/jquery.js', 'text/javascript') ->appendFile($pathScript.'/jquery.bgiframe.js', 'text/javascript') + ->appendFile($pathScript.'/jquery.cookie.js', 'text/javascript') ->appendFile($pathScript.'/jquery-ui.js', 'text/javascript') ->appendFile($pathScript.'/jquery.qtip.js', 'text/javascript') ->appendFile($pathScript.'/scripts.js', 'text/javascript'); - $view->headTitle()->setSeparator(' - '); $view->headTitle('Odea'); } diff --git a/application/controllers/ArborescenceController.php b/application/controllers/ArborescenceController.php new file mode 100644 index 00000000..800d006d --- /dev/null +++ b/application/controllers/ArborescenceController.php @@ -0,0 +1,97 @@ +_helper->layout()->disableLayout(); + + $this->view->inlineScript()->appendFile('/themes/default/scripts/jquery.jstree.js'); + + $request = $this->getRequest(); + $niveau = $request->getParam('niveau', 1); + + $nafM = new Application_Model_Naf(); + $sql = $nafM->select()->where('niveau = ?', $niveau)->order('code ASC'); + $result = $nafM->fetchAll($sql)->toArray(); + + $tabNaf = array(); + foreach($result as $item){ + $tabNaf[] = array( + 'data' => $item['code'].' - '.$item['lib'], + 'attr' => array('id' => $item['code'], 'niveau' => $item['niveau']), + 'state' => 'closed', + 'children' => array(), + ); + } + $this->view->assign('naf', json_encode($tabNaf)); + } + + public function nafajaxAction() + { + $this->_helper->layout()->disableLayout(); + $this->_helper->viewRenderer->setNoRender(); + + $request = $this->getRequest(); + $niveau = $request->getParam('niveau', 1); + $niveau++; + $parent = $request->getParam('parent', ''); + $nafM = new Application_Model_Naf(); + $sql = $nafM->select(); + if (!empty($parent) && $niveau==2) { + $sql->where('parent = ?', $parent); + } elseif (!empty($parent) && $niveau>2) { + $sql->where("code LIKE '".$parent."%'"); + } + $sql->where('niveau = ?', $niveau)->order('code ASC'); + + $result = $nafM->fetchAll($sql)->toArray(); + $tabNaf = array(); + foreach($result as $item){ + $naf = array( + 'data' => $item['code'].' - '.$item['lib'], + 'attr' => array('id' => $item['code'], 'niveau' => $item['niveau']), + ); + if ($niveau<5){ + $naf['state'] = 'closed'; + $naf['children'] = array(); + } + $tabNaf[] = $naf; + } + echo json_encode($tabNaf); + } + + + + /** + * + * Enter description here ... + */ + public function geographiqueAction() + { + $this->_helper->layout()->disableLayout(); + $this->view->inlineScript()->appendFile('/themes/default/scripts/jquery.jstree.js'); + + $regionsM = new Application_Model_Regions(); + //$sql = $regionsM->select(); + $this->view->assign('regions', $regionsM->fetchAll()->toArray()); + } + + /** + * + * Enter description here ... + */ + public function juridqueAction() + { + + } + + + + +} \ No newline at end of file diff --git a/application/controllers/CriteresController.php b/application/controllers/CriteresController.php index d599af78..ccec6b33 100644 --- a/application/controllers/CriteresController.php +++ b/application/controllers/CriteresController.php @@ -11,25 +11,7 @@ class CriteresController extends Zend_Controller_Action public function economiqueAction() { $this->_helper->layout()->disableLayout(); - $this->view->inlineScript()->appendFile('/themes/default/scripts/jquery.jstree.js'); - $request = $this->getRequest(); - $niveau = 1; - - $nafM = new Application_Model_Naf(); - $sql = $nafM->select()->where('niveau = ?', $niveau)->order('code ASC'); - $result = $nafM->fetchAll($sql)->toArray(); - - $tabNaf = array(); - foreach($result as $item){ - $tabNaf[] = array( - 'data' => $item['code'].' - '.$item['lib'], - 'attr' => array('id' => $item['code'], 'niveau' => $item['niveau']), - 'state' => 'closed', - 'children' => array(), - ); - } - $this->view->assign('naf', json_encode($tabNaf)); } public function nafAction() diff --git a/application/controllers/DashboardController.php b/application/controllers/DashboardController.php new file mode 100644 index 00000000..e67c208c --- /dev/null +++ b/application/controllers/DashboardController.php @@ -0,0 +1,8 @@ + +
Liste des NAF
+Liste des NAF
--Intervalle Effectif (Tranches ou Réel) - Entreprise, Etablissement \ No newline at end of file +Intervalle Effectif (Tranches ou Réel) - Entreprise, Etablissement +
Intervalle CA à l'export
ACTIF - PASSIF - COMPTE DE RESULTAT - ANNEXES
Ratios
-Scores (Risques de défaillance)
\ No newline at end of file +Scores (Risques de défaillance)
+ + \ No newline at end of file diff --git a/application/views/default/scripts/criteres/geographique.phtml b/application/views/default/scripts/criteres/geographique.phtml index 78a40e69..d997a0b1 100644 --- a/application/views/default/scripts/criteres/geographique.phtml +++ b/application/views/default/scripts/criteres/geographique.phtml @@ -18,27 +18,6 @@Sélection Interactive
-