mise à jour ansible glpi
This commit is contained in:
11
Mission4/roles/glpi/files/fusioninventory/js/footer.js
Normal file
11
Mission4/roles/glpi/files/fusioninventory/js/footer.js
Normal file
@@ -0,0 +1,11 @@
|
||||
var fifooter = "<br/> \
|
||||
<a class='copyright' href='http://fusioninventory.org/'> \
|
||||
FusionInventory 9.5+3.0 - Copyleft \
|
||||
<span style='display:inline-block;transform: rotate(180deg);font-size: 12px;'>©</span> \
|
||||
2010-2019 by FusionInventory Team \
|
||||
</a>";
|
||||
|
||||
$(window).bind("load", function() {
|
||||
$('#footer').css('height', 'auto');
|
||||
$("#footer td.right").append(fifooter);
|
||||
});
|
68
Mission4/roles/glpi/files/fusioninventory/js/stats.js
Normal file
68
Mission4/roles/glpi/files/fusioninventory/js/stats.js
Normal file
@@ -0,0 +1,68 @@
|
||||
function statHalfDonut(svgname, jsondata) {
|
||||
|
||||
nv.addGraph(function() {
|
||||
|
||||
var width = 400,
|
||||
height = 380;
|
||||
|
||||
var chart = nv.models.pieChart()
|
||||
.x(function(d) { return d.key })
|
||||
.showLabels(false)
|
||||
// .values(function(d) { return d.value })
|
||||
// .color(function(d) {return d.data.color})
|
||||
.width(width)
|
||||
.height(height)
|
||||
.donut(true);
|
||||
|
||||
chart.pie
|
||||
.startAngle(function(d) { return d.startAngle/2 -Math.PI/2 })
|
||||
.endAngle(function(d) { return d.endAngle/2 -Math.PI/2 });
|
||||
|
||||
chart.legend.maxKeyLength(200);
|
||||
|
||||
d3.select('#' + svgname)
|
||||
.datum(JSON.parse(jsondata))
|
||||
.transition().duration(1200)
|
||||
.attr('width', width)
|
||||
.attr('height', height)
|
||||
.call(chart);
|
||||
|
||||
return chart;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function statBar(svgname, jsondata, title) {
|
||||
|
||||
nv.addGraph(function() {
|
||||
|
||||
var width = 400,
|
||||
height = 380;
|
||||
|
||||
var chart = nv.models.discreteBarChart()
|
||||
.x(function(d) { return d.label })
|
||||
.y(function(d) { return d.value })
|
||||
.width(width)
|
||||
.height(height)
|
||||
.staggerLabels(true)
|
||||
.showValues(false);
|
||||
|
||||
d3.select('#' + svgname)
|
||||
.datum([JSON.parse(jsondata)])
|
||||
.attr('width', width)
|
||||
.attr('height', height)
|
||||
.call(chart);
|
||||
|
||||
d3.select('#' + svgname)
|
||||
.append('text')
|
||||
.attr('x', 200)
|
||||
.attr('y', 12)
|
||||
.attr('text-anchor', 'middle')
|
||||
.style('font-weight', 'bold')
|
||||
.text(title);
|
||||
|
||||
nv.utils.windowResize(chart.update);
|
||||
|
||||
return chart;
|
||||
});
|
||||
}
|
1292
Mission4/roles/glpi/files/fusioninventory/js/taskjobs.js
Normal file
1292
Mission4/roles/glpi/files/fusioninventory/js/taskjobs.js
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user