datatable
This commit is contained in:
parent
54f14b1d8b
commit
1c36f67189
@ -6,6 +6,7 @@
|
|||||||
* E-Mail: info@hupfeld-software.de
|
* E-Mail: info@hupfeld-software.de
|
||||||
* Version: 1.1
|
* Version: 1.1
|
||||||
* Datum: 18.02.2024
|
* Datum: 18.02.2024
|
||||||
|
* zuletzt bearbeitet: 20.02.2024
|
||||||
******************************** */
|
******************************** */
|
||||||
|
|
||||||
require_once("config.db.php");
|
require_once("config.db.php");
|
||||||
@ -81,7 +82,7 @@ $result= $db->prepare("SELECT count(*) FROM district WHERE district=:district");
|
|||||||
$result->bindParam(":district",$strDistrict);
|
$result->bindParam(":district",$strDistrict);
|
||||||
$result->execute();
|
$result->execute();
|
||||||
if ($row=$result->fetch(PDO::FETCH_NUM)) {
|
if ($row=$result->fetch(PDO::FETCH_NUM)) {
|
||||||
if ($row[0]==0) $strDistrict="hamm";
|
if ($row[0]==0) $strDistrict=""; //default setzten
|
||||||
}
|
}
|
||||||
|
|
||||||
// Spezifische Konfiguration für Districtt
|
// Spezifische Konfiguration für Districtt
|
||||||
|
32
liste.php
32
liste.php
@ -35,11 +35,12 @@
|
|||||||
<link rel="stylesheet" href="css/leaflet.css" />
|
<link rel="stylesheet" href="css/leaflet.css" />
|
||||||
<link rel="stylesheet" href="css/leaflet.awesome-markers.css" />
|
<link rel="stylesheet" href="css/leaflet.awesome-markers.css" />
|
||||||
<link rel="stylesheet" href="css/lightbox.css" />
|
<link rel="stylesheet" href="css/lightbox.css" />
|
||||||
<link rel="stylesheet" href="css/font-awesome.min.css">
|
<link rel="stylesheet" href="css/font-awesome.min.css">
|
||||||
<!--
|
<link rel="stylesheet" href="//cdn.datatables.net/2.0.0/css/dataTables.dataTables.min.css">
|
||||||
<link rel="stylesheet" href="vendor/DataTables/datatable.min.css">
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="vendor/DataTables/DataTables-1.10.21/css/dataTables.bootstrap4.min.css">
|
<link rel="stylesheet" href="vendor/DataTables/DataTables-1.10.21/css/dataTables.bootstrap4.min.css">
|
||||||
-->
|
|
||||||
|
|
||||||
<title>Eintragsliste</title>
|
<title>Eintragsliste</title>
|
||||||
<script src="js/jquery.min.js"></script>
|
<script src="js/jquery.min.js"></script>
|
||||||
@ -47,10 +48,11 @@
|
|||||||
<script src="js/leaflet.ajax.js"></script>
|
<script src="js/leaflet.ajax.js"></script>
|
||||||
<script src="js/leaflet.awesome-markers.js"></script>
|
<script src="js/leaflet.awesome-markers.js"></script>
|
||||||
<script src="js/lightbox.min.js"></script>
|
<script src="js/lightbox.min.js"></script>
|
||||||
<!--
|
|
||||||
<script src="vendor/DataTables/datatables.js"></script>
|
<script src="//cdn.datatables.net/2.0.0/js/dataTables.min.js"></script>
|
||||||
<script src="vendor/DataTables/DataTables-1.10.21/js/dataTables.bootstrap4.min.js"></script>
|
|
||||||
-->
|
<script src="vendor/DataTables/DataTables-1.10.21/js/dataTables.bootstrap4.min.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -200,12 +202,14 @@
|
|||||||
<script>
|
<script>
|
||||||
jQuery(document).ready(function(){
|
jQuery(document).ready(function(){
|
||||||
|
|
||||||
|
|
||||||
// dataTable = $('#list').DataTable( {
|
let dataTable = new DataTable(
|
||||||
// language: {
|
"#list",
|
||||||
// url: 'vendor/DataTables/de_DE.json'
|
{
|
||||||
// }
|
language: {
|
||||||
// });
|
url: 'vendor/DataTables/de_DE.json'
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user