21if (! $res && file_exists(
"../../main.inc.php")) {
22 $res=@include
'../../main.inc.php';
24if (! $res && file_exists(
"../../../main.inc.php")) {
25 $res=@include
'../../../main.inc.php';
27if (! $res && file_exists(
"../../../../main.inc.php")) {
28 $res=@include
'../../../../main.inc.php';
32if ($user->socid > 0) {
40$langs->load(
'uxdocumentation');
43$hookmanager->initHooks(array(
'uidocumentation'));
49$documentation->docHeader(
'Tables');
53$documentation->view = array(
'Content',
'Tables');
56$documentation->showSidebar(); ?>
58<div
class=
"doc-wrapper">
60 <?php $documentation->showBreadCrumb(); ?>
62 <div
class=
"doc-content-wrapper">
64 <h1
class=
"documentation-title"><?php echo $langs->trans(
'DocTableTitle'); ?></h1>
65 <p
class=
"documentation-text"><?php echo $langs->trans(
'Description'); ?></p>
68 <?php $documentation->showSummary(); ?>
71 <div
class=
"documentation-section" id=
"tablesection-basicusage">
73 <h2
class=
"documentation-title">Table with a title line</h2>
75 <p
class=
"documentation-text"><?php echo $langs->trans(
'DocTableBasicDescription'); ?></p>
76 <div
class=
"documentation-example">
77 <div
class=
"div-table-responsive">
78 <
table class=
"tagtable noborder liste nobottomiftotal">
79 <tr
class=
"liste_titre">
80 <th
class=
"wrapcolumntitle left liste_titre" title=
"First Name">First Name</th>
81 <th
class=
"wrapcolumntitle left liste_titre" title=
"Last Name">Last Name</th>
82 <th
class=
"wrapcolumntitle center liste_titre" title=
"Age">Age</th>
83 <th
class=
"wrapcolumntitle right liste_titre" title=
"Country">Country</th>
86 <td
class=
"left">John</td>
87 <td
class=
"left">Doe</td>
88 <td
class=
"center">37</td>
89 <td
class=
"right">U.S.A</td>
92 <td
class=
"left">Jack</td>
93 <td
class=
"left">Sparrow</td>
94 <td
class=
"center">29</td>
95 <td
class=
"right">Caribbean</td>
98 <td
class=
"left">Sacha</td>
99 <td
class=
"left">Ketchum</td>
100 <td
class=
"center">16</td>
101 <td
class=
"right">Kanto</td>
104 <td
class=
"left">Albert</td>
105 <td
class=
"left">Einstein</td>
106 <td
class=
"center">72</td>
107 <td
class=
"right">Germany</td>
115 echo $documentation->showCode($lines); ?>
118 <!-- Table with filters -->
119 <div
class=
"documentation-section" id=
"tablesection-withfilters">
121 <h2
class=
"documentation-title">Table with a filter line and title line</h2>
123 <p
class=
"documentation-text"><?php echo $langs->trans(
'DocTableWithFiltersDescription'); ?></p>
124 <div
class=
"documentation-example">
125 <div
class=
"div-table-responsive">
126 <
table class=
"tagtable noborder nobottomiftotal liste">
127 <tr
class=
"liste_titre_filter">
133 <tr
class=
"liste_titre">
134 <th
class=
"wrapcolumntitle left liste_titre" title=
"First Name">First Name</th>
135 <th
class=
"wrapcolumntitle left liste_titre" title=
"Last Name">Last Name</th>
136 <th
class=
"wrapcolumntitle center liste_titre" title=
"Age">Age</th>
137 <th
class=
"wrapcolumntitle right liste_titre" title=
"Country">Country</th>
140 <td
class=
"left">John</td>
141 <td
class=
"left">Doe</td>
142 <td
class=
"center">37</td>
143 <td
class=
"right">U.S.A</td>
146 <td
class=
"left">Jack</td>
147 <td
class=
"left">Sparrow</td>
148 <td
class=
"center">29</td>
149 <td
class=
"right">Caribbean</td>
152 <td
class=
"left">Sacha</td>
153 <td
class=
"left">Ketchum</td>
154 <td
class=
"center">16</td>
155 <td
class=
"right">Kanto</td>
158 <td
class=
"left">Albert</td>
159 <td
class=
"left">Einstein</td>
160 <td
class=
"center">72</td>
161 <td
class=
"right">Germany</td>
169 echo $documentation->showCode($lines); ?>
173 <!-- Table with no filter and no title line -->
174 <div
class=
"documentation-section" id=
"tablesection-withfilters">
176 <h2
class=
"documentation-title">Table with no filter, no title line</h2>
178 <p
class=
"documentation-text"><?php echo $langs->trans(
'Description'); ?></p>
179 <div
class=
"documentation-example">
180 <div
class=
"div-table-responsive">
181 <
table class=
"tagtable noborder nobottomiftotal liste">
182 <tr
class=
"oddeven trfirstline">
183 <td
class=
"left">John</td>
184 <td
class=
"left">Doe</td>
185 <td
class=
"center">37</td>
186 <td
class=
"right">U.S.A</td>
189 <td
class=
"left">Jack</td>
190 <td
class=
"left">Sparrow</td>
191 <td
class=
"center">29</td>
192 <td
class=
"right">Caribbean</td>
195 <td
class=
"left">Sacha</td>
196 <td
class=
"left">Ketchum</td>
197 <td
class=
"center">16</td>
198 <td
class=
"right">Kanto</td>
200 <tr
class=
"oddeven trlastline">
201 <td
class=
"left">Albert</td>
202 <td
class=
"left">Einstein</td>
203 <td
class=
"center">72</td>
204 <td
class=
"right">Germany</td>
212 echo $documentation->showCode($lines); ?>
221$documentation->docFooter();
Class to manage UI documentation.
if(!function_exists( 'dol_getprefix')) dol_include_once($relpath, $classname='')
Make an include_once using default root and alternate root if it fails.
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.