ffrs-fw-dl/webroot/subauswahl.php

78 lines
3.5 KiB
PHP
Raw Normal View History

2017-06-26 13:42:51 +00:00
<?php
/**
* @author Leo Maroni
* @copyright 2017 Leo Maroni
* @license Licensed under GPLv3
*/
error_reporting (E_ALL ^ E_NOTICE);
require_once('community-config.inc.php');
require_once('config.inc.php');
require_once('ffrouter.class.php');
$community_id = $_REQUEST['id'];
?>
<!DOCTYPE html>
<html lang="de" xmlns:target="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title><?php echo $community[$community_id]["head_titel"]?></title>
<meta name="author" content="Leo Maroni" />
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
2018-12-26 16:57:02 +00:00
<link rel="stylesheet" href="https://cdn.labcode.de/libs/materialize/0.100.2/css/materialize.min.css" integrity="sha256-e22BQKCF7bb/h/4MFJ1a4lTRR2OuAe8Hxa/3tgU5Taw=" crossorigin="anonymous" />
<link rel="stylesheet" href="css/community.css">
2017-06-26 13:42:51 +00:00
2018-12-26 16:57:02 +00:00
<script src="https://cdn.labcode.de/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script src="https://cdn.labcode.de/libs/materialize/0.100.2/js/materialize.min.js" integrity="sha256-uWtSXRErwH9kdJTIr1swfHFJn/d/WQ6s72gELOHXQGM=" crossorigin="anonymous"></script>
2017-06-26 13:42:51 +00:00
<script src="js/firmware.js"></script>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<?php
if (!isset($community[$community_id]["sub_auswahl"])) {
header("Location: firmware.php?id=" . $community_id);
}
?>
</head>
<body>
<div class="container z-depth-3" id="outer-container">
<header class="center">
<h3 class="thin"><?php echo $community[$community_id]['head_titel']?></h3>
<p>
<a id="backtohome" class="btn waves-effect waves-light" href="<?php echo $community[$community_id]['link_url']?>"><?php echo $community[$community_id]['link_text']?></a>
<a id="backtomap" class="btn waves-effect waves-light" href="/">Zur&uuml;ck zur Auswahl</a>
</p>
</header>
<div class="container row" id="inner-container">
<?php for ($i = 0; $i < $err; $i++): ?>
<div class="alert alert-warning alert-dismissible" role="alert">
<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
<span class="sr-only">Warning:</span>
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<strong>Warning!</strong> <?php echo $error_text[$i] ?>
</div>
<?php endfor ?>
<div class="col s12">
2018-01-30 11:49:32 +00:00
<h5>Auswahl Stadtteilnetz</h5>
2018-03-01 17:05:02 +00:00
<p>Wähle die Firmware 'Soziale Netze' für Freifunk in öffentlichen- und sozialen Einrichtungen</p>
2017-06-26 13:42:51 +00:00
<select id="stadtteil" onchange="change('stadtteil', this)">
2018-01-30 11:49:32 +00:00
<option disabled selected value="">Stadtteilnetz ausw&auml;hlen</option>
2017-06-26 13:42:51 +00:00
<?php foreach ($community[$community_id]["sub_auswahl"] as $value): ?>
<option value="<?php echo $value ?>"><?php echo $community[$value]['name']?></option>
<?php endforeach ?>
</select>
</div>
</div>
<footer class="page-footer">
<div class="footer-copyright">
<div class="container">
2018-03-01 06:13:21 +00:00
Licensed under GPLv3 / © 2017 <a class="grey-text text-lighten-4" href="https://labcode.de">Leo Maroni</a>. Dies ist ein Community-Projekt von Freifunk Siegburg und Freifunk Troisdorf. Alle Firmwares sind Eigenentwicklungen der jeweiligen Communities. <a href="http://www.freifunk-siegburg.de/impressum/" class="grey-text text-lighten-4">Impressum</a>
2017-06-26 13:42:51 +00:00
</div>
</div>
</footer>
</div>
</body>
</html>