dolibarr  20.0.0-beta
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  * 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 
137 a.info-box-text.info-box-text-a {
138  /* display: table-cell; */
139  display: contents;
140 }
141 a.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}
302 a.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
318 include_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
319 
320 $prefix = '';
321 if (getDolGlobalString('THEME_INFOBOX_COLOR_ON_BACKGROUND')) {
322  $prefix = 'background-';
323 }
324 
325 if (!isset($conf->global->THEME_SATURATE_RATIO)) {
326  $conf->global->THEME_SATURATE_RATIO = 0.7;
327 }
328 if (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 .infobox-adherent, .infobox-member {
409  color: #79633f;
410 }
411 .infobox-project{
412  color: #6c6aa8;
413 }
414 .infobox-action{
415  color: #b06080;
416 }
417 /* Color for customer object */
418 .infobox-propal:not(.error),
419 .infobox-facture:not(.error),
420 .infobox-commande:not(.error) {
421  color: #65953d;
422 }
423 /* Color for vendor object */
424 .infobox-supplier_proposal:not(.error),
425 .infobox-invoice_supplier:not(.error),
426 .infobox-order_supplier:not(.error) {
427  color: #599caf;
428 }
429 .infobox-contrat, .infobox-ticket{
430  color: #3bbfa8;
431 }
432 .infobox-bank_account{
433  color: #b0bb39;
434 }
435 .infobox-adherent, .infobox-member {
436  color: #79633f;
437 }
438 .infobox-expensereport{
439  color: #79633f;
440 }
441 .infobox-holiday{
442  color: #755114;
443 }
444 
445 
446 .fa-dol-action:before {
447  content: "\f073";
448 }
449 .fa-dol-propal:before,
450 .fa-dol-supplier_proposal:before {
451  content: "\f573";
452 }
453 .fa-dol-facture:before,
454 .fa-dol-invoice_supplier:before {
455  content: "\f571";
456 }
457 .fa-dol-project:before {
458  content: "\f542";
459 }
460 .fa-dol-commande:before,
461 .fa-dol-order_supplier:before {
462  content: "\f570";
463 }
464 .fa-dol-contrat:before {
465  content: "\f0f2";
466 }
467 .fa-dol-ticket:before {
468  content: "\f3ff";
469 }
470 .fa-dol-bank_account:before {
471  content: "\f19c";
472 }
473 .fa-dol-member:before {
474  content: "\f007";
475 }
476 .fa-dol-expensereport:before {
477  content: "\f555";
478 }
479 .fa-dol-holiday:before {
480  content: "\f5ca";
481 }
482 
483 
484 /* USING FONTAWESOME FOR WEATHER */
485 .info-box-weather .info-box-icon{
486  background: var(--colorbacktitle1) !important;
487 }
488 .fa-weather-level0:before{
489  content: "\f185";
490  color : #cfbf00;
491 }
492 .fa-weather-level1:before{
493  content: "\f6c4";
494  color : #bc9526;
495 }
496 .fa-weather-level2:before{
497  content: "\f743";
498  color : #b16000;
499 }
500 .fa-weather-level3:before{
501  content: "\f740";
502  color : #b04000;
503 }
504 .fa-weather-level4:before{
505  content: "\f0e7";
506  color : #b01000;
507 }
508 
509 
510 .box-flex-container{
511  display: flex; /* or inline-flex */
512  flex-direction: row;
513  flex-wrap: wrap;
514  width: calc(100% + 14px);
515  margin: 0 -8px 0 -8px;
516  /*justify-content: space-between;*/
517 }
518 .box-flex-container-columns {
519  display: flex; /* or inline-flex */
520  flex-direction: row;
521  flex-wrap: nowrap;
522  justify-content: space-between;
523 }
524 .box-flex-container-column {
525  flex-grow: 1;
526  }
527 .box-flex-container-column:not(:last-of-type) {
528  border-right: 1px solid #AAA;
529 }
530 
531 .box-flex-grow-zero {
532  flex-grow: 0 !important;
533 }
534 
535 .box-flex-item {
536  flex-grow : 1;
537  flex-shrink: 1;
538  flex-basis: auto;
539  width: 290px;
540 }
541 .box-flex-item.filler {
542  height: 0;
543 }
544 .box-flex-item {
545  margin-top: 5px;
546  margin-<?php echo $right; ?>: 20px;
547  margin-bottom: 0px;
548  margin-<?php echo $left; ?>: 10px;
549 }
550 .kanban .box-flex-item {
551  line-height: 1.4em;
552 }
553 
554 .info-box-title {
555  width: calc(100% - 20px);
556 }
557 .info-box-module {
558  min-width: 350px;
559  max-width: 350px;
560 }
561 .fright {
562  float:right;
563 }
564 @media only screen and (max-width: 1740px) {
565  .info-box-module {
566  min-width: 315px;
567  max-width: 315px;
568  }
569 }
570 
571 @media only screen and (max-width: 768px) {
572  .info-box-module {
573  min-width: 260px;
574  }
575  .box-flex-item {
576  width: 280px;
577  }
578 }
579 
580 @media only screen and (max-width: 480px) {
581  .info-box-module {
582  min-width: 250px;
583  }
584  .box-flex-item {
585  width: 250px;
586  }
587 }
588 
589 
590 
591 
592 .info-box-module .info-box-content {
593  height: 98px;
594 }
595 /* Disabled. This break the responsive on smartphone
596 .box{
597  overflow: visible;
598 }
599 */
600 
601 @media only screen and (max-width: 768px)
602 {
603  .box-flex-container {
604  margin: 0 0 0 0px !important;
605  width: 100% !important;
606  justify-content: space-between;
607  }
608  .info-box-module {
609  width: 100%;
610  max-width: unset;
611  }
612 
613  .info-box-sm .info-box-icon-text, .info-box-sm .info-box-icon-version {
614  width: 60px;
615  }
616  .info-box-sm .info-box-icon {
617  width: 60px;
618  }
619  .info-box-sm .info-box-content {
620  margin-left: 60px;
621  }
622  .info-box {
623  border: 1px solid #e0e0e0;
624  }
625 
626  .info-box-content {
627  padding-top: 5px;
628  padding-bottom: 5px;
629  padding-left: 10px;
630  padding-right: 2px;
631  }
632  .info-box-line-text {
633  width: calc(100% - 98px);
634  max-width: calc(100% - 88px);
635  }
636 }
print $object position
Definition: edit.php:195
print *****$script_file(".$version.") pid 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.
GETPOSTISSET($paramname)
Return true if we are in a context of submitting the parameter $paramname from a POST of a form.
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.
a disabled
table table fiche title col title div col right btnTitle icon
Automatically calls the icon named with the corresponding "object_" prefix.
div float
Buy price without taxes.
Definition: style.css.php:960
if(preg_match('/crypted:/i', $dolibarr_main_db_pass)||!empty($dolibarr_main_db_encrypted_pass)) $conf db type
Definition: repair.php:123