dolibarr 18.0.6
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/*
9 * Component: Info Box
10 * -------------------
11 */
12
13<?php
14include_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
15
16$prefix = '';
17if (!empty($conf->global->THEME_INFOBOX_COLOR_ON_BACKGROUND)) {
18 $prefix = 'background-';
19}
20
21if (!isset($conf->global->THEME_SATURATE_RATIO)) {
22 $conf->global->THEME_SATURATE_RATIO = 0.7;
23}
24if (GETPOSTISSET('THEME_SATURATE_RATIO')) {
25 $conf->global->THEME_SATURATE_RATIO = GETPOST('THEME_SATURATE_RATIO', 'int');
26}
27
28?>
29
30.customer-back {
31 background-color: #65953d !important;
32 color: #FFF !important;
33 padding: 2px;
34 margin: 2px;
35 border-radius: 3px;
36}
37.vendor-back {
38 background-color: #599caf !important;
39 color: #FFF !important;
40 padding: 2px;
41 margin: 2px;
42 border-radius: 3px;
43}
44.user-back {
45 background-color: #79633f !important;
46 color: #FFF !important;
47 padding: 2px;
48 margin: 2px;
49 border-radius: 3px;
50}
51.member-company-back {
52 padding: 2px 7px 2px 7px;
53 background-color: #e4e4e4;
54 color: #666;
55 border-radius: 10px;
56 white-space: nowrap;
57}
58.member-individual-back {
59 padding: 2px 7px 2px 7px;
60 background-color: #e4e4e4;
61 color: #666;
62 border-radius: 10px;
63 white-space: nowrap;
64}
65
66.bg-infobox-project{
67 <?php echo $prefix; ?>color: #6c6aa8 !important;
68}
69.bg-infobox-action{
70 <?php echo $prefix; ?>color: #a47080 !important;
71}
72.bg-infobox-propal, .bg-infobox-facture, .bg-infobox-commande {
73 <?php echo $prefix; ?>color: #65953d !important;
74}
75.bg-infobox-supplier_proposal, .bg-infobox-invoice_supplier, .bg-infobox-order_supplier {
76 <?php echo $prefix; ?>color: #599caf !important;
77}
78.bg-infobox-contrat, .bg-infobox-ticket{
79 <?php echo $prefix; ?>color: #46a676 !important;
80}
81.bg-infobox-bank_account{
82 <?php echo $prefix; ?>color: #b0a53e !important;
83}
84.bg-infobox-adherent, .bg-infobox-member{
85 <?php echo $prefix; ?>color: #79633f !important;
86}
87.bg-infobox-expensereport{
88 <?php echo $prefix; ?>color: #79633f !important;
89}
90.bg-infobox-holiday{
91 <?php echo $prefix; ?>color: #755114 !important;
92}
93
94
95.infobox-adherent, .infobox-member {
96 color: #79633f !important;
97}
98.infobox-project{
99 color: #6c6aa8 !important;
100}
101.infobox-action{
102 color: #a47080 !important;
103}
104/* Color for customer object */
105.infobox-propal:not(.pictotitle):not(.error),
106.infobox-facture:not(.pictotitle):not(.error),
107.infobox-commande:not(.pictotitle):not(.error) {
108 color: #65953d !important;
109}
110/* Color for vendor object */
111.infobox-supplier_proposal:not(.pictotitle):not(.error),
112.infobox-invoice_supplier:not(.pictotitle):not(.error),
113.infobox-order_supplier:not(.pictotitle):not(.error) {
114 color: #599caf !important;
115}
116
117.infobox-contrat, .infobox-ticket{
118 color: #46a676 !important;
119}
120.infobox-bank_account{
121 color: #b0a53e !important;
122}
123.infobox-adherent, .infobox-member {
124 color: #79633f !important;
125}
126.infobox-expensereport{
127 color: #79633f !important;
128}
129.infobox-holiday{
130 color: #755114 !important;
131}
132
133
134.info-box-module.--external span.info-box-icon-version {
135 background: #bbb;
136}
137
138a.info-box-text.info-box-text-a {
139 /* display: table-cell; */
140 display: contents;
141}
142a.info-box-text-a i.fa.fa-exclamation-triangle {
143 font-size: 0.9em;
144}
145
146.info-box {
147 display: block;
148 position: relative;
149 min-height: 90px;
150 background: var(--colorbacklineimpair2);
151 width: 100%;
152 /* box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); */
153 border-radius: 2px;
154 margin-bottom: 15px;
155 border: 1px solid #e9e9e9;
156}
157.info-box.info-box-sm {
158 min-height: 80px;
159 margin-bottom: 10px;
160}
161.info-box-more {
162 float: right;
163 top: 4px;
164 position: absolute;
165 right: 10px;
166}
167
168.info-box small {
169 font-size: 14px;
170}
171.info-box:not(.info-box-kanban) .progress {
172 background: rgba(0, 0, 0, 0.2);
173 margin: 5px -10px 5px -10px;
174 height: 2px;
175}
176.info-box .progress,
177.info-box .progress .progress-bar {
178 border-radius: 0;
179}
180
181.info-box:not(.info-box-kanban) .progress .progress-bar {
182 float: left;
183 width: 0;
184 height: 100%;
185 font-size: 12px;
186 line-height: 20px;
187 color: #fff;
188 text-align: center;
189 background-color: #337ab7;
190 -webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,.15);
191 box-shadow: inset 0 -1px 0 rgba(0,0,0,.15);
192 -webkit-transition: width .6s ease;
193 -o-transition: width .6s ease;
194 transition: width .6s ease;
195}
196.info-box-icon {
197 display: block;
198 overflow: hidden;
199 float: left;
200 /* height: 90px; */
201 width: 86px;
202 text-align: center;
203 font-size: 45px;
204 line-height: 90px;
205 background: var(--colorbacktitle1) !important;
206 <?php if (isset($conf->global->THEME_SATURATE_RATIO)) { ?>
207 filter: saturate(<?php echo $conf->global->THEME_SATURATE_RATIO; ?>);
208 <?php } ?>
209}
210
211.info-box-module .info-box-icon {
212 padding-top: 4px;
213 padding-bottom: 4px;
214}
215.info-box-sm .info-box-icon, .info-box-sm .info-box-img {
216 height: 96px !important; /* must match height of info-box-sm .info-box-content */
217 width: 80px;
218 font-size: 25px;
219 line-height: 92px;
220}
221.info-box-order {
222 border-top-left-radius: 2px;
223 border-top-right-radius: 0;
224 border-bottom-right-radius: 0;
225 border-bottom-left-radius: 2px;
226 display: block;
227 overflow: hidden;
228 float: left;
229 height: 115px;
230 width: 88px;
231 text-align: center;
232 font-size: 2.3em;
233 line-height: 115px;
234 margin-right: 10px;
235 background: var(--colorbacktitle1) !important;
236}
237.opened-dash-board-wrap .info-box .info-box-icon {
238 font-size: 2em;
239}
240.opened-dash-board-wrap .info-box-sm .info-box-icon {
241 line-height: 80px;
242}
243.info-box-module .info-box-icon {
244 height: 98px;
245}
246.info-box-icon > img {
247 max-width: 85%;
248}
249.info-box-module .info-box-icon > img {
250 max-width: 55%;
251}
252
253.info-box-line {
254 line-height: 1.2em;
255}
256
257.info-box-icon-text {
258 box-sizing: border-box;
259 display: block;
260 position: absolute;
261 width: 90px;
262 bottom: 0px;
263 color: #ffffff;
264 background-color: rgba(0,0,0,0.1);
265 cursor: default;
266
267 font-size: 10px;
268 line-height: 15px;
269 padding: 0px 3px;
270 text-align: center;
271 opacity: 0;
272 -webkit-transition: opacity 0.5s, visibility 0s 0.5s;
273 transition: opacity 0.5s, visibility 0s 0.5s;
274}
275
276.info-box-icon-version {
277 box-sizing: border-box;
278 display: block;
279 position: absolute;
280 width: 90px;
281 bottom: 0px;
282 color: #ffffff;
283 background-color: rgba(0,0,0,0.1);
284 cursor: default;
285
286 font-size: 10px;
287 line-height: 1.5em;
288 padding: 4px 3px;
289 text-align: center;
290 opacity: 1;
291 -webkit-transition: opacity 0.5s, visibility 0s 0.5s;
292 transition: opacity 0.5s, visibility 0s 0.5s;
293}
294
295.box-flex-item.info-box-module.--disabled {
296 /* opacity: 0.6; */
297}
298
299.info-box-actions {
300 position: absolute;
301 right: 0;
302 bottom: 0;
303}
304
305/* customize section img box on list of products */
306.info-box-img {
307 height: 105px !important;
308 width: 88px;
309 border-top-left-radius: 2px;
310 border-top-right-radius: 0;
311 border-bottom-right-radius: 0;
312 border-bottom-left-radius: 2px;
313 display: block;
314 overflow: hidden;
315 float: left;
316 text-align: center;
317 font-size: 2.8em;
318 line-height: 90px;
319 margin-right: 5px;
320 background: var(--colorbacktitle1) !important;
321}
322.info-box-img > img {
323 width: 90%;
324 position: relative;
325 top: 50%;
326 left: 50%;
327 transform: translate(-50%, -50%);
328}
329
330
331<?php if (empty($conf->global->MAIN_DISABLE_GLOBAL_BOXSTATS) && !empty($conf->global->MAIN_INCLUDE_GLOBAL_STATS_IN_OPENED_DASHBOARD)) { ?>
332.info-box-icon-text{
333 opacity: 1;
334}
335<?php } ?>
336
337.info-box-sm .info-box-icon-text, .info-box-sm .info-box-icon-version{
338 overflow: hidden;
339 width: 80px;
340}
341.info-box:hover .info-box-icon-text{
342 opacity: 1;
343}
344
345.info-box-content {
346 padding: 5px 10px;
347 margin-left: 84px;
348}
349.info-box-sm .info-box-content {
350 margin-left: 80px;
351 height: 86px; /* 96 - margins of .info-box-sm .info-box-content */
352}
353.info-box-sm .info-box-module-enabled {
354 /* background: linear-gradient(0.35turn, #fff, #fff, #f6faf8, #e4efe8) */
355 background: var(--infoboxmoduleenabledbgcolor);
356}
357.info-box-content-warning span.font-status4 {
358 color: #bc9526 !important;
359}
360
361.info-box-number {
362 display: block;
363 font-weight: bold;
364 font-size: 18px;
365}
366.progress-description,
367.info-box-text,
368.info-box-title{
369 display: block;
370 font-size: 12px;
371 white-space: nowrap;
372 overflow: hidden;
373 text-overflow: ellipsis;
374}
375.info-box-title{
376 text-transform: uppercase;
377 font-weight: bold;
378 margin-bottom: 6px;
379}
380.info-box-title {
381 width: calc(100% - 20px);
382}
383.info-box-text{
384 font-size: 0.90em;
385}
386.info-box-text:first-letter{text-transform: uppercase}
387a.info-box-text{ text-decoration: none;}
388
389
390.info-box-more {
391 display: block;
392}
393.progress-description {
394 margin: 0;
395}
396
397
398
399/* ICONS INFO BOX */
400<?php
401include_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
402
403$prefix = '';
404if (!empty($conf->global->THEME_INFOBOX_COLOR_ON_BACKGROUND)) {
405 $prefix = 'background-';
406}
407
408if (!isset($conf->global->THEME_SATURATE_RATIO)) {
409 $conf->global->THEME_SATURATE_RATIO = 0.7;
410}
411if (GETPOSTISSET('THEME_SATURATE_RATIO')) {
412 $conf->global->THEME_SATURATE_RATIO = GETPOST('THEME_SATURATE_RATIO', 'int');
413}
414?>
415.bg-infobox-project i.fa{
416 color: #605ca8 !important;
417}
418.bg-infobox-action i.fa{
419 color: #d84b80 !important;
420}
421.bg-infobox-propal i.fa,
422.bg-infobox-facture i.fa,
423.bg-infobox-commande i.fa{
424 color: #abb87b !important;
425}
426.bg-infobox-supplier_proposal i.fa,
427.bg-infobox-invoice_supplier i.fa,
428.bg-infobox-order_supplier i.fa{
429 color: #40b0cf !important;
430}
431.bg-infobox-contrat i.fa, .bg-infobox-ticket i.fa{
432 color: #20a68a !important;
433}
434.bg-infobox-bank_account i.fa{
435 color: #b0a53e !important;
436}
437.bg-infobox-adherent i.fa, .bg-infobox-member i.fa{
438 color: #755114 !important;
439}
440.bg-infobox-expensereport i.fa{
441 color: #755114 !important;
442}
443.bg-infobox-holiday i.fa{
444 color: #755114 !important;
445}
446
447
448.fa-dol-action:before {
449 content: "\f073";
450}
451.fa-dol-propal:before,
452.fa-dol-supplier_proposal:before {
453 content: "\f573";
454}
455.fa-dol-facture:before,
456.fa-dol-invoice_supplier:before {
457 content: "\f571";
458}
459.fa-dol-project:before {
460 content: "\f542";
461}
462.fa-dol-commande:before,
463.fa-dol-order_supplier:before {
464 content: "\f570";
465}
466.fa-dol-contrat:before {
467 content: "\f1e6";
468}
469.fa-dol-ticket:before {
470 content: "\f3ff";
471}
472.fa-dol-bank_account:before {
473 content: "\f19c";
474}
475.fa-dol-member:before {
476 content: "\f0c0";
477}
478.fa-dol-expensereport:before {
479 content: "\f555";
480}
481.fa-dol-holiday:before {
482 content: "\f5ca";
483}
484
485
486/* USING FONTAWESOME FOR WEATHER */
487.info-box-weather .info-box-icon{
488 background: var(--colorbacktitle1) !important;
489}
490.fa-weather-level0:before{
491 content: "\f185";
492 color : #cfbf00;
493}
494.fa-weather-level1:before{
495 content: "\f6c4";
496 color : #bc9526;
497}
498.fa-weather-level2:before{
499 content: "\f743";
500 color : #b16000;
501}
502.fa-weather-level3:before{
503 content: "\f740";
504 color : #b04000;
505}
506.fa-weather-level4:before{
507 content: "\f0e7";
508 color : #b01000;
509}
510
511
512/* USING IMAGES FOR WEATHER INTEAD OF FONT AWESOME */
513/* For other themes just uncomment this part */
514/*.info-box-weather-level0,
515.info-box-weather-level1,
516.info-box-weather-level2,
517.info-box-weather-level3,
518.info-box-weather-level4 {
519 background-position: 15px 50%;
520 background-repeat: no-repeat;
521}
522
523.info-box-weather .info-box-icon{
524 display: none !important;
525}
526.info-box-weather-level0 {
527 background-image: url("img/weather/weather-clear.png");
528}
529.info-box-weather-level1 {
530 background-image: url("img/weather/weather-few-clouds.png");
531}
532.info-box-weather-level2 {
533 background-image: url("img/weather/weather-clouds.png");
534}
535.info-box-weather-level3 {
536 background-image: url("img/weather/weather-many-clouds.png");
537}
538.info-box-weather-level4 {
539 background-image: url("img/weather/weather-storm.png");
540}*/
541
542
543
544.box-flex-container{
545 display: flex; /* or inline-flex */
546 flex-direction: row;
547 flex-wrap: wrap;
548 width: 100%;
549 margin: 0 0 0 -15px;
550 /*justify-content: space-between;*/
551}
552
553.box-flex-grow-zero{
554 flex-grow: 0 !important;
555}
556
557.box-flex-item{
558 flex-grow : 1;
559 flex-shrink: 1;
560 flex-basis: auto;
561
562 width: 280px;
563 margin: 5px 0px 0px 15px;
564}
565.box-flex-item.filler{
566 margin: 0px 0px 0px 15px !important;
567 height: 0;
568}
569
570.info-box-title {
571 width: calc(100% - 20px);
572}
573.info-box-module {
574 min-width: 350px;
575 max-width: 350px;
576}
577.info-box-module .info-box-content {
578 height: 6.3em;
579}
580.fright {
581 float:right;
582}
583
584@media only screen and (max-width: 1740px) {
585 .info-box-module {
586 min-width: 315px;
587 max-width: 315px;
588 }
589}
590@media only screen and (max-width: 767px) {
591 .info-box-module {
592 min-width: 260px;
593 }
594 .info-box-sm .info-box-icon {
595 width: 60px;
596 }
597 .info-box-sm .info-box-content {
598 margin-left: 60px;
599 }
600}
601
602
603
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.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
rtl background position