disctrict
This commit is contained in:
parent
d918e97203
commit
1f44c21d69
@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
exit();
|
||||||
session_start();
|
session_start();
|
||||||
$strLoginName=(isset($_SESSION['user'])) ? $_SESSION['user'] : "" ;
|
$strLoginName=(isset($_SESSION['user'])) ? $_SESSION['user'] : "" ;
|
||||||
$boolLogin = (!empty($strLoginName));
|
$boolLogin = (!empty($strLoginName));
|
||||||
@ -7,8 +8,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
date_default_timezone_set('UTC');
|
date_default_timezone_set('UTC');
|
||||||
const DB_FILENAME = "../db/locations.db";
|
|
||||||
$db = new SQLite3(DB_FILENAME);
|
|
||||||
|
|
||||||
$strSQL="ALTER TABLE location ADD COLUMN defect INTEGER";
|
$strSQL="ALTER TABLE location ADD COLUMN defect INTEGER";
|
||||||
$db->exec($strSQL);
|
$db->exec($strSQL);
|
||||||
|
@ -15,6 +15,9 @@
|
|||||||
if (!$boolLogin) {
|
if (!$boolLogin) {
|
||||||
header("Location: login.php");
|
header("Location: login.php");
|
||||||
}
|
}
|
||||||
|
$strDistrict=$_SESSION['district'];
|
||||||
|
$sqlDistrict = ($boolSuperAdmin) ? "1" : "l.district='$strDistrict'";
|
||||||
|
|
||||||
|
|
||||||
require("../config.db.php");
|
require("../config.db.php");
|
||||||
require ("../config.php");
|
require ("../config.php");
|
||||||
@ -28,7 +31,9 @@
|
|||||||
// Query
|
// Query
|
||||||
|
|
||||||
$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 ORDER BY created_at ASC";
|
FROM location l LEFT JOIN address adr ON l.id=adr.loc_id
|
||||||
|
WHERE $sqlDistrict
|
||||||
|
ORDER BY created_at ASC";
|
||||||
$query = $db->query($strSQL);
|
$query = $db->query($strSQL);
|
||||||
|
|
||||||
// Fetch the first row
|
// Fetch the first row
|
||||||
|
@ -15,6 +15,9 @@
|
|||||||
if (!$boolLogin) {
|
if (!$boolLogin) {
|
||||||
header("Location: login.php");
|
header("Location: login.php");
|
||||||
}
|
}
|
||||||
|
$strDistrict=$_SESSION['district'];
|
||||||
|
$sqlDistrict = ($boolSuperAdmin) ? "1" : "l.district='$strDistrict'";
|
||||||
|
|
||||||
require ("../config.php");
|
require ("../config.php");
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
@ -37,7 +40,7 @@
|
|||||||
<body>
|
<body>
|
||||||
<!-- Navbar -->
|
<!-- Navbar -->
|
||||||
<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="#">Administration <?= $strTitle ?></a>
|
<a class="navbar-brand" href="#">Administration <?= $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">
|
||||||
<span class="navbar-toggler-icon"></span>
|
<span class="navbar-toggler-icon"></span>
|
||||||
</button>
|
</button>
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
if (!$boolLogin) {
|
if (!$boolLogin) {
|
||||||
header("Location: login.php");
|
header("Location: login.php");
|
||||||
}
|
}
|
||||||
require_once("../config.db.php");
|
$strDistrict=$_SESSION['district'];
|
||||||
require ("../config.php");
|
require ("../config.php");
|
||||||
require ("../lib/geocoding.php");
|
require ("../lib/geocoding.php");
|
||||||
$boolRefresh = (isset($_GET['refresh']) & $_GET['refresh']==1);
|
$boolRefresh = (isset($_GET['refresh']) & $_GET['refresh']==1);
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
* E-Mail: info@hupfeld-software.de
|
* E-Mail: info@hupfeld-software.de
|
||||||
* Version: 1.0
|
* Version: 1.0
|
||||||
* Datum: 18.05.2021
|
* Datum: 18.05.2021
|
||||||
|
* zuletzte bearbeitet: 21.02.2024
|
||||||
******************************** */
|
******************************** */
|
||||||
|
|
||||||
|
|
||||||
|
@ -6,11 +6,11 @@
|
|||||||
if (!$boolLogin) {
|
if (!$boolLogin) {
|
||||||
header("Location: login.php");
|
header("Location: login.php");
|
||||||
}
|
}
|
||||||
|
$strDistrict=$_SESSION['district'];
|
||||||
include("../config.php");
|
include("../config.php");
|
||||||
$sqlDistrict = ($boolSuperAdmin) ? "1" : "l.district='$strDistrict'";
|
$sqlDistrict = ($boolSuperAdmin) ? "1" : "l.district='$strDistrict'";
|
||||||
|
|
||||||
|
/*
|
||||||
$arrTopic = array (
|
$arrTopic = array (
|
||||||
1 => "Fußverkehr",
|
1 => "Fußverkehr",
|
||||||
2 => "Radverkehr",
|
2 => "Radverkehr",
|
||||||
@ -26,6 +26,7 @@
|
|||||||
4 => "<i class='fa fa-car'></i>",
|
4 => "<i class='fa fa-car'></i>",
|
||||||
5 => "<i class='fa fa-truck'></i>"
|
5 => "<i class='fa fa-truck'></i>"
|
||||||
);
|
);
|
||||||
|
*/
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="de">
|
<html lang="de">
|
||||||
|
Loading…
Reference in New Issue
Block a user