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
exit();
// ist veraltet, muss noch angepasst werden.
session_start();
$strLoginName=(isset($_SESSION['user'])) ? $_SESSION['user'] : "" ;
$boolLogin = (!empty($strLoginName));

View File

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

View File

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

View File

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