21if (! $res && file_exists(
"../../main.inc.php")) : $res=@include
'../../main.inc.php';
23if (! $res && file_exists(
"../../../main.inc.php")) : $res=@include
'../../../main.inc.php';
25if (! $res && file_exists(
"../../../../main.inc.php")) : $res=@include
'../../../../main.inc.php';
36$langs->load(
'uxdocumentation');
42$documentation->docHeader(
'Progress-bars');
46$documentation->view = array(
'Components',
'Progress');
49$documentation->showSidebar(); ?>
51<div
class=
"doc-wrapper">
53 <?php $documentation->showBreadCrumb(); ?>
55 <div
class=
"doc-content-wrapper">
57 <h1
class=
"documentation-title"><?php echo $langs->trans(
'DocProgressBarsTitle'); ?></h1>
58 <p
class=
"documentation-text"><?php echo $langs->trans(
'DocProgressBarsMainDescription'); ?></p>
61 <?php $documentation->showSummary(); ?>
64 <div
class=
"documentation-section" id=
"progresse-section-basic-usage">
65 <h2
class=
"documentation-title"><?php echo $langs->trans(
'DocBasicUsage'); ?></h2>
66 <p
class=
"documentation-text"><?php echo $langs->trans(
'DocProgressBarsDescription'); ?></p>
67 <div
class=
"documentation-example">
70 <div
class=
"progress xxs spaced" title=
"10%">
71 <div
class=
"progress-bar" role=
"progressbar" style=
"width: 10%" aria-valuenow=
"10" aria-valuemin=
"0" aria-valuemax=
"100"></div>
75 <div
class=
"progress xs spaced" title=
"20%">
76 <div
class=
"progress-bar" role=
"progressbar" style=
"width: 20%" aria-valuenow=
"20" aria-valuemin=
"0" aria-valuemax=
"100"></div>
80 <div
class=
"progress sm spaced" title=
"40%">
81 <div
class=
"progress-bar" role=
"progressbar" style=
"width: 40%" aria-valuenow=
"40" aria-valuemin=
"0" aria-valuemax=
"100"></div>
84 <?php echo $langs->trans(
'Default'); ?>
85 <div
class=
"progress" title=
"80%">
86 <div
class=
"progress-bar" role=
"progressbar" style=
"width: 80%" aria-valuenow=
"80" aria-valuemin=
"0" aria-valuemax=
"100"></div>
92 '<div class="progress xxs" title="10%">',
93 ' <div class="progress-bar" role="progressbar" style="width: 10%" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100"></div>',
96 '<div class="progress xs" title="20%">',
97 ' <div class="progress-bar" role="progressbar" style="width: 20%" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100"></div>',
100 '<div class="progress sm" title="40%">',
101 ' <div class="progress-bar" role="progressbar" style="width: 40%" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100"></div>',
104 '<div class="progress" title="80%">',
105 ' <div class="progress-bar" role="progressbar" style="width: 80%" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100"></div>',
108 echo $documentation->showCode($lines); ?>
110 <p
class=
"documentation-text"><?php echo $langs->trans(
'DocProgressCanBeSpaced'); ?></p>
111 <div
class=
"documentation-example">
112 <div
class=
"progress spaced" title=
"40%">
113 <div
class=
"progress-bar" role=
"progressbar" style=
"width: 40%" aria-valuenow=
"40" aria-valuemin=
"0" aria-valuemax=
"100"></div>
119 '<div class="progress spaced" title="40%">',
120 ' <div class="progress-bar" role="progressbar" style="width: 40%" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100"></div>',
123 echo $documentation->showCode($lines); ?>
128 <!-- Colors
usage -->
129 <div
class=
"documentation-section" id=
"progress-section-color">
130 <h2
class=
"documentation-title"><?php echo $langs->trans(
'DocColorVariants'); ?></h2>
131 <p
class=
"documentation-text"><?php echo $langs->trans(
'DocColorVariantsDesc'); ?></p>
132 <div
class=
"documentation-example">
133 <div
class=
"progress spaced" title=
"40%">
134 <div
class=
"progress-bar progress-bar-success" role=
"progressbar" style=
"width: 40%" aria-valuenow=
"40" aria-valuemin=
"0" aria-valuemax=
"100"></div>
136 <div
class=
"progress spaced" title=
"40%">
137 <div
class=
"progress-bar progress-bar-warning" role=
"progressbar" style=
"width: 40%" aria-valuenow=
"40" aria-valuemin=
"0" aria-valuemax=
"100"></div>
139 <div
class=
"progress spaced" title=
"40%">
140 <div
class=
"progress-bar progress-bar-info" role=
"progressbar" style=
"width: 40%" aria-valuenow=
"40" aria-valuemin=
"0" aria-valuemax=
"100"></div>
142 <div
class=
"progress spaced" title=
"40%">
143 <div
class=
"progress-bar progress-bar-danger" role=
"progressbar" style=
"width: 40%" aria-valuenow=
"40" aria-valuemin=
"0" aria-valuemax=
"100"></div>
149 '<div class="progress" title="40%">',
150 ' <div class="progress-bar progress-bar-success" role="progressbar" style="width: 40%" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100"></div>',
153 '<div class="progress" title="40%">',
154 ' <div class="progress-bar progress-bar-warning" 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-info" 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-danger" role="progressbar" style="width: 40%" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100"></div>',
167 echo $documentation->showCode($lines); ?>
171 <!-- Striped
usage -->
172 <div
class=
"documentation-section" id=
"progresse-section-stripped">
173 <h2
class=
"documentation-title"><?php echo $langs->trans(
'DocStripedVariants'); ?></h2>
174 <p
class=
"documentation-text"><?php echo $langs->trans(
'DocStripedVariantsDesc'); ?></p>
176 <div
class=
"documentation-example">
177 <div
class=
"progress spaced progress-striped" title=
"40%">
178 <div
class=
"progress-bar progress-bar-success" role=
"progressbar" style=
"width: 40%" aria-valuenow=
"40" aria-valuemin=
"0" aria-valuemax=
"100"></div>
180 <div
class=
"progress spaced progress-striped" title=
"40%">
181 <div
class=
"progress-bar progress-bar-warning" role=
"progressbar" style=
"width: 40%" aria-valuenow=
"40" aria-valuemin=
"0" aria-valuemax=
"100"></div>
183 <div
class=
"progress spaced progress-striped" title=
"40%">
184 <div
class=
"progress-bar progress-bar-info" role=
"progressbar" style=
"width: 40%" aria-valuenow=
"40" aria-valuemin=
"0" aria-valuemax=
"100"></div>
186 <div
class=
"progress spaced progress-striped" title=
"40%">
187 <div
class=
"progress-bar progress-bar-danger" role=
"progressbar" style=
"width: 40%" aria-valuenow=
"40" aria-valuemin=
"0" aria-valuemax=
"100"></div>
193 '<div class="progress progress-striped" title="40%">',
194 ' <div class="progress-bar progress-bar-success" role="progressbar" style="width: 40%" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100"></div>',
197 '<div class="progress progress-striped" title="40%">',
198 ' <div class="progress-bar progress-bar-warning" 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-info" 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-danger" role="progressbar" style="width: 40%" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100"></div>',
211 echo $documentation->showCode($lines); ?>
217 <div
class=
"documentation-section" id=
"progresse-section-stripped">
218 <h2
class=
"documentation-title"><?php echo $langs->trans(
'DocOtherVariants'); ?></h2>
219 <p
class=
"documentation-text"><?php echo $langs->trans(
'DocOtherVariantsDesc'); ?></p>
221 <div
class=
"documentation-example">
222 .progress-bar-consumed
223 <div
class=
"progress spaced progress-bar-consumed" title=
"40%">
224 <div
class=
"progress-bar" role=
"progressbar" style=
"width: 40%" aria-valuenow=
"40" aria-valuemin=
"0" aria-valuemax=
"100"></div>
226 .progress-bar-consumed-late
227 <div
class=
"progress spaced progress-bar-consumed" title=
"40%">
228 <div
class=
"progress-bar" role=
"progressbar" style=
"width: 40%" aria-valuenow=
"40" aria-valuemin=
"0" aria-valuemax=
"100"></div>
234 '<div class="progress progress-striped" title="40%">',
235 ' <div class="progress-bar progress-bar-success" role="progressbar" style="width: 40%" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100"></div>',
238 '<div class="progress progress-striped" title="40%">',
239 ' <div class="progress-bar progress-bar-warning" 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-info" 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-danger" role="progressbar" style="width: 40%" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100"></div>',
252 echo $documentation->showCode($lines); ?>
263$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.
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.