当前位置: 首页>>代码示例>>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;未经允许,请勿转载。