This commit is contained in:
Walter Hupfeld 2024-03-13 15:59:38 +01:00
parent 54fed73f14
commit 23009e8f74
11 changed files with 37 additions and 36 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@ -104,11 +104,11 @@ Erweiterung vom Leaflet um ein Polygon zu invertieren.
* https://github.com/ebrelsford/Leaflet.snogylop * https://github.com/ebrelsford/Leaflet.snogylop
* Lizenz: MIT * Lizenz: MIT
### Lightbox ### Fancybox
Zur Darstellung von Bildern Zur Darstellung von Bildern
* https://lokeshdhakar.com/projects/lightbox2/ * https://github.com/fancyapps/fancybox
* Lizenz: MIT * Lizenz: GPLv3
### Datatable ### Datatable

View File

@ -134,7 +134,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../css/bootstrap.min.css" /> <link rel="stylesheet" href="../css/bootstrap.min.css" />
<link rel="stylesheet" href="../css/font-awesome.min.css"> <link rel="stylesheet" href="../css/font-awesome.min.css">
<link rel="stylesheet" href="../css/lightbox.css" /> <link rel="stylesheet" href="../css/jquery.fancybox.min.css" />
<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" />
@ -142,7 +142,7 @@
<script src="../js/jquery.min.js"></script> <script src="../js/jquery.min.js"></script>
<script src="../js/leaflet.js"></script> <script src="../js/leaflet.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/jquery.fancybox.min.js"></script>
<title>Eintragsliste</title> <title>Eintragsliste</title>
<style> <style>
@ -254,7 +254,7 @@
$strSQL = "SELECT id,filename FROM files WHERE loc_id=".$id; $strSQL = "SELECT id,filename FROM files WHERE loc_id=".$id;
$files=$db->query($strSQL); $files=$db->query($strSQL);
if ($file=$files->fetch(PDO::FETCH_ASSOC)) { if ($file=$files->fetch(PDO::FETCH_ASSOC)) {
echo "<a href='../images/".$file['filename']."' data-lightbox='radweg".$id."'>"; echo "<a href='../images/".$file['filename']."' data-fancybox data-caption='".$strDefect."'>";
echo "<img src='../images/".$file['filename']."' style='width:150px'></a>"; echo "<img src='../images/".$file['filename']."' style='width:150px'></a>";
echo "<a href='".$_SERVER['PHP_SELF']."?delfid=".$file['id']."&csrf=".$_SESSION['csrf_token']."'><i class='fa fa-trash'></i></a>"; echo "<a href='".$_SERVER['PHP_SELF']."?delfid=".$file['id']."&csrf=".$_SESSION['csrf_token']."'><i class='fa fa-trash'></i></a>";
} }

