showForm() public method

public showForm ( $ID, $options )
}
$language = new NotificationTemplateTranslation();
if (isset($_POST["add"])) {
    $language->check(-1, 'w', $_POST);
    $newID = $language->add($_POST);
    Event::log($newID, "notificationtemplates", 4, "notification", $_SESSION["glpiname"] . " " . $LANG['log'][20] . " : " . $_POST["language"] . ".");
    glpi_header($_SERVER['HTTP_REFERER']);
} else {
    if (isset($_POST["delete"])) {
        $language->check($_POST["id"], 'd');
        $language->delete($_POST);
        Event::log($_POST["id"], "notificationtemplates", 4, "notification", $_SESSION["glpiname"] . " " . $LANG['log'][22]);
        $language->redirectToList();
    } else {
        if (isset($_POST["update"])) {
            $language->check($_POST["id"], 'w');
            $language->update($_POST);
            Event::log($_POST["id"], "notificationtemplates", 4, "notification", $_SESSION["glpiname"] . " " . $LANG['log'][21]);
            glpi_header($_SERVER['HTTP_REFERER']);
        } else {
            commonHeader($LANG['mailing'][113], $_SERVER['PHP_SELF'], "config", "mailing", "notificationtemplate");
            if ($_GET["id"] == '') {
                $options = array("notificationtemplates_id" => $_GET["notificationtemplates_id"]);
            } else {
                $options = array();
            }
            $language->showForm($_GET["id"], $options);
            commonFooter();
        }
    }
}