diff options
Diffstat (limited to 'functions.php')
| -rw-r--r-- | functions.php | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/functions.php b/functions.php index 659241a..efb173c 100644 --- a/functions.php +++ b/functions.php @@ -191,6 +191,8 @@ function print_list($option = false){ ?> </tbody> </table> + <p>Downloade als <a href="/?page=action&task=download&type=plain">[plain text]</a> oder als <a href="/?page=action&task=download&type=csv">[csv]</a> Datei.</p> + <br> </div> <form method="POST" action="/?page=add&_flush="<?php echo $c->token; ?>> <button id="singlebutton" class="btn btn-info" type="submit">Füge jemanden hinzu</button> @@ -248,9 +250,25 @@ function print_update_list($id){ </tbody> </table> </div> + <button id="singlebutton" name="singlebutton" class="btn btn-info" type="submit">Ändere!</button> + + + </form> </div> + <br> + <form method="POST" action="/?page=action&task=delete&id=<?php echo htmlentities($_GET["id"]); ?>" class="form-horizontal"> + <fieldset> + <legend>Lösche "<?php echo $row["name"]; ?>" von der Liste</legend> + <div class="form-group"> + <label class="col-md-4 control-label" for="singlebutton"></label> + <div class="col-md-4"> + <button id="singlebutton" name="singlebutton" class="btn btn-danger" type="submit" onclick="return confirm('Bist du dir sicher? Der Datensatz wird unwiederbringlich gelöscht werden!');">Löschen!</button> + </div> +</div> + </fieldset> + </form> <?php } else { print_list("update"); @@ -425,7 +443,7 @@ function print_register($option = false){ } function print_account($option = false){ - lredirect("accout"); + lredirect("account"); global $user; ?> <form class="form-horizontal" method="POST" action="/?page=action&task=account&goto=account"> |
