melder/admin/export.php

112 lines
3.2 KiB
PHP
Raw Normal View History

2024-02-16 15:35:01 +01:00
<?php
/** *****************************
* Ideenmelder
* Autor: Walter Hupfeld, Hamm
* E-Mail: info@hupfeld-software.de
2024-03-11 23:06:15 +01:00
* Version: 3.0
2024-02-16 15:35:01 +01:00
* Datum: 18.05.2021
2024-02-18 10:40:48 +01:00
* zuletzt geändert: 18.02.2024
2024-02-16 15:35:01 +01:00
******************************** */
session_start();
$strLoginName=(isset($_SESSION['user'])) ? $_SESSION['user'] : "" ;
$boolLogin = (!empty($strLoginName));
if (!$boolLogin) {
header("Location: login.php");
}
2024-03-12 17:40:20 +01:00
if (isset($_SESSION['superadmin'])) {
$boolSuperAdmin = (bool)$_SESSION['superadmin'];
}
$strDistrict = $_SESSION['district'];
2024-02-21 14:31:28 +01:00
$sqlDistrict = ($boolSuperAdmin) ? "1" : "l.district='$strDistrict'";
2024-02-16 15:35:01 +01:00
require ("../config.php");
?>
<!DOCTYPE html>
2024-02-20 22:28:50 +01:00
<html lang="de">
2024-02-16 15:35:01 +01:00
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../css/bootstrap.min.css" />
<link href="../css/font-awesome.min.css" rel="stylesheet">
<script src="../js/jquery.min.js"></script>
2024-03-15 19:46:25 +01:00
<title>Konfiguration</title>
2024-02-16 15:35:01 +01:00
<style>
.leftlabel { width: 10em;}
input[type="text"] { width: 18em;}
input.wide {width: 24em;}
</style>
</head>
<body>
<!-- Navbar -->
<nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top">
2024-03-12 17:40:20 +01:00
<a class="navbar-brand" href="#">Administration <?= $strTitle ?></a>
2024-02-16 15:35:01 +01:00
<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>
</button>
<div class="collapse navbar-collapse" id="navbars">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="index.php">Liste <span class="sr-only">(current)</span></a>
</li>
2024-03-12 17:40:20 +01:00
<?php if ($boolSuperAdmin): ?>
2024-02-16 15:35:01 +01:00
<li class="nav-item">
<a class="nav-link" href="configuration.php">Konfiguration </a>
</li>
<li class="nav-item">
<a class="nav-link" href="geocoding.php">Addressen ermitteln </a>
</li>
2024-03-12 17:40:20 +01:00
<?php endif; ?>
2024-02-16 15:35:01 +01:00
<li class="nav-item active">
<a class="nav-link" href="export.php">Export </a>
</li>
<li class="nav-item">
<a class="nav-link" href="password.php">Passwort ändern </a>
</li>
</ul>
<div>
<ul class="navbar-nav mr-auto right">
<li class="nav-item">
<a class="nav-link" href="logout.php">Logout (<?=$strLoginName?>)</a>
</li>
</ul>
</div>
</nav>
<!-- Ende Navbar -->
<div class="container" style="margin-top:5em;">
<h1>Export</h1>
<div class="row">
<div class="col-md-7 col-lg-7">
<br>
<div class="card">
<div class="card-header">
<h3>CSV Exportieren</h3>
</div>
<div class="card-body">
<ul>
<li> <a href="print_html.php">HTML-Druckansicht</a></li>
<li> <a href="dump.php">CSV-Datei</a></li>
<li> <a href="shapefile.php">Shape-File (ZIP)</a></li>
</ul>
</div>
</div>
<br>
</div>
</div>
</div>
</body>
</html>