Adding close button to the edit and add pages #2
@@ -11,6 +11,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($_SERVER['REQUEST_METHOD'] == "POST") {
|
if($_SERVER['REQUEST_METHOD'] == "POST") {
|
||||||
|
if(!isset($_POST['close'])){
|
||||||
$station_id = sanitize_input($_POST['station_id']);
|
$station_id = sanitize_input($_POST['station_id']);
|
||||||
$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']);
|
||||||
@@ -31,6 +32,7 @@
|
|||||||
if($gewertet != $station_gewertet) {
|
if($gewertet != $station_gewertet) {
|
||||||
update_station_gewertet($con, $s_id, $station_gewertet);
|
update_station_gewertet($con, $s_id, $station_gewertet);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
header("Location: stationen.php");
|
header("Location: stationen.php");
|
||||||
die;
|
die;
|
||||||
}
|
}
|
||||||
@@ -61,7 +63,10 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<input type="hidden" name="station_id" <?php echo "value=\"" . $row ['s_id'] . "\""?>/>
|
<input type="hidden" name="station_id" <?php echo "value=\"" . $row ['s_id'] . "\""?>/>
|
||||||
|
<div>
|
||||||
<input type="submit" value="Speichern" class="btn-confirm"/>
|
<input type="submit" value="Speichern" class="btn-confirm"/>
|
||||||
|
<input type="submit" value="Schließen" class="btn-confirm" name="close">
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($_SERVER['REQUEST_METHOD'] == 'POST') {
|
if($_SERVER['REQUEST_METHOD'] == 'POST') {
|
||||||
|
if(isset($_POST['button'])) {
|
||||||
$m_id = intval(sanitize_input($_POST['m_id']));
|
$m_id = intval(sanitize_input($_POST['m_id']));
|
||||||
$s_id = intval(sanitize_input($_POST['s_id']));
|
$s_id = intval(sanitize_input($_POST['s_id']));
|
||||||
$points = intval(sanitize_input($_POST['points']));
|
$points = intval(sanitize_input($_POST['points']));
|
||||||
@@ -35,7 +36,7 @@
|
|||||||
$time = "00:" . $minutes . ":" . $seconds . "." . $millis;
|
$time = "00:" . $minutes . ":" . $seconds . "." . $millis;
|
||||||
change_time($con, $m_id, $s_id, $time);
|
change_time($con, $m_id, $s_id, $time);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
header("Location: statistik.php");
|
header("Location: statistik.php");
|
||||||
die;
|
die;
|
||||||
}
|
}
|
||||||
@@ -74,6 +75,7 @@
|
|||||||
<input type="hidden" name="m_id" value=<?php echo $row['m_id'] ?>/>
|
<input type="hidden" name="m_id" value=<?php echo $row['m_id'] ?>/>
|
||||||
<input type="hidden" name="s_id" value=<?php echo $row['s_id'] ?>/>
|
<input type="hidden" name="s_id" value=<?php echo $row['s_id'] ?>/>
|
||||||
<input name="button" type="submit" value="Speichern" class="btn-confirm"/>
|
<input name="button" type="submit" value="Speichern" class="btn-confirm"/>
|
||||||
|
<input type="submit" name="close" value="Schließen" class="btn-confirm"/>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($_SERVER['REQUEST_METHOD'] == "POST") {
|
if($_SERVER['REQUEST_METHOD'] == "POST") {
|
||||||
|
if(isset($_POST['save'])) {
|
||||||
$m_id = sanitize_input($_POST['m_id']);
|
$m_id = sanitize_input($_POST['m_id']);
|
||||||
$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']);
|
||||||
@@ -22,7 +23,7 @@
|
|||||||
if($_POST['fire_department'] != $row['feuerwehr']) {
|
if($_POST['fire_department'] != $row['feuerwehr']) {
|
||||||
update_team_fire_department($con, $m_id, $fire_department);
|
update_team_fire_department($con, $m_id, $fire_department);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
header("Location: mannschaft.php");
|
header("Location: mannschaft.php");
|
||||||
die;
|
die;
|
||||||
}
|
}
|
||||||
@@ -52,7 +53,8 @@
|
|||||||
<label for="fire_department">Feuerwehr</label>
|
<label for="fire_department">Feuerwehr</label>
|
||||||
</div>
|
</div>
|
||||||
<input type="hidden" name="m_id" <?php echo "value=\"" . $row['m_id'] . "\""?> />
|
<input type="hidden" name="m_id" <?php echo "value=\"" . $row['m_id'] . "\""?> />
|
||||||
<input type="submit" value="Speichern" class="btn-confirm"/>
|
<input type="submit" value="Speichern" class="btn-confirm" name="save"/>
|
||||||
|
<input type="submit" nam="close" value="Schließen" class="btn-confirm"/>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($_SERVER['REQUEST_METHOD'] == "POST") {
|
if($_SERVER['REQUEST_METHOD'] == "POST") {
|
||||||
|
if(isset($_POST['save'])){
|
||||||
$id = sanitize_input($_POST['id']);
|
$id = sanitize_input($_POST['id']);
|
||||||
$user = get_user($con, $id)->fetch();
|
$user = get_user($con, $id)->fetch();
|
||||||
$user_group = sanitize_input($_POST['user_group']);
|
$user_group = sanitize_input($_POST['user_group']);
|
||||||
@@ -40,7 +41,7 @@
|
|||||||
$phash = generate_password_hash($password, $user['salt']);
|
$phash = generate_password_hash($password, $user['salt']);
|
||||||
change_password($con, $id, $phash);
|
change_password($con, $id, $phash);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
header("Location: manage_user.php");
|
header("Location: manage_user.php");
|
||||||
die;
|
die;
|
||||||
}
|
}
|
||||||
@@ -84,7 +85,8 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<input type="hidden" value=<?php echo "\"" . $row['id'] . "\""?> name="id"/>
|
<input type="hidden" value=<?php echo "\"" . $row['id'] . "\""?> name="id"/>
|
||||||
<input type="submit" value="ändern" class="btn-confirm"/>
|
<input type="submit" value="Speichern" class="btn-confirm" name="save"/>
|
||||||
|
<input type="submit" value="Schließen" class="btn-confirm" name="close"/>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
<header>
|
<header>
|
||||||
<nav class="navbar">
|
<nav class="navbar">
|
||||||
<div id="logo">
|
<div id="logo">
|
||||||
Punktesystem-KSP
|
Punktesystem-Kreispokalwettbewerb
|
||||||
</div>
|
</div>
|
||||||
<a href="#" class="toggle-button">
|
<a href="#" class="toggle-button">
|
||||||
<span class="bar"></span>
|
<span class="bar"></span>
|
||||||
@@ -32,9 +32,9 @@
|
|||||||
echo "<li><a href=\"stationen.php\">Stationen</a></li>\n";
|
echo "<li><a href=\"stationen.php\">Stationen</a></li>\n";
|
||||||
}
|
}
|
||||||
if ($_SESSION['user_group'] == 'statistics') {
|
if ($_SESSION['user_group'] == 'statistics') {
|
||||||
echo "<li><a href=\"statistik.php\">Ergebnisse</a></li>";
|
echo "<li><a href=\"statistik.php\">Ergebnis</a></li>";
|
||||||
} else {
|
} else {
|
||||||
echo "<li><a href=\"statistik.php\">Ergebnisse eintragen</a></li>";
|
echo "<li><a href=\"statistik.php\">Ergebnis eintragen</a></li>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
@@ -11,10 +11,10 @@
|
|||||||
<body>
|
<body>
|
||||||
<div class="center">
|
<div class="center">
|
||||||
<div class="headline">
|
<div class="headline">
|
||||||
<h1><span>Punktesystem Kreispokalwettbewerb Altdorf</span></h1>
|
<h1><span>Punktesystem Kreispokalwettbewerb</span></h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="home">
|
<div class="home">
|
||||||
<h2>Gesamtergebniss</h2>
|
<h2>Gesamtergebnis</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="home-menu-table table-div">
|
<div class="home-menu-table table-div">
|
||||||
<table id="table">
|
<table id="table">
|
||||||
|
|||||||
@@ -41,11 +41,11 @@
|
|||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<link rel="stylesheet" href="css/login.css">
|
<link rel="stylesheet" href="css/login.css">
|
||||||
<title>Punktesystem-KSP</title>
|
<title>Punktesystem-KPW</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="center">
|
<div class="center">
|
||||||
<h1>PUNKTESYSTEM-KSP</h1>
|
<h1>PUNKTESYSTEM-KPW</h1>
|
||||||
<form method="post">
|
<form method="post">
|
||||||
<div class="txt_field">
|
<div class="txt_field">
|
||||||
<input id="user_name" type="text" name="user_name" required/>
|
<input id="user_name" type="text" name="user_name" required/>
|
||||||
|
|||||||
Reference in New Issue
Block a user