dolibarr 20.0.0
info-box.inc.php
1<?php
2if (!defined('ISLOADEDBYSTEELSHEET')) {
3 die('Must be call by steelsheet');
4} ?>
5/* <style type="text/css" > */
6
7/*
8 * Component: Info Box
9 * -------------------
10 */
11
12.info-box-module.--external span.info-box-icon-version {
13 background: rgba(0,0,0,0.2);
14}
15
16.info-box-module.--external.--need-update span.info-box-icon-version{
17 background: #bc9525;
18}
19
20.info-box {
21 display: block;
22 position: relative;
23 min-height: 94px; /* must be same height than info-box-icon */
24 background: var(--colorbacklineimpair2);
25 width: 100%;
26 box-shadow: 1px 1px 15px rgba(192, 192, 192, 0.2);
27 border-radius: 2px;
28 border: 1px solid #e9e9e9;
29 margin-bottom: 15px;
30}
31.info-box.info-box-sm {
32 min-height: 80px;
33 margin-bottom: 10px;
34 /* background: #fff; */
35}
36.opened-dash-board-wrap .info-box, .opened-dash-board-wrap .info-box .info-box-icon {
37 border-radius: 0 0 0 15px;
38}
39/*.opened-dash-board-wrap .box-flex-item {
40 border-radius: 10px;
41}*/
42
43.info-box-more {
44 float: right;
45 top: 5px;
46 position: absolute;
47 right: 8px;
48}
49
50.info-box small {
51 font-size: 14px;
52}
53.info-box:not(.info-box-kanban) .progress {
54 background: rgba(0, 0, 0, 0.2);
55 margin: 5px -10px 5px -10px;
56 height: 2px;
57}
58.info-box .progress,
59.info-box .progress .progress-bar {
60 border-radius: 0;
61}
62
63.info-box:not(.info-box-kanban) .progress .progress-bar {
64 float: left;
65 width: 0;
66 height: 100%;
67 font-size: 12px;
68 line-height: 20px;
69 color: #fff;
70 text-align: center;
71 background-color: #337ab7;
72 -webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,.15);
73 box-shadow: inset 0 -1px 0 rgba(0,0,0,.15);
74 -webkit-transition: width .6s ease;
75 -o-transition: width .6s ease;
76 transition: width .6s ease;
77}
78.info-box-icon {
79 border-top-left-radius: 2px;
80 border-top-right-radius: 0;
81 border-bottom-right-radius: 0;
82 border-bottom-left-radius: 2px;
83 display: block;
84 overflow: hidden;
85 float: left;
86 line-height: 94px; /* must be same height as min-height of .info-box */
87 height: 94px; /* must be same height as min-height of .info-box */
88 width: 88px;
89 text-align: center;
90 font-size: 2.8em;
91 background: var(--colorbacktitle1) !important;
92}
93
94.info-box-module .info-box-icon {
95 padding-top: 5px;
96 padding-bottom: 5px;
97}
98.info-box-sm .info-box-icon, .info-box-sm .info-box-img {
99 height: 98px !important; /* must match height of info-box-sm .info-box-content */
100 width: 78px;
101 font-size: 25px;
102 line-height: 92px;
103}
104.info-box-order {
105 border-top-left-radius: 2px;
106 border-top-right-radius: 0;
107 border-bottom-right-radius: 0;
108 border-bottom-left-radius: 2px;
109 display: block;
110 overflow: hidden;
111 float: left;
112 height: 115px;
113 width: 88px;
114 text-align: center;
115 font-size: 2.3em;
116 line-height: 115px;
117 margin-right: 10px;
118 background: var(--colorbacktitle1) !important;
119}
120.opened-dash-board-wrap .info-box .info-box-icon {
121 font-size: 2em;
122}
123.opened-dash-board-wrap .info-box-sm .info-box-icon {
124 border-radius: 0 0 0 20px;
125 line-height: 80px;
126}
127.info-box-module .info-box-icon {
128 height: 98px;
129}
130.info-box-icon > img {
131 max-width: 85%;
132}
133.info-box-module .info-box-icon > img {
134 max-width: 60%;
135}
136
137a.info-box-text.info-box-text-a {
138 /* display: table-cell; */
139 display: contents;
140}
141a.info-box-text-a i.fa.fa-exclamation-triangle {
142 font-size: 0.9em;
143}
144
145.info-box-line {
146 line-height: 1.35em;
147}
148.info-box-line-text {
149 overflow: hidden;
150 width: calc(100% - 92px);
151 max-width: calc(100% - 82px);
152 text-overflow: ellipsis;
153}
154
155.info-box-icon-text {
156 box-sizing: border-box;
157 display: block;
158 position: absolute;
159 width: 90px;
160 bottom: 0px;
161 color: #ffffff;
162 background-color: rgba(0,0,0,0.1);
163 cursor: default;
164
165 font-size: 10px;
166 line-height: 15px;
167 padding: 0px 3px;
168 text-align: center;
169 opacity: 0;
170 -webkit-transition: opacity 0.5s, visibility 0s 0.5s;
171 transition: opacity 0.5s, visibility 0s 0.5s;
172}
173
174.info-box-icon-version {
175 box-sizing: border-box;
176 display: block;
177 position: absolute;
178 width: 90px;
179 bottom: 0px;
180 color: #ffffff;
181 background-color: rgba(0,0,0,0.1);
182 cursor: default;
183
184 font-size: 10px;
185 line-height: 1.5em;
186 padding: 4px 3px;
187 text-align: center;
188 opacity: 1;
189 -webkit-transition: opacity 0.5s, visibility 0s 0.5s;
190 transition: opacity 0.5s, visibility 0s 0.5s;
191}
192
193.box-flex-item.info-box-module.--disabled {
194 /* opacity: 0.6; */
195}
196
197.info-box-actions {
198 position: absolute;
199 right: 0;
200 bottom: 0;
201}
202
203/* customize section img box on list of products */
204.info-box-img {
205 height: 105px !important;
206 width: 88px;
207 border-top-left-radius: 2px;
208 border-top-right-radius: 0;
209 border-bottom-right-radius: 0;
210 border-bottom-left-radius: 2px;
211 display: block;
212 overflow: hidden;
213 float: left;
214 text-align: center;
215 font-size: 2.8em;
216 line-height: 90px;
217 margin-right: 5px;
218 background: var(--colorbacktitle1) !important;
219}
220.info-box-img > img {
221 width: 90%;
222 position: relative;
223 top: 50%;
224 left: 50%;
225 transform: translate(-50%, -50%);
226}
227
228<?php if (!getDolGlobalString('MAIN_DISABLE_GLOBAL_BOXSTATS') && getDolGlobalString('MAIN_INCLUDE_GLOBAL_STATS_IN_OPENED_DASHBOARD')) { ?>
229.info-box-icon-text{
230 opacity: 1;
231}
232<?php } ?>
233
234.info-box-sm .info-box-icon-text, .info-box-sm .info-box-icon-version {
235 overflow: hidden;
236 width: 80px;
237}
238.info-box:hover .info-box-icon-text {
239 opacity: 1;
240}
241
242.info-box-content {
243 padding-top: 5px;
244 padding-bottom: 5px;
245 padding-left: 10px;
246 padding-right: 5px;
247 margin-left: 84px;
248}
249.info-box-sm .info-box-content {
250 margin-left: 80px;
251 height: 88px; /* 96 - margins of .info-box-sm .info-box-content */
252}
253.info-box-sm .info-box-module-enabled {
254 /* background: linear-gradient(0.35turn, #fff, #fff, #f6faf8, #e4efe8) */
255 background: var(--infoboxmoduleenabledbgcolor);
256}
257.info-box-content-warning span.font-status4 {
258 color: #bc9526 !important;
259}
260/*.info-box-sm .info-box-content-warning {
261 background: #ffd7a3;
262}*/
263/*.info-box-icon.info-box-icon-module-enabled {
264 background: #e4f0e4 !important;
265}*/
266
267.info-box-number {
268 display: block;
269 font-weight: bold;
270 font-size: 18px;
271}
272.progress-description,
273.info-box-text,
274.info-box-title{
275 display: block;
276 font-size: 12px;
277 white-space: nowrap;
278 overflow: hidden;
279 text-overflow: ellipsis;
280}
281.info-box-title{
282 text-transform: uppercase;
283 font-weight: bold;
284 margin-bottom: 3px; /* not too much space so we can add another lines */
285 opacity: 0.6;
286 /* color: var(--colortexttitlenotab); */
287}
288.info-box-text{
289 font-size: 0.92em;
290}
291/* Force values for small screen 480 */
292@media only screen and (max-width: 480px)
293{
294 .info-box-text {
295 font-size: 0.82em;
296 }
297 .info-box-line {
298 line-height: 1.25em;
299 }
300}
301.info-box-text:first-letter{text-transform: uppercase}
302a.info-box-text{ text-decoration: none;}
303
304
305.info-box-more {
306 display: block;
307}
308.progress-description {
309 margin: 0;
310}
311
312
313
314
315
316/* ICONS INFO BOX */
317<?php
318include_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
319
320$prefix = '';
321if (getDolGlobalString('THEME_INFOBOX_COLOR_ON_BACKGROUND')) {
322 $prefix = 'background-';
323}
324
325if (!isset($conf->global->THEME_SATURATE_RATIO)) {
326 $conf->global->THEME_SATURATE_RATIO = 0.7;
327}
328if (GETPOSTISSET('THEME_SATURATE_RATIO')) {
329 $conf->global->THEME_SATURATE_RATIO = GETPOSTINT('THEME_SATURATE_RATIO');
330}
331
332?>
333.info-box-icon {
334 <?php if ($prefix) { ?>
335 color: #fff !important;
336 <?php } ?>
337 opacity: 0.95;
338 <?php if (isset($conf->global->THEME_SATURATE_RATIO)) { ?>
339 filter: saturate(<?php echo $conf->global->THEME_SATURATE_RATIO; ?>);
340 <?php } ?>
341}
342
343.customer-back {
344 background-color: #55955d !important;
345 color: #FFF !important;
346 padding: 2px;
347 margin: 2px;
348 border-radius: 3px;
349}
350.vendor-back {
351 background-color: #599caf !important;
352 color: #FFF !important;
353 padding: 2px;
354 margin: 2px;
355 border-radius: 3px;
356}
357.user-back {
358 background-color: #79633f !important;
359 color: #FFF !important;
360 padding: 2px;
361 margin: 2px;
362 border-radius: 3px;
363}
364.member-company-back {
365 padding: 2px 7px 2px 7px;
366 background-color: #e4e4e4;
367 color: #666;
368 border-radius: 10px;
369 white-space: nowrap;
370}
371.member-individual-back {
372 padding: 2px 7px 2px 7px;
373 background-color: #e4e4e4;
374 color: #666;
375 border-radius: 10px;
376 white-space: nowrap;
377}
378
379
380.bg-infobox-project{
381 <?php echo $prefix; ?>color: #6c6aa8 !important;
382}
383.bg-infobox-action{
384 <?php echo $prefix; ?>color: #b06080 !important;
385}
386.bg-infobox-propal, .bg-infobox-facture, .bg-infobox-commande {
387 <?php echo $prefix; ?>color: #65953d !important;
388}
389.bg-infobox-supplier_proposal, .bg-infobox-invoice_supplier, .bg-infobox-order_supplier {
390 <?php echo $prefix; ?>color: #599caf !important;
391}
392.bg-infobox-contrat, .bg-infobox-ticket{
393 <?php echo $prefix; ?>color: #3bbfa8 !important;
394}
395.bg-infobox-bank_account{
396 <?php echo $prefix; ?>color: #b0bb39 !important;
397}
398.bg-infobox-adherent, .bg-infobox-member {
399 <?php echo $prefix; ?>color: #79633f !important;
400}
401.bg-infobox-expensereport{
402 <?php echo $prefix; ?>color: #79633f !important;
403}
404.bg-infobox-holiday{
405 <?php echo $prefix; ?>color: #755114 !important;
406}
407
408/* Disable colors on left vmenu */
409a.vmenu span, span.vmenu, span.vmenu span {
410 /* To force no color on picto in left menu */
411 /* color: var(--colortextbackvmenu) !important; */
412}
413
414.infobox-adherent, .infobox-member {
415 color: #79633f;
416}
417.infobox-project{
418 color: #6c6aa8;
419}
420.infobox-action{
421 color: #b06080;
422}
423/* Color for customer object */
424.infobox-propal:not(.error),
425.infobox-facture:not(.error),
426.infobox-commande:not(.error) {
427 color: #65953d;
428}
429/* Color for vendor object */
430.infobox-supplier_proposal:not(.error),
431.infobox-invoice_supplier:not(.error),
432.infobox-order_supplier:not(.error) {
433 color: #599caf;
434}
435.infobox-contrat, .infobox-ticket{
436 color: #3bbfa8;
437}
438.infobox-bank_account{
439 color: #b0bb39;
440}
441.infobox-adherent, .infobox-member {
442 color: #79633f;
443}
444.infobox-expensereport{
445 color: #79633f;
446}
447.infobox-holiday{
448 color: #755114;
449}
450
451
452.fa-dol-action:before {
453 content: "\f073";
454}
455.fa-dol-propal:before,
456.fa-dol-supplier_proposal:before {
457 content: "\f573";
458}
459.fa-dol-facture:before,
460.fa-dol-invoice_supplier:before {
461 content: "\f571";
462}
463.fa-dol-project:before {
464 content: "\f542";
465}
466.fa-dol-commande:before,
467.fa-dol-order_supplier:before {
468 content: "\f570";
469}
470.fa-dol-contrat:before {
471 content: "\f0f2";
472}
473.fa-dol-ticket:before {
474 content: "\f3ff";
475}
476.fa-dol-bank_account:before {
477 content: "\f19c";
478}
479.fa-dol-member:before {
480 content: "\f007";
481}
482.fa-dol-expensereport:before {
483 content: "\f555";
484}
485.fa-dol-holiday:before {
486 content: "\f5ca";
487}
488
489
490/* USING FONTAWESOME FOR WEATHER */
491.info-box-weather .info-box-icon{
492 background: var(--colorbacktitle1) !important;
493}
494.fa-weather-level0:before{
495 content: "\f185";
496 color : #cfbf00;
497}
498.fa-weather-level1:before{
499 content: "\f6c4";
500 color : #bc9526;
501}
502.fa-weather-level2:before{
503 content: "\f743";
504 color : #b16000;
505}
506.fa-weather-level3:before{
507 content: "\f740";
508 color : #b04000;
509}
510.fa-weather-level4:before{
511 content: "\f0e7";
512 color : #b01000;
513}
514
515
516.box-flex-container{
517 display: flex; /* or inline-flex */
518 flex-direction: row;
519 flex-wrap: wrap;
520 width: calc(100% + 14px);
521 margin: 0 -8px 0 -8px;
522 /*justify-content: space-between;*/
523}
524.box-flex-container-columns {
525 display: flex; /* or inline-flex */
526 flex-direction: row;
527 flex-wrap: nowrap;
528 justify-content: space-between;
529}
530.box-flex-container-column {
531 flex-grow: 1;
532 }
533.box-flex-container-column:not(:last-of-type) {
534 border-right: 1px solid #AAA;
535}
536.box-flex-container-column.kanban {
537 flex: 1;
538}
539.kanban.kanbancollapsed {
540 flex: unset;
541 width: 80px;
542}
543.kanban.kanbancollapsed .kanbanlabel, .text-vertical {
544 writing-mode: vertical-rl;
545}
546
547.box-flex-grow-zero {
548 flex-grow: 0 !important;
549}
550
551.box-flex-item {
552 flex-grow : 1;
553 flex-shrink: 1;
554 flex-basis: auto;
555 width: 290px;
556}
557.box-flex-item.filler {
558 height: 0;
559}
560.box-flex-item, .kanbanlabel {
561 margin-top: 5px;
562 margin-<?php echo $right; ?>: 20px;
563 margin-bottom: 0px;
564 margin-<?php echo $left; ?>: 10px;
565}
566.kanbanlabel {
567 background: var(--colorbacktitle1);
568 padding: 5px;
569 margin-bottom: 10px;
570 border-radius: 5px;
571}
572.kanban .box-flex-item {
573 line-height: 1.4em;
574}
575
576/* css for small kanban */
577.box-flex-item-small {
578 width: 200px !important;
579}
580.box-flex-item-small .info-box-sm .info-box-content {
581 margin-left: 0;
582}
583.box-flex-item-small .info-box-icon.bg-infobox-action {
584 display: none;
585}
586
587
588.info-box-title {
589 width: calc(100% - 20px);
590}
591.info-box-module {
592 min-width: 350px;
593 max-width: 350px;
594}
595.fright {
596 float:right;
597}
598@media only screen and (max-width: 1740px) {
599 .info-box-module {
600 min-width: 315px;
601 max-width: 315px;
602 }
603}
604
605@media only screen and (max-width: 768px) {
606 .info-box-module {
607 min-width: 260px;
608 }
609 .box-flex-item {
610 width: 280px;
611 }
612}
613
614@media only screen and (max-width: 570px)
615{
616 .box-flex-item {
617 margin: 3px 8px 3px 8px !important;
618 }
619}
620
621@media only screen and (max-width: 480px) {
622 .info-box-module {
623 min-width: 250px;
624 }
625 .box-flex-item {
626 width: 250px;
627 }
628}
629
630
631
632
633.info-box-module .info-box-content {
634 height: 98px;
635}
636/* Disabled. This break the responsive on smartphone
637.box{
638 overflow: visible;
639}
640*/
641
642@media only screen and (max-width: 768px)
643{
644 .box-flex-container {
645 margin: 0 0 0 0px !important;
646 width: 100% !important;
647 /* justify-content: space-between; */
648 }
649 .info-box-module {
650 width: 100%;
651 max-width: unset;
652 }
653
654 .info-box-sm .info-box-icon-text, .info-box-sm .info-box-icon-version {
655 width: 60px;
656 }
657 .info-box-sm .info-box-icon {
658 width: 60px;
659 }
660 .info-box-sm .info-box-content {
661 margin-left: 60px;
662 }
663 .info-box {
664 border: 1px solid #e0e0e0;
665 }
666
667 .info-box-content {
668 padding-top: 5px;
669 padding-bottom: 5px;
670 padding-left: 10px;
671 padding-right: 2px;
672 }
673 .info-box-line-text {
674 width: calc(100% - 98px);
675 max-width: calc(100% - 88px);
676 }
677}
print $object position
Definition edit.php:195
print $script_file $mode $langs defaultlang(is_numeric($duration_value) ? " delay=". $duration_value :"").(is_numeric($duration_value2) ? " after cd cd cd description as description
Only used if Module[ID]Desc translation string is not found.
GETPOSTINT($paramname, $method=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.
a disabled
table table fiche title col title div col center btnTitle icon
Automatically calls the icon named with the corresponding "object_" prefix.
if(preg_match('/crypted:/i', $dolibarr_main_db_pass)||!empty($dolibarr_main_db_encrypted_pass)) $conf db type
Definition repair.php:137