diff --git a/application/controllers/AccountController.php b/application/controllers/AccountController.php index d2fd6a88b..4e1510e6d 100644 --- a/application/controllers/AccountController.php +++ b/application/controllers/AccountController.php @@ -1,6 +1,18 @@ utilisateurs, consommation, contrats */ public function clientAction() @@ -22,8 +34,35 @@ class AccountController extends Zend_Controller_Action /** * Fiche du service */ - public function serviceAction(){} - public function consoAction(){} - public function usersAction(){} - public function userAction(){} + public function serviceAction() + { + + } + + /** + * Tableau des consommations par rapport aux paramètres contrat + * Calculé tout les J-1 au service + */ + public function consoAction() + { + + } + + /** + * Liste des utilisateurs + */ + public function usersAction() + { + + } + + /** + * Fiche d'un utilisateur pour edition + */ + public function userAction() + { + + + } + } \ No newline at end of file diff --git a/application/controllers/AuthController.php b/application/controllers/AuthController.php index bca1f3253..1db274ba4 100644 --- a/application/controllers/AuthController.php +++ b/application/controllers/AuthController.php @@ -7,7 +7,7 @@ class AuthController extends Zend_Controller_Action 'clientId' => 195, 'serviceCode' => 'SSO', 'authType' => 'userSSO', - 'login' => 'MAIL', + 'login' => 'mail', 'token' => 'token', ) ); @@ -64,10 +64,10 @@ class AuthController extends Zend_Controller_Action // --- Set form value $this->view->FormPartner = $partner; $this->view->FormIdentifiant = $login; - $this->view->FormCourriel = $request->getParam('MAIL'); - $this->view->FormSiret = $request->getParam('SIRET'); - $this->view->FormNom = $request->getParam('LASTNAME'); - $this->view->FormPrenom = $request->getParam('FIRSTNAME'); + $this->view->FormCourriel = $request->getParam('mail'); + $this->view->FormSiret = $request->getParam('siret'); + $this->view->FormNom = $request->getParam('lastname'); + $this->view->FormPrenom = $request->getParam('name'); } // --- Redirection else { diff --git a/application/controllers/DashboardController.php b/application/controllers/DashboardController.php index 87e7989ac..6a7ad2364 100644 --- a/application/controllers/DashboardController.php +++ b/application/controllers/DashboardController.php @@ -634,7 +634,7 @@ class DashboardController extends Zend_Controller_Action $ws = new WsScores(); $reponse = $ws->setClient($infos); if ($reponse->error->errnum==1) { - $this->_forward('client', 'dashboard', null, array('idClient' => $infos['idClient'])); + $this->forward('client', 'dashboard', null, array('idClient' => $infos['idClient'])); } $this->view->assign('infos', $request->getParams()); } diff --git a/application/controllers/EvaluationController.php b/application/controllers/EvaluationController.php index 2bcd4e2f6..42ae191f8 100644 --- a/application/controllers/EvaluationController.php +++ b/application/controllers/EvaluationController.php @@ -83,15 +83,15 @@ class EvaluationController extends Zend_Controller_Action ); $bornes = array( - 'indiScore' => array('min'=>0, 'max'=>20, 'rouge'=>8, 'orange'=>12), - 'scoreDir' => array('min'=>0, 'max'=>100, 'rouge'=>45, 'orange'=>56), - 'scoreConf' => array('min'=>0, 'max'=>100, 'rouge'=>45, 'orange'=>56), - 'scoreZ' => array('min'=>-3, 'max'=>3, 'rouge'=>-0.25, 'orange'=>0.125), - 'scoreCH' => array('min'=>-4.5,'max'=>16, 'rouge'=>3.75, 'orange'=>10), - 'scoreAfdcc1' => array('min'=>-7, 'max'=>7, 'rouge'=>0, 'orange'=>1), - 'scoreAfdcc2' => array('min'=>-3, 'max'=>2, 'rouge'=>-1, 'orange'=>0.5), - 'scoreAltman' => array('min'=>-2, 'max'=>8, 'rouge'=>0, 'orange'=>2.7), - 'scoreCCF' => array('min'=>500,'max'=>5000,'rouge'=>2160, 'orange'=>3450 ), + 'indiScore' => array('min' => 0, 'max' => 20, 'rouge' => 7, 'orange' => 10), + 'scoreDir' => array('min' => 0, 'max' => 100, 'rouge' => 45, 'orange' => 56), + 'scoreConf' => array('min' => 0, 'max' => 100, 'rouge' => 45, 'orange' => 56), + 'scoreZ' => array('min' => -3, 'max' => 3, 'rouge' => -0.25, 'orange' => 0.125), + 'scoreCH' => array('min' => -4.5, 'max' => 16, 'rouge' => 3.75, 'orange' => 10), + 'scoreAfdcc1' => array('min' => -7, 'max' => 7, 'rouge' => 0, 'orange' => 1), + 'scoreAfdcc2' => array('min' => -3, 'max' => 2, 'rouge' => -1, 'orange' => 0.5), + 'scoreAltman' => array('min' => -2, 'max' => 8, 'rouge' => 0, 'orange' => 2.7), + 'scoreCCF' => array('min' => 500, 'max' => 5000, 'rouge' => 2160, 'orange' => 3450 ), ); $request = $this->getRequest(); diff --git a/application/controllers/SurveillanceController.php b/application/controllers/SurveillanceController.php index eb7e82179..32712a4e2 100644 --- a/application/controllers/SurveillanceController.php +++ b/application/controllers/SurveillanceController.php @@ -192,7 +192,7 @@ class SurveillanceController extends Zend_Controller_Action $this->_helper->layout->disableLayout(); $this->_forward('ajouter', 'surveillance', null, array( 'source' => 'score' )); } - + /** * Affiche les infos d'une surveillance */ @@ -210,8 +210,6 @@ class SurveillanceController extends Zend_Controller_Action $user = new Scores_Utilisateur(); - //if ($user->checkPerm()) - $listSurv = array(); if (intval($siret)!=0) @@ -422,16 +420,11 @@ class SurveillanceController extends Zend_Controller_Action public function portefeuilleAction() { $user = new Scores_Utilisateur(); - if(!$user->checkPerm('portefeuille')){ + if( !$user->checkPerm('portefeuille') ) { $this->_forward('perms', 'error'); } - - $this->view->headLink() - ->appendStylesheet('/libs/tablesorter/themes/blue/style.css', 'all'); - - $this->view->headScript() - ->appendFile('/libs/tablesorter/jquery.tablesorter.js', 'text/javascript') - ->appendFile('/themes/default/scripts/surveillance.js', 'text/javascript'); + + $this->view->headScript()->appendFile('/themes/default/scripts/surveillance.js', 'text/javascript'); $request = $this->getRequest(); @@ -482,15 +475,15 @@ class SurveillanceController extends Zend_Controller_Action ); $couleurRisque100 = array( - 'rouge' => array('min'=>0, 'max'=>40), + 'rouge' => array('min'=>0, 'max'=>40), 'orange' => array('min'=>41, 'max'=>50), - 'vert' => array('min'=>51, 'max'=>100), + 'vert' => array('min'=>51, 'max'=>100), ); $couleurRisque20 = array( - 'rouge' => array('min'=>0, 'max'=>6), + 'rouge' => array('min'=>0, 'max'=>6), 'orange' => array('min'=>7, 'max'=>10), - 'vert' => array('min'=>11, 'max'=>20), + 'vert' => array('min'=>11, 'max'=>20), ); $ws = new WsScores(); diff --git a/application/controllers/UserController.php b/application/controllers/UserController.php index 6aa4be20c..dae7b78b7 100644 --- a/application/controllers/UserController.php +++ b/application/controllers/UserController.php @@ -36,14 +36,20 @@ class UserController extends Zend_Controller_Action */ public function indexAction() { - $this->view->headLink()->appendStylesheet('/themes/default/styles/user.css', 'all'); - $user = new Scores_Utilisateur(); - - if (!$user->checkPerm('MONPROFIL')){ - $this->_forward('perms', 'error'); + + // --- Redirection vers l'authentification v2 + if ($user->getVersion() == 2) { + $this->redirect('/account/index'); + } + + // @todo : transformer en affichage simple pour les utilisateurs + if ( !$user->checkPerm('MONPROFIL') ){ + $this->forward('perms', 'error'); } + $this->view->headLink()->appendStylesheet('/themes/default/styles/user.css', 'all'); + $this->view->assign('device_type', $user->getBrowserInfo()->mobile); $this->view->assign('browser_info', $user->getBrowserInfo()->name.' '.$user->getBrowserInfo()->version); diff --git a/application/views/default2015/scripts/account/client.phtml b/application/views/default2015/scripts/account/client.phtml new file mode 100644 index 000000000..b3d9bbc7f --- /dev/null +++ b/application/views/default2015/scripts/account/client.phtml @@ -0,0 +1 @@ + -table { width:100%; } -table th { border:1px solid; font-weight:bold; padding:5px; } -table tr { } -table td { border:1px solid; padding:5px; } - -
Date | -Intitulé | -Catégorie | +Intitulé | +Catégorie |
---|---|---|---|---|
=substr($nouveau->date,8,2).'/'.substr($nouveau->date,5,2).'/'.substr($nouveau->date,0,4)?> | - url(array('controller'=>'fichier', 'action'=>'new', 'fichier'=>$nouveau->fichier))?>" target="_blank"> =$nouveau->intitule?> - | -=$nouveau->categorie?> | + +=$nouveau->categorie?> |
" href="=$href?>">=$etab->Nic?> | -=$type?> | +=$type?> |
Enseigne!='') {
@@ -133,6 +133,4 @@
AutrePage) ) {?>
=$this->render('cgu.phtml', $this->cgu)?>
-
-
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/application/views/default2015/scripts/identite/evenements.phtml b/application/views/default2015/scripts/identite/evenements.phtml
index 2eac93f7b..7dc3a24a9 100644
--- a/application/views/default2015/scripts/identite/evenements.phtml
+++ b/application/views/default2015/scripts/identite/evenements.phtml
@@ -1,29 +1,15 @@
-AutrePage) ) {?>
-
-
- LISTE DES ÉVÉNEMENTS-
-
LISTE DES ÉVÉNEMENTS
+
+Numéro identifiant Siren =$this->SirenTexte($this->siren)?>
+
+
-Dénomination Sociale =$this->raisonSociale?>
Événements INSEE+Événements INSEE
@@ -46,8 +32,7 @@ Liste des événements uniquement sur l'établissement =$this->Nic?>.
evens)==0 ) { ?>
Aucun évènement n'est présent dans notre base
-
-
@@ -103,5 +87,4 @@ Liste des événements uniquement sur l'établissement =$this->Nic?>.
AutrePage) ) {?>
=$this->render('cgu.phtml', $this->cgu)?>
-
\ No newline at end of file
diff --git a/application/views/default2015/scripts/identite/fiche-item.phtml b/application/views/default2015/scripts/identite/fiche-item.phtml
index 6571d253c..cb9cdc61f 100644
--- a/application/views/default2015/scripts/identite/fiche-item.phtml
+++ b/application/views/default2015/scripts/identite/fiche-item.phtml
@@ -1,18 +1,18 @@
texte ) {?>
-
- aide) ) {?>
-
- |
-
- =$this->label?> |
-
+
+
+
+ titre)) {
$titre = ' title="'.$this->titre.'"';
} else {
$titre = '';
}
?>
- =$this->label?> +>=$this->texte?> |
->
+
+
\ No newline at end of file
diff --git a/application/views/default2015/scripts/identite/fiche.phtml b/application/views/default2015/scripts/identite/fiche.phtml
index 12c17d56b..ef2a0c4d9 100644
--- a/application/views/default2015/scripts/identite/fiche.phtml
+++ b/application/views/default2015/scripts/identite/fiche.phtml
@@ -1,10 +1,6 @@
-AutrePage) ) {?>
-=$this->texte?> +
-
-
message ) {?>
- Informations+Informations@@ -16,15 +12,6 @@ AutrePage) ) {?> -
- dateDerMaj)) { ?>
-
- =$this->translate("Dernière mise à jour le")?> =$this->dateDerMaj?>
- =$this->datemajTexte?>
-
-
-
-
surveillance) ) {?>
action('infos','surveillance', null, array('siret' => $this->siret))?>
@@ -34,11 +21,18 @@
AutrePage) ) {?>
- =$this->translate("FICHE D'IDENTITÉ");?>+ +dateDerMaj)) { ?> +
+
+ =$this->translate("Dernière mise à jour le")?> =$this->dateDerMaj?>
+ =$this->datemajTexte?>
+
+
-
-
\ No newline at end of file
diff --git a/application/views/default2015/scripts/identite/geo.phtml b/application/views/default2015/scripts/identite/geo.phtml
index b528bccb7..78cc3ed7e 100644
--- a/application/views/default2015/scripts/identite/geo.phtml
+++ b/application/views/default2015/scripts/identite/geo.phtml
@@ -1,8 +1,8 @@
-
+
-=$this->translate("Dénomination sociale & Coordonnées")?>=$this->translate("Dénomination sociale & Coordonnées")?>-
-
AutrePage) && $this->accessWorldCheck) { ?>
-
-surveillance) ) {?>
-
+
-
-=$this->translate("Activité(s) & Chiffre d'affaires")?>-
-
AutrePage) ) {?>
@@ -148,20 +135,10 @@ echo $this->partial('identite/fiche-item.phtml', $this->dBlock['EffectifEtab']);
Actualités de la société =$this->raisonSociale?> sur le Web
-=$surveillances?>
-
-
-
AutrePage) ) {?>
=$this->render('cgu.phtml', $this->cgu)?>
-
-
-AutrePage) ) {?>
-Localisation géographique-
-
-
- infos->GeoLat && $this->infos->GeoLon ):?>
+
\ No newline at end of file
diff --git a/application/views/default2015/scripts/identite/streetview.phtml b/application/views/default2015/scripts/identite/streetview.phtml
index 389ed8570..0c4b900da 100644
--- a/application/views/default2015/scripts/identite/streetview.phtml
+++ b/application/views/default2015/scripts/identite/streetview.phtml
@@ -1,7 +1,7 @@
url) {?>
-Localisation géographique
+
+
+ infos->GeoLat && $this->infos->GeoLon ) {?>
Information géographique :
+ Latitude : =$this->decLat?> (=$this->infos->GeoLat?>) @@ -11,58 +11,58 @@ Afficher l'adresse sur Google Map © - + Code commune / Rivoli : - =$this->infos->Dept.' '.$this->infos->codeCommune.' / '.$this->infos->Rivoli; ?> + =$this->infos->Dept.' '.$this->infos->codeCommune.' / '.$this->infos->Rivoli; ?> + infos->InfosIris)>0){?> infos->InfosIris)>0){ - $InfosIris = $this->infos->InfosIris; - $codComIris = str_replace($InfosIris->codIris, '', $InfosIris->codComIris); - ?> - Iris : - codIris) == 0){ ?> - Commune non découpée en Iris - - Code : =$codComIris?> =$InfosIris->codIris?> - Libellé : =$InfosIris->libIris?> - - - + $InfosIris = $this->infos->InfosIris; + $codComIris = str_replace($InfosIris->codIris, '', $InfosIris->codComIris); + ?> + Iris : + codIris) == 0){ ?> + Commune non découpée en Iris + + Code : =$codComIris?> =$InfosIris->codIris?> + Libellé : =$InfosIris->libIris?> + + + + +
+
+ source == 'google') {?>
+
+
-
- source == 'google') {?>
-
-
+ =$this->action('streetview', 'identite', null, array('infos' => $this->infos));?>
+
+
+ source == 'mappy') {?>
+
+
+
+
+
+
+
- =$this->action('streetview', 'identite', null, array(
- 'infos' => $this->infos,
- ));?>
-
-
- source == 'mappy') {?>
-
-
-
-
-
-
-
-Cliché à l'approche de l'adresse postale.
+Cliché à l'approche de l'adresse postale.
streetviewMode == 'gps') {?>
diff --git a/application/views/default2015/scripts/layout.phtml b/application/views/default2015/scripts/layout.phtml
index f15bb09e6..f7ea5ec8b 100644
--- a/application/views/default2015/scripts/layout.phtml
+++ b/application/views/default2015/scripts/layout.phtml
@@ -9,20 +9,29 @@
+
-
-
+
+
+
inlineScript()?>
-
+
-
- layout()->content?>
-
+
+
-
+
+
+
+
+ render('menu.phtml')?>
+
+
+ layout()->content?>
+
+
|