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