From 67707f36ede257f2a250a4f1a8d84ca9602fa577 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Sun, 16 Aug 2020 10:43:09 +0200 Subject: [PATCH] Page de configuration du mode de recherche --- module/search/search.php | 13 ++++++++++++- module/search/view/config/config.css | 16 ++++++++++++++++ module/search/view/config/config.php | 15 +++++++++++++++ 3 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 module/search/view/config/config.css create mode 100644 module/search/view/config/config.php diff --git a/module/search/search.php b/module/search/search.php index f384c452..cd23bf5b 100755 --- a/module/search/search.php +++ b/module/search/search.php @@ -20,7 +20,8 @@ class search extends common { public static $actions = [ - 'index' => self::GROUP_VISITOR + 'index' => self::GROUP_VISITOR, + 'config' => self::GROUP_MODERATOR ]; public static $resultList = ''; @@ -35,6 +36,16 @@ class search extends common { const SEARCH_VERSION = '1.1'; + // Configuration vide + public function config() { + // Valeurs en sortie, affichage du formulaire + $this->addOutput([ + 'view' => 'config', + 'showBarEditButton' => true, + 'showPageContent' => true + ]); + + } public function index() { if($this->isPost()) { diff --git a/module/search/view/config/config.css b/module/search/view/config/config.css new file mode 100644 index 00000000..8e5c351d --- /dev/null +++ b/module/search/view/config/config.css @@ -0,0 +1,16 @@ +/** + * This file is part of Zwii. + * + * For full copyright and license information, please see the LICENSE + * file that was distributed with this source code. + * + * @author Rémi Jean + * @copyright Copyright (C) 2008-2018, Rémi Jean + * @author Frédéric Tempez + * @copyright Copyright (C) 2018-2020, Frédéric Tempez + * @license GNU General Public License, version 3 + * @link http://zwiicms.com/ + */ + + + @import url("site/data/admin.css"); \ No newline at end of file diff --git a/module/search/view/config/config.php b/module/search/view/config/config.php new file mode 100644 index 00000000..974a2f45 --- /dev/null +++ b/module/search/view/config/config.php @@ -0,0 +1,15 @@ +
+
+ 'buttonGrey', + 'href' => helper::baseUrl() . 'page/edit/' . $this->getUrl(0), + 'ico' => 'left', + 'value' => 'Retour' + ]); ?> +
+
+
+
+

Aucun paramètre de configuration

+
+
\ No newline at end of file