4 include_once(
"./Services/Table/interfaces/interface.ilTableFilterItem.php");
5 include_once(
"./Services/Form/classes/class.ilSubEnabledFormPropertyGUI.php");
6 include_once
'Services/UIComponent/Toolbar/interfaces/interface.ilToolbarItem.php';
7 include_once
'Services/Form/interfaces/interface.ilMultiValuesItem.php';
46 $this->validationRegexp =
"";
56 if($this->
getMulti() && is_array($a_value))
59 $a_value = array_shift($a_value);
61 $this->value = $a_value;
82 $this->validationFailureMessage = $a_msg;
97 $this->validationRegexp = $a_value;
117 $this->maxlength = $a_maxlength;
137 $this->size = $a_size;
147 $this->style_css = $a_style;
162 $this->css_class = $a_class;
198 $this->suffix = $a_value;
220 $this->input_type = $a_type;
230 return $this->input_type;
240 $this->submit_form_on_enter = $a_val;
267 $this->
setAlert($lng->txt(
"msg_input_is_required"));
278 $lng->txt(
'msg_wrong_format')
294 $this->
setAlert($lng->txt(
"msg_input_is_required"));
314 $lng->txt(
'msg_wrong_format')
339 $this->ajax_datasource = $href;
340 $this->ajax_datasource_delimiter = $a_delimiter;
345 foreach($a_values as $idx =>
$value)
347 $a_values[$idx] = trim(
$value);
348 if($a_values[$idx] ==
"")
350 unset($a_values[$idx]);
361 $tpl =
new ilTemplate(
"tpl.prop_textinput.html",
true,
true,
"Services/Form");
364 $tpl->setCurrentBlock(
"prop_text_propval");
366 $tpl->parseCurrentBlock();
370 $tpl->setCurrentBlock(
"stylecss");
372 $tpl->parseCurrentBlock();
376 $tpl->setCurrentBlock(
"classcss");
378 $tpl->parseCurrentBlock();
382 $tpl->touchBlock(
"submit_form_on_enter");
388 $tpl->setVariable(
'PROP_INPUT_TYPE',
'password');
391 $tpl->setVariable(
'PROP_INPUT_TYPE',
'hidden');
395 $tpl->setVariable(
'PROP_INPUT_TYPE',
'text');
429 $tpl->setVariable(
"DISABLED",
" disabled=\"disabled\"");
430 $tpl->setVariable(
"HIDDEN_INPUT", $hidden);
441 include_once
"Services/jQuery/classes/class.iljQueryUtil.php";
447 $tpl->setCurrentBlock(
"ac_multi");
450 $tpl->parseCurrentBlock();
453 $sel_auto =
'[id^="'.$this->getFieldId().
'"]';
458 $sel_auto =
"#".$this->getFieldId();
461 if(!$this->ajax_datasource_delimiter)
463 $tpl->setCurrentBlock(
"autocomplete_bl");
464 $tpl->setVariable(
'SEL_AUTOCOMPLETE', $sel_auto);
466 $tpl->parseCurrentBlock();
470 $tpl->setCurrentBlock(
"autocomplete_bl");
471 $tpl->setVariable(
'AUTOCOMPLETE_DELIMITER', $this->ajax_datasource_delimiter);
472 $tpl->setVariable(
'SEL_AUTOCOMPLETE_DELIMITER', $sel_auto);
474 $tpl->parseCurrentBlock();
478 if ($a_mode ==
"toolbar")
483 $tpl->setVariable(
"STYLE_PAR",
'display: -moz-inline-stack; display:inline-block; zoom: 1; *display:inline;');
487 $tpl->setVariable(
"STYLE_PAR",
'');
492 $tpl->setVariable(
"AUTOCOMPLETE",
"autocomplete=\"off\"");
513 $a_tpl->setCurrentBlock(
"prop_generic");
514 $a_tpl->setVariable(
"PROP_GENERIC", $html);
515 $a_tpl->parseCurrentBlock();
532 $html = $this->
render(
"toolbar");
541 $this->autocomplete_disabled = $autocomplete;