本文整理汇总了PHP中ilTextInputGUI::getToolbarHTML方法的典型用法代码示例。如果您正苦于以下问题:PHP ilTextInputGUI::getToolbarHTML方法的具体用法?PHP ilTextInputGUI::getToolbarHTML怎么用?PHP ilTextInputGUI::getToolbarHTML使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ilTextInputGUI
的用法示例。
在下文中一共展示了ilTextInputGUI::getToolbarHTML方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getHtml
public function getHtml()
{
global $ilCtrl;
$tpl = new ilTemplate("tpl.dcl_tree.html", true, true, "Modules/DataCollection");
$tpl->setVariable("FIELD_ID", $this->getPostVar());
$tpl->setVariable("AJAX_LINK", $ilCtrl->getLinkTargetByClass("ildatacollectionrecordeditgui", "searchObjects"));
$tpl->setVariable("LOADER_PATH", ilUtil::getImagePath("loader.gif"));
return $this->title_input->getToolbarHTML() . "<br /><br />" . $this->search_input->getTableFilterHTML() . $this->hidden_input->getToolbarHTML() . " <a href='#' id='search_button_" . $this->getPostVar() . "'>Search</a>" . $tpl->get();
}
示例2: getHtml
/**
* @return string
*/
public function getHtml()
{
global $ilCtrl;
$tpl = new ilTemplate("tpl.dcl_tree.html", true, true, "Modules/DataCollection");
$tpl->setVariable("FIELD_ID", $this->getPostVar());
$tpl->setVariable("AJAX_LINK", $ilCtrl->getLinkTargetByClass("ildatacollectionrecordeditgui", "searchObjects"));
$tpl->setVariable("LOADER_PATH", ilUtil::getImagePath("loader.svg"));
$out = $this->title_input->getToolbarHTML();
$out .= "<a href='#' style='display:inline-block;' id='remove_{$this->getPostVar()}'>" . ilGlyphGUI::get(ilGlyphGUI::REMOVE) . "</a>";
$out .= $this->search_input->getTableFilterHTML();
$out .= $this->hidden_input->getToolbarHTML();
$out .= "<a href='#' id='search_button_" . $this->getPostVar() . "'>" . $this->lng->txt('search') . "</a>";
$out .= $tpl->get();
return $out;
}
示例3: initAddCodesForm
function initAddCodesForm()
{
global $rbacreview, $ilObjDataCache, $lng;
include_once 'Services/Form/classes/class.ilPropertyFormGUI.php';
$this->form_gui = new ilPropertyFormGUI();
$this->form_gui->setFormAction($this->ctrl->getFormAction($this, 'createCodes'));
$this->form_gui->setTitle($this->lng->txt('registration_codes_edit_header'));
$count = new ilNumberInputGUI($this->lng->txt('registration_codes_number'), 'reg_codes_number');
$count->setSize(4);
$count->setMaxLength(4);
$count->setMinValue(1);
$count->setMaxValue(1000);
$count->setRequired(true);
$this->form_gui->addItem($count);
$sec = new ilFormSectionHeaderGUI();
$sec->setTitle($this->lng->txt('registration_codes_roles_title'));
$this->form_gui->addItem($sec);
include_once './Services/AccessControl/classes/class.ilObjRole.php';
$options = array("" => $this->lng->txt('registration_codes_no_assigned_role'));
foreach ($rbacreview->getGlobalRoles() as $role_id) {
if (!in_array($role_id, array(SYSTEM_ROLE_ID, ANONYMOUS_ROLE_ID))) {
$options[$role_id] = $ilObjDataCache->lookupTitle($role_id);
}
}
$roles = new ilSelectInputGUI($this->lng->txt("registration_codes_roles"), "reg_codes_role");
$roles->setInfo($this->lng->txt("registration_codes_override_info"));
$roles->setOptions($options);
$this->form_gui->addItem($roles);
$local = new ilTextInputGUI($this->lng->txt("registration_codes_roles_local"), "reg_codes_local");
$local->setMulti(true);
$local->setDataSource($this->ctrl->getLinkTarget($this, "getLocalRoleAutoComplete", "", true));
$this->form_gui->addItem($local);
$sec = new ilFormSectionHeaderGUI();
$sec->setTitle($this->lng->txt('reg_access_limitations'));
$this->form_gui->addItem($sec);
$limit = new ilRadioGroupInputGUI($this->lng->txt("reg_access_limitation_mode"), "reg_limit");
$limit->setInfo($this->lng->txt("registration_codes_override_info"));
$this->form_gui->addItem($limit);
$opt = new ilRadioOption($this->lng->txt("registration_codes_roles_limitation_none"), "none");
$limit->addOption($opt);
$opt = new ilRadioOption($this->lng->txt("reg_access_limitation_none"), "unlimited");
$limit->addOption($opt);
$opt = new ilRadioOption($this->lng->txt("reg_access_limitation_mode_absolute"), "absolute");
$limit->addOption($opt);
$dt = new ilDateTimeInputGUI($this->lng->txt("reg_access_limitation_mode_absolute_target"), "abs_date");
$dt->setRequired(true);
$opt->addSubItem($dt);
$opt = new ilRadioOption($this->lng->txt("reg_access_limitation_mode_relative"), "relative");
$limit->addOption($opt);
$days = new ilTextInputGUI("", "rel_date[d]");
$days->setSize(5);
$days->setSuffix($this->lng->txt("days"));
$mon = new ilTextInputGUI("", "rel_date[m]");
$mon->setSize(5);
$mon->setSuffix($this->lng->txt("months"));
$yr = new ilTextInputGUI("", "rel_date[y]");
$yr->setSize(5);
$yr->setSuffix($this->lng->txt("years"));
// custom input won't reload
if (is_array($_POST["rel_date"])) {
$days->setValue($_POST["rel_date"]["d"]);
$mon->setValue($_POST["rel_date"]["m"]);
$yr->setValue($_POST["rel_date"]["y"]);
}
$dur = new ilCustomInputGUI($this->lng->txt("reg_access_limitation_mode_relative_target"));
$dur->setRequired(true);
$dur->setHTML($days->getToolbarHTML() . " " . $mon->getToolbarHTML() . " " . $yr->getToolbarHTML());
$opt->addSubItem($dur);
$this->form_gui->addCommandButton('createCodes', $this->lng->txt('create'));
}