本文整理汇总了PHP中ilTextInputGUI::setInfo方法的典型用法代码示例。如果您正苦于以下问题:PHP ilTextInputGUI::setInfo方法的具体用法?PHP ilTextInputGUI::setInfo怎么用?PHP ilTextInputGUI::setInfo使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ilTextInputGUI
的用法示例。
在下文中一共展示了ilTextInputGUI::setInfo方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($title, $post_var)
{
global $lng;
parent::__construct($title, $post_var);
$this->title_input = new ilTextInputGUI($this->getTitle(), "display_" . $this->getPostVar());
$this->title_input->setDisabled(true);
$this->title_input->setInfo($lng->txt("dcl_ilias_refere\tnce_info"));
$this->search_input = new ilTextInputGUI($this->getTitle(), "search_" . $this->getPostVar());
$this->search_input->setDisabled(false);
$this->search_input->setInfo($lng->txt('dcl_ilias_reference_info'));
$this->hidden_input = new ilHiddenInputGUI($this->getPostVar());
}
示例2: initForm
protected function initForm()
{
$this->setTitle($this->lng->txt('admin_form_title'));
$te = new ilTextInputGUI($this->lng->txt('admin_origins_path'), 'path');
$te->setInfo($this->lng->txt('admin_origins_path_info'));
$this->addItem($te);
$this->addCommandButtons();
}
示例3: showSettings
public function showSettings($item)
{
global $lng;
$txt = new ilTextInputGUI($lng->txt('polling_intervall'), 'osd_polling_intervall');
$txt->setRequired(true);
$txt->setInfo($lng->txt('polling_in_seconds'));
$txt->setValue('300');
$item->addSubItem($txt);
return array('osd_polling_intervall');
}
示例4: __construct
/**
* @param string $title
* @param string $post_var
*/
public function __construct($title, $post_var)
{
global $lng, $tpl;
/**
* @var $tpl iltemplate
*/
parent::__construct($title, $post_var);
$tpl->addJavaScript('./Modules/DataCollection/js/ilDclTreeSearch.js');
$this->title_input = new ilTextInputGUI($this->getTitle(), "display_" . $this->getPostVar());
$this->title_input->setDisabled(true);
$this->title_input->setInfo($lng->txt("dcl_ilias_refere\tnce_info"));
$this->title_input->setInlineStyle('width: 98%; display:inline-block;');
$this->search_input = new ilTextInputGUI($this->getTitle(), "search_" . $this->getPostVar());
$this->search_input->setDisabled(false);
$this->search_input->setInfo($lng->txt('dcl_ilias_reference_info'));
$this->search_input->setInlineStyle('width: 98%; margin-top: 5px;');
$this->hidden_input = new ilHiddenInputGUI($this->getPostVar());
$this->lng = $lng;
}
示例5: _initForm
/**
* Init Social Bookmark edit/create Form
*
* @param ilObjectGUI $formhandlerObject taken as form target
* @param int $mode "create" / "edit"
*/
public static function _initForm($formhandlerObject, $mode = "create", $id = 0)
{
global $lng, $ilCtrl;
include_once "Services/Form/classes/class.ilPropertyFormGUI.php";
$form = new ilPropertyFormGUI();
$form->setMultipart(true);
// File Title
$in_title = new ilTextInputGUI($lng->txt("title"), "title");
$in_title->setMaxLength(128);
$in_title->setSize(40);
$in_title->setRequired(true);
$form->addItem($in_title);
// Link
$in_link = new ilTextInputGUI($lng->txt("link"), "link");
$in_link->setMaxLength(300);
$in_link->setSize(40);
$in_link->setRequired(true);
$in_link->setInfo($lng->txt('socialbm_link_description'));
$form->addItem($in_link);
// File
$in_file = new ilFileInputGUI($lng->txt("file"), "image_file");
$in_file->setSuffixes(array('bmp', 'gif', 'jpg', 'jpeg', 'png'));
$form->addItem($in_file);
// Activate on submit
$in_activate = new ilCheckboxInputGUI($lng->txt("activate"), "activate");
$in_activate->setValue('1');
$form->addItem($in_activate);
// save and cancel commands
if ($mode == "create") {
$form->addCommandButton("createSocialBookmark", $lng->txt("create"));
$form->addCommandButton("editSocialBookmarks", $lng->txt("cancel"));
$form->setTitle($lng->txt("adm_social_bm_create"));
$in_file->setRequired(true);
} else {
if ($mode == "update") {
$in_hidden = new ilHiddenInputGUI("sbm_id", $id);
$form->addItem($in_hidden);
$form->addCommandButton("updateSocialBookmark", $lng->txt("update"));
$form->addCommandButton("cancel", $lng->txt("cancel"));
$form->setTitle($lng->txt("adm_social_bm_edit"));
$in_file->setRequired(false);
}
}
$form->setTableWidth("60%");
$form->setFormAction($ilCtrl->getFormAction($formhandlerObject));
return $form;
}
示例6: owner
function owner()
{
$this->__initSubTabs("owner");
include_once "Services/Form/classes/class.ilPropertyFormGUI.php";
$form = new ilPropertyFormGUI();
$form->setFormAction($this->ctrl->getFormAction($this, "owner"));
$form->setTitle($this->lng->txt("info_owner_of_object"));
$login = new ilTextInputGUI($this->lng->txt("login"), "owner");
$login->setDataSource($this->ctrl->getLinkTargetByClass(array(get_class($this), 'ilRepositorySearchGUI'), 'doUserAutoComplete', '', true));
$login->setRequired(true);
$login->setSize(50);
$login->setInfo($this->lng->txt("chown_warning"));
$login->setValue(ilObjUser::_lookupLogin($this->gui_obj->object->getOwner()));
$form->addItem($login);
$form->addCommandButton("changeOwner", $this->lng->txt("change_owner"));
$this->tpl->setContent($form->getHTML());
}
示例7: initPluginCreationFormSection
/**
* @param ilRadioOption $option
*/
public function initPluginCreationFormSection(ilRadioOption $option)
{
// $option->setInfo($this->txt('create_info1') . '</br>' . $this->txt('create_info2') . $this->getAdminConfigObject()->getAppName()
// . $this->txt('create_info3'));
$sub_selection = new ilRadioGroupInputGUI($this->txt(self::F_BASE_FOLDER), self::F_BASE_FOLDER);
$sub_selection->setRequired(true);
$option_default = new ilRadioOption($this->txt(self::F_DEFAULT_BASE_FOLDER), self::F_DEFAULT_BASE_FOLDER);
$option_custom = new ilRadioOption($this->txt('custom_base_folder'), self::F_CUSTOM_FOLDER_SELECTION);
$custom_base_folder_input = new ilTextInputGUI($this->txt(self::F_CUSTOM_BASE_FOLDER_INPUT), self::F_CUSTOM_BASE_FOLDER_INPUT);
$custom_base_folder_input->setRequired(true);
$custom_base_folder_input->setInfo($this->txt('custom_base_folder_input_info'));
$option_custom->addSubItem($custom_base_folder_input);
$sub_selection->addOption($option_default);
$sub_selection->addOption($option_custom);
$sub_selection->setValue(self::F_DEFAULT_BASE_FOLDER);
$option->addSubItem($sub_selection);
}
示例8: initPluginCreationFormSection
/**
* @param ilRadioOption $option
* @throws ilCloudPluginConfigException
*/
public function initPluginCreationFormSection(ilRadioOption $option)
{
$option->setInfo($this->txt("create_info1") . "</br>" . $this->txt("create_info2") . $this->getAdminConfigObject()->getAppName() . $this->txt("create_info3"));
$sub_selection = new ilRadioGroupInputGUI($this->txt(self::F_BASE_FOLDER), "dropbox_base_folder");
$sub_selection->setRequired(true);
$option_default = new ilRadioOption($this->txt("default_base_folder"), self::F_DROPBOX_DEFAULT_BASE_FOLDER);
$option_custom = new ilRadioOption($this->txt("custom_base_folder"), self::F_DROPBOX_CUSTOM_FOLDER_SELECTION);
$custom_base_folder_input = new ilTextInputGUI($this->txt("custom_base_folder_input"), self::F_DROPBOX_CUSTOM_BASE_FOLDER_INPUT);
$custom_base_folder_input->setRequired(true);
$custom_base_folder_input->setInfo($this->txt("custom_base_folder_input_info"));
$option_custom->addSubItem($custom_base_folder_input);
$sub_selection->addOption($option_default);
$sub_selection->addOption($option_custom);
$sub_selection->setValue(self::F_DROPBOX_DEFAULT_BASE_FOLDER);
$option->addSubItem($sub_selection);
$sub_selection2 = new ilCheckboxInputGUI($this->txt(self::F_ONLINE), self::F_ONLINE);
if ($this->getAdminConfigObject()->getValue('config_default_online')) {
$sub_selection2->setChecked(true);
}
$option->addSubItem($sub_selection2);
}
示例9: initForm
/**
* get html
*
* @access public
* @param
* @return
*/
public function initForm()
{
$rec = new ilSelectInputGUI($this->lng->txt('cal_recurrences'), 'frequence');
$rec->setRequired(true);
$rec->setOptions(array(0 => $this->lng->txt('cal_no_recurrence'), ilCalendarRecurrence::FREQ_DAILY => $this->lng->txt('cal_rec_daily'), ilCalendarRecurrence::FREQ_WEEKLY => $this->lng->txt('cal_rec_weekly'), ilCalendarRecurrence::FREQ_MONTHLY => $this->lng->txt('cal_rec_monthly'), ilCalendarRecurrence::FREQ_YEARLY => $this->lng->txt('cal_rec_yearly')));
$rec->setValue($this->recurrence->getFrequenceType());
$this->form->addItem($rec);
// DAILY part
$interval = new ilTextInputGUI($this->lng->txt('interval'), 'interval');
$interval->setSize(2);
$interval->setMaxLength(3);
$interval->setValue($this->recurrence->getInterval() ? $this->recurrence->getInterval() : 1);
$interval->setInfo($this->lng->txt('interval_info'));
$rec->addSubItem($interval);
// Weekly
$check = new ilCheckboxInputGUI($this->lng->txt('Su_short'), 'w_day[0]');
$check->setChecked(true);
$rec->addSubItem($check);
$check = new ilCheckboxInputGUI($this->lng->txt('Mo_short'), 'w_day[1]');
$check->setChecked(true);
$rec->addSubItem($check);
$check = new ilCheckboxInputGUI($this->lng->txt('Tu_short'), 'w_day[2]');
$check->setChecked(true);
$rec->addSubItem($check);
$check = new ilCheckboxInputGUI($this->lng->txt('We_short'), 'w_day[3]');
$check->setChecked(true);
$rec->addSubItem($check);
$check = new ilCheckboxInputGUI($this->lng->txt('Th_short'), 'w_day[4]');
$check->setChecked(true);
$rec->addSubItem($check);
$check = new ilCheckboxInputGUI($this->lng->txt('Fr_short'), 'w_day[5]');
$check->setChecked(true);
$rec->addSubItem($check);
$check = new ilCheckboxInputGUI($this->lng->txt('Sa_short'), 'w_day[6]');
$check->setChecked(true);
$rec->addSubItem($check);
}
示例10: 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);
}
示例11: initRoleMappingForm
/**
* init propertyformgui for Assignment of LDAP Attributes to ILIAS User Profile
* @param string $command command methode
* @return \ilPropertyFormGUI
*/
private function initRoleMappingForm($command)
{
include_once "./Services/Form/classes/class.ilPropertyFormGUI.php";
$this->setSubTabs();
$this->tabs_gui->setSubTabActive('ldap_role_mapping');
if (isset($_GET["mapping_id"])) {
$this->ctrl->setParameter($this, 'mapping_id', $_GET["mapping_id"]);
}
$propertie_form = new ilPropertyFormGUI();
$propertie_form->setFormAction($this->ctrl->getFormAction($this, $command));
$propertie_form->addCommandButton($command, $this->lng->txt('save'));
$propertie_form->addCommandButton("roleMapping", $this->lng->txt('cancel'));
$url = new ilTextInputGUI($this->lng->txt('ldap_server'));
$url->setPostVar("url");
$url->setSize(50);
$url->setMaxLength(255);
$url->setRequired(true);
$group_dn = new ilTextInputGUI($this->lng->txt('ldap_group_dn'));
$group_dn->setPostVar("dn");
$group_dn->setSize(50);
$group_dn->setMaxLength(255);
$group_dn->setInfo($this->lng->txt('ldap_dn_info'));
$group_dn->setRequired(true);
$member = new ilTextInputGUI($this->lng->txt('ldap_group_member'));
$member->setPostVar("member");
$member->setSize(32);
$member->setMaxLength(255);
$member->setInfo($this->lng->txt('ldap_member_info'));
$member->setRequired(true);
$member_isdn = new ilCheckboxInputGUI("");
$member_isdn->setPostVar("memberisdn");
$member_isdn->setOptionTitle($this->lng->txt('ldap_memberisdn'));
$role = new ilTextInputGUI($this->lng->txt('ldap_ilias_role'));
$role->setPostVar("role");
$role->setSize(32);
$role->setMaxLength(255);
$role->setInfo($this->lng->txt('ldap_role_info'));
$role->setRequired(true);
$info = new ilTextAreaInputGUI($this->lng->txt('ldap_info_text'));
$info->setPostVar("info");
$info->setCols(50);
$info->setRows(3);
$info->setInfo($this->lng->txt('ldap_info_text_info'));
$info_type = new ilCheckboxInputGUI("");
$info_type->setPostVar("info_type");
$info_type->setOptionTitle($this->lng->txt('ldap_mapping_info_type'));
$propertie_form->addItem($url);
$propertie_form->addItem($group_dn);
$propertie_form->addItem($member);
$propertie_form->addItem($member_isdn);
$propertie_form->addItem($role);
$propertie_form->addItem($info);
$propertie_form->addItem($info_type);
return $propertie_form;
}
示例12: editSOAPObject
/**
* Configure soap settings
*
* @access public
*/
function editSOAPObject()
{
global $rbacsystem, $rbacreview, $ilSetting, $ilCtrl, $lng;
if (!$rbacsystem->checkAccess("read", $this->object->getRefId())) {
$this->ilias->raiseError($this->lng->txt("permission_denied"), $this->ilias->error_obj->MESSAGE);
}
$this->tabs_gui->setTabActive('auth_soap');
//set Template
$this->tpl->addBlockFile('ADM_CONTENT', 'adm_content', 'tpl.auth_soap.html', 'Services/Authentication');
// compose role list
$role_list = $rbacreview->getRolesByFilter(2, $this->object->getId());
$roles = array();
foreach ($role_list as $role) {
$roles[$role['obj_id']] = $role['title'];
}
//set property form gui
include_once "./Services/Form/classes/class.ilPropertyFormGUI.php";
$soap_config = new ilPropertyFormGUI();
$soap_config->setTitle($this->lng->txt("auth_soap_auth"));
$soap_config->setDescription($this->lng->txt("auth_soap_auth_desc"));
$soap_config->setFormAction($this->ctrl->getFormAction($this, "editSOAP"));
$soap_config->addCommandButton("saveSOAP", $this->lng->txt("save"));
$soap_config->addCommandButton("editSOAP", $this->lng->txt("cancel"));
//set activ
$active = new ilCheckboxInputGUI();
$active->setTitle($this->lng->txt("active"));
$active->setPostVar("soap[active]");
//set server
$server = new ilTextInputGUI();
$server->setTitle($this->lng->txt("server"));
$server->setInfo($this->lng->txt("auth_soap_server_desc"));
$server->setPostVar("soap[server]");
$server->setSize(50);
$server->setMaxLength(256);
$server->setRequired(true);
//set port
$port = new ilTextInputGUI();
$port->setTitle($this->lng->txt("port"));
$port->setInfo($this->lng->txt("auth_soap_port_desc"));
$port->setPostVar("soap[port]");
$port->setSize(7);
$port->setMaxLength(5);
//set https
$https = new ilCheckboxInputGUI();
$https->setTitle($this->lng->txt("auth_soap_use_https"));
$https->setPostVar("soap[use_https]");
//set uri
$uri = new ilTextInputGUI();
$uri->setTitle($this->lng->txt("uri"));
$uri->setInfo($this->lng->txt("auth_soap_uri_desc"));
$uri->setPostVar("soap[uri]");
$uri->setSize(50);
$uri->setMaxLength(256);
//set namespace
$namespace = new ilTextInputGUI();
$namespace->setTitle($this->lng->txt("auth_soap_namespace"));
$namespace->setInfo($this->lng->txt("auth_soap_namespace_desc"));
$namespace->setPostVar("soap[namespace]");
$namespace->setSize(50);
$namespace->setMaxLength(256);
//set dotnet
$dotnet = new ilCheckboxInputGUI();
$dotnet->setTitle($this->lng->txt("auth_soap_use_dotnet"));
$dotnet->setPostVar("soap[use_dotnet]");
//set create users
$createuser = new ilCheckboxInputGUI();
$createuser->setTitle($this->lng->txt("auth_create_users"));
$createuser->setInfo($this->lng->txt("auth_soap_create_users_desc"));
$createuser->setPostVar("soap[create_users]");
//set account mail
$sendmail = new ilCheckboxInputGUI();
$sendmail->setTitle($this->lng->txt("user_send_new_account_mail"));
$sendmail->setInfo($this->lng->txt("auth_new_account_mail_desc"));
$sendmail->setPostVar("soap[account_mail]");
//set user default role
$defaultrole = new ilSelectInputGUI();
$defaultrole->setTitle($this->lng->txt("auth_user_default_role"));
$defaultrole->setInfo($this->lng->txt("auth_soap_user_default_role_desc"));
$defaultrole->setPostVar("soap[user_default_role]");
$defaultrole->setOptions($roles);
//set allow local authentication
$allowlocal = new ilCheckboxInputGUI();
$allowlocal->setTitle($this->lng->txt("auth_allow_local"));
$allowlocal->setInfo($this->lng->txt("auth_soap_allow_local_desc"));
$allowlocal->setPostVar("soap[allow_local]");
// get all settings
$settings = $ilSetting->getAll();
// get values in error case
if ($_SESSION["error_post_vars"]) {
$active->setChecked($_SESSION["error_post_vars"]["soap"]["active"]);
$server->setValue($_SESSION["error_post_vars"]["soap"]["server"]);
$port->setValue($_SESSION["error_post_vars"]["soap"]["port"]);
$https->setChecked($_SESSION["error_post_vars"]["soap"]["use_https"]);
$uri->setValue($_SESSION["error_post_vars"]["soap"]["uri"]);
$namespace->setValue($_SESSION["error_post_vars"]["soap"]["namespace"]);
//.........这里部分代码省略.........
示例13: initPropertiesForm
/**
* Init survey settings form
*
* @return ilPropertyFormGUI
*/
function initPropertiesForm()
{
$template_settings = $hide_rte_switch = null;
$template = $this->object->getTemplate();
if ($template) {
include_once "Services/Administration/classes/class.ilSettingsTemplate.php";
$template = new ilSettingsTemplate($template);
$template_settings = $template->getSettings();
$hide_rte_switch = $template_settings["rte_switch"]["hide"];
}
include_once "./Services/Form/classes/class.ilPropertyFormGUI.php";
$form = new ilPropertyFormGUI();
$form->setFormAction($this->ctrl->getFormAction($this));
$form->setTableWidth("100%");
$form->setId("survey_properties");
// general properties
$header = new ilFormSectionHeaderGUI();
$header->setTitle($this->lng->txt("settings"));
$form->addItem($header);
// title & description (meta data)
include_once 'Services/MetaData/classes/class.ilMD.php';
$md_obj = new ilMD($this->object->getId(), 0, "svy");
$md_section = $md_obj->getGeneral();
$title = new ilTextInputGUI($this->lng->txt("title"), "title");
$title->setRequired(true);
$title->setValue($md_section->getTitle());
$form->addItem($title);
$ids = $md_section->getDescriptionIds();
if ($ids) {
$desc_obj = $md_section->getDescription(array_pop($ids));
$desc = new ilTextAreaInputGUI($this->lng->txt("description"), "description");
$desc->setCols(50);
$desc->setRows(4);
$desc->setValue($desc_obj->getDescription());
$form->addItem($desc);
}
// pool usage
$pool_usage = new ilRadioGroupInputGUI($this->lng->txt("survey_question_pool_usage"), "use_pool");
$opt = new ilRadioOption($this->lng->txt("survey_question_pool_usage_active"), 1);
$opt->setInfo($this->lng->txt("survey_question_pool_usage_active_info"));
$pool_usage->addOption($opt);
$opt = new ilRadioOption($this->lng->txt("survey_question_pool_usage_inactive"), 0);
$opt->setInfo($this->lng->txt("survey_question_pool_usage_inactive_info"));
$pool_usage->addOption($opt);
$pool_usage->setValue($this->object->getPoolUsage());
$form->addItem($pool_usage);
// 360°: appraisees
if ($this->object->get360Mode()) {
$self_eval = new ilCheckboxInputGUI($this->lng->txt("survey_360_self_evaluation"), "self_eval");
$self_eval->setInfo($this->lng->txt("survey_360_self_evaluation_info"));
$self_eval->setChecked($this->object->get360SelfEvaluation());
$form->addItem($self_eval);
$self_rate = new ilCheckboxInputGUI($this->lng->txt("survey_360_self_raters"), "self_rate");
$self_rate->setInfo($this->lng->txt("survey_360_self_raters_info"));
$self_rate->setChecked($this->object->get360SelfRaters());
$form->addItem($self_rate);
$self_appr = new ilCheckboxInputGUI($this->lng->txt("survey_360_self_appraisee"), "self_appr");
$self_appr->setInfo($this->lng->txt("survey_360_self_appraisee_info"));
$self_appr->setChecked($this->object->get360SelfAppraisee());
$form->addItem($self_appr);
}
// activation
include_once "Services/Object/classes/class.ilObjectActivation.php";
$this->lng->loadLanguageModule('rep');
$section = new ilFormSectionHeaderGUI();
$section->setTitle($this->lng->txt('rep_activation_availability'));
$form->addItem($section);
// additional info only with multiple references
$act_obj_info = $act_ref_info = "";
if (sizeof(ilObject::_getAllReferences($this->object->getId())) > 1) {
$act_obj_info = ' ' . $this->lng->txt('rep_activation_online_object_info');
$act_ref_info = $this->lng->txt('rep_activation_access_ref_info');
}
$online = new ilCheckboxInputGUI($this->lng->txt('rep_activation_online'), 'online');
$online->setInfo($this->lng->txt('svy_activation_online_info') . $act_obj_info);
$online->setChecked($this->object->isOnline());
$form->addItem($online);
$act_type = new ilCheckboxInputGUI($this->lng->txt('rep_visibility_until'), 'access_type');
// $act_type->setInfo($this->lng->txt('svy_availability_until_info'));
$act_type->setChecked($this->object->isActivationLimited());
$this->tpl->addJavaScript('./Services/Form/js/date_duration.js');
include_once "Services/Form/classes/class.ilDateDurationInputGUI.php";
$dur = new ilDateDurationInputGUI($this->lng->txt('rep_time_period'), "access_period");
$dur->setShowTime(true);
$date = $this->object->getActivationStartDate();
$dur->setStart(new ilDateTime($date ? $date : time(), IL_CAL_UNIX));
$dur->setStartText($this->lng->txt('rep_activation_limited_start'));
$date = $this->object->getActivationEndDate();
$dur->setEnd(new ilDateTime($date ? $date : time(), IL_CAL_UNIX));
$dur->setEndText($this->lng->txt('rep_activation_limited_end'));
$act_type->addSubItem($dur);
$visible = new ilCheckboxInputGUI($this->lng->txt('rep_activation_limited_visibility'), 'access_visiblity');
$visible->setInfo($this->lng->txt('svy_activation_limited_visibility_info'));
$visible->setChecked($this->object->getActivationVisibility());
$act_type->addSubItem($visible);
//.........这里部分代码省略.........
示例14: editDiskQuotaSettings
/**
* Edit disk quota settings.
*/
public function editDiskQuotaSettings()
{
global $rbacsystem, $ilErr, $ilSetting, $tpl, $lng, $ilCtrl;
if (!$rbacsystem->checkAccess("visible,read", $this->object->getRefId())) {
$ilErr->raiseError($lng->txt("no_permission"), $ilErr->WARNING);
}
$this->tabs_gui->setTabActive('disk_quota');
$this->addDiskQuotaSubtabs('settings');
require_once "./Services/Form/classes/class.ilPropertyFormGUI.php";
require_once "./Services/Form/classes/class.ilCheckboxInputGUI.php";
require_once "./Services/Form/classes/class.ilRadioGroupInputGUI.php";
require_once "./Services/Form/classes/class.ilRadioOption.php";
require_once "./Services/Form/classes/class.ilTextAreaInputGUI.php";
require_once "./Services/WebDAV/classes/class.ilDAVServer.php";
$form = new ilPropertyFormGUI();
$form->setFormAction($ilCtrl->getFormAction($this));
$form->setTitle($lng->txt("settings"));
// Enable disk quota
$cb_prop = new ilCheckboxInputGUI($lng->txt("enable_disk_quota"), "enable_disk_quota");
$cb_prop->setValue('1');
$cb_prop->setChecked($this->disk_quota_obj->isDiskQuotaEnabled());
$cb_prop->setInfo($lng->txt('enable_disk_quota_info'));
$form->addItem($cb_prop);
// 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($this->disk_quota_obj->isDiskQuotaReminderMailEnabled());
$cb_prop_reminder->setInfo($lng->txt('disk_quota_reminder_mail_desc'));
$cb_prop->addSubItem($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($this->disk_quota_obj->isDiskQuotaSummaryMailEnabled());
$cb_prop_summary->setInfo($lng->txt('enable_disk_quota_summary_mail_desc'));
$cb_prop->addSubItem($cb_prop_summary);
// Edit disk quota recipients
$summary_rcpt = new ilTextInputGUI($lng->txt("disk_quota_summary_rctp"), "disk_quota_summary_rctp");
$summary_rcpt->setValue($this->disk_quota_obj->getSummaryRecipients());
$summary_rcpt->setInfo($lng->txt('disk_quota_summary_rctp_desc'));
$cb_prop_summary->addSubItem($summary_rcpt);
// command buttons
$form->addCommandButton('saveDiskQuotaSettings', $lng->txt('save'));
$form->addCommandButton('editDiskQuotaSettings', $lng->txt('cancel'));
$tpl->setContent($form->getHTML());
}
示例15: initForm
private function initForm()
{
include_once 'Services/Form/classes/class.ilPropertyFormGUI.php';
$this->form = new ilPropertyFormGUI();
$this->form->setFormAction($this->ctrl->getFormAction($this, 'save'));
$this->form->setTitle($this->lng->txt('general_settings'));
// Subject prefix
$pre = new ilTextInputGUI($this->lng->txt('mail_subject_prefix'), 'mail_subject_prefix');
$pre->setSize(12);
$pre->setMaxLength(32);
$pre->setInfo($this->lng->txt('mail_subject_prefix_info'));
$this->form->addItem($pre);
// incoming type
include_once 'Services/Mail/classes/class.ilMailOptions.php';
$options = array(IL_MAIL_LOCAL => $this->lng->txt('mail_incoming_local'), IL_MAIL_EMAIL => $this->lng->txt('mail_incoming_smtp'), IL_MAIL_BOTH => $this->lng->txt('mail_incoming_both'));
$si = new ilSelectInputGUI($this->lng->txt('mail_incoming'), 'mail_incoming_mail');
$si->setOptions($options);
$this->ctrl->setParameterByClass('ilobjuserfoldergui', 'ref_id', USER_FOLDER_ID);
$si->setInfo(sprintf($this->lng->txt('mail_settings_incoming_type_see_also'), $this->ctrl->getLinkTargetByClass('ilobjuserfoldergui', 'settings')));
$this->ctrl->clearParametersByClass('ilobjuserfoldergui');
$this->form->addItem($si);
// noreply address
$ti = new ilTextInputGUI($this->lng->txt('mail_external_sender_noreply'), 'mail_external_sender_noreply');
$ti->setInfo($this->lng->txt('info_mail_external_sender_noreply'));
$ti->setMaxLength(255);
$this->form->addItem($ti);
$system_sender_name = new ilTextInputGUI($this->lng->txt('mail_system_sender_name'), 'mail_system_sender_name');
$system_sender_name->setInfo($this->lng->txt('mail_system_sender_name_info'));
$system_sender_name->setMaxLength(255);
$this->form->addItem($system_sender_name);
$cb = new ilCheckboxInputGUI($this->lng->txt('mail_use_pear_mail'), 'pear_mail_enable');
$cb->setInfo($this->lng->txt('mail_use_pear_mail_info'));
$cb->setValue(1);
$this->form->addItem($cb);
// prevent smtp mails
$cb = new ilCheckboxInputGUI($this->lng->txt('mail_prevent_smtp_globally'), 'prevent_smtp_globally');
$cb->setValue(1);
$this->form->addItem($cb);
$cron_mail = new ilSelectInputGUI($this->lng->txt('cron_mail_notification'), 'mail_notification');
$cron_options = array(0 => $this->lng->txt('cron_mail_notification_never'), 1 => $this->lng->txt('cron_mail_notification_cron'));
$cron_mail->setOptions($cron_options);
$cron_mail->setInfo($this->lng->txt('cron_mail_notification_desc'));
$this->form->addItem($cron_mail);
// section header
$sh = new ilFormSectionHeaderGUI();
$sh->setTitle($this->lng->txt('mail') . ' (' . $this->lng->txt('internal_system') . ')');
$this->form->addItem($sh);
// max attachment size
$ti = new ilNumberInputGUI($this->lng->txt('mail_maxsize_attach'), 'mail_maxsize_attach');
$ti->setSuffix($this->lng->txt('kb'));
$ti->setInfo($this->lng->txt('mail_max_size_attachments_total'));
$ti->setMaxLength(10);
$ti->setSize(10);
$this->form->addItem($ti);
// Course/Group member notification
$mn = new ilFormSectionHeaderGUI();
$mn->setTitle($this->lng->txt('mail_member_notification'));
$this->form->addItem($mn);
include_once "Services/Administration/classes/class.ilAdministrationSettingsFormHandler.php";
ilAdministrationSettingsFormHandler::addFieldsToForm(ilAdministrationSettingsFormHandler::FORM_MAIL, $this->form, $this);
$this->form->addCommandButton('save', $this->lng->txt('save'));
}