39 lines
900 B
Plaintext
39 lines
900 B
Plaintext
<table id="data-table" class="table table-striped table-bordered" width="100%" cellspacing="0">
|
|
<thead>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>DNS</th>
|
|
<th>IP Address</th>
|
|
<th>Contact</th>
|
|
<th>Location</th>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
var table = $('#data-table').dataTable({
|
|
"deferRender": true,
|
|
"data": [% results %],
|
|
"columns": [
|
|
{
|
|
data: 'ip',
|
|
render: function(data, type, row, meta) {
|
|
return '<a search_device %]&q=' + data + '">' + (row.ip || row.name) + '</a>';
|
|
}
|
|
}, {
|
|
data: 'dns'
|
|
}, {
|
|
data: 'ip'
|
|
}, {
|
|
data: 'contact'
|
|
}, {
|
|
data: 'location'
|
|
}
|
|
]
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|