24 include_once(
"./Services/Table/interfaces/interface.ilTableFilterItem.php");
25 include_once(
"./Services/Form/classes/class.ilSubEnabledFormPropertyGUI.php");
58 $this->options = $a_options;
68 return $this->options ? $this->options : array();
78 $this->value = $a_value;
114 $this->
setAlert($lng->txt(
"msg_input_is_required"));
126 $tpl =
new ilTemplate(
"tpl.prop_select.html",
true,
true,
"Services/Form");
131 foreach($this->
getOptions() as $option_value => $option_text)
135 $sel_value = $option_value;
138 if ((
string) $option_value == (
string) $this->
getValue())
140 $sel_value = $option_value;
143 foreach($this->
getOptions() as $option_value => $option_text)
145 $tpl->setCurrentBlock(
"prop_select_option");
146 $tpl->setVariable(
"VAL_SELECT_OPTION", $option_value);
147 if((
string) $sel_value == (
string) $option_value)
149 $tpl->setVariable(
"CHK_SEL_OPTION",
150 'selected="selected"');
152 $tpl->setVariable(
"TXT_SELECT_OPTION", $option_text);
153 $tpl->parseCurrentBlock();
158 $tpl->setVariable(
"DISABLED",
159 " disabled=\"disabled\"");
163 $tpl->setVariable(
"DISABLED",
164 " disabled=\"disabled\"");
165 $tpl->setVariable(
"HIDDEN_INPUT",
183 $a_tpl->setCurrentBlock(
"prop_generic");
184 $a_tpl->setVariable(
"PROP_GENERIC", $this->
render());
185 $a_tpl->parseCurrentBlock();
202 $html = $this->
render(
"toolbar");