1
css/jquery.fancybox.min.css vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
.lb-loader,.lightbox{text-align:center;line-height:0;position:absolute;left:0}body.lb-disable-scrolling{overflow:hidden}.lightboxOverlay{position:absolute;top:0;left:0;z-index:9999;background-color:#000;filter:alpha(Opacity=80);opacity:.8;display:none}.lightbox{width:100%;z-index:10000;font-weight:400;outline:0}.lightbox .lb-image{display:block;height:auto;max-width:inherit;max-height:none;border-radius:3px;border:4px solid #fff}.lightbox a img{border:none}.lb-outerContainer{position:relative;width:250px;height:250px;margin:0 auto;border-radius:4px;background-color:#fff}.lb-outerContainer:after{content:"";display:table;clear:both}.lb-loader{top:43%;height:25%;width:100%}.lb-cancel{display:block;width:32px;height:32px;margin:0 auto;background:url(../images/loading.gif) no-repeat}.lb-nav{position:absolute;top:0;left:0;height:100%;width:100%;z-index:10}.lb-container>.nav{left:0}.lb-nav a{outline:0;background-image:url(data:image/gif;base64,R0lGODlhAQABAPAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==)}.lb-next,.lb-prev{height:100%;cursor:pointer;display:block}.lb-nav a.lb-prev{width:34%;left:0;float:left;background:url(../images/prev.png) left 48% no-repeat;filter:alpha(Opacity=0);opacity:0;-webkit-transition:opacity .6s;-moz-transition:opacity .6s;-o-transition:opacity .6s;transition:opacity .6s}.lb-nav a.lb-prev:hover{filter:alpha(Opacity=100);opacity:1}.lb-nav a.lb-next{width:64%;right:0;float:right;background:url(../images/next.png) right 48% no-repeat;filter:alpha(Opacity=0);opacity:0;-webkit-transition:opacity .6s;-moz-transition:opacity .6s;-o-transition:opacity .6s;transition:opacity .6s}.lb-nav a.lb-next:hover{filter:alpha(Opacity=100);opacity:1}.lb-dataContainer{margin:0 auto;padding-top:5px;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.lb-dataContainer:after{content:"";display:table;clear:both}.lb-data{padding:0 4px;color:#ccc}.lb-data .lb-details{width:85%;float:left;text-align:left;line-height:1.1em}.lb-data .lb-caption{font-size:13px;font-weight:700;line-height:1em}.lb-data .lb-caption a{color:#4ae}.lb-data .lb-number{display:block;clear:left;padding-bottom:1em;font-size:12px;color:#999}.lb-data .lb-close{display:block;float:right;width:30px;height:30px;background:url(../images/close.png) top right no-repeat;text-align:right;outline:0;filter:alpha(Opacity=70);opacity:.7;-webkit-transition:opacity .2s;-moz-transition:opacity .2s;-o-transition:opacity .2s;transition:opacity .2s}.lb-data .lb-close:hover{cursor:pointer;filter:alpha(Opacity=100);opacity:1}

View File

@ -60,6 +60,9 @@
*/ */
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
<?php
print_r($_SESSION);
?>
<html lang="de"> <html lang="de">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
@ -72,20 +75,24 @@
<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/leaflet.snogylop.js"></script> <script src="js/leaflet.snogylop.js"></script>
<script src="js/lightbox.min.js"></script>
<link rel="stylesheet" href="css/font-awesome.min.css"> <link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="css/bootstrap.min.css" /> <link rel="stylesheet" href="css/bootstrap.min.css" />
<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/style.css" /> <link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="css/lightbox.css" />
<title><?=$strTitle?></title> <title><?=$strTitle?></title>
</head> </head>
<body> <body>
<!-- Navbar --> <!-- Navbar -->
<!--
<?php
print_r($_SESSION);
?>
-->
<nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top"> <nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top">
<a class="navbar-brand" href="#"><?= $strTitle ?> <?=$strDistrictTitle?></a> <a class="navbar-brand" href="#"><?= $strTitle ?> <?=$strDistrictTitle?></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbars" aria-controls="navbars" aria-expanded="false" aria-label="Toggle navigation"> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbars" aria-controls="navbars" aria-expanded="false" aria-label="Toggle navigation">

13
js/jquery.fancybox.min.js vendored Normal file

File diff suppressed because one or more lines are too long

4
js/jquery.min.js vendored

File diff suppressed because one or more lines are too long

15
js/lightbox.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,4 @@
<?php <?php
/** ***************************** /** *****************************
* Ideenmelder * Ideenmelder
* Autor: Walter Hupfeld, Hamm * Autor: Walter Hupfeld, Hamm
@ -9,6 +8,7 @@
******************************** */ ******************************** */
session_start(); session_start();
if (!isset($_SESSION['district'])) { header("Location: start.php");} if (!isset($_SESSION['district'])) { header("Location: start.php");}
$strDistrict=$_SESSION['district']; $strDistrict=$_SESSION['district'];
require("config.php"); require("config.php");
@ -27,22 +27,20 @@
<link rel="stylesheet" href="css/style.css" /> <link rel="stylesheet" href="css/style.css" />
<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/font-awesome.min.css"> <link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="vendor/DataTables/DataTables-2.0.2/css/dataTables.dataTables.min.css"> <link rel="stylesheet" href="vendor/DataTables/DataTables-2.0.2/css/dataTables.dataTables.min.css">
<link rel="stylesheet" href="vendor/DataTables/DataTables-2.0.2/css/dataTables.bootstrap4.min.css"> <link rel="stylesheet" href="vendor/DataTables/DataTables-2.0.2/css/dataTables.bootstrap4.min.css">
<link rel="stylesheet" href="css/jquery.fancybox.min.css" />
<title>Eintragsliste</title> <title>Eintragsliste</title>
<script src="js/jquery.min.js"></script> <script src="js/jquery.min.js"></script>
<script src="js/leaflet.js"></script> <script src="js/leaflet.js"></script>
<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="vendor/DataTables/DataTables-2.0.2/js/dataTables.min.js"></script> <script src="vendor/DataTables/DataTables-2.0.2/js/dataTables.min.js"></script>
<script src="vendor/DataTables/DataTables-2.0.2/js/dataTables.bootstrap4.min.js"></script> <script src="vendor/DataTables/DataTables-2.0.2/js/dataTables.bootstrap4.min.js"></script>
<script src="js/jquery.fancybox.min.js"></script>
<style> <style>
#whmap { display:none; position:absolute; top:150px; left:400px; } #whmap { display:none; position:absolute; top:150px; left:400px; }
@ -172,7 +170,7 @@
if ($boolShow) { if ($boolShow) {
echo "<td>"; echo "<td>";
if (isset($row['filename'])) { if (isset($row['filename'])) {
echo "<a href='images/".$row['filename']."' data-lightbox='radweg".$id."'>"; echo "<a href='images/".$row['filename']."' data-fancybox data-caption='".$strDefect."'>";
echo "<img style='width:120px' src='images/".$row['filename']."'></a>"; echo "<img style='width:120px' src='images/".$row['filename']."'></a>";
} }
echo "</td>"; echo "</td>";
@ -243,8 +241,6 @@ jQuery(document).ready(function(){
$('#close').click(function(e){ $('#close').click(function(e){
$('#whmap').hide(); $('#whmap').hide();
}); });
}); });
</script> </script>

BIN
vendor/.DS_Store vendored

Binary file not shown.