statoolinfosweb/src/fr/devinsy/statoolinfos/htmlize/serviceFigureView.xhtml

107 lines
4.1 KiB
HTML
Raw Normal View History

2022-02-27 11:57:37 +01:00
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>StatoolInfos</title>
<meta charset="UTF-8" />
<meta name="keywords" content="statoolinfos,devinsy,federation" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="statoolinfos.css" />
<script src="sorttable.js" />
<script src="Chart.bundle.min.js"></script>
</head>
<body>
<div class="center_table" style="width: 1500px;">
<br/>
<div class="center">Nombre de services : <span id="serviceCount">n/a</span></div>
<table id="serviceListTable" class="center_table table_classic left">
<thead>
<tr>
<th class="" style="width: 225px;">Service</th>
<th class="">Logiciel</th>
<th id="hitCountHeaderColumn" class="" style="width: 10px;">Hits</th>
<th id="visitCountHeaderColumn" class="" style="width: 10px;">Visites</th>
<th id="visitorCountHeaderColumn" class="" style="width: 10px;">Visiteurs</th>
<th id="userCountHeaderColumn" class="" style="width: 10px;">Utilisateurs</th>
<th id="accountCountHeaderColumn" class="" style="width: 10px;">Comptes</th>
<th id="activeAccountHeaderColumn" class="" style="width: 10px;">Comptes actifs</th>
</tr>
</thead>
<tbody>
<tr id="serviceListLine" class="serviceListLine">
<td id="serviceListLineName" style="padding-top: 0; padding-bottom: 0;">
<a href="#" id="serviceListLineOrganizationLink">
<img id="serviceListLineOrganizationLogo" src="" style="width: 26px; height: 26px; padding-top:0; padding-bottom: 0; vertical-align: middle;"/>
</a>
<a href="#" id="serviceListLineNameLink">
<img id="serviceListLineLogo" src="" style="width: 26px; height: 26px; padding-top:0; padding-bottom: 0; vertical-align: middle;"/>
&#160;<span id="serviceListLineNameValue">n/a</span>
</a>
<img id="serviceStatusImg" src="status-void.png" title="n/a" style="width: 12px; height: 12px; vertical-align: middle;"/>
</td>
<td id="serviceListLineSoftware">
<a href="#" id="serviceListLineSoftwareLink" title="">n/a</a>
</td>
<td id="serviceListLineHitCount" class="td_number">n/a</td>
<td id="serviceListLineVisitCount" class="td_number">n/a</td>
<td id="serviceListLineVisitorCount" class="td_number">n/a</td>
<td id="serviceListLineUserCount" class="td_number">n/a</td>
<td id="serviceListLineAccountCount" class="td_number">n/a</td>
<td id="serviceListLineActiveAccountCount" class="td_number">n/a</td>
</tr>
</tbody>
</table>
</div>
<script type="text/javascript">
$(document).ready(function()
{
$.fn.dataTable.moment('DD/MM/YYYY');
$.extend($.fn.dataTable.ext.type.order,
{
"custom-sort-asc": function(x, y)
{
if (!(!isNaN(x) || !isNaN(y)))
return 0;
else if (isNaN(x))
return -1;
else if (isNaN(y))
return +1;
else
return x-y;
},
"custom-sort-desc": function(x, y)
{
if (!(!isNaN(x) || !isNaN(y)))
return 0;
else if (isNaN(x))
return +1;
else if (isNaN(y))
return -1;
else
return y-x;
}
} );
$('#serviceListTable').DataTable(
{
paging: false,
ordering: true,
"order": [[ 2, "desc" ]],
language: dataTableFrench,
"columnDefs":
[
{ targets: 2, "type": 'custom-sort' },
{ targets: 3, "type": 'custom-sort' },
{ targets: 4, "type": 'custom-sort' },
{ targets: 5, "type": 'custom-sort' },
{ targets: 6, "type": 'custom-sort' },
{ targets: 7, "type": 'custom-sort' }
]
});
});
</script>
</body>
</html>