dolibarr  17.0.4
info-box.inc.php
1 <?php
2 if (!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
14 include_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
15 
16 $prefix = '';
17 if (!empty($conf->global->THEME_INFOBOX_COLOR_ON_BACKGROUND)) {
18  $prefix = 'background-';
19 }
20 
21 if (!isset($conf->global->THEME_SATURATE_RATIO)) {
22  $conf->global->THEME_SATURATE_RATIO = 0.7;
23 }
24 if (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 
138 a.info-box-text.info-box-text-a {
139  display: table-cell;
140 }
141 a.info-box-text-a i.fa.fa-exclamation-triangle {
142  font-size: 0.9em;
143 }
144 
145 .info-box {
146  display: block;
147  position: relative;
148  min-height: 90px;
149  background: var(--colorbacklineimpair2);
150  width: 100%;
151  /* box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); */
152  border-radius: 2px;
153  margin-bottom: 15px;
154  border: 1px solid #e9e9e9;
155 }
156 .info-box.info-box-sm {
157  min-height: 80px;
158  margin-bottom: 10px;
159 }
160 .info-box-more {
161  float: right;
162  top: 4px;
163  position: absolute;
164  right: 10px;
165 }
166 
167 .info-box small {
168  font-size: 14px;
169 }
170 .info-box .progress {
171  background: rgba(0, 0, 0, 0.2);
172  margin: 5px -10px 5px -10px;
173  height: 2px;
174 }
175 .info-box .progress,
176 .info-box .progress .progress-bar {
177  border-radius: 0;
178 }
179 
180 .info-box .progress .progress-bar {
181  float: left;
182  width: 0;
183  height: 100%;
184  font-size: 12px;
185  line-height: 20px;
186  color: #fff;
187  text-align: center;
188  background-color: #337ab7;
189  -webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,.15);
190  box-shadow: inset 0 -1px 0 rgba(0,0,0,.15);
191  -webkit-transition: width .6s ease;
192  -o-transition: width .6s ease;
193  transition: width .6s ease;
194 }
195 .info-box-icon {
196  display: block;
197  overflow: hidden;
198  float: left;
199  /* height: 90px; */
200  width: 90px;
201  text-align: center;
202  font-size: 45px;
203  line-height: 90px;
204  background: var(--colorbacktitle1) !important;
205  <?php if (isset($conf->global->THEME_SATURATE_RATIO)) { ?>
206  filter: saturate(<?php echo $conf->global->THEME_SATURATE_RATIO; ?>);
207  <?php } ?>
208 }
209 
210 .info-box-sm .info-box-icon {
211  height: 96px;
212  width: 80px;
213  font-size: 25px;
214  line-height: 92px;
215 }
216 .info-box-module .info-box-icon {
217  padding-top: 4px;
218  padding-bottom: 4px;
219 }
220 .opened-dash-board-wrap .info-box .info-box-icon {
221  font-size: 2em;
222 }
223 .opened-dash-board-wrap .info-box-sm .info-box-icon {
224  line-height: 80px;
225 }
226 .info-box-module .info-box-icon {
227  height: 98px;
228 }
229 .info-box-icon > img {
230  max-width: 85%;
231 }
232 .info-box-module .info-box-icon > img {
233  max-width: 55%;
234 }
235 
236 .info-box-icon-text{
237  box-sizing: border-box;
238  display: block;
239  position: absolute;
240  width: 90px;
241  bottom: 0px;
242  color: #ffffff;
243  background-color: rgba(0,0,0,0.1);
244  cursor: default;
245 
246  font-size: 10px;
247  line-height: 15px;
248  padding: 0px 3px;
249  text-align: center;
250  opacity: 0;
251  -webkit-transition: opacity 0.5s, visibility 0s 0.5s;
252  transition: opacity 0.5s, visibility 0s 0.5s;
253 }
254 
255 .info-box-icon-version {
256  box-sizing: border-box;
257  display: block;
258  position: absolute;
259  width: 90px;
260  bottom: 0px;
261  color: #ffffff;
262  background-color: rgba(0,0,0,0.1);
263  cursor: default;
264 
265  font-size: 10px;
266  line-height: 1.5em;
267  padding: 4px 3px;
268  text-align: center;
269  opacity: 1;
270  -webkit-transition: opacity 0.5s, visibility 0s 0.5s;
271  transition: opacity 0.5s, visibility 0s 0.5s;
272 }
273 
274 .box-flex-item.info-box-module.--disabled {
275  /* opacity: 0.6; */
276 }
277 
278 .info-box-actions {
279  position: absolute;
280  right: 0;
281  bottom: 0;
282 }
283 
284 <?php if (empty($conf->global->MAIN_DISABLE_GLOBAL_BOXSTATS) && !empty($conf->global->MAIN_INCLUDE_GLOBAL_STATS_IN_OPENED_DASHBOARD)) { ?>
285 .info-box-icon-text{
286  opacity: 1;
287 }
288 <?php } ?>
289 
290 .info-box-sm .info-box-icon-text, .info-box-sm .info-box-icon-version{
291  overflow: hidden;
292  width: 80px;
293 }
294 .info-box:hover .info-box-icon-text{
295  opacity: 1;
296 }
297 
298 .info-box-content {
299  padding: 5px 10px;
300  margin-left: 84px;
301 }
302 .info-box-sm .info-box-content {
303  margin-left: 80px;
304  height: 86px; /* 96 - margins of .info-box-sm .info-box-content */
305 }
306 .info-box-sm .info-box-module-enabled {
307  /* background: linear-gradient(0.35turn, #fff, #fff, #f6faf8, #e4efe8) */
308  background: var(--infoboxmoduleenabledbgcolor);
309 }
310 .info-box-content-warning span.font-status4 {
311  color: #bc9526 !important;
312 }
313 
314 .info-box-number {
315  display: block;
316  font-weight: bold;
317  font-size: 18px;
318 }
319 .progress-description,
320 .info-box-text,
321 .info-box-title{
322  display: block;
323  font-size: 12px;
324  white-space: nowrap;
325  overflow: hidden;
326  text-overflow: ellipsis;
327 }
328 .info-box-title{
329  text-transform: uppercase;
330  font-weight: bold;
331  margin-bottom: 6px;
332 }
333 .info-box-title {
334  width: calc(100% - 20px);
335 }
336 .info-box-text{
337  font-size: 0.92em;
338 }
339 .info-box-text:first-letter{text-transform: uppercase}
340 a.info-box-text{ text-decoration: none;}
341 
342 
343 .info-box-more {
344  display: block;
345 }
346 .progress-description {
347  margin: 0;
348 }
349 
350 
351 
352 /* ICONS INFO BOX */
353 <?php
354 include_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
355 
356 $prefix = '';
357 if (!empty($conf->global->THEME_INFOBOX_COLOR_ON_BACKGROUND)) {
358  $prefix = 'background-';
359 }
360 
361 if (!isset($conf->global->THEME_SATURATE_RATIO)) {
362  $conf->global->THEME_SATURATE_RATIO = 0.7;
363 }
364 if (GETPOSTISSET('THEME_SATURATE_RATIO')) {
365  $conf->global->THEME_SATURATE_RATIO = GETPOST('THEME_SATURATE_RATIO', 'int');
366 }
367 ?>
368 .bg-infobox-project i.fa{
369  color: #605ca8 !important;
370 }
371 .bg-infobox-action i.fa{
372  color: #d84b80 !important;
373 }
374 .bg-infobox-propal i.fa,
375 .bg-infobox-facture i.fa,
376 .bg-infobox-commande i.fa{
377  color: #abb87b !important;
378 }
379 .bg-infobox-supplier_proposal i.fa,
380 .bg-infobox-invoice_supplier i.fa,
381 .bg-infobox-order_supplier i.fa{
382  color: #40b0cf !important;
383 }
384 .bg-infobox-contrat i.fa, .bg-infobox-ticket i.fa{
385  color: #20a68a !important;
386 }
387 .bg-infobox-bank_account i.fa{
388  color: #b0a53e !important;
389 }
390 .bg-infobox-adherent i.fa, .bg-infobox-member i.fa{
391  color: #755114 !important;
392 }
393 .bg-infobox-expensereport i.fa{
394  color: #755114 !important;
395 }
396 .bg-infobox-holiday i.fa{
397  color: #755114 !important;
398 }
399 
400 
401 .fa-dol-action:before {
402  content: "\f073";
403 }
404 .fa-dol-propal:before,
405 .fa-dol-supplier_proposal:before {
406  content: "\f573";
407 }
408 .fa-dol-facture:before,
409 .fa-dol-invoice_supplier:before {
410  content: "\f571";
411 }
412 .fa-dol-project:before {
413  content: "\f542";
414 }
415 .fa-dol-commande:before,
416 .fa-dol-order_supplier:before {
417  content: "\f570";
418 }
419 .fa-dol-contrat:before {
420  content: "\f1e6";
421 }
422 .fa-dol-ticket:before {
423  content: "\f3ff";
424 }
425 .fa-dol-bank_account:before {
426  content: "\f19c";
427 }
428 .fa-dol-member:before {
429  content: "\f0c0";
430 }
431 .fa-dol-expensereport:before {
432  content: "\f555";
433 }
434 .fa-dol-holiday:before {
435  content: "\f5ca";
436 }
437 
438 
439 /* USING FONTAWESOME FOR WEATHER */
440 .info-box-weather .info-box-icon{
441  background: var(--colorbacktitle1) !important;
442 }
443 .fa-weather-level0:before{
444  content: "\f185";
445  color : #cfbf00;
446 }
447 .fa-weather-level1:before{
448  content: "\f6c4";
449  color : #bc9526;
450 }
451 .fa-weather-level2:before{
452  content: "\f743";
453  color : #b16000;
454 }
455 .fa-weather-level3:before{
456  content: "\f740";
457  color : #b04000;
458 }
459 .fa-weather-level4:before{
460  content: "\f0e7";
461  color : #b01000;
462 }
463 
464 
465 /* USING IMAGES FOR WEATHER INTEAD OF FONT AWESOME */
466 /* For other themes just uncomment this part */
467 /*.info-box-weather-level0,
468 .info-box-weather-level1,
469 .info-box-weather-level2,
470 .info-box-weather-level3,
471 .info-box-weather-level4 {
472  background-position: 15px 50%;
473  background-repeat: no-repeat;
474 }
475 
476 .info-box-weather .info-box-icon{
477  display: none !important;
478 }
479 .info-box-weather-level0 {
480  background-image: url("img/weather/weather-clear.png");
481 }
482 .info-box-weather-level1 {
483  background-image: url("img/weather/weather-few-clouds.png");
484 }
485 .info-box-weather-level2 {
486  background-image: url("img/weather/weather-clouds.png");
487 }
488 .info-box-weather-level3 {
489  background-image: url("img/weather/weather-many-clouds.png");
490 }
491 .info-box-weather-level4 {
492  background-image: url("img/weather/weather-storm.png");
493 }*/
494 
495 
496 
497 .box-flex-container{
498  display: flex; /* or inline-flex */
499  flex-direction: row;
500  flex-wrap: wrap;
501  width: 100%;
502  margin: 0 0 0 -15px;
503  /*justify-content: space-between;*/
504 }
505 
506 .box-flex-grow-zero{
507  flex-grow: 0 !important;
508 }
509 
510 .box-flex-item{
511  flex-grow : 1;
512  flex-shrink: 1;
513  flex-basis: auto;
514 
515  width: 280px;
516  margin: 5px 0px 0px 15px;
517 }
518 .box-flex-item.filler{
519  margin: 0px 0px 0px 15px !important;
520  height: 0;
521 }
522 
523 .info-box-title {
524  width: calc(100% - 20px);
525 }
526 .info-box-module {
527  min-width: 350px;
528  max-width: 350px;
529 }
530 .info-box-module .info-box-content {
531  height: 6.3em;
532 }
533 
534 
535 @media only screen and (max-width: 1740px) {
536  .info-box-module {
537  min-width: 315px;
538  max-width: 315px;
539  }
540 }
541 @media only screen and (max-width: 767px) {
542  .info-box-module {
543  min-width: 260px;
544  }
545  .info-box-sm .info-box-icon {
546  width: 60px;
547  }
548  .info-box-sm .info-box-content {
549  margin-left: 60px;
550  }
551 }
552 
553 
554 
print *****$script_file(".$version.") pid 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.
GETPOSTISSET($paramname)
Return true if we are in a context of submitting the parameter $paramname from a POST of a form.
div float
Buy price without taxes.
Definition: style.css.php:913