public function deleteCurrencyObject() { $this->tpl->addBlockfile('ADM_CONTENT', 'adm_content', 'tpl.main_view.html', 'Services/Payment'); if (ilPaymentCurrency::_isDefault($_POST['currency_id'])) { return false; } $_SESSION['currency_id'] = $_POST['currency_id']; $oConfirmationGUI = new ilConfirmationGUI(); $this->ctrl->setParameter($this, 'currency_id', (int) $_POST['currency_id']); // set confirm/cancel commands $oConfirmationGUI->setFormAction($this->ctrl->getFormAction($this, "performDeleteCurrency")); $oConfirmationGUI->setHeaderText($this->lng->txt("paya_sure_delete_selected_currency")); $oConfirmationGUI->setCancel($this->lng->txt("cancel"), "currencies"); $oConfirmationGUI->setConfirm($this->lng->txt("confirm"), "performDeleteCurrency"); $oConfirmationGUI->addItem('currency_id', '', ilPaymentCurrency::_getUnit($_POST['currency_id']), ''); $this->tpl->setVariable('CONFIRMATION', $oConfirmationGUI->getHtml()); return true; }
public function deleteAttachments() { if (!isset($_POST['filename']) || !is_array($_POST['filename']) || !$_POST['filename']) { ilUtil::sendFailure($this->lng->txt('mail_select_one_file')); $this->showAttachments(); return; } $this->tpl->setTitle($this->lng->txt('mail')); require_once 'Services/Utilities/classes/class.ilConfirmationGUI.php'; $confirmation = new ilConfirmationGUI(); $confirmation->setFormAction($this->ctrl->getFormAction($this, 'confirmDeleteAttachments')); $confirmation->setConfirm($this->lng->txt('confirm'), 'confirmDeleteAttachments'); $confirmation->setCancel($this->lng->txt('cancel'), 'showAttachments'); $confirmation->setHeaderText($this->lng->txt('mail_sure_delete_file')); foreach ($_POST['filename'] as $filename) { $confirmation->addItem('filename[]', ilUtil::stripSlashes($filename), ilUtil::stripSlashes(urldecode($filename))); } $this->tpl->setContent($confirmation->getHtml()); $this->tpl->show(); }
/** * */ protected function confirmReset() { /** * @var $rbacsystem ilRbacSystem * @var $ilErr ilErrorHandling * @var $tpl ilTemplate */ global $rbacsystem, $ilErr, $tpl; if (!$rbacsystem->checkAccess('write', $this->object->getRefId())) { $ilErr->raiseError($this->lng->txt('permission_denied'), $ilErr->MESSAGE); } $confirmation = new ilConfirmationGUI(); $confirmation->setFormAction($this->ctrl->getFormAction($this, 'confirmReset')); $confirmation->setConfirm($this->lng->txt('confirm'), 'reset'); $confirmation->setCancel($this->lng->txt('cancel'), 'showAgreementByLanguage'); $confirmation->setHeaderText($this->lng->txt('tos_sure_reset_tos')); $tpl->setContent($confirmation->getHtml()); }
/** * Confirmation of the tests final submission */ protected function confirmFinishTestCmd() { /** * @var $ilUser ilObjUser */ global $ilUser; require_once 'Services/Utilities/classes/class.ilConfirmationGUI.php'; $confirmation = new ilConfirmationGUI(); $confirmation->setFormAction($this->ctrl->getFormAction($this, 'confirmFinish')); $confirmation->setHeaderText($this->lng->txt("tst_finish_confirmation_question")); $confirmation->setConfirm($this->lng->txt("tst_finish_confirm_button"), 'confirmFinish'); $confirmation->setCancel($this->lng->txt("tst_finish_confirm_cancel_button"), 'backConfirmFinish'); if ($this->object->getKioskMode()) { $this->tpl->addBlockfile($this->getContentBlockName(), 'content', "tpl.il_as_tst_kiosk_mode_content.html", "Modules/Test"); $this->tpl->setContent($confirmation->getHtml()); } else { $this->tpl->setVariable($this->getContentBlockName(), $confirmation->getHtml()); } }