46 lines
1.1 KiB
PHP
46 lines
1.1 KiB
PHP
<?php
|
|
session_start();
|
|
|
|
include("../scripts/connection.php");
|
|
include("../scripts/functions.php");
|
|
$user_data = check_login($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 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;
|
|
?>
|