21require
'../../../../main.inc.php';
31if ($user->socid > 0) {
36require_once DOL_DOCUMENT_ROOT .
'/admin/tools/ui/class/documentation.class.php';
39$langs->load(
'uxdocumentation');
45 '/includes/ace/src/ace.js',
46 '/includes/ace/src/ext-statusbar.js',
47 '/includes/ace/src/ext-language_tools.js',
50$documentation->docHeader(
'Progress-bars', $morejs);
54$documentation->view = array(
'Components',
'Progress');
57$documentation->showSidebar(); ?>
59<div
class=
"doc-wrapper">
61 <?php $documentation->showBreadCrumb(); ?>
63 <div
class=
"doc-content-wrapper">
65 <h1
class=
"documentation-title"><?php echo $langs->trans(
'DocProgressBarsTitle'); ?></h1>
66 <p
class=
"documentation-text"><?php echo $langs->trans(
'DocProgressBarsMainDescription'); ?></p>
69 <?php $documentation->showSummary(); ?>
72 <div
class=
"documentation-section" id=
"progresse-section-basic-usage">
73 <h2
class=
"documentation-title"><?php echo $langs->trans(
'DocBasicUsage'); ?></h2>
74 <p
class=
"documentation-text"><?php echo $langs->trans(
'DocProgressBarsDescription'); ?></p>
75 <div
class=
"documentation-example">
78 <div
class=
"progress xxs spaced" title=
"10%">
79 <div
class=
"progress-bar" role=
"progressbar" style=
"width: 10%" aria-valuenow=
"10" aria-valuemin=
"0" aria-valuemax=
"100"></div>
83 <div
class=
"progress xs spaced" title=
"20%">
84 <div
class=
"progress-bar" role=
"progressbar" style=
"width: 20%" aria-valuenow=
"20" aria-valuemin=
"0" aria-valuemax=
"100"></div>
88 <div
class=
"progress sm spaced" title=
"40%">
89 <div
class=
"progress-bar" role=
"progressbar" style=
"width: 40%" aria-valuenow=
"40" aria-valuemin=
"0" aria-valuemax=
"100"></div>
92 <?php echo $langs->trans(
'Default'); ?>
93 <div
class=
"progress" title=
"80%">
94 <div
class=
"progress-bar" role=
"progressbar" style=
"width: 80%" aria-valuenow=
"80" aria-valuemin=
"0" aria-valuemax=
"100"></div>
100 '<div class="progress xxs" title="10%">',
101 ' <div class="progress-bar" role="progressbar" style="width: 10%" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100"></div>',
104 '<div class="progress xs" title="20%">',
105 ' <div class="progress-bar" role="progressbar" style="width: 20%" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100"></div>',
108 '<div class="progress sm" title="40%">',
109 ' <div class="progress-bar" role="progressbar" style="width: 40%" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100"></div>',
112 '<div class="progress" title="80%">',
113 ' <div class="progress-bar" role="progressbar" style="width: 80%" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100"></div>',
116 echo $documentation->showCode($lines); ?>
118 <p
class=
"documentation-text"><?php echo $langs->trans(
'DocProgressCanBeSpaced'); ?></p>
119 <div
class=
"documentation-example">
120 <div
class=
"progress spaced" title=
"40%">
121 <div
class=
"progress-bar" role=
"progressbar" style=
"width: 40%" aria-valuenow=
"40" aria-valuemin=
"0" aria-valuemax=
"100"></div>
127 '<div class="progress spaced" title="40%">',
128 ' <div class="progress-bar" role="progressbar" style="width: 40%" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100"></div>',
131 echo $documentation->showCode($lines); ?>
136 <!-- Colors
usage -->
137 <div
class=
"documentation-section" id=
"progress-section-color">
138 <h2
class=
"documentation-title"><?php echo $langs->trans(
'DocColorVariants'); ?></h2>
139 <p
class=
"documentation-text"><?php echo $langs->trans(
'DocColorVariantsDesc'); ?></p>
140 <div
class=
"documentation-example">
141 <div
class=
"progress spaced" title=
"40%">
142 <div
class=
"progress-bar progress-bar-success" role=
"progressbar" style=
"width: 40%" aria-valuenow=
"40" aria-valuemin=
"0" aria-valuemax=
"100"></div>
144 <div
class=
"progress spaced" title=
"40%">
145 <div
class=
"progress-bar progress-bar-warning" role=
"progressbar" style=
"width: 40%" aria-valuenow=
"40" aria-valuemin=
"0" aria-valuemax=
"100"></div>
147 <div
class=
"progress spaced" title=
"40%">
148 <div
class=
"progress-bar progress-bar-info" role=
"progressbar" style=
"width: 40%" aria-valuenow=
"40" aria-valuemin=
"0" aria-valuemax=
"100"></div>
150 <div
class=
"progress spaced" title=
"40%">
151 <div
class=
"progress-bar progress-bar-danger" role=
"progressbar" style=
"width: 40%" aria-valuenow=
"40" aria-valuemin=
"0" aria-valuemax=
"100"></div>
157 '<div class="progress" title="40%">',
158 ' <div class="progress-bar progress-bar-success" role="progressbar" style="width: 40%" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100"></div>',
161 '<div class="progress" title="40%">',
162 ' <div class="progress-bar progress-bar-warning" role="progressbar" style="width: 40%" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100"></div>',
165 '<div class="progress" title="40%">',
166 ' <div class="progress-bar progress-bar-info" role="progressbar" style="width: 40%" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100"></div>',
169 '<div class="progress" title="40%">',
170 ' <div class="progress-bar progress-bar-danger" role="progressbar" style="width: 40%" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100"></div>',
175 echo $documentation->showCode($lines); ?>
179 <!-- Striped
usage -->
180 <div
class=
"documentation-section" id=
"progresse-section-stripped">
181 <h2
class=
"documentation-title"><?php echo $langs->trans(
'DocStripedVariants'); ?></h2>
182 <p
class=
"documentation-text"><?php echo $langs->trans(
'DocStripedVariantsDesc'); ?></p>
184 <div
class=
"documentation-example">
185 <div
class=
"progress spaced progress-striped" title=
"40%">
186 <div
class=
"progress-bar progress-bar-success" role=
"progressbar" style=
"width: 40%" aria-valuenow=
"40" aria-valuemin=
"0" aria-valuemax=
"100"></div>
188 <div
class=
"progress spaced progress-striped" title=
"40%">
189 <div
class=
"progress-bar progress-bar-warning" role=
"progressbar" style=
"width: 40%" aria-valuenow=
"40" aria-valuemin=
"0" aria-valuemax=
"100"></div>
191 <div
class=
"progress spaced progress-striped" title=
"40%">
192 <div
class=
"progress-bar progress-bar-info" role=
"progressbar" style=
"width: 40%" aria-valuenow=
"40" aria-valuemin=
"0" aria-valuemax=
"100"></div>
194 <div
class=
"progress spaced progress-striped" title=
"40%">
195 <div
class=
"progress-bar progress-bar-danger" role=
"progressbar" style=
"width: 40%" aria-valuenow=
"40" aria-valuemin=
"0" aria-valuemax=
"100"></div>
201 '<div class="progress progress-striped" title="40%">',
202 ' <div class="progress-bar progress-bar-success" role="progressbar" style="width: 40%" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100"></div>',
205 '<div class="progress progress-striped" title="40%">',
206 ' <div class="progress-bar progress-bar-warning" role="progressbar" style="width: 40%" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100"></div>',
209 '<div class="progress progress-striped" title="40%">',
210 ' <div class="progress-bar progress-bar-info" role="progressbar" style="width: 40%" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100"></div>',
213 '<div class="progress progress-striped" title="40%">',
214 ' <div class="progress-bar progress-bar-danger" role="progressbar" style="width: 40%" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100"></div>',
219 echo $documentation->showCode($lines); ?>
225 <div
class=
"documentation-section" id=
"progresse-section-stripped">
226 <h2
class=
"documentation-title"><?php echo $langs->trans(
'DocOtherVariants'); ?></h2>
227 <p
class=
"documentation-text"><?php echo $langs->trans(
'DocOtherVariantsDesc'); ?></p>
229 <div
class=
"documentation-example">
230 .progress-bar-consumed
231 <div
class=
"progress spaced progress-bar-consumed" title=
"40%">
232 <div
class=
"progress-bar" role=
"progressbar" style=
"width: 40%" aria-valuenow=
"40" aria-valuemin=
"0" aria-valuemax=
"100"></div>
234 .progress-bar-consumed-late
235 <div
class=
"progress spaced progress-bar-consumed" title=
"40%">
236 <div
class=
"progress-bar" role=
"progressbar" style=
"width: 40%" aria-valuenow=
"40" aria-valuemin=
"0" aria-valuemax=
"100"></div>
242 '<div class="progress progress-striped" title="40%">',
243 ' <div class="progress-bar progress-bar-success" role="progressbar" style="width: 40%" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100"></div>',
246 '<div class="progress progress-striped" title="40%">',
247 ' <div class="progress-bar progress-bar-warning" role="progressbar" style="width: 40%" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100"></div>',
250 '<div class="progress progress-striped" title="40%">',
251 ' <div class="progress-bar progress-bar-info" role="progressbar" style="width: 40%" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100"></div>',
254 '<div class="progress progress-striped" title="40%">',
255 ' <div class="progress-bar progress-bar-danger" role="progressbar" style="width: 40%" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100"></div>',
261 echo $documentation->showCode($lines); ?>
272$documentation->docFooter();
Class to manage UI documentation.
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.