Show the rule
public showForm ( $ID, $options = [] ) : nothing | ||
$ID | ID of the rule | |
$options | array of possible options | |
return | nothing |
} $item->redirectToList(); } Html::back(); } else { if (isset($_POST["add_action"])) { /// TODO create specific form $item->check($_POST['slalevels_id'], 'w'); $action = new SlaLevelAction(); $action->add($_POST); Html::back(); } else { if (isset($_POST["add_criteria"])) { $item->check($_POST['slalevels_id'], 'w'); $criteria = new SlaLevelCriteria(); $criteria->add($_POST); Html::back(); } else { if (isset($_GET["id"]) && $_GET["id"] > 0) { //print computer information Html::header(SlaLevel::getTypeName(2), $_SERVER['PHP_SELF'], "config", "sla"); //show computer form to add $item->showForm($_GET["id"]); Html::footer(); } } } } } } Html::displayErrorAndDie('Lost');