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