From b35b5c7329e6ac800d59c104b9c29dd4b12deb4b Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Tue, 29 Sep 2015 16:59:45 +0000 Subject: [PATCH] Definition architecture --- application/configs/menu.config.php | 27 +++- application/controllers/FileController.php | 8 + application/controllers/IndexController.php | 14 +- application/controllers/PrestaController.php | 8 + application/views/header.phtml | 8 +- application/views/helpers/FileSize.php | 14 ++ application/views/helpers/ProfileLink.php | 17 ++ application/views/scripts/index/index.phtml | 7 +- .../views/{ => scripts}/user/login.phtml | 2 +- .../views/{ => scripts}/user/logout.phtml | 0 composer.json | 2 +- composer.lock | 66 ++++++++ .../Application/Controller/Plugin/Auth.php | 79 ++------- .../Application/Controller/Plugin/Menu.php | 24 +++ .../Application/Model/Sdv1ClientsPresta.php | 6 + .../Application/Model/Sdv1Utilisateurs.php | 13 ++ .../Model/WebfilerPrestaDetail.php | 4 + .../Application/Model/WebfilerPrestaFiles.php | 4 + .../Application/Model/WebfilerPrestaLogin.php | 4 + .../Model/WebfilerPrestaManual.php | 4 + library/Application/Model/WebfilerUser.php | 4 + library/Scores/Auth/Adapter/Webfiler.php | 72 +++++++++ public/index.php | 32 +--- public/themes/default/css/main.css | 56 +++++++ public/themes/default/css/signin.css | 73 +++++++++ scripts/jobs/file.php | 1 - scripts/jobs/integrate.php | 150 ++++++++++++++++++ 27 files changed, 593 insertions(+), 106 deletions(-) create mode 100644 application/controllers/FileController.php create mode 100644 application/controllers/PrestaController.php create mode 100644 application/views/helpers/FileSize.php create mode 100644 application/views/helpers/ProfileLink.php rename application/views/{ => scripts}/user/login.phtml (93%) rename application/views/{ => scripts}/user/logout.phtml (100%) create mode 100644 composer.lock create mode 100644 library/Application/Controller/Plugin/Menu.php create mode 100644 library/Application/Model/Sdv1ClientsPresta.php create mode 100644 library/Application/Model/Sdv1Utilisateurs.php create mode 100644 library/Scores/Auth/Adapter/Webfiler.php create mode 100644 public/themes/default/css/main.css create mode 100644 public/themes/default/css/signin.css delete mode 100644 scripts/jobs/file.php create mode 100644 scripts/jobs/integrate.php diff --git a/application/configs/menu.config.php b/application/configs/menu.config.php index 634c0e7..37246ab 100644 --- a/application/configs/menu.config.php +++ b/application/configs/menu.config.php @@ -1,4 +1,29 @@ "Prestations", + 'title' => "", + 'controller' => 'index', + 'action' => 'index', + 'pages' => array( + array( + 'label' => "Résumé", + 'title' => 'Listes de vos prestations', + 'controller' => 'presta', + 'action' => 'index', + ), + array( + 'label' => "Fichiers", + 'title' => 'Listes de vos fichiers', + 'controller' => 'presta', + 'action' => 'files', + ), + ), + ), + array( + 'label'=> "Contact", + 'title' => "Contact", + 'controller' => 'contact', + 'action' => 'index', + ), ); \ No newline at end of file diff --git a/application/controllers/FileController.php b/application/controllers/FileController.php new file mode 100644 index 0000000..c80bd49 --- /dev/null +++ b/application/controllers/FileController.php @@ -0,0 +1,8 @@ + - Backoffice + WebFiler \ No newline at end of file diff --git a/application/views/user/login.phtml b/application/views/scripts/user/login.phtml similarity index 93% rename from application/views/user/login.phtml rename to application/views/scripts/user/login.phtml index 5ac7035..a265214 100644 --- a/application/views/user/login.phtml +++ b/application/views/scripts/user/login.phtml @@ -13,7 +13,7 @@