fix and layout

This commit is contained in:
Walter Hupfeld 2024-02-22 16:34:43 +01:00
parent f8b8feee5b
commit 8b6632d36f
4 changed files with 10 additions and 27 deletions

View File

@ -1,5 +1,6 @@
<?php <?php
exit(); exit();
// ist veraltet, muss noch angepasst werden.
session_start(); session_start();
$strLoginName=(isset($_SESSION['user'])) ? $_SESSION['user'] : "" ; $strLoginName=(isset($_SESSION['user'])) ? $_SESSION['user'] : "" ;
$boolLogin = (!empty($strLoginName)); $boolLogin = (!empty($strLoginName));

View File

@ -17,7 +17,6 @@ if (isset($_SESSION['district'])) {
else { else {
$strDistrict=""; $strDistrict="";
} }
require_once("../config.php"); require_once("../config.php");
$boolLogin=true; $boolLogin=true;
@ -42,7 +41,6 @@ $boolLogin=true;
$boolLogin=false; $boolLogin=false;
} }
} }
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
<html lang="de"> <html lang="de">
@ -85,7 +83,6 @@ $boolLogin=true;
</div> <br> </div> <br>
<?php endif; ?> <?php endif; ?>
<div class="card"> <div class="card">
<div class="card-header"> <div class="card-header">
<h2>Login</h2> <h2>Login</h2>
@ -108,12 +105,9 @@ $boolLogin=true;
</div> </div>
</div> </div>
</div> </div>
<div style="margin-top:5em;"> <div style="margin-top:5em;">
<a class="btn btn-primary text-white" href="../index.php?ref=1">zurück</a> <a class="btn btn-primary text-white" href="../index.php?ref=1">zurück</a>
</div> </div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -19,7 +19,7 @@
header("Location: start.php"); header("Location: start.php");
} }
require("config.php"); require("config.php");
if ($strDistict=="unkown") { header("Location: start.php");} if ($strDistrict=="unkown") { header("Location: start.php");}
require_once("lib/functions.php"); require_once("lib/functions.php");
$ref=(isset($_GET['ref']) && ($_GET['ref']==1)); $ref=(isset($_GET['ref']) && ($_GET['ref']==1));
@ -27,7 +27,6 @@
$strIntro ="<h4>".$strTitle."</h4>"; $strIntro ="<h4>".$strTitle."</h4>";
$strIntro .= nl2br2($strIntroText); $strIntro .= nl2br2($strIntroText);
$result= $db->prepare("SELECT loc.*,f.filename $result= $db->prepare("SELECT loc.*,f.filename
FROM location loc LEFT JOIN files f ON loc.id=f.loc_id FROM location loc LEFT JOIN files f ON loc.id=f.loc_id
WHERE loc.district=:district"); WHERE loc.district=:district");
@ -172,8 +171,6 @@
?> ?>
<div id="loader"><img src="css/images/ajax-loader.gif"></div> <div id="loader"><img src="css/images/ajax-loader.gif"></div>
<script> <script>
// Map ---------------------------------------------------------------------- // Map ----------------------------------------------------------------------
var mymap = L.map('mapid').setView([<?=$numInfoLat ?>, <?=$numInfoLng ?>], <?=$numZoom ?>); var mymap = L.map('mapid').setView([<?=$numInfoLat ?>, <?=$numInfoLng ?>], <?=$numZoom ?>);
@ -484,7 +481,6 @@
} }
} }
}); });
</script> </script>
</body> </body>
</html> </html>

View File

@ -9,13 +9,11 @@
******************************** */ ******************************** */
exit(); exit();
// noch nicht vollständig angepasst
require("config.db.php"); require("config.db.php");
$boolError=false; $boolError=false;
?> ?>
<html lang="de"> <html lang="de">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
@ -28,7 +26,6 @@ exit();
.leftlabel { width: 10em;} .leftlabel { width: 10em;}
input[type="text"] { width: 18em;} input[type="text"] { width: 18em;}
input.wide {width: 24em;} input.wide {width: 24em;}
</style> </style>
</head> </head>
<body> <body>
@ -138,10 +135,6 @@ require("config.php");
</div> </div>
<br> <br>
<div class="card"> <div class="card">
<div class="card-header"> <div class="card-header">
<h3>Anbieterinformation</h3> <h3>Anbieterinformation</h3>
@ -197,4 +190,3 @@ require("config.php");
</script> </script>
</body> </body>
</html> </html>