21require
'../../../../main.inc.php';
31if ($user->socid > 0) {
36require_once DOL_DOCUMENT_ROOT .
'/admin/tools/ui/class/documentation.class.php';
39$langs->load(
'uxdocumentation');
42$hookmanager->initHooks(array(
'uidocumentation'));
48$documentation->docHeader(
'Tables');
52$documentation->view = array(
'Content',
'Tables');
55$documentation->showSidebar(); ?>
57<div
class=
"doc-wrapper">
59 <?php $documentation->showBreadCrumb(); ?>
61 <div
class=
"doc-content-wrapper">
63 <h1
class=
"documentation-title"><?php echo $langs->trans(
'DocTableTitle'); ?></h1>
64 <p
class=
"documentation-text"><?php echo $langs->trans(
'Description'); ?></p>
67 <?php $documentation->showSummary(); ?>
70 <div
class=
"documentation-section" id=
"tablesection-basicusage">
72 <h2
class=
"documentation-title">Table with a title line</h2>
74 <p
class=
"documentation-text"><?php echo $langs->trans(
'DocTableBasicDescription'); ?></p>
75 <div
class=
"documentation-example">
76 <div
class=
"div-table-responsive">
77 <
table class=
"tagtable noborder liste nobottomiftotal">
78 <tr
class=
"liste_titre">
79 <th
class=
"wrapcolumntitle left liste_titre" title=
"First Name">First Name</th>
80 <th
class=
"wrapcolumntitle left liste_titre" title=
"Last Name">Last Name</th>
81 <th
class=
"wrapcolumntitle center liste_titre" title=
"Age">Age</th>
82 <th
class=
"wrapcolumntitle right liste_titre" title=
"Country">Country</th>
85 <td
class=
"left">John</td>
86 <td
class=
"left">Doe</td>
87 <td
class=
"center">37</td>
88 <td
class=
"right">U.S.A</td>
91 <td
class=
"left">Jack</td>
92 <td
class=
"left">Sparrow</td>
93 <td
class=
"center">29</td>
94 <td
class=
"right">Caribbean</td>
97 <td
class=
"left">Sacha</td>
98 <td
class=
"left">Ketchum</td>
99 <td
class=
"center">16</td>
100 <td
class=
"right">Kanto</td>
103 <td
class=
"left">Albert</td>
104 <td
class=
"left">Einstein</td>
105 <td
class=
"center">72</td>
106 <td
class=
"right">Germany</td>
114 echo $documentation->showCode($lines); ?>
117 <!-- Table with filters -->
118 <div
class=
"documentation-section" id=
"tablesection-withfilters">
120 <h2
class=
"documentation-title">Table with a filter line and title line</h2>
122 <p
class=
"documentation-text"><?php echo $langs->trans(
'DocTableWithFiltersDescription'); ?></p>
123 <div
class=
"documentation-example">
124 <div
class=
"div-table-responsive">
125 <
table class=
"tagtable noborder nobottomiftotal liste">
126 <tr
class=
"liste_titre_filter">
132 <tr
class=
"liste_titre">
133 <th
class=
"wrapcolumntitle left liste_titre" title=
"First Name">First Name</th>
134 <th
class=
"wrapcolumntitle left liste_titre" title=
"Last Name">Last Name</th>
135 <th
class=
"wrapcolumntitle center liste_titre" title=
"Age">Age</th>
136 <th
class=
"wrapcolumntitle right liste_titre" title=
"Country">Country</th>
139 <td
class=
"left">John</td>
140 <td
class=
"left">Doe</td>
141 <td
class=
"center">37</td>
142 <td
class=
"right">U.S.A</td>
145 <td
class=
"left">Jack</td>
146 <td
class=
"left">Sparrow</td>
147 <td
class=
"center">29</td>
148 <td
class=
"right">Caribbean</td>
151 <td
class=
"left">Sacha</td>
152 <td
class=
"left">Ketchum</td>
153 <td
class=
"center">16</td>
154 <td
class=
"right">Kanto</td>
157 <td
class=
"left">Albert</td>
158 <td
class=
"left">Einstein</td>
159 <td
class=
"center">72</td>
160 <td
class=
"right">Germany</td>
168 echo $documentation->showCode($lines); ?>
172 <!-- Table with no filter and no title line -->
173 <div
class=
"documentation-section" id=
"tablesection-withfilters">
175 <h2
class=
"documentation-title">Table with no filter, no title line</h2>
177 <p
class=
"documentation-text"><?php echo $langs->trans(
'Description'); ?></p>
178 <div
class=
"documentation-example">
179 <div
class=
"div-table-responsive">
180 <
table class=
"tagtable noborder nobottomiftotal liste">
181 <tr
class=
"oddeven trfirstline">
182 <td
class=
"left">John</td>
183 <td
class=
"left">Doe</td>
184 <td
class=
"center">37</td>
185 <td
class=
"right">U.S.A</td>
188 <td
class=
"left">Jack</td>
189 <td
class=
"left">Sparrow</td>
190 <td
class=
"center">29</td>
191 <td
class=
"right">Caribbean</td>
194 <td
class=
"left">Sacha</td>
195 <td
class=
"left">Ketchum</td>
196 <td
class=
"center">16</td>
197 <td
class=
"right">Kanto</td>
199 <tr
class=
"oddeven trlastline">
200 <td
class=
"left">Albert</td>
201 <td
class=
"left">Einstein</td>
202 <td
class=
"center">72</td>
203 <td
class=
"right">Germany</td>
211 echo $documentation->showCode($lines); ?>
220$documentation->docFooter();
Class to manage UI documentation.
treeview li table
No Email.
usage($program, $header)
Print the usage when executing scripts from install/.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.