52 lines
1.4 KiB
PHP
52 lines
1.4 KiB
PHP
<?php
|
|
session_start();
|
|
|
|
include("../scripts/connection.php");
|
|
include("../scripts/functions.php");
|
|
$user_data = check_admin($con);
|
|
|
|
include("header_footer/header.php");
|
|
?>
|
|
|
|
<body>
|
|
<div class="headline">
|
|
<h2>Stationen</h2>
|
|
</div>
|
|
<div>
|
|
<form action="add_station.php" method="get">
|
|
<input type="submit" value="Station anlegen"/>
|
|
</form>
|
|
</div>
|
|
<div>
|
|
<form action="edit_station.php" method="get">
|
|
<input id="edit_station" type="button" value="Station bearbeiten" class="edit" disabled="true"/>
|
|
<input type="hidden" id="s_id" name="s_id"/>
|
|
</form>
|
|
</div>
|
|
<div>
|
|
<form action="delete_station.php" method="post">
|
|
<input id="delete_station" type="button" type="butto" value="Löschen" class="edit" disabled="true"/>
|
|
<input type="hidden" id="s_id_delete" name="s_id"/>
|
|
</form>
|
|
</div>
|
|
<div class="table-div">
|
|
<table id="table">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">Name</th>
|
|
<th scope="col">Standort</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
load_stations_table($con);
|
|
?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</body>
|
|
|
|
<?php
|
|
echo file_get_contents("header_footer/footer.html");
|
|
$con = null;
|
|
?>
|