showForm() public method

Print the contact form
public showForm ( $ID, $options = [] ) : Nothing
$ID integer ID of the item
$options array - target filename : where to go when done. - withtemplate boolean : template or basic item
return Nothing (display)
コード例 #1
0
ファイル: crontask.form.php プロジェクト: gaforeror/glpi
} else {
    if (isset($_POST["update"])) {
        Session::checkRight('config', 'w');
        $crontask->update($_POST);
        Html::back();
    } else {
        if (isset($_POST['resetdate']) && isset($_POST["id"])) {
            Session::checkRight('config', 'w');
            if ($crontask->getFromDB($_POST["id"])) {
                $crontask->resetDate();
            }
            Html::back();
        } else {
            if (isset($_POST['resetstate']) && isset($_POST["id"])) {
                Session::checkRight('config', 'w');
                if ($crontask->getFromDB($_POST["id"])) {
                    $crontask->resetState();
                }
                Html::back();
            } else {
                if (!isset($_GET["id"]) || empty($_GET["id"])) {
                    exit;
                }
                Html::header(Crontask::getTypeName(2), $_SERVER['PHP_SELF'], 'config', 'crontask');
                $crontask->showForm($_GET["id"]);
                Html::footer();
            }
        }
    }
}
Html::displayErrorAndDie('Lost');