/* init_ks_lut.js.php */
<?php 
require_once dirname(__FILE__) . '/../php/frontend_dao.php';
$frontend = new FrontendDAO();
$lut = array('kategorie' => $frontend->categories(), 'typ' => $frontend->types(), 'status' => $frontend->statuses());
foreach ($lut["kategorie"] as $key => $val) {
    $parent = $val["parent"];
    if ($parent) {
        $childcount = $lut["kategorie"][$parent]["childcount"];
        $lut["kategorie"][$parent]["childcount"] = $childcount + 1;
    }
}
?>
var ks_lut = <?php 
echo json_encode($lut);
?>
;
Exemple #2
0
<?php

require_once "config/urls.php";
require_once "php/frontend_dao.php";
$frontend = new FrontendDAO();
$config = (include 'config/config.php');
?>
<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta name="keywords" content="Portal,Bürgerbeteiligung,Karte,Probleme,Ideen,Verwaltung" />
    <meta name="description" content="Melden Sie via Karte Probleme und Ideen im öffentlichen Raum, die dann von einer kommunalen Verwaltung bearbeitet werden." />
    <meta name="author" content="Hansestadt Rostock" />
    <title>Klarschiff – Portal zur Bürgerbeteiligung</title>
    <link rel="shortcut icon" type="image/x-icon" href="images/icons/favicon.ico" />
    <link rel="alternate" type="application/atom+xml" title="Klarschiff-Meldungen" href="rss.php" />
    <link rel="stylesheet" type="text/css" media="all" href="styles/jquery-ui-1.11.2.min.css" />
    <link rel="stylesheet" type="text/css" media="all" href="libs/bootstrap.min.css" />
    <link rel="stylesheet" type="text/css" media="all" href="styles/index.css" />
    <script type="text/javascript" src="javascripts/build/libs.js"></script>
    <script type="text/javascript" src="javascripts/build/index.js"></script>
  </head>
  <body>
    <?php 
include "header.inc.php";
?>
    <div class="container">
      <div id="eye-catcher" class="row">
        <div class="overlay guide">
          <h3><span class="italic">Klarschiff</span> – Bürgerbeteiligung</h3>
Exemple #3
0
<?php

/**
 * @file
 * georss.php - Proxy für die GeoRSS-Auslieferung
 *
 * GET-Parameter: id=<number>
 */
require_once 'config/urls.php';
require_once 'php/frontend_dao.php';
$frontend = new FrontendDAO();
$xml_out = "";
$id = isset($_REQUEST["id"]) ? $_REQUEST["id"] : "";
if ($id != "" && count($data = $frontend->rss_data($id))) {
    $wfs_filter = "";
    $IDEE_KAT = "";
    $PROB_KAT = "";
    if ($data["ideen"] == "t") {
        $wfs_filter .= "<PropertyIsEqualTo><PropertyName>typ</PropertyName><Literal>Idee</Literal></PropertyIsEqualTo>";
        $ideen_kategorien = explode(",", $data["ideen_kategorien"]);
        if (count($ideen_kategorien) >= 2) {
            $IDEE_KAT .= "<Or>";
        }
        foreach ($ideen_kategorien as $ideeKategorie) {
            if ($ideeKategorie != "") {
                $IDEE_KAT .= "<PropertyIsEqualTo><PropertyName>hauptkategorie_id</PropertyName><Literal>" . $ideeKategorie . "</Literal></PropertyIsEqualTo>";
            }
        }
        if (count($ideen_kategorien) >= 2) {
            $IDEE_KAT .= "</Or>";
        }
<?php

/**
 * @file
 * Frontend-Fassade für das Abonnieren von RSS-Feeds.
 */
require_once 'backend_tunnel.php';
require_once 'frontend_dao.php';
$frontend = new FrontendDAO();
$config = (include dirname(__FILE__) . "/../config/config.php");
$problem_categories = filter_input(INPUT_POST, 'problem_kategorie', FILTER_DEFAULT, FILTER_REQUIRE_ARRAY);
if (empty($problem_categories) || !is_array($problem_categories)) {
    $problem_categories = array();
}
$idea_categories = filter_input(INPUT_POST, 'idee_kategorie', FILTER_DEFAULT, FILTER_REQUIRE_ARRAY);
if (empty($idea_categories) || !is_array($idea_categories)) {
    $idea_categories = array();
}
$data = array_merge(filter_input_array(INPUT_POST, array('id' => FILTER_SANITIZE_STRING, 'geom' => FILTER_UNSAFE_RAW)), array("ideen" => empty($idea_categories) ? 'false' : 'true', "ideen_kategorien" => implode(",", $idea_categories), "probleme" => empty($problem_categories) ? 'false' : 'true', "probleme_kategorien" => implode(",", $problem_categories)));
if ($data["geom"] != "null" && strlen($data["geom"]) > 0 && $data["id"] != "null" && strlen($data["id"]) > 0) {
    header("HTTP/1.0 500 Internal Server Error");
    die("Es kann entweder ein Polygon oder eine Polygon-Id übergeben werden, aber nicht beides.");
}
if ($data["id"] == -1) {
    // GEBIET
    $data["geom"] = $frontend->city_boundary();
} else {
    if ($data["id"] != "null" && strlen($data["id"]) > 0) {
        // ORTSTEILE
        $ids = array();
        // Überprüfen ob es sich um Zahlen handelt.
<?php

require_once "frontend_dao.php";
$frontend = new FrontendDAO();
header('Content-Type: application/json');
echo json_encode($frontend->random_advice_position());
Exemple #6
0
    <description>Diese Daten umfassen die Meldungen in Klarschiff, dem Portal zur Bürgerbeteiligung, mit Informationen zu Nummer, Typ, Hauptkategorie, Unterkategorie, Status, Statusinformation, Unterstützungen, Beschreibung, Foto und Erstellungsdatum.</description>
    <language>de-de</language>
    <copyright>Das von der Hansestadt Rostock hier angebotene und in ihrem Eigentum befindliche Werk unterliegt der gemeinfreien Lizenz Creative Commons 1.0 Universell Public Domain Dedication (CC0 1.0; URL: https://creativecommons.org/publicdomain/zero/1.0/deed.de). Damit ist alles gestattet, ohne um weitere Erlaubnis bitten zu müssen. Es gelten folgende Regelungen zu Gewährleistung und Haftung: https://geo.sv.rostock.de/haftung-fuer-angebotene-inhalte.html</copyright>
    <image>
    <url><?php 
echo FRONTEND_URL, 'images/rss.png';
?>
</url>
    <title>Klarschiff-Meldungen</title>
    <link><?php 
echo FRONTEND_URL;
?>
</link>
    </image>
    <?php 
$frontend = new FrontendDAO();
foreach ($frontend->rss() as $rss) {
    $link = htmlentities(strip_tags(BASE_URL . "?advice=" . $rss['meldung']), ENT_QUOTES);
    ?>
      <item>
        <title><?php 
    echo "#", $rss['meldung'], " ", $rss['typ'], " (", $rss['hauptkategorie'], " – ", $rss['unterkategorie'], ")";
    ?>
</title>
        <description>
          <![CDATA[
          <b>Status:</b> <?php 
    echo $rss['status'];
    ?>
<br/>
          <b>Statusinformation:</b> <?php