4 require_once
'Services/Form/classes/class.ilIdentifiedMultiValuesInputGUI.php';
5 require_once
'Modules/Test/classes/inc.AssessmentConstants.php';
47 parent::__construct($a_title, $a_postvar);
49 require_once
'Services/Form/classes/class.ilMultipleNestedOrderingElementsAdditionalIndexLevelRemover.php';
190 new ilTemplate(
'tpl.prop_nested_ordering_list.html',
true,
true,
'Services/Form')
201 $this->
getListTpl()->setCurrentBlock(
'list_container');
208 $this->
getListTpl()->setCurrentBlock(
'list_snippet');
217 $this->
getListTpl()->setCurrentBlock(
'item_value');
222 $value, $identifier, $position, $subPostVar, $subFieldId
238 abstract protected function getItemHtml(
$value, $identifier, $position, $itemSubFieldPostVar, $itemSubFieldId);
242 $this->
getListTpl()->setCurrentBlock(
'begin_list_item');
243 $this->
getListTpl()->setVariable(
'LIST_ITEM_ID', $identifier);
251 $this->
getListTpl()->setCurrentBlock(
'end_list_item');
252 $this->
getListTpl()->touchBlock(
'end_list_item');
259 $this->
getListTpl()->setCurrentBlock(
'begin_sublist');
268 $this->
getListTpl()->setCurrentBlock(
'end_sublist');
309 $curIndent = $nextIndent = 0;
312 if($prevIndent == $curIndent)
316 if($curIndent == $nextIndent)
324 else if($curIndent > $nextIndent)
326 if($prevIndent == $nextIndent)
338 else if($prevIndent > $nextIndent)
345 for($openlists = $nextIndent; $openlists < $curIndent; $openlists++)
353 else if($curIndent < $nextIndent)
362 else if($prevIndent > $curIndent)
364 if($curIndent == $nextIndent)
372 else if($curIndent > $nextIndent)
381 else if($curIndent < $nextIndent)
383 if($prevIndent == $nextIndent)
391 else if($prevIndent > $nextIndent)
397 for($openlists = $nextIndent; $openlists < $curIndent; $openlists++)
405 else if($prevIndent < $curIndent)
407 if($curIndent == $nextIndent)
415 else if($curIndent > $nextIndent)
417 if($prevIndent == $nextIndent)
428 else if($prevIndent > $nextIndent)
434 for($openlists = $nextIndent; $openlists < $curIndent; $openlists++)
441 else if($curIndent < $nextIndent)
451 $prevIndent = $curIndent;
462 $jsTpl =
new ilTemplate(
'tpl.prop_nested_ordering_js.html',
true,
true,
'Services/Form');
466 $jsTpl->setCurrentBlock(
'avoid_nesting');
467 $jsTpl->touchBlock(
'avoid_nesting');
468 $jsTpl->parseCurrentBlock();
471 $jsTpl->setCurrentBlock(
'nested_ordering_init');
477 $jsTpl->parseCurrentBlock();
479 return $jsTpl->get();
486 $this->
getGlobalTpl()->addCss(
'Services/Form/css/nested_ordering.css');
491 require_once
'Services/jQuery/classes/class.iljQueryUtil.php';
496 $this->
getGlobalTpl()->addJavaScript(
'Services/jQuery/js/jquery.nestable.js');
static initjQueryUI()
Init jQuery UI (see included_components.txt for included components)
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
special template class to simplify handling of ITX/PEAR
static initjQuery($a_tpl=null)
Init jQuery.