//First time this screen is displayed : set the rebus mode to 'all' if (!isset($_SESSION["displaydisposal"])) { $_SESSION["displaydisposal"] = false; } //Changing the rebus mode if (isset($_GET["displaydisposal"])) { if ($_GET["displaydisposal"] == "false") { $_SESSION["displaydisposal"] = false; } else { $_SESSION["displaydisposal"] = true; } } $disposal = new PluginFinancialreportsDisposalItem(); $report = new PluginFinancialreportsFinancialreport(); if (isset($_POST["add_date"])) { $disposal->add($_POST); Html::back(); } else { if (isset($_POST["delete_date"])) { $disposal->delete($_POST); Html::back(); } else { if ($report->canView() || Session::haveRight("config", UPDATE)) { Report::title(); if (empty($_GET["date"])) { $_GET["date"] = date("Y-m-d"); } if (empty($_GET["locations_id"])) { $_GET["locations_id"] = 0; } if (!isset($_POST["date"])) {