* Copyright (C) 2024 Frédéric France * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ // Load Dolibarr environment require '../../../../main.inc.php'; /** * @var DoliDB $db * @var HookManager $hookmanager * @var Translate $langs * @var User $user */ // Protection if external user if ($user->socid > 0) { accessforbidden(); } // Includes require_once DOL_DOCUMENT_ROOT . '/admin/tools/ui/class/documentation.class.php'; require_once DOL_DOCUMENT_ROOT . '/core/class/html.form.class.php'; // Load documentation translations $langs->load('uxdocumentation'); // Hooks $hookmanager->initHooks(array('uidocumentation')); // $documentation = new Documentation($db); $form = new Form($db); $morejs = [ '/includes/ace/src/ace.js', '/includes/ace/src/ext-statusbar.js', '/includes/ace/src/ext-language_tools.js', ]; // Output html head + body - Param is Title $documentation->docHeader('Tables', $morejs); // Set view for menu and breadcrumb // Menu must be set in constructor of documentation class $documentation->view = array('Content','Tables'); // Output sidebar $documentation->showSidebar(); ?>
showBreadCrumb(); ?>

trans('DocTableTitle'); ?>

trans('DocTableMainDescription'); ?>

trans('DocTableMainDescriptionNote'); ?>

showSummary(); ?>

trans('DocTableBasic'); ?>

trans('DocTableBasicDescription'); ?>

trans('ProductRef'); ?> trans('Qty'); ?> trans('AmountHT'); ?> trans('TotalHT'); ?>
My Product A 13
My Product B 21
My Product C 7
Total 41 --
', '', ' ', ' ', ' ', ' trans(\'ProductRef\'); ?>', ' trans(\'Qty\'); ?>', ' trans(\'AmountHT\'); ?>', ' trans(\'TotalHT\'); ?>', ' ', ' ', '', ' ', ' ', ' ', ' My Product A', ' 13', ' 9,99 €', ' 129,87 €', ' ', ' ', ' My Product B', ' 21', ' 13,37 €', ' 280,77 €', ' ', ' ', '', ' ', ' ', ' ', ' Total', ' 58', ' --', ' 1178,87 €', ' ', ' ', '', '', ); echo $documentation->showCode($lines, 'php'); ?>

trans('DocTableWithFilters'); ?>

trans('DocTableWithFiltersDescription', dol_buildpath('admin/tools/ui/components/inputs.php', 1)); ?>

First Name Last Name Age Country
John Doe 37 U.S.A
Jack Sparrow 29 Caribbean
Sacha Ketchum 16 Kanto
Albert Einstein 72 Germany
', '', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '
', '
', ' ', ' ', '
', '
', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '
', '', ); echo $documentation->showCode($lines); ?>

trans('DocTableBeforeFilters'); ?>

trans('DocTableBeforeFiltersDescription'); ?>

selectarray('myselectbeforefilter', array('ValueFilterA', 'ValueFilterB', 'ValueFilterC'), '', 1); ?>
First Name Last Name Age Country
John Doe 37 U.S.A
Jack Sparrow 29 Caribbean
Sacha Ketchum 16 Kanto
Albert Einstein 72 Germany
', '
', ' ', ' ', ' ', '
', '
', '', ' ', ' ', ' ', ' ', '
', ); echo $documentation->showCode($lines); ?>

trans('DocTableCSSClass'); ?>

transnoentities('DocTableCSSClassDescription'); ?>

transnoentities('DocTableTABLECSSClassDescription'); ?>

  • transnoentities('DocTableCSSClass_tagtable'); ?>
  • transnoentities('DocTableCSSClass_liste'); ?>
  • transnoentities('DocTableCSSClass_listwithfilterbefore'); ?>

transnoentities('DocTableTRCSSClassDescription'); ?>

  • transnoentities('DocTableCSSClass_liste_titre'); ?>
  • transnoentities('DocTableCSSClass_liste_titre_filter'); ?>
  • transnoentities('DocTableCSSClass_liste_total'); ?>
  • transnoentities('DocTableCSSClass_oddeven'); ?>
docFooter(); ?>