Пример #1
0
function displayOptionOfCity($result)
{
    echo "<h2>Save new record to the Team table...</h2>";
    printInput('TeamName');
    printSelection("League", $result);
    echo "<br>";
    echo "<br>";
    echo "<input class='btn btn-info' type='submit' name='save' value='SAVE'> ";
    echo "<a class='btn btn-danger' href='main.php'>BACK</a>";
}
Пример #2
0
{
    $username = $_REQUEST["UserName"];
    $user = new User();
    if ($user->selectByName($username)) {
        fehlerausgabe("Fehler: User existiert schon");
        die;
    }
}
$PageName = "Administration";
require "inc/header.inc.php";
require "inc/leftnav.inc.php";
$command = $_REQUEST["cmd"];
if ($command == "") {
    $command = "select";
}
if ($command == "select") {
    printSelection();
} else {
    if ($command == "useradd") {
        redirectTo("useradd.php");
    } else {
        if ($command == "groupadd") {
            redirectTo("groupadd.php");
        } else {
            echo "<font color=\"#ff0000\">Kommando unbekannt. Bitte neu w&auml;hlen.</font>";
            printSelection();
        }
    }
}
require "inc/footer.inc.php";
ob_end_flush();