datatables fix
This commit is contained in:
parent
6eb3594bcd
commit
852b45f125
@ -191,7 +191,7 @@
|
||||
<!-- Ende Navbar -->
|
||||
|
||||
<div class="container-fluid" style="margin-top:5em;">
|
||||
<table id="list" class="table table-bordered table-striped">
|
||||
<table id="list" class="display">
|
||||
<thead>
|
||||
<tr><th>id</th>
|
||||
<?= ($boolSuperAdmin) ? "<th>Kreis</th>" : "" ?>
|
||||
@ -213,7 +213,6 @@
|
||||
|
||||
<?php
|
||||
$strScript="";
|
||||
//$strSQL="SELECT * FROM location ORDER BY appoval, created_at DESC";
|
||||
$strSQL="SELECT l.id as lid,l.*,adr.*
|
||||
FROM location l LEFT JOIN address adr ON l.id=adr.loc_id
|
||||
WHERE $sqlDistrict
|
||||
@ -303,10 +302,11 @@
|
||||
|
||||
<script>
|
||||
$( document ).ready(function() {
|
||||
|
||||
let dataTable = new DataTable(
|
||||
"#list",
|
||||
{ language: {url: '../vendor/DataTables/de_DE.json'},
|
||||
lengthMenu: [ [10, 25, 50, -1], [10, 25, 50, 'All'] ]
|
||||
lengthMenu: [ [10, 25, 50, -1], [10, 25, 50, 'Alle'] ]
|
||||
});
|
||||
|
||||
var url = 'https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw';
|
||||
|
@ -100,7 +100,7 @@
|
||||
<p> </p>
|
||||
<h2>Liste der Einträge für <?=$strDistrictTitle?></h2>
|
||||
|
||||
<table id="list" class="table table-bordered table-striped">
|
||||
<table id="list" class="display">
|
||||
<thead>
|
||||
<tr><th>Nr.</th><th>Name</th>
|
||||
<?= ($boolUserinfo) ? "<th>Alter</th><th>Verkehrsmittel</th>" : ""; ?>
|
||||
@ -204,10 +204,8 @@ jQuery(document).ready(function(){
|
||||
|
||||
let dataTable = new DataTable(
|
||||
"#list",
|
||||
{
|
||||
language: {
|
||||
url: 'vendor/DataTables/de_DE.json'
|
||||
}
|
||||
{ language: {url: 'vendor/DataTables/de_DE.json'},
|
||||
lengthMenu: [ [10, 25, 50, -1], [10, 25, 50, 'Alle'] ]
|
||||
});
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user