92 lines
2.8 KiB
HTML
92 lines
2.8 KiB
HTML
<?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: 1100px;">
|
|
<div class="center" >
|
|
<h2>Catégories</h2>
|
|
|
|
<div><span id="categoryCount">n/a</span> catégories</div>
|
|
</div>
|
|
<table id="categoryList" class="table_classic left">
|
|
<thead>
|
|
<tr>
|
|
<th class="" style="width: 300px;">Nom de la catégorie</th>
|
|
<th class="">Logiciels</th>
|
|
<th class="" style="width: 100px;">Services</th>
|
|
<th class="" style="width: 100px;">Organisations</th>
|
|
<th class="" style="width: 100px;">Utilisateurs mensuels</th>
|
|
<th class="" style="width: 100px;">Visites mensuelles</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr id="categoryListLine">
|
|
<td id="categoryListLineName" style="padding-top: 0; padding-bottom: 0;">
|
|
<a href="#" id="categoryListLineNameLink">
|
|
<img id="categoryListLineNameLogo" src="categories/default.svg" style="width: 26px; height: 26px; padding-top:0; padding-bottom: 0; vertical-align: middle;"/>
|
|
<span id="categoryListLineNameValue">n/a</span>
|
|
</a>
|
|
</td>
|
|
<td id="categoryListLineSoftwares">n/a</td>
|
|
<td id="categoryListLineServiceCount" class="td_number">n/a</td>
|
|
<td id="categoryListLineOrganizationCount" class="td_number">n/a</td>
|
|
<td id="categoryListLineUserCount" class="td_number">n/a</td>
|
|
<td id="categoryListLineVisitCount" class="td_number">n/a</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<script type="text/javascript">
|
|
$(document).ready(function()
|
|
{
|
|
$.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;
|
|
}
|
|
});
|
|
|
|
$('#categoryList').DataTable(
|
|
{
|
|
paging: false,
|
|
ordering: true,
|
|
"order": [[ 0, "asc" ]],
|
|
language: dataTableFrench,
|
|
"columnDefs":
|
|
[
|
|
{ targets: 4, "type": 'custom-sort' },
|
|
{ targets: 5, "type": 'custom-sort' }
|
|
]
|
|
});
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|