Adding close button to the edit and add pages #2
@@ -5,6 +5,7 @@
|
|||||||
$user_data = check_login($con);
|
$user_data = check_login($con);
|
||||||
|
|
||||||
if($_SERVER['REQUEST_METHOD'] == "POST") {
|
if($_SERVER['REQUEST_METHOD'] == "POST") {
|
||||||
|
if(isset($_POST['save'])){
|
||||||
$points = sanitize_input($_POST['points']);
|
$points = sanitize_input($_POST['points']);
|
||||||
$minutes = sanitize_input($_POST['minutes']);
|
$minutes = sanitize_input($_POST['minutes']);
|
||||||
$seconds = sanitize_input($_POST['seconds']);
|
$seconds = sanitize_input($_POST['seconds']);
|
||||||
@@ -29,6 +30,7 @@
|
|||||||
$time = "00:" . $minutes . ":" . $seconds . "." . $miliseconds;
|
$time = "00:" . $minutes . ":" . $seconds . "." . $miliseconds;
|
||||||
}
|
}
|
||||||
write_points($con, $s_id, $m_id, $points, $time);
|
write_points($con, $s_id, $m_id, $points, $time);
|
||||||
|
}
|
||||||
header("Location: statistik.php");
|
header("Location: statistik.php");
|
||||||
die;
|
die;
|
||||||
}
|
}
|
||||||
@@ -71,7 +73,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<input id="button" type="submit" value="Eintragen" class="btn-confirm"/>
|
<input id="button" type="submit" value="Eintragen" class="btn-confirm" name="save"/>
|
||||||
|
<input id="close" type="submit" value="Schließen" class="btn-confirm" name="close">
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -5,9 +5,11 @@
|
|||||||
$user_data = check_login($con);
|
$user_data = check_login($con);
|
||||||
|
|
||||||
if($_SERVER['REQUEST_METHOD'] == "POST") {
|
if($_SERVER['REQUEST_METHOD'] == "POST") {
|
||||||
|
if(isset($_POST['save'])){
|
||||||
$station_name = sanitize_input($_POST['station_name']);
|
$station_name = sanitize_input($_POST['station_name']);
|
||||||
$station_pos = sanitize_input($_POST['station_pos']);
|
$station_pos = sanitize_input($_POST['station_pos']);
|
||||||
write_station($con, $station_name, $station_pos);
|
write_station($con, $station_name, $station_pos);
|
||||||
|
}
|
||||||
header("Location: stationen.php");
|
header("Location: stationen.php");
|
||||||
die;
|
die;
|
||||||
}
|
}
|
||||||
@@ -23,16 +25,17 @@
|
|||||||
<div class="form_div">
|
<div class="form_div">
|
||||||
<form method="post">
|
<form method="post">
|
||||||
<div class="txt_field">
|
<div class="txt_field">
|
||||||
<input id="station_name" type="text" name="station_name" required/>
|
<input class="input_field" id="station_name" type="text" name="station_name" required/>
|
||||||
<span></span>
|
<span></span>
|
||||||
<label for="station_name">Name</label>
|
<label for="station_name">Name</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="txt_field">
|
<div class="txt_field">
|
||||||
<input id="station_pos" type="text" name="station_pos" required/>
|
<input class="input_field" id="station_pos" type="text" name="station_pos" required/>
|
||||||
<span></span>
|
<span></span>
|
||||||
<label for="station_pos">Standort</label>
|
<label for="station_pos">Standort</label>
|
||||||
</div>
|
</div>
|
||||||
<input id="button" type="submit" value="Hinzufügen" class="btn-confirm"/>
|
<input id="button" type="submit" value="Hinzufügen" class="btn-confirm" name="save"/>
|
||||||
|
<a href="stationen.php" class="btn-close">Schließen</a>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -5,9 +5,11 @@
|
|||||||
$user_data = check_login($con);
|
$user_data = check_login($con);
|
||||||
|
|
||||||
if($_SERVER['REQUEST_METHOD'] == "POST") {
|
if($_SERVER['REQUEST_METHOD'] == "POST") {
|
||||||
|
if(isset($_POST['save'])) {
|
||||||
$team_name = sanitize_input($_POST['team_name']);
|
$team_name = sanitize_input($_POST['team_name']);
|
||||||
$fire_department = sanitize_input($_POST['fire_department']);
|
$fire_department = sanitize_input($_POST['fire_department']);
|
||||||
write_team($con, $team_name, $fire_department);
|
write_team($con, $team_name, $fire_department);
|
||||||
|
}
|
||||||
header("Location: mannschaft.php");
|
header("Location: mannschaft.php");
|
||||||
die;
|
die;
|
||||||
}
|
}
|
||||||
@@ -37,7 +39,8 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
<label for="fire_department">Feuerwehr</label>
|
<label for="fire_department">Feuerwehr</label>
|
||||||
</div>
|
</div>
|
||||||
<input id="button" type="submit" value="Hinzufügen" class="btn-confirm"/>
|
<input id="button" type="submit" value="Hinzufügen" class="btn-confirm" name="save"/>
|
||||||
|
<a href="mannschaft.php">Schließen</a>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -64,6 +64,7 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<input type="submit" value="Hinzufügen" class="btn-confirm"/>
|
<input type="submit" value="Hinzufügen" class="btn-confirm"/>
|
||||||
|
<a href="manage_user.php">Schließen</a>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -130,6 +130,10 @@ form .txt_field{
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.btn-close a {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
.form_div {
|
.form_div {
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
<link rel="stylesheet" href="css/edit.css">
|
<link rel="stylesheet" href="css/edit.css">
|
||||||
<script src="js/navbar.js" defer></script>
|
<script src="js/navbar.js" defer></script>
|
||||||
<script src="js/edit_table.js"></script>
|
<script src="js/edit_table.js"></script>
|
||||||
|
<script src="js/add_entries.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
|
|||||||
Reference in New Issue
Block a user