dolibarr 21.0.0-beta
index.php
1<?php
2/*
3 * Copyright (C) 2024 Anthony Damhet <a.damhet@progiseize.fr>
4 * Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <https://www.gnu.org/licenses/>.
18 */
19
20// Load Dolibarr environment
21require '../../../../main.inc.php';
22
30// Protection if external user
31if ($user->socid > 0) {
33}
34
35// Includes
36require_once DOL_DOCUMENT_ROOT . '/admin/tools/ui/class/documentation.class.php';
37
38// Load documentation translations
39$langs->load('uxdocumentation');
40
41//
42$documentation = new Documentation($db);
43
44// Output html head + body - Param is Title
45$documentation->docHeader();
46
47// Set view for menu and breadcrumb
48$documentation->view = array('Components');
49
50// Output sidebar
51$documentation->showSidebar(); ?>
52
53<div class="doc-wrapper">
54
55 <?php $documentation->showBreadCrumb(); ?>
56
57 <div class="doc-content-wrapper">
58
59 <h1 class="documentation-title"><?php echo $langs->trans('DocComponentsTitle'); ?></h1>
60 <p class="documentation-text"><?php echo $langs->trans('DocComponentsMainDescription'); ?></p>
61
62 <?php $documentation->showSummary(); ?>
63 </div>
64
65</div>
66<?php
67// Output close body + html
68$documentation->docFooter();
69?>
Class to manage UI documentation.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.