当前位置: 首页>>代码示例>>PHP>>正文


PHP ilCheckboxInputGUI::setInfo方法代码示例

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


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

示例1: build

 public function build()
 {
     $this->setFormAction($this->ctrl->getFormAction($this->questionSetConfigGUI));
     $this->setTitle($this->lng->txt('tst_rnd_quest_set_cfg_general_form'));
     $this->setId('tstRndQuestSetCfgGeneralForm');
     $this->addCommandButton(ilTestRandomQuestionSetConfigGUI::CMD_SAVE_GENERAL_CONFIG_FORM, $this->lng->txt('save'));
     // Require Pools with Homogeneous Scored Questions
     $requirePoolsQuestionsHomoScored = new ilCheckboxInputGUI($this->lng->txt('tst_inp_all_quest_points_equal_per_pool'), 'quest_points_equal_per_pool');
     $requirePoolsQuestionsHomoScored->setInfo($this->lng->txt('tst_inp_all_quest_points_equal_per_pool_desc'));
     $requirePoolsQuestionsHomoScored->setChecked($this->questionSetConfig->arePoolsWithHomogeneousScoredQuestionsRequired());
     $this->addItem($requirePoolsQuestionsHomoScored);
     // question amount config mode (per test / per pool)
     $questionAmountConfigMode = new ilRadioGroupInputGUI($this->lng->txt('tst_inp_quest_amount_cfg_mode'), 'quest_amount_cfg_mode');
     $questionAmountConfigMode->setValue($this->fetchValidQuestionAmountConfigModeWithFallbackModePerTest($this->questionSetConfig));
     $questionAmountConfigModePerTest = new ilRadioOption($this->lng->txt('tst_inp_quest_amount_cfg_mode_test'), ilTestRandomQuestionSetConfig::QUESTION_AMOUNT_CONFIG_MODE_PER_TEST);
     $questionAmountConfigMode->addOption($questionAmountConfigModePerTest);
     $questionAmountConfigModePerPool = new ilRadioOption($this->lng->txt('tst_inp_quest_amount_cfg_mode_pool'), ilTestRandomQuestionSetConfig::QUESTION_AMOUNT_CONFIG_MODE_PER_POOL);
     $questionAmountConfigMode->addOption($questionAmountConfigModePerPool);
     $questionAmountConfigMode->setRequired(true);
     $this->addItem($questionAmountConfigMode);
     // question amount per test
     $questionAmountPerTest = new ilNumberInputGUI($this->lng->txt('tst_inp_quest_amount_per_test'), 'quest_amount_per_test');
     $questionAmountPerTest->setRequired(true);
     $questionAmountPerTest->setMinValue(0);
     $questionAmountPerTest->allowDecimals(false);
     $questionAmountPerTest->setMinvalueShouldBeGreater(true);
     $questionAmountPerTest->setSize(4);
     $questionAmountPerTest->setValue($this->questionSetConfig->getQuestionAmountPerTest());
     $questionAmountConfigModePerTest->addSubItem($questionAmountPerTest);
     if ($this->testOBJ->participantDataExist()) {
         $requirePoolsQuestionsHomoScored->setDisabled(true);
         $questionAmountConfigMode->setDisabled(true);
         $questionAmountPerTest->setDisabled(true);
     }
 }
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:35,代码来源:class.ilTestRandomQuestionSetGeneralConfigFormGUI.php

示例2: initEditCustomForm

 protected function initEditCustomForm(ilPropertyFormGUI $a_form)
 {
     global $lng, $ilSetting;
     if ($this->id_type == self::REPOSITORY_NODE_ID) {
         $appr = new ilCheckboxInputGUI($lng->txt("blog_enable_approval"), "approval");
         $appr->setInfo($lng->txt("blog_enable_approval_info"));
         $a_form->addItem($appr);
     }
     $notes = new ilCheckboxInputGUI($lng->txt("blog_enable_notes"), "notes");
     $a_form->addItem($notes);
     if ($ilSetting->get('enable_global_profiles')) {
         $rss = new ilCheckboxInputGUI($lng->txt("blog_enable_rss"), "rss");
         $rss->setInfo($lng->txt("blog_enable_rss_info"));
         $a_form->addItem($rss);
     }
     $ppic = new ilCheckboxInputGUI($lng->txt("blog_profile_picture"), "ppic");
     $a_form->addItem($ppic);
     $blga_set = new ilSetting("blga");
     if ($blga_set->get("banner")) {
         $dimensions = " (" . $blga_set->get("banner_width") . "x" . $blga_set->get("banner_height") . ")";
         $img = new ilImageFileInputGUI($lng->txt("blog_banner") . $dimensions, "banner");
         $a_form->addItem($img);
         // show existing file
         $file = $this->object->getImageFullPath(true);
         if ($file) {
             $img->setImage($file);
         }
     }
     $bg_color = new ilColorPickerInputGUI($lng->txt("blog_background_color"), "bg_color");
     $a_form->addItem($bg_color);
     $font_color = new ilColorPickerInputGUI($lng->txt("blog_font_color"), "font_color");
     $a_form->addItem($font_color);
 }
