• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP ilConfirmationGUI类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中ilConfirmationGUI的典型用法代码示例。如果您正苦于以下问题:PHP ilConfirmationGUI类的具体用法?PHP ilConfirmationGUI怎么用?PHP ilConfirmationGUI使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了ilConfirmationGUI类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: askDeleteGrouping

 function askDeleteGrouping()
 {
     global $ilErr, $ilAccess, $tpl;
     if (!$ilAccess->checkAccess('write', '', $this->content_obj->getRefId())) {
         $ilErr->raiseError($this->lng->txt('permission_denied'), $ilErr->MESSAGE);
     }
     if (!count($_POST['grouping'])) {
         ilUtil::sendFailure($this->lng->txt('crs_grouping_select_one'));
         $this->listGroupings();
         return false;
     }
     // display confirmation message
     include_once "./Services/Utilities/classes/class.ilConfirmationGUI.php";
     $cgui = new ilConfirmationGUI();
     $cgui->setFormAction($this->ctrl->getFormAction($this));
     $cgui->setHeaderText($this->lng->txt("crs_grouping_delete_sure"));
     $cgui->setCancel($this->lng->txt("cancel"), "listGroupings");
     $cgui->setConfirm($this->lng->txt("delete"), "deleteGrouping");
     // list objects that should be deleted
     foreach ($_POST['grouping'] as $grouping_id) {
         $tmp_obj = new ilObjCourseGrouping($grouping_id);
         $cgui->addItem("grouping[]", $grouping_id, $tmp_obj->getTitle());
     }
     $tpl->setContent($cgui->getHTML());
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:25,代码来源:class.ilObjCourseGroupingGUI.php


示例2: confirmDelete

 /**
  * confirmDelete
  */
 public function confirmDelete()
 {
     global $ilCtrl, $lng, $tpl;
     include_once './Services/Utilities/classes/class.ilConfirmationGUI.php';
     $conf = new ilConfirmationGUI();
     $conf->setFormAction($ilCtrl->getFormAction($this));
     $conf->setHeaderText($lng->txt('dcl_confirm_delete_record'));
     $record = ilDataCollectionCache::getRecordCache($this->record_id);
     $conf->addItem('record_id', $record->getId(), implode(", ", $record->getRecordFieldValues()));
     $conf->addHiddenItem('table_id', $this->table_id);
     $conf->setConfirm($lng->txt('delete'), 'delete');
     $conf->setCancel($lng->txt('cancel'), 'cancelDelete');
     $tpl->setContent($conf->getHTML());
 }
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:17,代码来源:class.ilDataCollectionRecordEditGUI.php


示例3: showTrustees

 public function showTrustees($a_show_delete = false)
 {
     global $ilToolbar;
     $_SESSION['paya_delete_trustee'] = $_SESSION['paya_delete_trustee'] ? $_SESSION['paya_delete_trustee'] : array();
     $actions = array(0 => $this->lng->txt("paya_disabled"), 1 => $this->lng->txt("paya_enabled"));
     include_once "./Services/Form/classes/class.ilTextInputGUI.php";
     $ul = new ilTextInputGUI($this->lng->txt("user"), "search_str");
     $ul->setDataSource($this->ctrl->getLinkTarget($this, "performSearch", "", true));
     $ul->setSize(20);
     $ilToolbar->addInputItem($ul, true);
     $ilToolbar->addFormButton($this->lng->txt("add"), "performSearch");
     $ilToolbar->setFormAction($this->ctrl->getFormAction($this));
     $this->tpl->addBlockfile('ADM_CONTENT', 'adm_content', 'tpl.main_view.html', 'Services/Payment');
     if ($a_show_delete) {
         $oConfirmationGUI = new ilConfirmationGUI();
         // set confirm/cancel commands
         $oConfirmationGUI->setFormAction($this->ctrl->getFormAction($this, "performDeleteTrustee"));
         $oConfirmationGUI->setHeaderText($this->lng->txt("paya_sure_delete_selected_trustees"));
         $oConfirmationGUI->setCancel($this->lng->txt("cancel"), "cancelDelete");
         $oConfirmationGUI->setConfirm($this->lng->txt("confirm"), "performDeleteTrustee");
         foreach ($this->trustee_obj->getTrustees() as $trustee) {
             $delete_row = '';
             if (in_array($trustee['trustee_id'], $_POST['trustee'])) {
                 if ($tmp_obj = ilObjectFactory::getInstanceByObjId($trustee['trustee_id'], false)) {
                     $delete_row = $tmp_obj->getLogin() . ' -> ' . $tmp_obj->getFirstname() . ' ' . $tmp_obj->getLastname();
                 }
             }
             $oConfirmationGUI->addItem('', $delete_row, $delete_row);
         }
         $this->tpl->setVariable("CONFIRMATION", $oConfirmationGUI->getHTML());
     }
     if (!count($this->trustee_obj->getTrustees())) {
         ilUtil::sendInfo($this->lng->txt('paya_no_trustees'));
         return true;
     }
     $counter = 0;
     $f_result = array();
     require_once 'Services/Mail/classes/class.ilMailFormCall.php';
     foreach ($this->trustee_obj->getTrustees() as $trustee) {
         // GET USER OBJ
         if ($tmp_obj = ilObjectFactory::getInstanceByObjId($trustee['trustee_id'], false)) {
             $f_result[$counter]['trustee_id'] = ilUtil::formCheckbox(in_array($trustee['trustee_id'], $_SESSION['paya_delete_trustee']) ? 1 : 0, "trustee[]", $trustee['trustee_id']);
             $f_result[$counter]['login'] = $tmp_obj->getLogin();
             $f_result[$counter]['firstname'] = $tmp_obj->getFirstname();
             $f_result[$counter]['lastname'] = $tmp_obj->getLastname();
             $f_result[$counter]['perm_stat'] = ilUtil::formSelect((int) $trustee['perm_stat'], 'perm_stat[' . $trustee['trustee_id'] . ']', $actions, false, true);
             $f_result[$counter]['perm_obj'] = ilUtil::formSelect((int) $trustee['perm_obj'], 'perm_obj[' . $trustee['trustee_id'] . ']', $actions, false, true);
             $f_result[$counter]['perm_coupons'] = ilUtil::formSelect((int) $trustee['perm_coupons'], 'perm_coupons[' . $trustee['trustee_id'] . ']', $actions, false, true);
             #				$link_mail = "<a target=\"_blank\" href=\"./ilias.php?baseClass=ilMailGUI&type=new&rcp_to=".
             #					$tmp_obj->getLogin()."\"".$img_mail."</a>";
             $url_mail = ilMailFormCall::getLinkTarget($this, '', array(), array('type' => 'new', 'rcp_to' => $tmp_obj->getLogin()));
             $link_mail = "<div class=\"il_ContainerItemCommands\"><a class=\"il_ContainerItemCommand\" href=\"" . $url_mail . "\">" . $this->lng->txt("mail") . "</a></div>";
             $f_result[$counter]['options'] = $link_mail;
             unset($tmp_obj);
             ++$counter;
         }
     }
     return $this->__showTrusteesTable($f_result);
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:59,代码来源:class.ilPaymentTrusteeGUI.php


示例4: confirmRemove

 function confirmRemove()
 {
     global $ilAccess, $ilCtrl, $lng, $tpl;
     include_once './Services/Utilities/classes/class.ilConfirmationGUI.php';
     $confirm = new ilConfirmationGUI();
     $confirm->setFormAction($ilCtrl->getFormAction($this, 'remove'));
     $confirm->addHiddenItem("grp_id", $_GET["grp_id"]);
     $confirm->setHeaderText($lng->txt('grp_dismiss_member'));
     $confirm->setConfirm($lng->txt('confirm'), 'remove');
     $confirm->setCancel($lng->txt('cancel'), 'show');
     include_once './Services/User/classes/class.ilUserUtil.php';
     $confirm->addItem('usr_id', $_GET["usr_id"], ilUserUtil::getNamePresentation($_GET["usr_id"], false, false, "", true), ilUtil::getImagePath('icon_usr.svg'));
     $tpl->setContent($confirm->getHTML());
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:14,代码来源:class.ilCourseParticipantsGroupsGUI.php


示例5: delete

 /**
  * Show delete confirmation
  */
 public function delete()
 {
     global $tpl, $ilSetting, $ilErr;
     $this->ctrl->setReturnByClass(get_class($this->getContainer()), '');
     $to_delete = array();
     if ((int) $_GET['item_ref_id']) {
         $to_delete = array((int) $_GET['item_ref_id']);
     }
     if (isset($_POST['id']) and is_array($_POST['id'])) {
         $to_delete = $_POST['id'];
     }
     if (!$to_delete) {
         $ilErr->raiseError($this->lng->txt('no_checkbox'), $ilErr->MESSAGE);
     }
     include_once './Services/Utilities/classes/class.ilConfirmationGUI.php';
     $confirm = new ilConfirmationGUI();
     $confirm->setFormAction($this->ctrl->getFormActionByClass(get_class($this->getContainer()), 'cancel'));
     $confirm->setHeaderText('');
     $confirm->setCancel($this->lng->txt('cancel'), 'cancelDelete');
     $confirm->setConfirm($this->lng->txt('delete'), 'performDelete');
     foreach ($to_delete as $delete) {
         $obj_id = ilObject::_lookupObjId($delete);
         $type = ilObject::_lookupType($obj_id);
         $confirm->addItem('id[]', $delete, call_user_func(array(ilObjectFactory::getClassByType($type), '_lookupTitle'), $obj_id), ilUtil::getTypeIconPath($type, $obj_id));
     }
     $msg = $this->lng->txt("info_delete_sure");
     if (!$ilSetting->get('enable_trash')) {
         $msg .= "<br/>" . $this->lng->txt("info_delete_warning_no_trash");
     }
     ilUtil::sendQuestion($msg);
     $tpl->setContent($confirm->getHTML());
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:35,代码来源:class.ilAdministrationCommandGUI.php


示例6: ConfirmResetTraining

 /**
  * Show confirmation screen to reset the training
  */
 protected function ConfirmResetTraining()
 {
     require_once "./Services/Utilities/classes/class.ilConfirmationGUI.php";
     $gui = new ilConfirmationGUI();
     $gui->setFormAction($this->ctrl->getFormAction($this));
     $gui->setHeaderText($this->txt("reset_training_confirmation"));
     $gui->setConfirm($this->txt("reset_training"), "resetTraining");
     $gui->setCancel($this->lng->txt("cancel"), "showContent");
     $this->tpl->setContent($gui->getHTML());
 }
开发者ID:ilifau,项目名称:Flashcards,代码行数:13,代码来源:class.ilFlashcardsTrainingGUI.php


示例7: showDeleteConfirmation

 /**
  * Show delete confirmation table
  */
 function showDeleteConfirmation($a_ids, $a_supress_message = false)
 {
     global $lng, $ilSetting, $ilCtrl, $tpl, $objDefinition;
     if (!is_array($a_ids) || count($a_ids) == 0) {
         ilUtil::sendFailure($lng->txt("no_checkbox"), true);
         return false;
     }
     // Remove duplicate entries
     $a_ids = array_unique((array) $a_ids);
     include_once "./Services/Utilities/classes/class.ilConfirmationGUI.php";
     $cgui = new ilConfirmationGUI();
     if (!$a_supress_message) {
         $msg = $lng->txt("info_delete_sure");
         if (!$ilSetting->get('enable_trash')) {
             $msg .= "<br/>" . $lng->txt("info_delete_warning_no_trash");
         }
         $cgui->setHeaderText($msg);
     }
     $cgui->setFormAction($ilCtrl->getFormAction($this->parent_gui));
     $cgui->setCancel($lng->txt("cancel"), "cancelDelete");
     $cgui->setConfirm($lng->txt("confirm"), "confirmedDelete");
     $form_name = "cgui_" . md5(uniqid());
     $cgui->setFormName($form_name);
     $deps = array();
     foreach ($a_ids as $ref_id) {
         $obj_id = ilObject::_lookupObjId($ref_id);
         $type = ilObject::_lookupType($obj_id);
         $title = call_user_func(array(ilObjectFactory::getClassByType($type), '_lookupTitle'), $obj_id);
         $alt = $objDefinition->isPlugin($type) ? $lng->txt("icon") . " " . ilPlugin::lookupTxt("rep_robj", $type, "obj_" . $type) : $lng->txt("icon") . " " . $lng->txt("obj_" . $type);
         $title .= $this->handleMultiReferences($obj_id, $ref_id, $form_name);
         $cgui->addItem("id[]", $ref_id, $title, ilObject::_getIcon($obj_id, "small", $type), $alt);
         ilObject::collectDeletionDependencies($deps, $ref_id, $obj_id, $type);
     }
     $deps_html = "";
     if (is_array($deps) && count($deps) > 0) {
         include_once "./Services/Repository/classes/class.ilRepDependenciesTableGUI.php";
         $tab = new ilRepDependenciesTableGUI($deps);
         $deps_html = "<br/><br/>" . $tab->getHTML();
     }
     $tpl->setContent($cgui->getHTML() . $deps_html);
     return true;
 }
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:45,代码来源:class.ilRepUtilGUI.php


示例8: deleteUsersObject

 function deleteUsersObject()
 {
     $this->checkPermission("cat_administrate_users");
     if (!count($_POST['id'])) {
         ilUtil::sendFailure($this->lng->txt('no_users_selected'));
         $this->index();
         return true;
     }
     include_once './Services/Utilities/classes/class.ilConfirmationGUI.php';
     $confirm = new ilConfirmationGUI();
     $confirm->setFormAction($this->ctrl->getFormAction($this));
     $confirm->setHeaderText($this->lng->txt('sure_delete_selected_users'));
     $confirm->setConfirm($this->lng->txt('delete'), 'performDeleteUsers');
     $confirm->setCancel($this->lng->txt('cancel'), 'index');
     foreach ($_POST['id'] as $user) {
         $name = ilObjUser::_lookupName($user);
         $confirm->addItem('user_ids[]', $user, $name['lastname'] . ', ' . $name['firstname'] . ' [' . $name['login'] . ']');
     }
     $this->tpl->setContent($confirm->getHTML());
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:20,代码来源:class.ilLocalUserGUI.php


示例9: askDeleteAppointments

 /**
  * ask delete appointments
  *
  * @access protected
  * @return
  */
 protected function askDeleteAppointments()
 {
     global $tpl;
     if (!count($_POST['appointments'])) {
         ilUtil::sendFailure($this->lng->txt('select_one'));
         $this->details();
         return true;
     }
     include_once './Services/Utilities/classes/class.ilConfirmationGUI.php';
     $confirmation_gui = new ilConfirmationGUI();
     $this->ctrl->setParameter($this, 'category_id', (int) $_GET['category_id']);
     $confirmation_gui->setFormAction($this->ctrl->getFormAction($this));
     $confirmation_gui->setHeaderText($this->lng->txt('cal_del_app_sure'));
     $confirmation_gui->setConfirm($this->lng->txt('delete'), 'deleteAppointments');
     $confirmation_gui->setCancel($this->lng->txt('cancel'), 'details');
     include_once './Services/Calendar/classes/class.ilCalendarEntry.php';
     foreach ($_POST['appointments'] as $app_id) {
         $app = new ilCalendarEntry($app_id);
         $confirmation_gui->addItem('appointments[]', (int) $app_id, $app->getTitle());
     }
     $tpl->setContent($confirmation_gui->getHTML());
 }
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:28,代码来源:class.ilCalendarCategoryGUI.php


示例10: confirmDeleteRecords

 /**
  * Confirm deletion of multiple records
  *
  */
 public function confirmDeleteRecords()
 {
     global $ilCtrl, $lng, $tpl, $ilTabs;
     /** @var ilTabsGUI $ilTabs */
     $ilTabs->clearSubTabs();
     $conf = new ilConfirmationGUI();
     $conf->setFormAction($ilCtrl->getFormAction($this));
     $conf->setHeaderText($lng->txt('dcl_confirm_delete_records'));
     $record_ids = isset($_POST['record_ids']) ? $_POST['record_ids'] : array();
     foreach ($record_ids as $record_id) {
         /** @var ilDataCollectionRecord $record */
         $record = ilDataCollectionCache::getRecordCache($record_id);
         if ($record) {
             $conf->addItem('record_ids[]', $record->getId(), rtrim(implode(", ", $record->getRecordFieldValues()), ', '));
         }
     }
     $conf->addHiddenItem('table_id', $this->table_id);
     $conf->setConfirm($lng->txt('dcl_delete_records'), 'deleteRecords');
     $conf->setCancel($lng->txt('cancel'), 'cancelDelete');
     $tpl->setContent($conf->getHTML());
 }
开发者ID:bheyser,项目名称:qplskl,代码行数:25,代码来源:class.ilDataCollectionRecordListGUI.php


示例11: confirmDelete

 /**
  * confirmDelete
  */
 public function confirmDelete()
 {
     global $ilCtrl, $lng, $tpl;
     include_once './Services/Utilities/classes/class.ilConfirmationGUI.php';
     $conf = new ilConfirmationGUI();
     $conf->setFormAction($ilCtrl->getFormAction($this));
     $conf->setHeaderText($lng->txt('dcl_confirm_delete_field'));
     $conf->addItem('field_id', (int) $this->field_obj->getId(), $this->field_obj->getTitle());
     $conf->setConfirm($lng->txt('delete'), 'delete');
     $conf->setCancel($lng->txt('cancel'), 'cancelDelete');
     $tpl->setContent($conf->getHTML());
 }
开发者ID:khanhnnvn,项目名称:ilias_E-learning,代码行数:15,代码来源:class.ilDataCollectionFieldEditGUI.php


示例12: confirmDelete

 /**
  * Confirm delete
  */
 function confirmDelete()
 {
     global $ilCtrl, $lng, $tpl, $ilTabs, $ilHelp;
     $ilHelp->setSubScreenId("delete");
     include_once 'Services/Utilities/classes/class.ilConfirmationGUI.php';
     $conf = new ilConfirmationGUI();
     $conf->setFormAction($ilCtrl->getFormAction($this));
     $conf->setHeaderText($lng->txt('book_confirm_delete'));
     include_once 'Modules/BookingManager/classes/class.ilBookingSchedule.php';
     $type = new ilBookingSchedule((int) $_GET['schedule_id']);
     $conf->addItem('schedule_id', (int) $_GET['schedule_id'], $type->getTitle());
     $conf->setConfirm($lng->txt('delete'), 'delete');
     $conf->setCancel($lng->txt('cancel'), 'render');
     $tpl->setContent($conf->getHTML());
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:18,代码来源:class.ilBookingScheduleGUI.php


示例13: confirmDeleteFields

 /**
  * Show delete confirmation screen 
  * @return 
  */
 protected function confirmDeleteFields()
 {
     if (!count($_POST['field_ids'])) {
         ilUtil::sendFailure($this->lng->txt('ps_cdf_select_one'));
         $this->listFields();
         return false;
     }
     include_once './Services/Utilities/classes/class.ilConfirmationGUI.php';
     $confirm = new ilConfirmationGUI();
     $confirm->setFormAction($this->ctrl->getFormAction($this));
     $confirm->setHeaderText($this->lng->txt('ps_cdf_delete_sure'));
     foreach ($_POST['field_ids'] as $field_id) {
         $tmp_field = new ilCourseDefinedFieldDefinition($this->getObjId(), $field_id);
         $confirm->addItem('field_ids[]', $field_id, $tmp_field->getName());
     }
     $confirm->setConfirm($this->lng->txt('delete'), 'deleteFields');
     $confirm->setCancel($this->lng->txt('cancel'), 'listFields');
     $this->tpl->setContent($confirm->getHTML());
 }
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:23,代码来源:class.ilObjectCustomUserFieldsGUI.php


示例14: deletePglObject

 /**
  * display deletion confirmation screen
  */
 function deletePglObject()
 {
     global $ilTabs;
     if (!isset($_POST["pglayout"])) {
         $this->ilias->raiseError($this->lng->txt("no_checkbox"), $this->ilias->error_obj->MESSAGE);
     }
     $ilTabs->setTabActive('page_layouts');
     unset($this->data);
     // display confirmation message
     include_once "./Services/Utilities/classes/class.ilConfirmationGUI.php";
     $cgui = new ilConfirmationGUI();
     $cgui->setFormAction($this->ctrl->getFormAction($this));
     $cgui->setHeaderText($this->lng->txt("info_delete_sure"));
     $cgui->setCancel($this->lng->txt("cancel"), "cancelDeletePg");
     $cgui->setConfirm($this->lng->txt("confirm"), "confirmedDeletePg");
     foreach ($_POST["pglayout"] as $id) {
         $pg_obj = new ilPageLayout($id);
         $pg_obj->readObject();
         $caption = ilUtil::getImageTagByType("stys", $this->tpl->tplPath) . " " . $pg_obj->getTitle();
         $cgui->addItem("pglayout[]", $id, $caption);
     }
     $this->tpl->setContent($cgui->getHTML());
 }
开发者ID:khanhnnvn,项目名称:ilias_E-learning,代码行数:26,代码来源:class.ilObjStyleSettingsGUI.php


示例15: deleteWikiPageConfirmationScreen

 /**
  * Delete wiki page confirmation screen.
  */
 function deleteWikiPageConfirmationScreen()
 {
     global $ilAccess, $tpl, $ilCtrl, $lng;
     if ($ilAccess->checkAccess("write", "", $_GET["ref_id"])) {
         include_once "./Services/Utilities/classes/class.ilConfirmationGUI.php";
         $confirmation_gui = new ilConfirmationGUI();
         $confirmation_gui->setFormAction($ilCtrl->getFormAction($this));
         $confirmation_gui->setHeaderText($lng->txt("wiki_page_deletion_confirmation"));
         $confirmation_gui->setCancel($lng->txt("cancel"), "cancelWikiPageDeletion");
         $confirmation_gui->setConfirm($lng->txt("delete"), "confirmWikiPageDeletion");
         $dtpl = new ilTemplate("tpl.wiki_page_deletion_confirmation.html", true, true, "Modules/Wiki");
         $dtpl->setVariable("PAGE_TITLE", $this->getWikiPage()->getTitle());
         // other pages that link to this page
         $dtpl->setVariable("TXT_OTHER_PAGES", $lng->txt("wiki_other_pages_linking"));
         $pages = ilWikiPage::getLinksToPage($this->getWikiPage()->getWikiId(), $this->getWikiPage()->getId());
         if (count($pages) > 0) {
             foreach ($pages as $page) {
                 $dtpl->setCurrentBlock("lpage");
                 $dtpl->setVariable("TXT_LINKING_PAGE", $page["title"]);
                 $dtpl->parseCurrentBlock();
             }
         } else {
             $dtpl->setCurrentBlock("lpage");
             $dtpl->setVariable("TXT_LINKING_PAGE", "-");
             $dtpl->parseCurrentBlock();
         }
         // contributors
         $dtpl->setVariable("TXT_CONTRIBUTORS", $lng->txt("wiki_contributors"));
         $contributors = ilWikiPage::getPageContributors($this->getWikiPage()->getId());
         foreach ($contributors as $contributor) {
             $dtpl->setCurrentBlock("contributor");
             $dtpl->setVariable("TXT_CONTRIBUTOR", $contributor["lastname"] . ", " . $contributor["firstname"]);
             $dtpl->parseCurrentBlock();
         }
         // notes/comments
         include_once "./Services/Notes/classes/class.ilNote.php";
         $cnt_note_users = ilNote::getUserCount($this->getPageObject()->getParentId(), $this->getPageObject()->getId(), "wpg");
         $dtpl->setVariable("TXT_NUMBER_USERS_NOTES_OR_COMMENTS", $lng->txt("wiki_number_users_notes_or_comments"));
         $dtpl->setVariable("TXT_NR_NOTES_COMMENTS", $cnt_note_users);
         $confirmation_gui->addItem("", "", $dtpl->get());
         $tpl->setContent($confirmation_gui->getHTML());
     }
 }
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:46,代码来源:class.ilWikiPageGUI.php


示例16: confirmDeletionNewsItems

 /**
  * Confirmation Screen.
  */
 function confirmDeletionNewsItems()
 {
     global $ilCtrl, $lng, $ilTabs;
     if (!$this->getEnableEdit()) {
         return;
     }
     // check whether at least one item is selected
     if (count($_POST["news_id"]) == 0) {
         ilUtil::sendFailure($lng->txt("no_checkbox"));
         return $this->editNews();
     }
     $ilTabs->clearTargets();
     include_once "Services/Utilities/classes/class.ilConfirmationGUI.php";
     $c_gui = new ilConfirmationGUI();
     // set confirm/cancel commands
     $c_gui->setFormAction($ilCtrl->getFormAction($this, "deleteNewsItems"));
     $c_gui->setHeaderText($lng->txt("info_delete_sure"));
     $c_gui->setCancel($lng->txt("cancel"), "editNews");
     $c_gui->setConfirm($lng->txt("confirm"), "deleteNewsItems");
     // add items to delete
     foreach ($_POST["news_id"] as $news_id) {
         $news = new ilNewsItem($news_id);
         $c_gui->addItem("news_id[]", $news_id, $news->getTitle(), ilUtil::getImagePath("icon_news.png"));
     }
     return $c_gui->getHTML();
 }
开发者ID:khanhnnvn,项目名称:ilias_E-learning,代码行数:29,代码来源:class.ilNewsItemGUI.php


示例17: confirmGlossarySelection

 /**
  * Confirm glossary selection
  */
 function confirmGlossarySelection()
 {
     global $ilCtrl, $tpl, $lng;
     include_once "./Services/Utilities/classes/class.ilConfirmationGUI.php";
     $cgui = new ilConfirmationGUI();
     $ilCtrl->setParameter($this, "glo_ref_id", $_GET["root_id"]);
     $cgui->setFormAction($ilCtrl->getFormAction($this));
     $cgui->setHeaderText($lng->txt("cont_link_glo_in_lm"));
     $cgui->setCancel($lng->txt("no"), "selectLMGlossary");
     $cgui->setConfirm($lng->txt("yes"), "selectLMGlossaryLink");
     $tpl->setContent($cgui->getHTML());
 }
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:15,代码来源:class.ilObjContentObjectGUI.php


示例18: confirmSkillRemove

 /**
  * Confirm skill remove
  */
 function confirmSkillRemove()
 {
     global $ilCtrl, $tpl, $lng;
     include_once "./Services/Skill/classes/class.ilSkillTreeNode.php";
     if ($_GET["skill_id"] > 0) {
         $_POST["id"][] = $_GET["skill_id"];
     }
     if (!is_array($_POST["id"]) || count($_POST["id"]) == 0) {
         ilUtil::sendInfo($lng->txt("no_checkbox"), true);
         $ilCtrl->redirect($this, "listSkills");
     } else {
         include_once "./Services/Utilities/classes/class.ilConfirmationGUI.php";
         $cgui = new ilConfirmationGUI();
         $cgui->setFormAction($ilCtrl->getFormAction($this));
         $cgui->setHeaderText($lng->txt("skmg_really_remove_skills"));
         $cgui->setCancel($lng->txt("cancel"), "listSkills");
         $cgui->setConfirm($lng->txt("delete"), "removeSkills");
         foreach ($_POST["id"] as $i) {
             $cgui->addItem("id[]", $i, ilSkillTreeNode::_lookupTitle($i));
         }
         $tpl->setContent($cgui->getHTML());
     }
 }
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:26,代码来源:class.ilPersonalSkillsGUI.php


示例19: confirmDeleteData

 function confirmDeleteData()
 {
     global $lng, $tpl, $ilTabs, $ilCtrl;
     if (!$_POST["item_id"]) {
         ilUtil::sendFailure($lng->txt("no_checkbox"));
         return $this->admin();
     }
     $ilTabs->setBackTarget($lng->txt("back"), $ilCtrl->getLinkTarget($this, "admin"));
     // display confirmation message
     include_once "./Services/Utilities/classes/class.ilConfirmationGUI.php";
     $cgui = new ilConfirmationGUI();
     $cgui->setFormAction($ilCtrl->getFormAction($this));
     $cgui->setHeaderText($lng->txt("trac_sure_delete_data"));
     $cgui->setCancel($lng->txt("cancel"), "admin");
     $cgui->setConfirm($lng->txt("delete"), "deleteData");
     // list objects that should be deleted
     foreach ($_POST["item_id"] as $i) {
         $caption = $lng->txt("month_" . str_pad(substr($i, 5), 2, "0", STR_PAD_LEFT) . "_long") . " " . substr($i, 0, 4);
         $cgui->addItem("item_id[]", $i, $caption);
     }
     $tpl->setContent($cgui->getHTML());
 }
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:22,代码来源:class.ilLPObjectStatisticsGUI.php


示例20: delete

 /**
  * Delete confirmation
  */
 protected function delete()
 {
     global $ilTabs;
     $this->initSettings((int) $_REQUEST['server_id']);
     $ilTabs->clearTargets();
     $ilTabs->clearSubTabs();
     $ilTabs->setBackTarget($this->lng->txt('back'), $this->ctrl->getLinkTarget($this, 'overview'));
     include_once './Services/Utilities/classes/class.ilConfirmationGUI.php';
     $confirm = new ilConfirmationGUI();
     $confirm->setFormAction($this->ctrl->getFormAction($this));
     $confirm->setConfirm($this->lng->txt('delete'), 'doDelete');
     $confirm->setCancel($this->lng->txt('cancel'), 'overview');
     $confirm->setHeaderText($this->lng->txt('ecs_delete_setting'));
     $confirm->addItem('', '', $this->settings->getServer());
     $confirm->addHiddenItem('server_id', $this->settings->getServerId());
     $this->tpl->setContent($confirm->getHTML());
 }
开发者ID:khanhnnvn,项目名称:ilias_E-learning,代码行数:20,代码来源:class.ilECSSettingsGUI.php



注:本文中的ilConfirmationGUI类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP ilCourseParticipants类代码示例发布时间:2022-05-23
下一篇:
PHP ilCommonActionDispatcherGUI类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap