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

90 lines
2.8 KiB
HTML
Raw Normal View History

2020-09-25 15:46:30 +02: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>
2020-10-02 01:36:34 +02:00
<div class="center_table" style="width: 900px;">
<div class="center">
<h2>Logiciels</h2>
<div><span id="softwareCount">n/a</span> logiciels</div>
2020-09-25 15:46:30 +02:00
</div>
2020-10-22 01:14:53 +02:00
<table id="softwareList" class="table_classic left">
2020-10-02 01:36:34 +02:00
<thead>
<tr>
<th class="">Nom</th>
2020-10-19 02:17:57 +02:00
<th class="">Catégories</th>
2020-10-02 01:36:34 +02:00
<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>
2020-10-02 01:36:34 +02:00
</tr>
</thead>
<tbody>
<tr id="softwareListLine">
<td id="softwareListLineName" style="padding-top: 0; padding-bottom: 0;">
<a href="#" id="softwareListLineNameLink" title="">n/a</a>
</td>
2020-10-19 02:17:57 +02:00
<td id="softwareListLineCategory" style="padding-top: 0; padding-bottom: 0;">n/a</td>
2020-10-02 01:36:34 +02:00
<td id="softwareListLineServiceCount" class="td_number">n/a</td>
<td id="softwareListLineOrganizationCount" class="td_number">n/a</td>
<td id="softwareListLineUserCount" class="td_number">n/a</td>
<td id="softwareListLineVisitCount" class="td_number">n/a</td>
2020-10-02 01:36:34 +02:00
</tr>
</tbody>
</table>
2020-09-25 15:46:30 +02:00
</div>
2020-10-22 01:14:53 +02:00
<script type="text/javascript">
$(document).ready(function()
2020-10-22 01:14:53 +02:00
{
$.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;
}
} );
$('#softwareList').DataTable(
{
paging: false,
ordering: true,
"order": [[ 0, "asc" ]],
language: dataTableFrench,
"columnDefs":
[
{ targets: 4, "type": 'custom-sort' },
{ targets: 5, "type": 'custom-sort' }
]
});
2020-10-22 01:14:53 +02:00
});
</script>
2020-09-25 15:46:30 +02:00
</body>
</html>