protected function confirmPortfolioDeletion() { global $ilCtrl, $tpl, $lng; if (!is_array($_POST["prtfs"]) || count($_POST["prtfs"]) == 0) { ilUtil::sendInfo($lng->txt("no_checkbox"), true); $ilCtrl->redirect($this, "show"); } else { include_once "./Services/Utilities/classes/class.ilConfirmationGUI.php"; $cgui = new ilConfirmationGUI(); $cgui->setFormAction($ilCtrl->getFormAction($this)); $cgui->setHeaderText($lng->txt("prtf_sure_delete_portfolios")); $cgui->setCancel($lng->txt("cancel"), "show"); $cgui->setConfirm($lng->txt("delete"), "deletePortfolios"); foreach ($_POST["prtfs"] as $id) { $cgui->addItem("prtfs[]", $id, ilObjPortfolio::_lookupTitle($id)); } $tpl->setContent($cgui->getHTML()); } }