showForm() public method

Print the reminder form
public showForm ( $ID, $options = [] )
$ID integer Id of the item to print
$options array of possible options: - target filename : where to go when done. - from_planning_ajax : set to disable planning form part
Exemplo n.º 1
0
                        case 'Profile':
                            if (isset($_POST['profiles_id']) && $_POST['profiles_id']) {
                                $item = new Profile_Reminder();
                            }
                            break;
                        case 'Entity':
                            $item = new Entity_Reminder();
                            break;
                    }
                    if (!is_null($item)) {
                        $item->add($_POST);
                        Event::log($_POST["reminders_id"], "reminder", 4, "tools", sprintf(__('%s adds a target'), $_SESSION["glpiname"]));
                    }
                }
                Html::back();
            } else {
                if ($_SESSION["glpiactiveprofile"]["interface"] == "helpdesk") {
                    Html::helpHeader(Reminder::getTypeName(2), '', $_SESSION["glpiname"]);
                } else {
                    Html::header(Reminder::getTypeName(2), '', "utils", "reminder");
                }
                $remind->showForm($_GET["id"]);
                if ($_SESSION["glpiactiveprofile"]["interface"] == "helpdesk") {
                    Html::helpFooter();
                } else {
                    Html::footer();
                }
            }
        }
    }
}