dolibarr  13.0.2
info-box.inc.php
1 <?php
2 if (!defined('ISLOADEDBYSTEELSHEET')) die('Must be call by steelsheet'); ?>
3 /* <style type="text/css" > */
4 
5 /*
6  * Component: Info Box
7  * -------------------
8  */
9 
10 .info-box-module-external span.info-box-icon-version {
11  background: #bbb;
12 }
13 
14 .info-box {
15  display: block;
16  position: relative;
17  min-height: 90px;
18  /* background: #fff; */
19  width: 100%;
20  box-shadow: 1px 1px 15px rgba(192, 192, 192, 0.2);
21  border-radius: 2px;
22  border: 1px solid #e9e9e9;
23  margin-bottom: 15px;
24 }
25 .info-box.info-box-sm {
26  min-height: 80px;
27  margin-bottom: 10px;
28  /* background: #fff; */
29 }
30 .opened-dash-board-wrap .info-box.info-box-sm {
31  border-radius: 0 0 0 20px;
32 }
33 .info-box-more {
34  float: right;
35  top: 5px;
36  position: absolute;
37  right: 8px;
38 }
39 
40 .info-box small {
41  font-size: 14px;
42 }
43 .info-box .progress {
44  background: rgba(0, 0, 0, 0.2);
45  margin: 5px -10px 5px -10px;
46  height: 2px;
47 }
48 .info-box .progress,
49 .info-box .progress .progress-bar {
50  border-radius: 0;
51 }
52 
53 .info-box .progress .progress-bar {
54  float: left;
55  width: 0;
56  height: 100%;
57  font-size: 12px;
58  line-height: 20px;
59  color: #fff;
60  text-align: center;
61  background-color: #337ab7;
62  -webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,.15);
63  box-shadow: inset 0 -1px 0 rgba(0,0,0,.15);
64  -webkit-transition: width .6s ease;
65  -o-transition: width .6s ease;
66  transition: width .6s ease;
67 }
68 .info-box-icon {
69  border-top-left-radius: 2px;
70  border-top-right-radius: 0;
71  border-bottom-right-radius: 0;
72  border-bottom-left-radius: 2px;
73  display: block;
74  overflow: hidden;
75  float: left;
76  height: 90px;
77  width: 90px;
78  text-align: center;
79  font-size: 45px;
80  line-height: 90px;
81  background: rgba(0, 0, 0, 0.08) !important;
82 }
83 
84 .info-box-module .info-box-icon {
85  padding-top: 5px;
86  padding-bottom: 5px;
87 }
88 .info-box-sm .info-box-icon {
89  height: 80px;
90  width: 78px;
91  font-size: 25px;
92  line-height: 92px;
93 }
94 .opened-dash-board-wrap .info-box-sm .info-box-icon {
95  border-radius: 0 0 0 20px;
96 }
97 .opened-dash-board-wrap .info-box-sm .info-box-icon {
98  line-height: 80px;
99 }
100 .info-box-module .info-box-icon {
101  height: 98px;
102 }
103 .info-box-icon > img {
104  max-width: 100%;
105 }
106 .info-box-module .info-box-icon > img {
107  max-width: 60%;
108 }
109 
110 a.info-box-text.info-box-text-a {
111  display: table-cell;
112 }
113 a.info-box-text-a i.fa.fa-exclamation-triangle {
114  font-size: 0.9em;
115 }
116 
117 .info-box-icon-text{
118  box-sizing: border-box;
119  display: block;
120  position: absolute;
121  width: 90px;
122  bottom: 0px;
123  color: #ffffff;
124  background-color: rgba(0,0,0,0.1);
125  cursor: default;
126 
127  font-size: 10px;
128  line-height: 15px;
129  padding: 0px 3px;
130  text-align: center;
131  opacity: 0;
132  -webkit-transition: opacity 0.5s, visibility 0s 0.5s;
133  transition: opacity 0.5s, visibility 0s 0.5s;
134 }
135 
136 .info-box-icon-version {
137  box-sizing: border-box;
138  display: block;
139  position: absolute;
140  width: 90px;
141  bottom: 0px;
142  color: #ffffff;
143  background-color: rgba(0,0,0,0.1);
144  cursor: default;
145 
146  font-size: 10px;
147  line-height: 22px;
148  padding: 0px 3px;
149  text-align: center;
150  opacity: 1;
151  -webkit-transition: opacity 0.5s, visibility 0s 0.5s;
152  transition: opacity 0.5s, visibility 0s 0.5s;
153 }
154 .box-flex-item.info-box-module.info-box-module-disabled {
155  /* opacity: 0.6; */
156 }
157 
158 .info-box-actions {
159  position: absolute;
160  right: 0;
161  bottom: 0;
162 }
163 
164 <?php if (empty($conf->global->MAIN_DISABLE_GLOBAL_BOXSTATS) && !empty($conf->global->MAIN_INCLUDE_GLOBAL_STATS_IN_OPENED_DASHBOARD)) { ?>
165 .info-box-icon-text{
166  opacity: 1;
167 }
168 <?php } ?>
169 
170 .info-box-sm .info-box-icon-text, .info-box-sm .info-box-icon-version{
171  overflow: hidden;
172  width: 80px;
173 }
174 .info-box:hover .info-box-icon-text{
175  opacity: 1;
176 }
177 
178 .info-box-content {
179  padding: 5px 10px;
180  margin-left: 84px;
181 }
182 .info-box-sm .info-box-content{
183  margin-left: 80px;
184 }
185 .info-box-sm .info-box-module-enabled {
186  /* background: linear-gradient(0.35turn, #fff, #fff, #f6faf8, #e4efe8) */
187  background: linear-gradient(0.4turn, #fff, #fff, #fff, #e4efe8);
188 }
189 .info-box-content-warning span.font-status4 {
190  color: #bc9526 !important;
191 }
192 /*.info-box-sm .info-box-content-warning {
193  background: #ffd7a3;
194 }*/
195 /*.info-box-icon.info-box-icon-module-enabled {
196  background: #e4f0e4 !important;
197 }*/
198 
199 .info-box-number {
200  display: block;
201  font-weight: bold;
202  font-size: 18px;
203 }
204 .progress-description,
205 .info-box-text,
206 .info-box-title{
207  display: block;
208  font-size: 12px;
209  white-space: nowrap;
210  overflow: hidden;
211  text-overflow: ellipsis;
212 }
213 .info-box-title{
214  text-transform: uppercase;
215  font-weight: bold;
216  margin-bottom: 3px; /* not too much space so we can add another lines */
217  opacity: 0.6;
218  /* color: var(--colortexttitlenotab); */
219 }
220 .info-box-text{
221  font-size: 0.92em;
222 }
223 .info-box-text:first-letter{text-transform: uppercase}
224 a.info-box-text{ text-decoration: none;}
225 
226 
227 .info-box-more {
228  display: block;
229 }
230 .progress-description {
231  margin: 0;
232 }
233 
234 
235 
236 
237 
238 /* ICONS INFO BOX */
239 <?php
240 include_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
241 
242 $prefix = '';
243 if (!empty($conf->global->THEME_INFOBOX_COLOR_ON_BACKGROUND)) $prefix = 'background-';
244 
245 if (!isset($conf->global->THEME_SATURATE_RATIO)) $conf->global->THEME_SATURATE_RATIO = 0.7;
246 if (GETPOSTISSET('THEME_SATURATE_RATIO')) $conf->global->THEME_SATURATE_RATIO = GETPOST('THEME_SATURATE_RATIO', 'int');
247 
248 ?>
249 .info-box-icon {
250  <?php if ($prefix) { ?>
251  color: #fff !important;
252  <?php } ?>
253  opacity: 0.95;
254  <?php if (isset($conf->global->THEME_SATURATE_RATIO)) { ?>
255  filter: saturate(<?php echo $conf->global->THEME_SATURATE_RATIO; ?>);
256  <?php } ?>
257 }
258 
259 .customer-back {
260  background-color: #55955d !important;
261  color: #FFF !important;
262  padding: 2px;
263  margin: 2px;
264  border-radius: 3px;
265 }
266 .vendor-back {
267  background-color: #599caf !important;
268  color: #FFF !important;
269  padding: 2px;
270  margin: 2px;
271  border-radius: 3px;
272 }
273 .user-back {
274  background-color: #79633f !important;
275  color: #FFF !important;
276  padding: 2px;
277  margin: 2px;
278  border-radius: 3px;
279 }
280 
281 
282 
283 .bg-infobox-project{
284  <?php echo $prefix; ?>color: #6c6aa8 !important;
285 }
286 .bg-infobox-action{
287  <?php echo $prefix; ?>color: #b06080 !important;
288 }
289 .bg-infobox-propal, .bg-infobox-facture, .bg-infobox-commande {
290  <?php echo $prefix; ?>color: #55955d !important;
291 }
292 .bg-infobox-supplier_proposal, .bg-infobox-invoice_supplier, .bg-infobox-order_supplier {
293  <?php echo $prefix; ?>color: #599caf !important;
294 }
295 .bg-infobox-contrat, .bg-infobox-ticket{
296  <?php echo $prefix; ?>color: #3bbfa8 !important;
297 }
298 .bg-infobox-bank_account{
299  <?php echo $prefix; ?>color: #b0bb39 !important;
300 }
301 .bg-infobox-adherent, .bg-infobox-member {
302  <?php echo $prefix; ?>color: #79633f !important;
303 }
304 .bg-infobox-expensereport{
305  <?php echo $prefix; ?>color: #79633f !important;
306 }
307 .bg-infobox-holiday{
308  <?php echo $prefix; ?>color: #755114 !important;
309 }
310 
311 .infobox-adherent, .infobox-member {
312  color: #79633f !important;
313 }
314 .infobox-project{
315  color: #6c6aa8 !important;
316 }
317 .infobox-action{
318  color: #b06080 !important;
319 }
320 .infobox-propal:not(.pictotitle),
321 .infobox-facture:not(.pictotitle),
322 .infobox-commande:not(.pictotitle) {
323  color: #65955d !important;
324 }
325 .infobox-supplier_proposal:not(.pictotitle),
326 .infobox-invoice_supplier:not(.pictotitle),
327 .infobox-order_supplier:not(.pictotitle){
328  color: #599caf !important;
329 }
330 .infobox-contrat, .infobox-ticket{
331  color: #3bbfa8 !important;
332 }
333 .infobox-bank_account{
334  color: #b0bb39 !important;
335 }
336 .infobox-adherent, .infobox-member {
337  color: #79633f !important;
338 }
339 .infobox-expensereport{
340  color: #79633f !important;
341 }
342 .infobox-holiday{
343  color: #755114 !important;
344 }
345 
346 
347 .fa-dol-action:before {
348  content: "\f073";
349 }
350 .fa-dol-propal:before,
351 .fa-dol-supplier_proposal:before {
352  content: "\f573";
353 }
354 .fa-dol-facture:before,
355 .fa-dol-invoice_supplier:before {
356  content: "\f571";
357 }
358 .fa-dol-project:before {
359  content: "\f0e8";
360 }
361 .fa-dol-commande:before,
362 .fa-dol-order_supplier:before {
363  content: "\f570";
364 }
365 .fa-dol-contrat:before {
366  content: "\f1e6";
367 }
368 .fa-dol-ticket:before {
369  content: "\f3ff";
370 }
371 .fa-dol-bank_account:before {
372  content: "\f19c";
373 }
374 .fa-dol-member:before {
375  content: "\f0c0";
376 }
377 .fa-dol-expensereport:before {
378  content: "\f555";
379 }
380 .fa-dol-holiday:before {
381  content: "\f5ca";
382 }
383 
384 
385 /* USING FONTAWESOME FOR WEATHER */
386 .info-box-weather .info-box-icon{
387  background: rgba(0, 0, 0, 0.08) !important;
388 }
389 .fa-weather-level0:before{
390  content: "\f185";
391  color : #cfbf00;
392 }
393 .fa-weather-level1:before{
394  content: "\f6c4";
395  color : #bc9526;
396 }
397 .fa-weather-level2:before{
398  content: "\f743";
399  color : #b16000;
400 }
401 .fa-weather-level3:before{
402  content: "\f740";
403  color : #b04000;
404 }
405 .fa-weather-level4:before{
406  content: "\f0e7";
407  color : #b01000;
408 }
409 
410 
411 .box-flex-container{
412  display: flex; /* or inline-flex */
413  flex-direction: row;
414  flex-wrap: wrap;
415  width: calc(100% + 14px);
416  margin: 0 -8px 0 -8px;
417  /*justify-content: space-between;*/
418 }
419 
420 .box-flex-item{
421  flex-grow : 1;
422  flex-shrink: 1;
423  flex-basis: auto;
424 
425  width: 280px;
426  margin: 5px 8px 0px 8px;
427 }
428 .box-flex-item.filler{
429  margin: 0px 0px 0px 15px !important;
430  height: 0;
431 }
432 
433 .info-box-title {
434  width: calc(100% - 20px);
435 }
436 .info-box-module {
437  min-width: 350px;
438  max-width: 350px;
439 }
440 
441 @media only screen and (max-width: 1740px) {
442  .info-box-module {
443  min-width: 315px;
444  max-width: 315px;
445  }
446 }
447 
448 @media only screen and (max-width: 767px) {
449  .info-box-module {
450  min-width: 260px;
451  }
452 }
453 
454 .info-box-module .info-box-content {
455  height: 98px;
456 }
457 /* Disabled. This break the responsive on smartphone
458 .box{
459  overflow: visible;
460 }
461 */
462 
463 @media only screen and (max-width: 767px)
464 {
465  .box-flex-container {
466  margin: 0 0 0 0px !important;
467  width: 100% !important;
468  }
469  .info-box-module {
470  width: 100%;
471  max-width: unset;
472  }
473  .info-box-sm .info-box-icon {
474  width: 60px;
475  }
476  .info-box-sm .info-box-content {
477  margin-left: 60px;
478  }
479  .info-box {
480  border: 1px solid #e0e0e0;
481  }
482 }
483 }
GETPOST($paramname, $check= 'alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
</td > param sortfield sortorder printFieldListOption< tdclass="liste_titremaxwidthsearchright"></td ></tr >< trclass="liste_titre">< inputtype="checkbox"onClick="toggle(this)"/> Ref p ref Label p label Duration p duration center DesiredStock p desiredstock right StockLimitShort p seuil_stock_alerte right stock_physique right stock_real_warehouse right Ordered right StockToBuy right SupplierRef right param sortfield sortorder printFieldListTitle warehouseinternal SELECT description FROM product_lang WHERE qty< br > qty qty qty StockTooLow StockTooLow help help help< trclass="oddeven">< td >< inputtype="checkbox"class="check"name="choose'.$i.'"></td >< tdclass="nowrap"> stock</td >< td >< inputtype="hidden"name="desc'.$i.'"value="'.dol_escape_htmltag($objp-> description
Only used if Module[ID]Desc translation string is not found.
Definition: replenish.php:750
GETPOSTISSET($paramname)
Return true if we are in a context of submitting the parameter $paramname.