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