61 lines
2.1 KiB
PHP
61 lines
2.1 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="center">
|
|
<div class="headline">
|
|
<h2>Stationen</h2>
|
|
</div>
|
|
<div class="input-table">
|
|
<div class="input">
|
|
<div class="btn-div">
|
|
<form action="delete_station.php" method="post">
|
|
<span class="gg-trash icon edit disabled" id="icon-delete"></span>
|
|
<input id="delete_station" type="button" type="butto" value="" class="edit" disabled="true"/>
|
|
<input type="hidden" id="s_id_delete" name="s_id"/>
|
|
</form>
|
|
</div>
|
|
<div class="btn-div">
|
|
<form action="edit_station.php" method="get">
|
|
<span class="gg-pen icon edit disabled" id="icon-edit"></span>
|
|
<input id="edit_station" type="button" value="" class="edit" disabled="true"/>
|
|
<input type="hidden" id="s_id" name="s_id"/>
|
|
</form>
|
|
</div>
|
|
<div class="btn-div">
|
|
<form action="add_station.php" method="get">
|
|
<span class="gg-add-r icon" id="icon-add"></span>
|
|
<input type="submit" value=""/>
|
|
</form>
|
|
</div>
|
|
</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>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
|
|
<?php
|
|
echo file_get_contents("header_footer/footer.html");
|
|
$con = null;
|
|
?>
|