當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ilConfirmationGUI::getHtml方法代碼示例

本文整理匯總了PHP中ilConfirmationGUI::getHtml方法的典型用法代碼示例。如果您正苦於以下問題:PHP ilConfirmationGUI::getHtml方法的具體用法?PHP ilConfirmationGUI::getHtml怎麽用?PHP ilConfirmationGUI::getHtml使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ilConfirmationGUI的用法示例。


在下文中一共展示了ilConfirmationGUI::getHtml方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: deleteCurrencyObject

 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;
 }
開發者ID:arlendotcn,項目名稱:ilias,代碼行數:18,代碼來源:class.ilObjPaymentSettingsGUI.php

示例2: deleteAttachments

 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();
 }
開發者ID:Walid-Synakene,項目名稱:ilias,代碼行數:20,代碼來源:class.ilMailAttachmentGUI.php

示例3: confirmReset

 /**
  *
  */
 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());
 }
開發者ID:Walid-Synakene,項目名稱:ilias,代碼行數:21,代碼來源:class.ilObjTermsOfServiceGUI.php

示例4: confirmFinishTestCmd

 /**
  * 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());
     }
 }
開發者ID:arlendotcn,項目名稱:ilias,代碼行數:22,代碼來源:class.ilTestPlayerAbstractGUI.php


注:本文中的ilConfirmationGUI::getHtml方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。