本文整理汇总了PHP中ilPropertyFormGUI::setOpenTag方法的典型用法代码示例。如果您正苦于以下问题:PHP ilPropertyFormGUI::setOpenTag方法的具体用法?PHP ilPropertyFormGUI::setOpenTag怎么用?PHP ilPropertyFormGUI::setOpenTag使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ilPropertyFormGUI
的用法示例。
在下文中一共展示了ilPropertyFormGUI::setOpenTag方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: initAreaEditingForm
/**
* Init area editing form.
*
* @param int $a_mode Edit Mode
*/
public function initAreaEditingForm($a_edit_property)
{
global $lng, $ilCtrl;
include_once "Services/Form/classes/class.ilPropertyFormGUI.php";
$form = new ilPropertyFormGUI();
$form->setOpenTag(false);
$form->setCloseTag(false);
// name
if ($a_edit_property != "link" && $a_edit_property != "shape") {
$ti = new ilTextInputGUI($lng->txt("cont_name"), "area_name");
$ti->setMaxLength(200);
$ti->setSize(20);
$ti->setRequired(true);
$form->addItem($ti);
}
// save and cancel commands
if ($a_edit_property == "") {
$form->setTitle($lng->txt("cont_new_trigger_area"));
$form->addCommandButton("saveArea", $lng->txt("save"));
} else {
$form->setTitle($lng->txt("cont_new_area"));
$form->addCommandButton("saveArea", $lng->txt("save"));
}
return $form;
}
示例2: getSearchAreaForm
/**
* Init standard search form.
*/
public function getSearchAreaForm()
{
global $lng, $ilCtrl;
include_once "Services/Form/classes/class.ilPropertyFormGUI.php";
$form = new ilPropertyFormGUI();
$form->setOpenTag(false);
$form->setCloseTag(false);
// term combination
$radg = new ilHiddenInputGUI('search_term_combination');
$radg->setValue(ilSearchSettings::getInstance()->getDefaultOperator());
$form->addItem($radg);
// search area
include_once "./Services/Form/classes/class.ilRepositorySelectorInputGUI.php";
$ti = new ilRepositorySelectorInputGUI($lng->txt("search_area"), "area");
$ti->setSelectText($lng->txt("search_select_search_area"));
$form->addItem($ti);
$ti->readFromSession();
// alex, 15.8.2012: Added the following lines to get the value
// from the main menu top right input search form
if (isset($_POST["root_id"])) {
$ti->setValue($_POST["root_id"]);
$ti->writeToSession();
}
$form->setFormAction($ilCtrl->getFormAction($this, 'performSearch'));
return $form;
}
示例3: showForm
//.........这里部分代码省略.........
if (is_array($_POST['roles'])) {
// Note: For security reasons, ILIAS only allows Plain text strings in E-Mails.
$mailData['rcp_to'] = ilUtil::securePlainString(implode(',', $_POST['roles']));
} elseif (is_array($_SESSION['mail_roles'])) {
$mailData['rcp_to'] = ilUtil::securePlainString(implode(',', $_SESSION['mail_roles']));
}
$mailData['m_message'] = '';
if (strlen($sig = ilMailFormCall::getSignature())) {
$mailData['m_message'] = $sig;
$mailData['m_message'] .= chr(13) . chr(10) . chr(13) . chr(10);
}
$mailData['m_message'] .= $_POST["additional_message_text"] . chr(13) . chr(10) . $this->umail->appendSignature();
$_POST["additional_message_text"] = "";
$_SESSION['mail_roles'] = "";
break;
case 'address':
$mailData["rcp_to"] = urldecode($_GET["rcp"]);
break;
default:
// GET DATA FROM POST
$mailData = $_POST;
// strip slashes
foreach ($mailData as $key => $value) {
if (is_string($value)) {
// Note: For security reasons, ILIAS only allows Plain text strings in E-Mails.
$mailData[$key] = ilUtil::securePlainString($value);
}
}
break;
}
include_once './Services/Form/classes/class.ilPropertyFormGUI.php';
$form_gui = new ilPropertyFormGUI();
$form_gui->setTitle($this->lng->txt('compose'));
$form_gui->setOpenTag(false);
$this->tpl->setVariable('FORM_ACTION', $this->ctrl->getFormAction($this, 'sendMessage'));
$this->tpl->setVariable('BUTTON_TO', $lng->txt("search_recipients"));
$this->tpl->setVariable('BUTTON_COURSES_TO', $lng->txt("mail_my_courses"));
$this->tpl->setVariable('BUTTON_GROUPS_TO', $lng->txt("mail_my_groups"));
$this->tpl->setVariable('BUTTON_MAILING_LISTS_TO', $lng->txt("mail_my_mailing_lists"));
$dsDataLink = $ilCtrl->getLinkTarget($this, 'lookupRecipientAsync', '', true);
// RECIPIENT
$inp = new ilTextInputGUI($this->lng->txt('mail_to'), 'rcp_to');
$inp->setRequired(true);
$inp->setSize(50);
$inp->setValue($mailData["rcp_to"]);
$inp->setDataSource($dsDataLink, ",");
$inp->setMaxLength(null);
$form_gui->addItem($inp);
// CC
$inp = new ilTextInputGUI($this->lng->txt('cc'), 'rcp_cc');
$inp->setSize(50);
$inp->setValue($mailData["rcp_cc"]);
$inp->setDataSource($dsDataLink, ",");
$inp->setMaxLength(null);
$form_gui->addItem($inp);
// BCC
$inp = new ilTextInputGUI($this->lng->txt('bc'), 'rcp_bcc');
$inp->setSize(50);
$inp->setValue($mailData["rcp_bcc"]);
$inp->setDataSource($dsDataLink, ",");
$inp->setMaxLength(null);
$form_gui->addItem($inp);
// SUBJECT
$inp = new ilTextInputGUI($this->lng->txt('subject'), 'm_subject');
$inp->setSize(50);
$inp->setRequired(true);
示例4: initAreaEditingForm
/**
* Init area editing form.
*
* @param int $a_mode Edit Mode
*/
public function initAreaEditingForm($a_edit_property)
{
global $lng, $ilCtrl;
include_once "Services/Form/classes/class.ilPropertyFormGUI.php";
$form = new ilPropertyFormGUI();
$form->setOpenTag(false);
$form->setCloseTag(false);
// link
if ($a_edit_property != "shape") {
//
$radg = new ilRadioGroupInputGUI($lng->txt("cont_link"), "area_link_type");
if ($_SESSION["il_map_il_ltype"] != "int") {
if ($_SESSION["il_map_el_href"] == "") {
$radg->setValue("no");
} else {
$radg->setValue("ext");
}
} else {
$radg->setValue("int");
}
// external link
$ext = new ilRadioOption($lng->txt("cont_link_ext"), "ext");
$radg->addOption($ext);
$ti = new ilTextInputGUI("", "area_link_ext");
$ti->setMaxLength(200);
$ti->setSize(50);
if ($_SESSION["il_map_el_href"] != "") {
$ti->setValue($_SESSION["il_map_el_href"]);
} else {
$ti->setValue("http://");
}
$ext->addSubItem($ti);
// internal link
$int = new ilRadioOption($lng->txt("cont_link_int"), "int");
$radg->addOption($int);
$ne = new ilNonEditableValueGUI("", "", true);
$link_str = "";
if ($_SESSION["il_map_il_target"] != "") {
$link_str = $this->getMapAreaLinkString($_SESSION["il_map_il_target"], $_SESSION["il_map_il_type"], $_SESSION["il_map_il_targetframe"]);
}
$ne->setValue($link_str . ' <a id="iosEditInternalLinkTrigger" href="#">' . "[" . $lng->txt("cont_get_link") . "]" . '</a>');
$int->addSubItem($ne);
// no link
$no = new ilRadioOption($lng->txt("cont_link_no"), "no");
$radg->addOption($no);
$form->addItem($radg);
}
// name
if ($a_edit_property != "link" && $a_edit_property != "shape") {
$ti = new ilTextInputGUI($lng->txt("cont_name"), "area_name");
$ti->setMaxLength(200);
$ti->setSize(20);
$form->addItem($ti);
}
// save and cancel commands
if ($a_edit_property == "") {
$form->setTitle($lng->txt("cont_new_area"));
$form->addCommandButton("saveArea", $lng->txt("save"));
} else {
$form->setTitle($lng->txt("cont_new_area"));
$form->addCommandButton("saveArea", $lng->txt("save"));
}
// $form->setFormAction($ilCtrl->getFormAction($this));
return $form;
}