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