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

PHP ilAdvancedSelectionListGUI类代码示例

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

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



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

示例1: showActionLinks

 /**
  * show edit links
  * @param type $a_set
  * @return boolean
  */
 protected function showActionLinks($a_set)
 {
     if (!$this->show_edit_link) {
         return true;
     }
     if (!self::$has_odf_definitions) {
         $this->ctrl->setParameter($this->parent_obj, 'member_id', $a_set['usr_id']);
         $this->tpl->setCurrentBlock('link');
         $this->tpl->setVariable('LINK_NAME', $this->ctrl->getLinkTarget($this->parent_obj, 'editMember'));
         $this->tpl->setVariable('LINK_TXT', $this->lng->txt('edit'));
         $this->tpl->parseCurrentBlock();
         return true;
     }
     // show action menu
     include_once './Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
     $list = new ilAdvancedSelectionListGUI();
     $list->setSelectionHeaderClass('small');
     $list->setItemLinkClass('small');
     $list->setId('actl_' . $a_set['usr_id'] . '_' . $this->getId());
     $list->setListTitle($this->lng->txt('actions'));
     $this->ctrl->setParameter($this->parent_obj, 'member_id', $a_set['usr_id']);
     $list->addItem($this->lng->txt('edit'), '', $this->ctrl->getLinkTarget($this->getParentObject(), 'editMember'));
     $this->ctrl->setParameterByClass('ilobjectcustomuserfieldsgui', 'member_id', $a_set['usr_id']);
     $trans = $this->lng->txt($this->getParentObject()->object->getType() . '_cdf_edit_member');
     $list->addItem($trans, '', $this->ctrl->getLinkTargetByClass('ilobjectcustomuserfieldsgui', 'editMember'));
     $this->tpl->setVariable('ACTION_USER', $list->getHTML());
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:32,代码来源:class.ilParticipantsTableGUI.php


示例2: buildActionMenu

 /**
  * Build action menu
  *
  * @param array $a_set
  * @return ilAdvancedSelectionListGUI
  */
 protected function buildActionMenu(array $a_set)
 {
     $alist = new ilAdvancedSelectionListGUI();
     $alist->setId($a_set['id']);
     $alist->setListTitle($this->pl->txt('actions'));
     $this->ctrl->setParameterByClass('srcertificatetypegui', 'type_id', $a_set['id']);
     $alist->addItem($this->lng->txt('edit'), 'edit', $this->ctrl->getLinkTargetByClass('srcertificatetypegui', 'editType'));
     return $alist;
 }
开发者ID:studer-raimann,项目名称:Certificate,代码行数:15,代码来源:class.srCertificateTypeTableGUI.php


示例3: fillRow

 /**
  * Fill row
  * @param array $a_set
  */
 public function fillRow($a_set)
 {
     global $ilCtrl;
     // show title if available
     if ($a_set['term']) {
         $this->tpl->setVariable('VAL_TITLE', $a_set['term']);
     } else {
         $this->tpl->setVariable('VAL_TITLE', $a_set['title']);
     }
     $this->tpl->setVariable('TXT_STATUS', $this->lng->txt('status'));
     $this->tpl->setVariable('VAL_STATUS', ilECSMappingUtils::mappingStatusToString($a_set['status']));
     // Actions
     include_once './Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
     $list = new ilAdvancedSelectionListGUI();
     $list->setSelectionHeaderClass('small');
     $list->setItemLinkClass('small');
     $list->setId('actl_' . $a_set['id']);
     $list->setListTitle($this->lng->txt('actions'));
     $ilCtrl->setParameter($this->getParentObject(), 'tid', $a_set['id']);
     $this->tpl->setVariable('EDIT_TITLE', $this->ctrl->getLinkTarget($this->getParentObject(), 'dInitEditTree'));
     $list->addItem($this->lng->txt('edit'), '', $ilCtrl->getLinkTarget($this->getParentObject(), 'dInitEditTree'));
     include_once './Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingSettings.php';
     if ($a_set['status'] != ilECSMappingUtils::MAPPED_UNMAPPED && ilECSNodeMappingSettings::getInstance()->isDirectoryMappingEnabled()) {
         $list->addItem($this->lng->txt('ecs_cms_tree_synchronize'), '', $ilCtrl->getLinkTarget($this->getParentObject(), 'dSynchronizeTree'));
     }
     $list->addItem($this->lng->txt('delete'), '', $ilCtrl->getLinkTarget($this->getParentObject(), 'dConfirmDeleteTree'));
     $this->tpl->setVariable('ACTIONS', $list->getHTML());
     $ilCtrl->clearParameters($this->getParentObject());
 }
开发者ID:khanhnnvn,项目名称:ilias_E-learning,代码行数:33,代码来源:class.ilECSNodeMappingTreeTableGUI.php


示例4: buildActions

 /**
  * Build action menu for a record asynchronous
  *
  */
 protected function buildActions()
 {
     // Download is only possible if certificate is processed
     $alist = new ilAdvancedSelectionListGUI();
     $alist->setId((int) $_GET['cert_id']);
     $alist->setListTitle($this->pl->txt('actions'));
     $this->ctrl->setParameter($this, 'cert_id', (int) $_GET['cert_id']);
     $alist->addItem($this->pl->txt('download'), 'download', $this->ctrl->getLinkTarget($this, 'downloadCertificate'));
     echo $alist->getHTML(true);
     exit;
 }
开发者ID:studer-raimann,项目名称:Certificate,代码行数:15,代码来源:class.srCertificateUserGUI.php


示例5: formatActionsList

 /**
  * @param string $type
  * @param string $filename
  */
 protected function formatActionsList($type, $filename)
 {
     /**
      * @var $ilCtrl ilCtrl
      */
     global $ilCtrl;
     $list = new ilAdvancedSelectionListGUI();
     $list->setListTitle($this->lng->txt('actions'));
     $ilCtrl->setParameter($this->getParentObject(), 'file', $filename);
     $list->addItem($this->lng->txt('download'), '', $ilCtrl->getLinkTarget($this->getParentObject(), 'download'));
     $ilCtrl->setParameter($this->getParentObject(), 'file', '');
     return $list->getHTML();
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:17,代码来源:class.ilTestExportTableGUI.php


示例6: fillRow

 /**
  * Fill template row
  * @param <type> $a_set
  */
 public function fillRow($a_set)
 {
     $this->tpl->setVariable('TIME', $a_set['time']);
     $this->tpl->setVariable('DURATION', $a_set['duration']);
     $this->tpl->setVariable('REC', ilViteroUtils::recurrenceToString($a_set['rec']));
     if ($this->isAdminTable()) {
         include_once './Services/Tree/classes/class.ilPathGUI.php';
         $path = new ilPathGUI();
         $path->setUseImages(false);
         $path->enableTextOnly(false);
         $this->tpl->setVariable('OBJ_PATH', $path->getPath(ROOT_FOLDER_ID, end(ilObject::_getAllReferences($a_set['group']))));
     }
     if ($a_set['rec']) {
         $this->tpl->setVariable('ENDS', $a_set['ends']);
     } else {
         $this->tpl->setVariable('ENDS', '');
     }
     if (!$this->isEditable()) {
         return true;
     }
     include_once './Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
     $list = new ilAdvancedSelectionListGUI();
     $list->setId('booka_' . $a_set['start']->get(IL_CAL_UNIX) . '_' . $a_set['id']);
     $list->setListTitle($this->lng->txt('actions'));
     // no recurrence
     if ($a_set['rec'] == 0) {
         $GLOBALS['ilCtrl']->setParameter($this->getParentObject(), 'bookid', $a_set['id']);
         $list->addItem(ilViteroPlugin::getInstance()->txt('edit_booking'), '', $GLOBALS['ilCtrl']->getLinkTarget($this->getParentObject(), 'editBooking'));
         // delete appointment
         $list->addItem(ilViteroPlugin::getInstance()->txt('delete_appointment'), '', $GLOBALS['ilCtrl']->getLinkTarget($this->getParentObject(), 'confirmDeleteAppointment'));
     }
     // A recurrence
     if ($a_set['rec'] > 0) {
         // Delete single appointment
         $GLOBALS['ilCtrl']->setParameter($this->getParentObject(), 'atime', $a_set['start']->get(IL_CAL_UNIX));
         $GLOBALS['ilCtrl']->setParameter($this->getParentObject(), 'bookid', $a_set['id']);
         $list->addItem(ilViteroPlugin::getInstance()->txt('edit_bookings'), '', $GLOBALS['ilCtrl']->getLinkTarget($this->getParentObject(), 'editBooking'));
         // not supported
         /*
         $list->addItem(
         	ilViteroPlugin::getInstance()->txt('delete_appointment'),
         	'',
         	$GLOBALS['ilCtrl']->getLinkTarget($this->getParentObject(),'confirmDeleteAppointmentInSeries')
         );
         */
         // Delete appointment series
         $list->addItem(ilViteroPlugin::getInstance()->txt('delete_reccurrence'), '', $GLOBALS['ilCtrl']->getLinkTarget($this->getParentObject(), 'confirmDeleteBooking'));
     }
     $this->tpl->setVariable('ACTION_PART', $list->getHTML());
 }
开发者ID:leifos-gmbh,项目名称:Vitero,代码行数:54,代码来源:class.ilViteroBookingTableGUI.php


示例7: fillRow

 public function fillRow($a_data)
 {
     global $lng, $ilCtrl, $ilUser;
     include_once "./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php";
     $current_selection_list = new ilAdvancedSelectionListGUI();
     $current_selection_list->setListTitle($this->lng->txt("actions"));
     $current_selection_list->setId("act_" . $a_data['obj_id']);
     $this->tpl->setVariable("VAL_ID", $a_data["obj_id"]);
     // edit link
     $edit_link = '';
     $delete_link = '';
     $sendmail_link = '';
     $export_link = '';
     if ($a_data["type"] != "parent") {
         $hash = $ilUser->prefs["screen_reader_optimization"] ? "bookmark_top" : "";
         $ilCtrl->setParameter($this->parent_obj, "bmf_id", $this->parent_obj->id);
         $ilCtrl->setParameter($this->parent_obj, "obj_id", $a_data["obj_id"]);
         $edit_link = $a_data["type"] == "bmf" ? $ilCtrl->getLinkTarget($this->parent_obj, "editFormBookmarkFolder", $hash) : $ilCtrl->getLinkTarget($this->parent_obj, "editFormBookmark", $hash);
         $ilCtrl->clearParameters($this->parent_obj);
         $ilCtrl->setParameter($this->parent_obj, "bm_id", $a_data['obj_id']);
         $delete_link = $ilCtrl->getLinkTarget($this->parent_obj, 'delete', $hash);
         $sendmail_link = $ilCtrl->getLinkTarget($this->parent_obj, 'sendmail', $hash);
         $export_link = $ilCtrl->getLinkTarget($this->parent_obj, 'export', $hash);
     }
     if ($edit_link) {
         $current_selection_list->addItem($this->lng->txt('edit'), '', $edit_link);
     }
     if ($delete_link) {
         $current_selection_list->addItem($this->lng->txt('delete'), '', $delete_link);
     }
     if ($export_link) {
         $current_selection_list->addItem($this->lng->txt('export'), '', $export_link);
     }
     if ($sendmail_link) {
         $current_selection_list->addItem($this->lng->txt('bkm_sendmail'), '', $sendmail_link);
     }
     $this->tpl->setVariable("COMMAND_SELECTION_LIST", $current_selection_list->getHTML());
     // icon
     $img_type = $a_data["type"] == "bmf" || $a_data["type"] == "parent" ? "bmf" : $a_data["type"];
     // #10556
     $val = ilUtil::getImagePath("icon_" . $img_type . ".svg");
     $this->tpl->setVariable("VAL_ICON", $val);
     $this->tpl->setVariable("VAL_ICON_ALT", $lng->txt("icon") . " " . $lng->txt($a_data["type"]));
     // folder links
     if ($a_data["type"] == "bmf" || $a_data["type"] == "parent") {
         $this->tpl->setVariable("VAL_BMF_TITLE", $a_data["title"]);
         $ilCtrl->setParameter($this->parent_obj, "bmf_id", $a_data["obj_id"]);
         $this->tpl->setVariable("VAL_BMF_TARGET", $ilCtrl->getLinkTarget($this->parent_obj));
         //$this->tpl->setVariable("FRAME_TARGET_BMF", ilFrameTargetInfo::_getFrame("MainContent"));
     } else {
         $this->tpl->setVariable("VAL_BM_TITLE", $a_data["title"]);
         $this->tpl->setVariable("VAL_BM_TARGET", htmlentities($a_data["target"]));
         $this->tpl->setVariable("VAL_BM_DESCRIPTION", $a_data["description"]);
         $this->tpl->setVariable("FRAME_TARGET_BM", ilFrameTargetInfo::_getFrame("ExternalContent"));
     }
     $ilCtrl->clearParameters($this->parent_obj);
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:57,代码来源:class.ilBookmarkAdministrationTableGUI.php


示例8: fillRow

 /**
  * @param array $row
  */
 public function fillRow(array $row)
 {
     /**
      * @var $ilCtrl ilCtrl
      */
     global $ilCtrl;
     if ($this->getParentObject()->isCRUDContext()) {
         $row['chb'] = ilUtil::formCheckbox(false, 'unit_ids[]', $row['unit_id']);
         $sequence = new ilNumberInputGUI('', 'sequence[' . $row['unit_id'] . ']');
         $sequence->setValue($this->position++ * 10);
         $sequence->setMinValue(0);
         $sequence->setSize(3);
         $row['sequence'] = $sequence->render();
         $action = new ilAdvancedSelectionListGUI();
         $action->setId('asl_content_' . $row['unit_id']);
         $action->setAsynch(false);
         $action->setListTitle($this->lng->txt('actions'));
         $ilCtrl->setParameter($this->getParentObject(), 'unit_id', $row['unit_id']);
         $action->addItem($this->lng->txt('edit'), '', $ilCtrl->getLinkTarget($this->getParentObject(), 'showUnitModificationForm'));
         $action->addItem($this->lng->txt('delete'), '', $ilCtrl->getLinkTarget($this->getParentObject(), 'confirmDeleteUnit'));
         $ilCtrl->setParameter($this->getParentObject(), 'unit_id', '');
         $row['actions'] = $action->getHtml();
     }
     if ($row['unit_id'] == $row['baseunit_id']) {
         $row['baseunit'] = '';
     }
     parent::fillRow($row);
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:31,代码来源:class.ilUnitTableGUI.php


示例9: getLinkHTML

 /**
  * @param $title
  * @param $show_action_menu
  * @return string
  */
 public function getLinkHTML($title, $show_action_menu = false)
 {
     global $lng;
     $link = ilLink::_getStaticLink($this->getValue());
     if ($show_action_menu) {
         $list = new ilAdvancedSelectionListGUI();
         $list->setId('adv_list_copy_link_' . $this->field->getId() . $this->record->getId());
         $list->setListTitle($title);
         if ($this->properties[ilDataCollectionField::PROPERTYID_ILIAS_REFERENCE_LINK]) {
             $list->addItem($lng->txt('view'), 'view', $link);
         }
         $list->addItem($lng->txt('copy'), 'copy', $this->getActionLink('copy'));
         $list->addItem($lng->txt('link'), 'link', $this->getActionLink('link'));
         return $list->getHTML();
     } else {
         return "<a href=\"{$link}\">{$title}</a>";
     }
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:23,代码来源:class.ilDataCollectionILIASRefField.php


示例10: asyncGetContent

 /**
  * @param bool            $delete_item
  * @param bool            $delete_folder
  * @param ilCloudFileNode $node
  */
 public function asyncGetContent($delete_item = false, $delete_folder = false, ilCloudFileNode $node)
 {
     global $lng;
     $this->node = $node;
     include_once "./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php";
     $this->selection_list = new ilAdvancedSelectionListGUI();
     $this->selection_list->setId($this->node->getId());
     $this->selection_list->setListTitle($lng->txt("actions"));
     $this->selection_list->setItemLinkClass("xsmall");
     $this->addSelectionListItems($delete_item, $delete_folder);
     if ($this->selection_list->getItems() != NULL) {
         echo $this->selection_list->getHTML(true);
         exit;
     } else {
         echo $lng->txt("empty");
         exit;
     }
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:23,代码来源:class.ilCloudPluginActionListGUI.php


示例11: fillRow

 /**
  * Fill row
  * @staticvar int $counter
  * @param array $set 
  */
 public function fillRow($set)
 {
     global $ilCtrl;
     $ilCtrl->setParameter($this->getParentObject(), 'server_id', $set['server_id']);
     $ilCtrl->setParameterByClass('ilecsmappingsettingsgui', 'server_id', $set['server_id']);
     if ($set['active']) {
         $this->tpl->setVariable('IMAGE_OK', ilUtil::getImagePath('icon_ok.svg'));
         $this->tpl->setVariable('TXT_OK', $this->lng->txt('ecs_activated'));
     } else {
         $this->tpl->setVariable('IMAGE_OK', ilUtil::getImagePath('icon_not_ok.svg'));
         $this->tpl->setVariable('TXT_OK', $this->lng->txt('ecs_inactivated'));
     }
     $this->tpl->setVariable('VAL_TITLE', ilECSSetting::getInstanceByServerId($set['server_id'])->getTitle());
     $this->tpl->setVariable('LINK_EDIT', $ilCtrl->getLinkTarget($this->getParentObject(), 'edit'));
     $this->tpl->setVariable('TXT_SRV_ADDR', $this->lng->txt('ecs_server_addr'));
     if (ilECSSetting::getInstanceByServerId($set['server_id'])->getServer()) {
         $this->tpl->setVariable('VAL_DESC', ilECSSetting::getInstanceByServerId($set['server_id'])->getServer());
     } else {
         $this->tpl->setVariable('VAL_DESC', $this->lng->txt('ecs_not_configured'));
     }
     $dt = ilECSSetting::getInstanceByServerId($set['server_id'])->fetchCertificateExpiration();
     if ($dt != NULL) {
         $this->tpl->setVariable('TXT_CERT_VALID', $this->lng->txt('ecs_cert_valid_until'));
         $now = new ilDateTime(time(), IL_CAL_UNIX);
         $now->increment(IL_CAL_MONTH, 2);
         if (ilDateTime::_before($dt, $now)) {
             $this->tpl->setCurrentBlock('invalid');
             $this->tpl->setVariable('VAL_ICERT', ilDatePresentation::formatDate($dt));
             $this->tpl->parseCurrentBlock();
         } else {
             $this->tpl->setCurrentBlock('valid');
             $this->tpl->setVariable('VAL_VCERT', ilDatePresentation::formatDate($dt));
             $this->tpl->parseCurrentBlock();
         }
     }
     // Actions
     include_once './Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
     $list = new ilAdvancedSelectionListGUI();
     $list->setSelectionHeaderClass('small');
     $list->setItemLinkClass('small');
     $list->setId('actl_' . $set['server_id']);
     $list->setListTitle($this->lng->txt('actions'));
     if (ilECSSetting::getInstanceByServerId($set['server_id'])->isEnabled()) {
         $list->addItem($this->lng->txt('ecs_deactivate'), '', $ilCtrl->getLinkTarget($this->getParentObject(), 'deactivate'));
     } else {
         $list->addItem($this->lng->txt('ecs_activate'), '', $ilCtrl->getLinkTarget($this->getParentObject(), 'activate'));
     }
     $list->addItem($this->lng->txt('edit'), '', $ilCtrl->getLinkTarget($this->getParentObject(), 'edit'));
     $list->addItem($this->lng->txt('copy'), '', $ilCtrl->getLinkTarget($this->getParentObject(), 'cp'));
     $list->addItem($this->lng->txt('delete'), '', $ilCtrl->getLinkTarget($this->getParentObject(), 'delete'));
     $this->tpl->setVariable('ACTIONS', $list->getHTML());
     $ilCtrl->clearParameters($this->getParentObject());
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:58,代码来源:class.ilECSServerTableGUI.php


示例12: fillRow

 /**
  * Fill table row
  */
 protected function fillRow($a_set)
 {
     global $lng, $ilCtrl, $rbacsystem;
     if ($a_set["id"] > 0) {
         $this->tpl->setCurrentBlock("cb");
         $this->tpl->setVariable("ID", $a_set["id"]);
         $this->tpl->parseCurrentBlock();
         $this->tpl->setCurrentBlock("cb_act");
         if ($a_set["active"]) {
             $this->tpl->setVariable("ACT_CHECKED", "checked='checked'");
         }
         $this->tpl->setVariable("ID", $a_set["id"]);
         $this->tpl->parseCurrentBlock();
         $this->tpl->setCurrentBlock("edit_link");
         $ilCtrl->setParameterByClass("ilobjstylesheetgui", "obj_id", $a_set["id"]);
         $this->tpl->setVariable("EDIT_LINK", $ilCtrl->getLinkTargetByClass("ilobjstylesheetgui", ""));
         $ilCtrl->setParameterByClass("ilobjstylesheetgui", "obj_id", "");
         $this->tpl->setVariable("EDIT_TITLE", $a_set["title"]);
         $this->tpl->parseCurrentBlock();
     } else {
         $this->tpl->setVariable("TITLE", $a_set["title"]);
     }
     $ilCtrl->setParameter($this->parent_obj, "id", $a_set["id"]);
     if ($a_set["id"] > 0 && $rbacsystem->checkAccess("write", $this->parent_obj->object->getRefId())) {
         $list = new ilAdvancedSelectionListGUI();
         $list->setListTitle($lng->txt("actions"));
         $list->setId("sty_act_" . $a_set["id"]);
         // default style
         if ($this->default_style == $a_set["id"]) {
             $list->addItem($lng->txt("sty_remove_global_default_state"), "", $ilCtrl->getLinkTarget($this->parent_obj, "toggleGlobalDefault"));
         } else {
             if ($a_set["active"]) {
                 $list->addItem($lng->txt("sty_make_global_default"), "", $ilCtrl->getLinkTarget($this->parent_obj, "toggleGlobalDefault"));
             }
         }
         // fixed style
         if ($this->fixed_style == $a_set["id"]) {
             $list->addItem($lng->txt("sty_remove_global_fixed_state"), "", $ilCtrl->getLinkTarget($this->parent_obj, "toggleGlobalFixed"));
         } else {
             if ($a_set["active"]) {
                 $list->addItem($lng->txt("sty_make_global_fixed"), "", $ilCtrl->getLinkTarget($this->parent_obj, "toggleGlobalFixed"));
             }
         }
         $list->addItem($lng->txt("sty_set_scope"), "", $ilCtrl->getLinkTarget($this->parent_obj, "setScope"));
         $this->tpl->setVariable("ACTIONS", $list->getHTML());
         if ($a_set["id"] == $this->fixed_style) {
             $this->tpl->setVariable("PURPOSE", $lng->txt("global_fixed"));
         }
         if ($a_set["id"] == $this->default_style) {
             $this->tpl->setVariable("PURPOSE", $lng->txt("global_default"));
         }
     }
     $ilCtrl->setParameter($this->parent_obj, "id", "");
     $this->tpl->setVariable("NR_LM", $a_set["lm_nr"]);
     if ($a_set["category"] > 0) {
         $this->tpl->setVariable("SCOPE", ilObject::_lookupTitle(ilObject::_lookupObjId($a_set["category"])));
     }
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:61,代码来源:class.ilContentStylesTableGUI.php


示例13: buildActionMenu

 /**
  * Build action menu
  *
  * @param array $a_set
  * @return ilAdvancedSelectionListGUI
  */
 protected function buildActionMenu(array $a_set)
 {
     $list = new ilAdvancedSelectionListGUI();
     $list->setId($a_set['id']);
     $list->setListTitle($this->pl->txt('actions'));
     $this->ctrl->setParameterByClass('srcertificatetypegui', 'type_id', $this->type->getId());
     $this->ctrl->setParameterByClass('srcertificatetypegui', 'signature_id', $a_set['id']);
     $list->addItem($this->lng->txt('edit'), 'edit', $this->ctrl->getLinkTargetByClass('srcertificatetypegui', 'editSignature'));
     $list->addItem($this->lng->txt('delete'), 'delete', $this->ctrl->getLinkTargetByClass('srcertificatetypegui', 'confirmDeleteSignature'));
     $list->addItem($this->lng->txt('download'), 'download', $this->ctrl->getLinkTargetByClass('srcertificatetypegui', 'downloadSignature'));
     return $list;
 }
开发者ID:studer-raimann,项目名称:Certificate,代码行数:18,代码来源:class.srCertificateTypeSignaturesTableGUI.php


示例14: fillRow

 /**
  * Fills table rows with content from $a_set.
  *
  * @global ilCtrl2 $ilCtrl
  *
  * @param array    $a_set
  */
 public function fillRow($a_set)
 {
     global $ilCtrl;
     $this->tpl->setVariable('VAL_LIBRARY_NAME', $a_set['name']);
     $this->tpl->setVariable('VAL_LIBRARY_URL', $a_set['url']);
     $this->tpl->setVariable('VAL_LIBRARY_IMG', $a_set['img']);
     $current_selection_list = new ilAdvancedSelectionListGUI();
     $current_selection_list->setListTitle($this->lng->txt("actions"));
     $current_selection_list->setId($a_set['id']);
     $current_selection_list->addItem($this->lng->txt("edit"), "", $ilCtrl->getLinkTarget($this->gui, 'edit') . "&lib_id=" . $a_set['id']);
     $current_selection_list->addItem($this->lng->txt("delete"), "", $ilCtrl->getLinkTarget($this->gui, 'delete') . "&lib_id=" . $a_set['id']);
     $this->tpl->setVariable('VAL_ACTIONS', $current_selection_list->getHTML());
 }
开发者ID:JKN-INC,项目名称:SHELBY-ILIAS,代码行数:20,代码来源:class.ilObjBibliographicAdminTableGUI.php


示例15: fillRow

 /**
  * @param array $row
  */
 public function fillRow(array $row)
 {
     /**
      * @var $ilCtrl ilCtrl
      */
     global $ilCtrl;
     $row['chb'] = ilUtil::formCheckbox(false, 'category_ids[]', $row['category_id']);
     $action = new ilAdvancedSelectionListGUI();
     $action->setId('asl_content_' . $row['category_id']);
     $action->setAsynch(false);
     $action->setListTitle($this->lng->txt('actions'));
     $ilCtrl->setParameter($this->getParentObject(), 'category_id', $row['category_id']);
     $action->addItem($this->lng->txt('un_show_units'), '', $ilCtrl->getLinkTarget($this->getParentObject(), 'showUnitsOfCategory'));
     if ($this->getParentObject()->isCRUDContext()) {
         $action->addItem($this->lng->txt('edit'), '', $ilCtrl->getLinkTarget($this->getParentObject(), 'showUnitCategoryModificationForm'));
         $action->addItem($this->lng->txt('delete'), '', $ilCtrl->getLinkTarget($this->getParentObject(), 'confirmDeleteCategory'));
     } else {
         $action->addItem($this->lng->txt('import'), '', $ilCtrl->getLinkTarget($this->getParentObject(), 'confirmImportGlobalCategory'));
     }
     $row['title_href'] = $ilCtrl->getLinkTarget($this->getParentObject(), 'showUnitsOfCategory');
     $ilCtrl->setParameter($this->getParentObject(), 'category_id', '');
     $row['actions'] = $action->getHtml();
     parent::fillRow($row);
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:27,代码来源:class.ilUnitCategoryTableGUI.php


示例16: fillRow

 /**
  * Pass data to row template
  *
  * @param array $set
  */
 public function fillRow($set)
 {
     $this->tpl->setVariable('TITLE', $set['title']);
     $this->tpl->setVariable('DESCRIPTION', $set['description']);
     $this->tpl->setVariable('DEFAULT_LANG', $set['default_language']);
     $this->tpl->setVariable('ICON', $set['icon']);
     $this->ctrl->setParameterByClass("ilorgunittypegui", "type_id", $set['id']);
     $selection = new ilAdvancedSelectionListGUI();
     $selection->setListTitle($this->lng->txt('Actions'));
     $selection->setId('action_orgu_type' . $set['id']);
     $selection->addItem($this->lng->txt('edit'), 'edit', $this->ctrl->getLinkTargetByClass('ilorgunittypegui', 'edit'));
     $selection->addItem($this->lng->txt('delete'), 'delete', $this->ctrl->getLinkTargetByClass('ilorgunittypegui', 'delete'));
     $this->tpl->setVariable('ACTIONS', $selection->getHTML());
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:19,代码来源:class.ilOrgUnitTypeTableGUI.php


示例17: fillRow

 /**
  * Fill row
  * @param type $a_set
  */
 public function fillRow($a_set)
 {
     global $ilCtrl;
     $this->tpl->setVariable('TITLE', $a_set['title']);
     $this->tpl->setVariable('MAX_BOOKINGS', $a_set['max_books']);
     $this->tpl->setVariable('ASSIGNED', $a_set['assigned']);
     include_once './Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
     $list = new ilAdvancedSelectionListGUI();
     $list->setId('act_chgrp_' . $this->user_id . '_' . $a_set['id']);
     $list->setListTitle($this->lng->txt('actions'));
     $ilCtrl->setParameter($this->getParentObject(), 'grp_id', $a_set['id']);
     $list->addItem($this->lng->txt('edit'), '', $ilCtrl->getLinkTarget($this->getParentObject(), 'editGroup'));
     // add members
     if ($a_set['assigned']) {
         $list->addItem($this->lng->txt('cal_ch_assign_participants'), '', $ilCtrl->getLinkTargetByClass('ilRepositorySearchGUI', ''));
     }
     $list->addItem($this->lng->txt('delete'), '', $ilCtrl->getLinkTarget($this->getParentObject(), 'confirmDeleteGroup'));
     $this->tpl->setVariable('ACTIONS', $list->getHTML());
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:23,代码来源:class.ilConsultationHourGroupTableGUI.php


示例18: show

 /**
  * show desktop
  */
 function show()
 {
     // preload block settings
     include_once "Services/Block/classes/class.ilBlockSetting.php";
     ilBlockSetting::preloadPDBlockSettings();
     // add template for content
     $this->pd_tpl = new ilTemplate("tpl.usr_personaldesktop.html", true, true, "Services/PersonalDesktop");
     $this->tpl->getStandardTemplate();
     // display infopanel if something happened
     ilUtil::infoPanel();
     //$this->tpl->setTitleIcon(ilUtil::getImagePath("icon_pd_b.png"),
     //	$this->lng->txt("personal_desktop"));
     //		$this->tpl->setTitleIcon(ilUtil::getImagePath("icon_pd_b.png"),
     //			"");
     $this->tpl->setTitle($this->lng->txt("overview"));
     $this->tpl->setVariable("IMG_SPACE", ilUtil::getImagePath("spacer.png", false));
     $this->tpl->setContent($this->getCenterColumnHTML());
     $this->tpl->setRightContent($this->getRightColumnHTML());
     $this->tpl->setLeftContent($this->getLeftColumnHTML());
     if (count($this->action_menu->getItems())) {
         /**
          * @var $tpl ilTemplate
          * @var $lng ilLanguage
          */
         global $tpl, $lng;
         $this->action_menu->setAsynch(false);
         $this->action_menu->setAsynchUrl('');
         $this->action_menu->setListTitle($lng->txt('actions'));
         $this->action_menu->setId('act_pd');
         $this->action_menu->setSelectionHeaderClass('small');
         $this->action_menu->setItemLinkClass('xsmall');
         $this->action_menu->setLinksMode('il_ContainerItemCommand2');
         $this->action_menu->setHeaderIcon(ilAdvancedSelectionListGUI::DOWN_ARROW_DARK);
         $this->action_menu->setUseImages(false);
         $htpl = new ilTemplate('tpl.header_action.html', true, true, 'Services/Repository');
         $htpl->setVariable('ACTION_DROP_DOWN', $this->action_menu->getHTML());
         $tpl->setHeaderActionMenu($htpl->get());
     }
     $this->tpl->show();
 }
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:43,代码来源:class.ilPersonalDesktopGUI.php


示例19: fillRow

 /**
  * Fill row
  * @param type $a_set
  */
 public function fillRow($row)
 {
     global $ilCtrl;
     $this->tpl->setVariable('START', $row['start_str']);
     $this->tpl->setVariable('NAME', $row['name']);
     $this->tpl->setVariable('COMMENT', $row['comment']);
     $this->tpl->setVariable('TITLE', $row['title']);
     $this->tpl->setVariable('VAL_ID', $row['id']);
     include_once './Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
     $list = new ilAdvancedSelectionListGUI();
     $list->setId('act_chboo_' . $row['id']);
     $list->setListTitle($this->lng->txt('actions'));
     $ilCtrl->setParameter($this->getParentObject(), 'bookuser', $row['id']);
     $start = new ilDateTime($row['start'], IL_CAL_UNIX);
     if (ilDateTime::_after($start, $this->today, IL_CAL_DAY)) {
         $list->addItem($this->lng->txt('cal_ch_reject_booking'), '', $ilCtrl->getLinkTarget($this->getParentObject(), 'confirmRejectBooking'));
     }
     $list->addItem($this->lng->txt('cal_ch_delete_booking'), '', $ilCtrl->getLinkTarget($this->getParentObject(), 'confirmDeleteBooking'));
     $this->tpl->setVariable('ACTIONS', $list->getHTML());
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:24,代码来源:class.ilConsultationHourBookingTableGUI.php


示例20: fillRow

 /**
  * Fill table row
  * @param	array	$a_set
  */
 protected function fillRow($a_set)
 {
     global $lng, $ilAccess, $ilCtrl;
     $this->tpl->setVariable("TXT_TITLE", $a_set["title"]);
     if ($a_set["is_used"]) {
         $this->tpl->setVariable("TXT_IS_USED", $lng->txt("yes"));
     } else {
         $this->tpl->setVariable("TXT_IS_USED", $lng->txt("no"));
     }
     $ilCtrl->setParameter($this->parent_obj, 'schedule_id', $a_set['booking_schedule_id']);
     include_once "./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php";
     $alist = new ilAdvancedSelectionListGUI();
     $alist->setId($a_set['booking_schedule_id']);
     $alist->setListTitle($lng->txt("actions"));
     if ($ilAccess->checkAccess('write', '', $this->ref_id)) {
         if (!$a_set["is_used"]) {
             $alist->addItem($lng->txt('delete'), 'delete', $ilCtrl->getLinkTarget($this->parent_obj, 'confirmDelete'));
         }
         $alist->addItem($lng->txt('edit'), 'edit', $ilCtrl->getLinkTarget($this->parent_obj, 'edit'));
     }
     $this->tpl->setVariable("LAYER", $alist->getHTML());
 }
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:26,代码来源:class.ilBookingSchedulesTableGUI.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP ilChangeEvent类代码示例发布时间:2022-05-23
下一篇:
PHP idna_convert类代码示例发布时间: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