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  * 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: 90px;
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 .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 .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  height: 90px;
87  width: 88px;
88  text-align: center;
89  font-size: 2.8em;
90  line-height: 90px;
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 {
99  height: 80px;
100  width: 78px;
101  font-size: 25px;
102  line-height: 92px;
103 }
104 .opened-dash-board-wrap .info-box .info-box-icon {
105  font-size: 2em;
106 }
107 .opened-dash-board-wrap .info-box-sm .info-box-icon {
108  border-radius: 0 0 0 20px;
109  line-height: 80px;
110 }
111 .info-box-module .info-box-icon {
112  height: 98px;
113 }
114 .info-box-icon > img {
115  max-width: 100%;
116 }
117 .info-box-module .info-box-icon > img {
118  max-width: 60%;
119 }
120 
121 a.info-box-text.info-box-text-a {
122  display: table-cell;
123 }
124 a.info-box-text-a i.fa.fa-exclamation-triangle {
125  font-size: 0.9em;
126 }
127 
128 .info-box-icon-text{
129  box-sizing: border-box;
130  display: block;
131  position: absolute;
132  width: 90px;
133  bottom: 0px;
134  color: #ffffff;
135  background-color: rgba(0,0,0,0.1);
136  cursor: default;
137 
138  font-size: 10px;
139  line-height: 15px;
140  padding: 0px 3px;
141  text-align: center;
142  opacity: 0;
143  -webkit-transition: opacity 0.5s, visibility 0s 0.5s;
144  transition: opacity 0.5s, visibility 0s 0.5s;
145 }
146 
147 .info-box-icon-version {
148  box-sizing: border-box;
149  display: block;
150  position: absolute;
151  width: 90px;
152  bottom: 0px;
153  color: #ffffff;
154  background-color: rgba(0,0,0,0.1);
155  cursor: default;
156 
157  font-size: 10px;
158  line-height: 1.5em;
159  padding: 4px 3px;
160  text-align: center;
161  opacity: 1;
162  -webkit-transition: opacity 0.5s, visibility 0s 0.5s;
163  transition: opacity 0.5s, visibility 0s 0.5s;
164 }
165 
166 .box-flex-item.info-box-module.--disabled {
167  /* opacity: 0.6; */
168 }
169 
170 .info-box-actions {
171  position: absolute;
172  right: 0;
173  bottom: 0;
174 }
175 
176 <?php if (empty($conf->global->MAIN_DISABLE_GLOBAL_BOXSTATS) && !empty($conf->global->MAIN_INCLUDE_GLOBAL_STATS_IN_OPENED_DASHBOARD)) { ?>
177 .info-box-icon-text{
178  opacity: 1;
179 }
180 <?php } ?>
181 
182 .info-box-sm .info-box-icon-text, .info-box-sm .info-box-icon-version{
183  overflow: hidden;
184  width: 80px;
185 }
186 .info-box:hover .info-box-icon-text{
187  opacity: 1;
188 }
189 
190 .info-box-content {
191  padding: 5px 10px;
192  margin-left: 84px;
193 }
194 .info-box-sm .info-box-content{
195  margin-left: 80px;
196 }
197 .info-box-sm .info-box-module-enabled {
198  /* background: linear-gradient(0.35turn, #fff, #fff, #f6faf8, #e4efe8) */
199  background: var(--infoboxmoduleenabledbgcolor);
200 }
201 .info-box-content-warning span.font-status4 {
202  color: #bc9526 !important;
203 }
204 /*.info-box-sm .info-box-content-warning {
205  background: #ffd7a3;
206 }*/
207 /*.info-box-icon.info-box-icon-module-enabled {
208  background: #e4f0e4 !important;
209 }*/
210 
211 .info-box-number {
212  display: block;
213  font-weight: bold;
214  font-size: 18px;
215 }
216 .progress-description,
217 .info-box-text,
218 .info-box-title{
219  display: block;
220  font-size: 12px;
221  white-space: nowrap;
222  overflow: hidden;
223  text-overflow: ellipsis;
224 }
225 .info-box-title{
226  text-transform: uppercase;
227  font-weight: bold;
228  margin-bottom: 3px; /* not too much space so we can add another lines */
229  opacity: 0.6;
230  /* color: var(--colortexttitlenotab); */
231 }
232 .info-box-text{
233  font-size: 0.92em;
234 }
235 .info-box-text:first-letter{text-transform: uppercase}
236 a.info-box-text{ text-decoration: none;}
237 
238 
239 .info-box-more {
240  display: block;
241 }
242 .progress-description {
243  margin: 0;
244 }
245 
246 
247 
248 
249 
250 /* ICONS INFO BOX */
251 <?php
252 include_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
253 
254 $prefix = '';
255 if (!empty($conf->global->THEME_INFOBOX_COLOR_ON_BACKGROUND)) {
256  $prefix = 'background-';
257 }
258 
259 if (!isset($conf->global->THEME_SATURATE_RATIO)) {
260  $conf->global->THEME_SATURATE_RATIO = 0.7;
261 }
262 if (GETPOSTISSET('THEME_SATURATE_RATIO')) {
263  $conf->global->THEME_SATURATE_RATIO = GETPOST('THEME_SATURATE_RATIO', 'int');
264 }
265 
266 ?>
267 .info-box-icon {
268  <?php if ($prefix) { ?>
269  color: #fff !important;
270  <?php } ?>
271  opacity: 0.95;
272  <?php if (isset($conf->global->THEME_SATURATE_RATIO)) { ?>
273  filter: saturate(<?php echo $conf->global->THEME_SATURATE_RATIO; ?>);
274  <?php } ?>
275 }
276 
277 .customer-back {
278  background-color: #55955d !important;
279  color: #FFF !important;
280  padding: 2px;
281  margin: 2px;
282  border-radius: 3px;
283 }
284 .vendor-back {
285  background-color: #599caf !important;
286  color: #FFF !important;
287  padding: 2px;
288  margin: 2px;
289  border-radius: 3px;
290 }
291 .user-back {
292  background-color: #79633f !important;
293  color: #FFF !important;
294  padding: 2px;
295  margin: 2px;
296  border-radius: 3px;
297 }
298 
299 
300 
301 .bg-infobox-project{
302  <?php echo $prefix; ?>color: #6c6aa8 !important;
303 }
304 .bg-infobox-action{
305  <?php echo $prefix; ?>color: #b06080 !important;
306 }
307 .bg-infobox-propal, .bg-infobox-facture, .bg-infobox-commande {
308  <?php echo $prefix; ?>color: #65953d !important;
309 }
310 .bg-infobox-supplier_proposal, .bg-infobox-invoice_supplier, .bg-infobox-order_supplier {
311  <?php echo $prefix; ?>color: #599caf !important;
312 }
313 .bg-infobox-contrat, .bg-infobox-ticket{
314  <?php echo $prefix; ?>color: #3bbfa8 !important;
315 }
316 .bg-infobox-bank_account{
317  <?php echo $prefix; ?>color: #b0bb39 !important;
318 }
319 .bg-infobox-adherent, .bg-infobox-member {
320  <?php echo $prefix; ?>color: #79633f !important;
321 }
322 .bg-infobox-expensereport{
323  <?php echo $prefix; ?>color: #79633f !important;
324 }
325 .bg-infobox-holiday{
326  <?php echo $prefix; ?>color: #755114 !important;
327 }
328 
329 .infobox-adherent, .infobox-member {
330  color: #79633f !important;
331 }
332 .infobox-project{
333  color: #6c6aa8 !important;
334 }
335 .infobox-action{
336  color: #b06080 !important;
337 }
338 /* Color for customer object */
339 .infobox-propal:not(.pictotitle):not(.error),
340 .infobox-facture:not(.pictotitle):not(.error),
341 .infobox-commande:not(.pictotitle):not(.error) {
342  color: #65953d !important;
343 }
344 /* Color for vendor object */
345 .infobox-supplier_proposal:not(.pictotitle):not(.error),
346 .infobox-invoice_supplier:not(.pictotitle):not(.error),
347 .infobox-order_supplier:not(.pictotitle):not(.error) {
348  color: #599caf !important;
349 }
350 .infobox-contrat, .infobox-ticket{
351  color: #3bbfa8 !important;
352 }
353 .infobox-bank_account{
354  color: #b0bb39 !important;
355 }
356 .infobox-adherent, .infobox-member {
357  color: #79633f !important;
358 }
359 .infobox-expensereport{
360  color: #79633f !important;
361 }
362 .infobox-holiday{
363  color: #755114 !important;
364 }
365 
366 
367 .fa-dol-action:before {
368  content: "\f073";
369 }
370 .fa-dol-propal:before,
371 .fa-dol-supplier_proposal:before {
372  content: "\f573";
373 }
374 .fa-dol-facture:before,
375 .fa-dol-invoice_supplier:before {
376  content: "\f571";
377 }
378 .fa-dol-project:before {
379  content: "\f542";
380 }
381 .fa-dol-commande:before,
382 .fa-dol-order_supplier:before {
383  content: "\f570";
384 }
385 .fa-dol-contrat:before {
386  content: "\f0f2";
387 }
388 .fa-dol-ticket:before {
389  content: "\f3ff";
390 }
391 .fa-dol-bank_account:before {
392  content: "\f19c";
393 }
394 .fa-dol-member:before {
395  content: "\f007";
396 }
397 .fa-dol-expensereport:before {
398  content: "\f555";
399 }
400 .fa-dol-holiday:before {
401  content: "\f5ca";
402 }
403 
404 
405 /* USING FONTAWESOME FOR WEATHER */
406 .info-box-weather .info-box-icon{
407  background: rgba(0, 0, 0, 0.08) !important;
408 }
409 .fa-weather-level0:before{
410  content: "\f185";
411  color : #cfbf00;
412 }
413 .fa-weather-level1:before{
414  content: "\f6c4";
415  color : #bc9526;
416 }
417 .fa-weather-level2:before{
418  content: "\f743";
419  color : #b16000;
420 }
421 .fa-weather-level3:before{
422  content: "\f740";
423  color : #b04000;
424 }
425 .fa-weather-level4:before{
426  content: "\f0e7";
427  color : #b01000;
428 }
429 
430 
431 .box-flex-container{
432  display: flex; /* or inline-flex */
433  flex-direction: row;
434  flex-wrap: wrap;
435  width: calc(100% + 14px);
436  margin: 0 -8px 0 -8px;
437  /*justify-content: space-between;*/
438 }
439 
440 .box-flex-grow-zero{
441  flex-grow: 0 !important;
442 }
443 
444 .box-flex-item{
445  flex-grow : 1;
446  flex-shrink: 1;
447  flex-basis: auto;
448 
449  width: 280px;
450  margin: 5px 8px 0px 8px;
451 }
452 .box-flex-item.filler{
453  margin: 0px 0px 0px 15px !important;
454  height: 0;
455 }
456 
457 .info-box-title {
458  width: calc(100% - 20px);
459 }
460 .info-box-module {
461  min-width: 350px;
462  max-width: 350px;
463 }
464 
465 @media only screen and (max-width: 1740px) {
466  .info-box-module {
467  min-width: 315px;
468  max-width: 315px;
469  }
470 }
471 
472 @media only screen and (max-width: 767px) {
473  .info-box-module {
474  min-width: 260px;
475  }
476 }
477 
478 .info-box-module .info-box-content {
479  height: 98px;
480 }
481 /* Disabled. This break the responsive on smartphone
482 .box{
483  overflow: visible;
484 }
485 */
486 
487 @media only screen and (max-width: 767px)
488 {
489  .box-flex-container {
490  margin: 0 0 0 0px !important;
491  width: 100% !important;
492  justify-content: space-between;
493  }
494  .info-box-module {
495  width: 100%;
496  max-width: unset;
497  }
498 
499  .info-box-sm .info-box-icon-text, .info-box-sm .info-box-icon-version {
500  width: 60px;
501  }
502  .info-box-sm .info-box-icon {
503  width: 60px;
504  }
505  .info-box-sm .info-box-content {
506  margin-left: 60px;
507  }
508  .info-box {
509  border: 1px solid #e0e0e0;
510  }
511 }
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