43 lines
1.4 KiB
PHP
43 lines
1.4 KiB
PHP
<?php
|
|
class CriteresController extends Zend_Controller_Action
|
|
{
|
|
public function init()
|
|
{
|
|
$auth = Zend_Auth::getInstance();
|
|
$user = $auth->getIdentity();
|
|
$field = new Fields($user->username);
|
|
$this->view->fields = $field;
|
|
$this->view->headScript()->appendFile('/themes/default/scripts/jquery.jstree.js', 'text/javascript');
|
|
}
|
|
|
|
public function indexAction()
|
|
{
|
|
$auth = Zend_Auth::getInstance();
|
|
$user = $auth->getIdentity();
|
|
if ($user->customisation) {
|
|
$this->view->assign('preferences', $user->customisation);
|
|
}
|
|
}
|
|
|
|
public function entrepriseAction(){
|
|
$this->view->headLink()->appendStylesheet('/themes/default/styles/criteres/'.$this->getRequest()->getActionName().'.css', 'all');
|
|
}
|
|
|
|
public function economiqueAction(){
|
|
$this->view->headLink()->appendStylesheet('/themes/default/styles/criteres/'.$this->getRequest()->getActionName().'.css', 'all');
|
|
}
|
|
|
|
public function geographiqueAction(){
|
|
$this->view->headLink()->appendStylesheet('/themes/default/styles/criteres/'.$this->getRequest()->getActionName().'.css', 'all');
|
|
}
|
|
|
|
public function juridiqueAction(){
|
|
$this->view->headLink()->appendStylesheet('/themes/default/styles/criteres/'.$this->getRequest()->getActionName().'.css', 'all');
|
|
}
|
|
|
|
public function financiereAction(){
|
|
$this->view->headLink()->appendStylesheet('/themes/default/styles/criteres/'.$this->getRequest()->getActionName().'.css', 'all');
|
|
}
|
|
|
|
}
|