开发者ID:khanhnnvn,项目名称:ilias_E-learning,代码行数:33,代码来源:class.ilObjBlogGUI.php

示例3: addCustomSettingsToForm

 public function addCustomSettingsToForm(ilPropertyFormGUI $a_form)
 {
     global $lng, $ilSetting;
     $cb = new ilCheckboxInputGUI($lng->txt("cron_mail_notification_message"), "mail_notification_message");
     $cb->setInfo($lng->txt("cron_mail_notification_message_info"));
     $cb->setChecked($ilSetting->get("mail_notification_message"));
     $a_form->addItem($cb);
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:8,代码来源:class.ilMailCronNotification.php

示例4: initPluginSettings

 public function initPluginSettings()
 {
     if ($this->getAdminConfigObject()->getDefaultAllowPublicLinksConfigAllowPublicLinks() && $this->getAdminConfigObject()->getDefaultAllowPublicLinks()) {
         $public_links = new ilCheckboxInputGUI($this->txt("activate_public_links"), "activate_public_links");
         $public_links->setInfo($this->txt("info_activate_public_links"));
         $this->form->addItem($public_links);
     }
     if ($this->getAdminConfigObject()->getConfigMaxFileSize()) {
         $max_file_size = new ilNumberInputGUI($this->txt("max_file_size"), "max_file_size");
         $max_file_size->setInfo($this->txt("info_max_file_size"));
         $max_file_size->setMaxLength(10);
         $max_file_size->setSize(10);
         $this->form->addItem($max_file_size);
     }
 }
开发者ID:studer-raimann,项目名称:Dropbox,代码行数:15,代码来源:class.ilDropboxSettingsGUI.php

示例5: edit

 /**
  * Edit question overview form.
  */
 function edit($a_insert = false)
 {
     global $ilCtrl, $tpl, $lng;
     $this->displayValidationError();
     // edit form
     include_once "./Services/Form/classes/class.ilPropertyFormGUI.php";
     $form = new ilPropertyFormGUI();
     $form->setFormAction($ilCtrl->getFormAction($this));
     if ($a_insert) {
         $form->setTitle($this->lng->txt("cont_ed_insert_qover"));
     } else {
         $form->setTitle($this->lng->txt("cont_edit_qover"));
     }
     // short message
     $cb = new ilCheckboxInputGUI($this->lng->txt("cont_qover_short_message"), "short");
     $cb->setInfo($this->lng->txt("cont_qover_short_message_info"));
     if (!$a_insert) {
         $cb->setChecked($this->content_obj->getShortMessage());
     } else {
         $cb->setChecked(true);
     }
     $form->addItem($cb);
     // list wrong questions
     $cb = new ilCheckboxInputGUI($this->lng->txt("cont_qover_list_wrong_q"), "wrong_questions");
     $cb->setInfo($this->lng->txt("cont_qover_list_wrong_q_info"));
     if (!$a_insert) {
         $cb->setChecked($this->content_obj->getListWrongQuestions());
     }
     $form->addItem($cb);
     // save/cancel buttons
     if ($a_insert) {
         $form->addCommandButton("create_qover", $lng->txt("save"));
         $form->addCommandButton("cancelCreate", $lng->txt("cancel"));
     } else {
         $form->addCommandButton("update", $lng->txt("save"));
         $form->addCommandButton("cancelUpdate", $lng->txt("cancel"));
     }
     $html = $form->getHTML();
     $tpl->setContent($html);
     return $ret;
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:44,代码来源:class.ilPCQuestionOverviewGUI.php

示例6: initConfigurationForm

 /**
  * Init configuration form.
  *
  * @return object form object
  */
 public function initConfigurationForm()
 {
     global $lng, $ilCtrl;
     $pl = $this->getPluginObject();
     include_once "Services/Form/classes/class.ilPropertyFormGUI.php";
     $form = new ilPropertyFormGUI();
     // Setting for the ephorus logging
     $ephorus_logging = new ilCheckboxInputGUI($pl->txt("ephorus_logging"), "ephorus_logging");
     $ephorus_logging->setValue(1);
     $ephorus_logging->setInfo($pl->txt("ephorus_logging_description"));
     $form->addItem($ephorus_logging);
     // Setting for the hand-in code
     $handin_code = new ilTextInputGUI($pl->txt("handin_code"), "handin_code");
     $handin_code->setRequired(true);
     $form->addItem($handin_code);
     // Setting for the hand-in address
     $handin_address = new ilTextInputGUI($pl->txt("handin_address"), "handin_address");
     $handin_address->setSize(80);
     $handin_address->setRequired(true);
     $form->addItem($handin_address);
     // Setting for the index address
     $index_address = new ilTextInputGUI($pl->txt("index_address"), "index_address");
     $index_address->setSize(80);
     $index_address->setRequired(true);
     $form->addItem($index_address);
     // Setting for the processtype
     $processtype = new ilSelectInputGUI($pl->txt("default_processtype"), "processtype");
     $processtype->setOptions(array(1 => $pl->txt("default"), 3 => $pl->txt("private")));
     $processtype->setInfo($pl->txt("default_processtype_description"));
     $form->addItem($processtype);
     // Setting for the disclosure
     $disclosure = new ilTextAreaInputGUI($pl->txt("disclosure"), "disclosure");
     $disclosure->setCols(79);
     $disclosure->setRows(4);
     $form->addItem($disclosure);
     $form->addCommandButton("save", $lng->txt("save") . " / " . $pl->txt("check_connection"));
     $form->setTitle($pl->txt("ephorus_plugin_configuration"));
     $form->setFormAction($ilCtrl->getFormAction($this));
     return $form;
 }
开发者ID:jmcgettrick,项目名称:ilias-ephorus,代码行数:45,代码来源:class.ilEphorusConfigGUI.php

示例7: showTopicsSettings

 public function showTopicsSettings()
 {
     $this->tpl->addBlockFile('ADM_CONTENT', 'adm_content', 'tpl.main_view.html', 'Services/Payment');
     $genSet = ilPaymentSettings::_getInstance();
     $genSetData = $genSet->getAll();
     $form = new ilPropertyFormGUI();
     $form->setFormAction($this->ctrl->getFormAction($this, 'saveTopicsSettings'));
     $form->setTitle($this->lng->txt('pays_general_settings'));
     $form->addCommandButton('saveTopicsSettings', $this->lng->txt('save'));
     // use topics
     $formItem = new ilCheckboxInputGUI($this->lng->txt('enable_topics'), 'enable_topics');
     $formItem->setChecked((int) $genSetData['enable_topics']);
     $formItem->setInfo($this->lng->txt('enable_topics_info'));
     $form->addItem($formItem);
     // default sorting type
     $formItem = new ilSelectInputGUI($this->lng->txt('pay_topics_default_sorting_type'), 'topics_sorting_type');
     $formItem->setValue($genSetData['topics_sorting_type']);
     $options = array(1 => $this->lng->txt('pay_topics_sort_by_title'), 2 => $this->lng->txt('pay_topics_sort_by_date'), 3 => $this->lng->txt('pay_topics_sort_manually'));
     $formItem->setOptions($options);
     $form->addItem($formItem);
     // default sorting direction
     $formItem = new ilSelectInputGUI($this->lng->txt('pay_topics_default_sorting_direction'), 'topics_sorting_direction');
     $formItem->setValue($genSetData['topics_sorting_direction']);
     $options = array('asc' => $this->lng->txt('sort_asc'), 'desc' => $this->lng->txt('sort_desc'));
     $formItem->setOptions($options);
     $form->addItem($formItem);
     // topics custom sorting
     $formItem = new ilCheckboxInputGUI($this->lng->txt('pay_topics_allow_custom_sorting'), 'topics_allow_custom_sorting');
     $formItem->setChecked((int) $genSetData['topics_allow_custom_sorting']);
     $formItem->setInfo($this->lng->txt('pay_topics_allow_custom_sorting_info'));
     $form->addItem($formItem);
     // show topics filter
     $formItem = new ilCheckboxInputGUI($this->lng->txt('show_topics_filter'), 'show_topics_filter');
     $formItem->setChecked((int) $genSetData['show_topics_filter']);
     $formItem->setInfo($this->lng->txt('show_topics_filter_info'));
     $form->addItem($formItem);
     $this->tpl->setVariable('FORM', $form->getHTML());
     return true;
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:39,代码来源:class.ilShopTopicsGUI.php

示例8: addCustomSettingsToForm

 public function addCustomSettingsToForm(ilPropertyFormGUI $a_form)
 {
     global $lng;
     $lng->loadLanguageModule("file");
     require_once 'Services/WebDAV/classes/class.ilObjDiskQuotaSettings.php';
     $disk_quota_obj = ilObjDiskQuotaSettings::getInstance();
     // Enable disk quota reminder mail
     $cb_prop_reminder = new ilCheckboxInputGUI($lng->txt("enable_disk_quota_reminder_mail"), "enable_disk_quota_reminder_mail");
     $cb_prop_reminder->setValue('1');
     $cb_prop_reminder->setChecked($disk_quota_obj->isDiskQuotaReminderMailEnabled());
     $cb_prop_reminder->setInfo($lng->txt('disk_quota_reminder_mail_desc'));
     $a_form->addItem($cb_prop_reminder);
     // Enable summary mail for certain users
     $cb_prop_summary = new ilCheckboxInputGUI($lng->txt("enable_disk_quota_summary_mail"), "enable_disk_quota_summary_mail");
     $cb_prop_summary->setValue(1);
     $cb_prop_summary->setChecked($disk_quota_obj->isDiskQuotaSummaryMailEnabled());
     $cb_prop_summary->setInfo($lng->txt('enable_disk_quota_summary_mail_desc'));
     $a_form->addItem($cb_prop_summary);
     // Edit disk quota recipients
     $summary_rcpt = new ilTextInputGUI($lng->txt("disk_quota_summary_rctp"), "disk_quota_summary_rctp");
     $summary_rcpt->setValue($disk_quota_obj->getSummaryRecipients());
     $summary_rcpt->setInfo($lng->txt('disk_quota_summary_rctp_desc'));
     $cb_prop_summary->addSubItem($summary_rcpt);
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:24,代码来源:class.ilDAVCronDiskQuota.php

示例9: initForm

 /**
  * Init form
  *
  * @return ilPropertyFormGUI
  */
 public function initForm()
 {
     global $lng, $ilCtrl;
     /** @var $ilCtrl ilCtrl */
     $ilCtrl = $ilCtrl;
     include_once "Services/Form/classes/class.ilPropertyFormGUI.php";
     $form = new ilPropertyFormGUI();
     $item = new ilCustomInputGUI();
     $item->setHtml($lng->txt('dcl_file_format_description'));
     $item->setTitle("Info");
     $form->addItem($item);
     $file = new ilFileInputGUI($lng->txt("import_file"), "import_file");
     $file->setRequired(true);
     $form->addItem($file);
     $cb = new ilCheckboxInputGUI($lng->txt("dcl_simulate_import"), "simulate");
     $cb->setInfo($lng->txt("dcl_simulate_info"));
     $form->addItem($cb);
     $form->addCommandButton("importExcel", $lng->txt("save"));
     return $form;
 }
开发者ID:bheyser,项目名称:qplskl,代码行数:25,代码来源:class.ilDataCollectionRecordListGUI.php

示例10: initImportForm

 /**
  * Init import form.
  */
 public function initImportForm()
 {
     global $lng, $ilCtrl;
     include_once "Services/Form/classes/class.ilPropertyFormGUI.php";
     $form = new ilPropertyFormGUI();
     $new_type = $_POST["new_type"] ? $_POST["new_type"] : $_GET["new_type"];
     $this->ctrl->setParameter($this, "new_type", $new_type);
     $form->setTarget(ilFrameTargetInfo::_getFrame("MainContent"));
     $form->setTableWidth("600px");
     // import file
     $fi = new ilFileInputGUI($this->lng->txt("file"), "xmldoc");
     $fi->setSuffixes(array("zip"));
     $fi->setRequired(true);
     $fi->setSize(30);
     $form->addItem($fi);
     // validation
     $cb = new ilCheckboxInputGUI($this->lng->txt("cont_validate_file"), "validate");
     $cb->setInfo($this->lng->txt(""));
     $form->addItem($cb);
     $form->addCommandButton("importFile", $lng->txt("import"));
     $form->addCommandButton("cancel", $lng->txt("cancel"));
     $form->setTitle($this->lng->txt("import_" . $new_type));
     $form->setFormAction($ilCtrl->getFormAction($this));
     return $form;
 }
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:28,代码来源:class.ilObjContentObjectGUI.php

示例11: initFormSettings

 /**
  * Init settings property form
  *
  * @access protected
  */
 protected function initFormSettings()
 {
     if (is_object($this->form)) {
         return true;
     }
     include_once 'Services/Calendar/classes/class.ilCalendarUtil.php';
     include_once 'Services/Form/classes/class.ilPropertyFormGUI.php';
     $this->form = new ilPropertyFormGUI();
     $this->form->setFormAction($this->ctrl->getFormAction($this));
     $this->form->setTitle($this->lng->txt('cal_global_settings'));
     $this->form->addCommandButton('save', $this->lng->txt('save'));
     #$this->form->addCommandButton('cancel',$this->lng->txt('cancel'));
     $check = new ilCheckboxInputGUI($this->lng->txt('enable_calendar'), 'enable');
     $check->setValue(1);
     $check->setChecked($this->settings->isEnabled() ? true : false);
     $this->form->addItem($check);
     $server_tz = new ilNonEditableValueGUI($this->lng->txt('cal_server_tz'));
     $server_tz->setValue(ilTimeZone::_getDefaultTimeZone());
     $this->form->addItem($server_tz);
     $select = new ilSelectInputGUI($this->lng->txt('cal_def_timezone'), 'default_timezone');
     $select->setOptions(ilCalendarUtil::_getShortTimeZoneList());
     $select->setInfo($this->lng->txt('cal_def_timezone_info'));
     $select->setValue($this->settings->getDefaultTimeZone());
     $this->form->addItem($select);
     $year = date("Y");
     $select = new ilSelectInputGUI($this->lng->txt('cal_def_date_format'), 'default_date_format');
     $select->setOptions(array(ilCalendarSettings::DATE_FORMAT_DMY => '31.10.' . $year, ilCalendarSettings::DATE_FORMAT_YMD => $year . "-10-31", ilCalendarSettings::DATE_FORMAT_MDY => "10/31/" . $year));
     $select->setInfo($this->lng->txt('cal_def_date_format_info'));
     $select->setValue($this->settings->getDefaultDateFormat());
     $this->form->addItem($select);
     $select = new ilSelectInputGUI($this->lng->txt('cal_def_time_format'), 'default_time_format');
     $select->setOptions(array(ilCalendarSettings::TIME_FORMAT_24 => '13:00', ilCalendarSettings::TIME_FORMAT_12 => '1:00pm'));
     $select->setInfo($this->lng->txt('cal_def_time_format_info'));
     $select->setValue($this->settings->getDefaultTimeFormat());
     $this->form->addItem($select);
     // Weekstart
     $radio = new ilRadioGroupInputGUI($this->lng->txt('cal_def_week_start'), 'default_week_start');
     $radio->setValue($this->settings->getDefaultWeekStart());
     $option = new ilRadioOption($this->lng->txt('l_su'), 0);
     $radio->addOption($option);
     $option = new ilRadioOption($this->lng->txt('l_mo'), 1);
     $radio->addOption($option);
     $this->form->addItem($radio);
     // Day start
     $day_start = new ilSelectInputGUI($this->lng->txt('cal_day_start'), 'dst');
     $day_start->setOptions(ilCalendarUtil::getHourSelection($this->settings->getDefaultTimeFormat()));
     $day_start->setValue($this->settings->getDefaultDayStart());
     $this->form->addItem($day_start);
     $day_end = new ilSelectInputGUI($this->lng->txt('cal_day_end'), 'den');
     $day_end->setOptions(ilCalendarUtil::getHourSelection($this->settings->getDefaultTimeFormat()));
     $day_end->setValue($this->settings->getDefaultDayEnd());
     $this->form->addItem($day_end);
     $sync = new ilCheckboxInputGUI($this->lng->txt('cal_webcal_sync'), 'webcal');
     $sync->setValue(1);
     $sync->setChecked($this->settings->isWebCalSyncEnabled());
     $sync->setInfo($this->lng->txt('cal_webcal_sync_info'));
     $sync_min = new ilNumberInputGUI('', 'webcal_hours');
     $sync_min->setSize(2);
     $sync_min->setMaxLength(3);
     $sync_min->setValue($this->settings->getWebCalSyncHours());
     $sync_min->setSuffix($this->lng->txt('hours'));
     $sync->addSubItem($sync_min);
     $this->form->addItem($sync);
     // enable milestone planning in groups
     $mil = new ilFormSectionHeaderGUI();
     $mil->setTitle($this->lng->txt('cal_milestone_settings'));
     $this->form->addItem($mil);
     $checkm = new ilCheckboxInputGUI($this->lng->txt('cal_enable_group_milestones'), 'enable_grp_milestones');
     $checkm->setValue(1);
     $checkm->setChecked($this->settings->getEnableGroupMilestones() ? true : false);
     $checkm->setInfo($this->lng->txt('cal_enable_group_milestones_desc'));
     $this->form->addItem($checkm);
     // Consultation hours
     $con = new ilFormSectionHeaderGUI();
     $con->setTitle($this->lng->txt('cal_ch_form_header'));
     $this->form->addItem($con);
     $ch = new ilCheckboxInputGUI($this->lng->txt('cal_ch_form'), 'ch');
     $ch->setInfo($this->lng->txt('cal_ch_form_info'));
     $ch->setValue(1);
     $ch->setChecked($this->settings->areConsultationHoursEnabled());
     $this->form->addItem($ch);
     // repository visibility default
     $rep = new ilFormSectionHeaderGUI();
     $rep->setTitle($GLOBALS['lng']->txt('cal_setting_global_vis_repos'));
     $this->form->addItem($rep);
     $crs = new ilCheckboxInputGUI($GLOBALS['lng']->txt('cal_setting_global_crs_vis'), 'visible_crs');
     $crs->setInfo($GLOBALS['lng']->txt('cal_setting_global_crs_vis_info'));
     $crs->setValue(1);
     $crs->setInfo($GLOBALS['lng']->txt('cal_setting_global_crs_vis_info'));
     $crs->setChecked($this->settings->isCourseCalendarEnabled());
     $this->form->addItem($crs);
     $grp = new ilCheckboxInputGUI($GLOBALS['lng']->txt('cal_setting_global_grp_vis'), 'visible_grp');
     $grp->setInfo($GLOBALS['lng']->txt('cal_setting_global_grp_vis_info'));
     $grp->setValue(1);
     $grp->setInfo($GLOBALS['lng']->txt('cal_setting_global_grp_vis_info'));
//.........这里部分代码省略.........
开发者ID:khanhnnvn,项目名称:ilias_E-learning,代码行数:101,代码来源:class.ilObjCalendarSettingsGUI.php

示例12: initCustomIconsForm

 protected function initCustomIconsForm()
 {
     global $ilSetting;
     include_once "Services/Form/classes/class.ilPropertyFormGUI.php";
     include_once "Services/Form/classes/class.ilCombinationInputGUI.php";
     $form = new ilPropertyFormGUI();
     $form->setTitle($this->lng->txt("rep_custom_icons"));
     $form->setFormAction($this->ctrl->getFormAction($this, 'saveCustomIcons'));
     $cb = new ilCheckboxInputGUI($this->lng->txt("enable_custom_icons"), "custom_icons");
     $cb->setInfo($this->lng->txt("enable_custom_icons_info"));
     $cb->setChecked($ilSetting->get("custom_icons"));
     $form->addItem($cb);
     /*
     $size_big = new ilCombinationInputGUI($this->lng->txt("custom_icon_size_big"));
     $form->addItem($size_big);
     
     $width = new ilNumberInputGUI("", "custom_icon_big_width");
     $width->setSize(3);
     $width->setValue($ilSetting->get("custom_icon_big_width"));
     $size_big->addCombinationItem("bgw", $width, $this->lng->txt("width"));
     
     $height = new ilNumberInputGUI("", "custom_icon_big_height");
     $height->setSize(3);
     $height->setValue($ilSetting->get("custom_icon_big_height"));
     $size_big->addCombinationItem("bgh", $height, $this->lng->txt("height"));
     
     
     $size_small = new ilCombinationInputGUI($this->lng->txt("custom_icon_size_standard"));
     $form->addItem($size_small);
     
     $width = new ilNumberInputGUI("", "custom_icon_small_width");
     $width->setSize(3);
     $width->setValue($ilSetting->get("custom_icon_small_width"));
     $size_small->addCombinationItem("smw", $width, $this->lng->txt("width"));
     
     $height = new ilNumberInputGUI("", "custom_icon_small_height");
     $height->setSize(3);
     $height->setValue($ilSetting->get("custom_icon_small_height"));
     $size_small->addCombinationItem("smh", $height, $this->lng->txt("height"));
     
     
     $size_tiny = new ilCombinationInputGUI($this->lng->txt("custom_icon_size_tiny"));
     $form->addItem($size_tiny);
     
     $width = new ilNumberInputGUI("", "custom_icon_tiny_width");
     $width->setSize(3);
     $width->setValue($ilSetting->get("custom_icon_tiny_width"));
     $size_tiny->addCombinationItem("tnw", $width, $this->lng->txt("width"));
     
     $height = new ilNumberInputGUI("", "custom_icon_tiny_height");
     $height->setSize(3);
     $height->setValue($ilSetting->get("custom_icon_tiny_height"));
     $size_tiny->addCombinationItem("tnh", $height, $this->lng->txt("height"));
     */
     $form->addCommandButton('saveCustomIcons', $this->lng->txt('save'));
     return $form;
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:57,代码来源:class.ilObjRepositorySettingsGUI.php

示例13: buildAdjustQuestionForm

 /**
  * @param $question_id
  * @param $question_pool_id
  *
  * @return ilPropertyFormGUI
  */
 protected function buildAdjustQuestionForm($question_id, $question_pool_id)
 {
     require_once './Services/Form/classes/class.ilPropertyFormGUI.php';
     require_once './Modules/TestQuestionPool/classes/class.assQuestion.php';
     $form = new ilPropertyFormGUI();
     $form->setFormAction($this->ctrl->getFormAction($this));
     $form->setMultipart(FALSE);
     $form->setTableWidth("100%");
     $form->setId("adjustment");
     /** @var $question assQuestionGUI|ilGuiQuestionScoringAdjustable|ilGuiAnswerScoringAdjustable */
     $question = assQuestion::instantiateQuestionGUI($question_id);
     $form->setTitle($question->object->getTitle() . '<br /><small>(' . $question->outQuestionType() . ')</small>');
     $hidden_question_id = new ilHiddenInputGUI('q_id');
     $hidden_question_id->setValue($question_id);
     $form->addItem($hidden_question_id);
     $hidden_qpl_id = new ilHiddenInputGUI('qpl_id');
     $hidden_qpl_id->setValue($question_pool_id);
     $form->addItem($hidden_qpl_id);
     $this->populateScoringAdjustments($question, $form);
     $manscoring_section = new ilFormSectionHeaderGUI();
     $manscoring_section->setTitle($this->lng->txt('manscoring'));
     $form->addItem($manscoring_section);
     $manscoring_preservation = new ilCheckboxInputGUI($this->lng->txt('preserve_manscoring'), 'preserve_manscoring');
     $manscoring_preservation->setChecked(true);
     $manscoring_preservation->setInfo($this->lng->txt('preserve_manscoring_info'));
     $form->addItem($manscoring_preservation);
     $form->addCommandButton("savescoringfortest", $this->lng->txt("save"));
     $participants = $this->object->getParticipants();
     $active_ids = array_keys($participants);
     $results = array();
     foreach ($active_ids as $active_id) {
         $passes[] = $this->object->_getPass($active_id);
         foreach ($passes as $key => $pass) {
             for ($i = 0; $i <= $pass; $i++) {
                 $results[] = $question->object->getSolutionValues($active_id, $i);
             }
         }
     }
     $relevant_answers = array();
     foreach ($results as $result) {
         foreach ($result as $answer) {
             if ($answer['question_fi'] == $question->object->getId()) {
                 $relevant_answers[] = $answer;
             }
         }
     }
     $answers_view = $question->getAggregatedAnswersView($relevant_answers);
     include_once 'Services/jQuery/classes/class.iljQueryUtil.php';
     iljQueryUtil::initjQuery();
     include_once 'Services/YUI/classes/class.ilYuiUtil.php';
     ilYuiUtil::initPanel();
     ilYuiUtil::initOverlay();
     $this->tpl->addJavascript('./Services/UIComponent/Overlay/js/ilOverlay.js');
     $this->tpl->addJavaScript("./Services/JavaScript/js/Basic.js");
     $container = new ilTemplate('tpl.il_as_tst_adjust_answer_aggregation_container.html', true, true, 'Modules/Test');
     $container->setVariable('FORM_ELEMENT_NAME', 'aggr_usr_answ');
     $container->setVariable('CLOSE_HTML', json_encode(ilGlyphGUI::get(ilGlyphGUI::CLOSE, $this->lng->txt('close'))));
     $container->setVariable('TXT_SHOW_ANSWER_OVERVIEW', $this->lng->txt('show_answer_overview'));
     $container->setVariable('TXT_CLOSE', $this->lng->txt('close'));
     $container->setVariable('ANSWER_OVERVIEW', $answers_view);
     $custom_input = new ilCustomInputGUI('', 'aggr_usr_answ');
     $custom_input->setHtml($container->get());
     $form->addItem($custom_input);
     return $form;
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:71,代码来源:class.ilScoringAdjustmentGUI.php

示例14: getApacheAuthSettingsForm

 public function getApacheAuthSettingsForm()
 {
     include_once "./Services/Form/classes/class.ilPropertyFormGUI.php";
     $form = new ilPropertyFormGUI();
     $form->setFormAction($this->ctrl->getFormAction($this));
     $form->setTitle($this->lng->txt('apache_settings'));
     $chb_enabled = new ilCheckboxInputGUI($this->lng->txt('apache_enable_auth'), 'apache_enable_auth');
     $form->addItem($chb_enabled);
     $chb_local_create_account = new ilCheckboxInputGUI($this->lng->txt('apache_autocreate'), 'apache_local_autocreate');
     $chb_enabled->addSubitem($chb_local_create_account);
     global $rbacreview;
     $roles = $rbacreview->getGlobalRolesArray();
     $select = new ilSelectInputGUI($this->lng->txt('apache_default_role'), 'apache_default_role');
     $roleOptions = array();
     foreach ($roles as $role) {
         $roleOptions[$role['obj_id']] = ilObject::_lookupTitle($role['obj_id']);
     }
     $select->setOptions($roleOptions);
     $select->setValue(4);
     $chb_local_create_account->addSubitem($select);
     $chb_local = new ilCheckboxInputGUI($this->lng->txt('apache_enable_local'), 'apache_enable_local');
     $form->addItem($chb_local);
     $chb_ldap = new ilCheckboxInputGUI($this->lng->txt('apache_enable_ldap'), 'apache_enable_ldap');
     $chb_ldap->setInfo($this->lng->txt('apache_ldap_hint_ldap_must_be_configured'));
     $form->addItem($chb_ldap);
     $txt = new ilTextInputGUI($this->lng->txt('apache_auth_indicator_name'), 'apache_auth_indicator_name');
     $txt->setRequired(true);
     $form->addItem($txt);
     $txt = new ilTextInputGUI($this->lng->txt('apache_auth_indicator_value'), 'apache_auth_indicator_value');
     $txt->setRequired(true);
     $form->addItem($txt);
     $chb = new ilCheckboxInputGUI($this->lng->txt('apache_auth_enable_override_login'), 'apache_auth_enable_override_login_page');
     $form->addItem($chb);
     $txt = new ilTextInputGUI($this->lng->txt('apache_auth_target_override_login'), 'apache_auth_target_override_login_page');
     $txt->setRequired(true);
     $chb->addSubItem($txt);
     $chb = new ilCheckboxInputGUI($this->lng->txt('apache_auth_authenticate_on_login_page'), 'apache_auth_authenticate_on_login_page');
     $form->addItem($chb);
     $sec = new ilFormSectionHeaderGUI();
     $sec->setTitle($this->lng->txt('apache_auth_username_config'));
     $form->addItem($sec);
     $rag = new ilRadioGroupInputGUI($this->lng->txt('apache_auth_username_config_type'), 'apache_auth_username_config_type');
     $form->addItem($rag);
     $rao = new ilRadioOption($this->lng->txt('apache_auth_username_direct_mapping'), 1);
     $rag->addOption($rao);
     $txt = new ilTextInputGUI($this->lng->txt('apache_auth_username_direct_mapping_fieldname'), 'apache_auth_username_direct_mapping_fieldname');
     //$txt->setRequired(true);
     $rao->addSubItem($txt);
     $rao = new ilRadioOption($this->lng->txt('apache_auth_username_extended_mapping'), 2);
     $rao->setDisabled(true);
     $rag->addOption($rao);
     $rao = new ilRadioOption($this->lng->txt('apache_auth_username_by_function'), 3);
     $rag->addOption($rao);
     /*		$txt = new ilTextInputGUI($this->lng->txt('apache_auth_username_by_function_functionname'), 'apache_auth_username_by_function_functionname');
     		$rao->addSubItem($txt);*/
     $sec = new ilFormSectionHeaderGUI();
     $sec->setTitle($this->lng->txt('apache_auth_security'));
     $form->addItem($sec);
     $txt = new ilTextAreaInputGUI($this->lng->txt('apache_auth_domains'), 'apache_auth_domains');
     $txt->setInfo($this->lng->txt('apache_auth_domains_description'));
     $form->addItem($txt);
     $form->addCommandButton('saveApacheSettings', $this->lng->txt('save'));
     $form->addCommandButton('cancel', $this->lng->txt('cancel'));
     return $form;
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:65,代码来源:class.ilObjAuthSettingsGUI.php

示例15: initFormSettings

 /**
  * Init settings property form
  *
  * @access protected
  */
 protected function initFormSettings()
 {
     global $lng;
     include_once 'Services/Form/classes/class.ilPropertyFormGUI.php';
     $form = new ilPropertyFormGUI();
     $form->setFormAction($this->ctrl->getFormAction($this));
     $form->setTitle($this->lng->txt('blog_settings'));
     $form->addCommandButton('saveSettings', $this->lng->txt('save'));
     $form->addCommandButton('cancel', $this->lng->txt('cancel'));
     $banner = new ilCheckboxInputGUI($lng->txt("blog_preview_banner"), "banner");
     $banner->setInfo($lng->txt("blog_preview_banner_info"));
     $form->addItem($banner);
     $width = new ilNumberInputGUI($lng->txt("blog_preview_banner_width"), "width");
     $width->setRequired(true);
     $width->setSize(4);
     $banner->addSubItem($width);
     $height = new ilNumberInputGUI($lng->txt("blog_preview_banner_height"), "height");
     $height->setRequired(true);
     $height->setSize(4);
     $banner->addSubItem($height);
     $blga_set = new ilSetting("blga");
     $banner->setChecked($blga_set->get("banner", false));
     if ($blga_set->get("banner")) {
         $width->setValue($blga_set->get("banner_width"));
         $height->setValue($blga_set->get("banner_height"));
     } else {
         $width->setValue(1370);
         $height->setValue(100);
     }
     $mask = new ilCheckboxInputGUI($lng->txt("blog_allow_html"), "mask");
     $mask->setInfo($lng->txt("blog_allow_html_info"));
     $mask->setChecked($blga_set->get("mask", false));
     $form->addItem($mask);
     return $form;
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:40,代码来源:class.ilObjBlogAdministrationGUI.php


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