33 $this->items[] = array(
"type" =>
"group_head",
"content" => $a_content,
34 "add_class" => $a_add_class);
42 $this->items[] = array(
"type" =>
"sep");
50 $this->items[] = array(
"type" =>
"next_col");
51 $this->multi_column =
true;
60 function addEntry($a_content, $a_href=
"", $a_target=
"", $a_onclick=
"", $a_add_class =
"",
61 $a_id =
"", $a_ttip =
"", $a_tt_my =
"right center", $a_tt_at =
"left center",
62 $a_tt_use_htmlspecialchars =
true)
64 $this->items[] = array(
"type" =>
"entry",
"content" => $a_content,
65 "href" => $a_href,
"target" => $a_target,
"onclick" => $a_onclick,
66 "add_class" => $a_add_class,
"id" => $a_id,
"ttip" => $a_ttip,
67 "tt_my" => $a_tt_my,
"tt_at" => $a_tt_at,
68 "tt_use_htmlspecialchars" => $a_tt_use_htmlspecialchars);
82 $tpl =
new ilTemplate(
"tpl.grouped_list.html",
true,
true,
"Services/UIComponent/GroupedList");
84 foreach ($this->items as $i)
89 $tpl->touchBlock(
"sep");
90 $tpl->touchBlock(
"item");
94 $tpl->touchBlock(
"next_col");
95 $tpl->touchBlock(
"item");
99 $tpl->setCurrentBlock(
"group_head");
100 if ($i[
"add_class"] !=
"")
102 $tpl->setVariable(
"ADD_CLASS", $i[
"add_class"]);
104 $tpl->setVariable(
"GROUP_HEAD", $i[
"content"]);
105 $tpl->parseCurrentBlock();
106 $tpl->touchBlock(
"item");
110 if ($i[
"href"] !=
"")
112 $tpl->setCurrentBlock(
"linked_entry");
113 if ($i[
"add_class"] !=
"")
115 $tpl->setVariable(
"ADD_CLASS", $i[
"add_class"]);
117 $tpl->setVariable(
"HREF", $i[
"href"]);
118 $tpl->setVariable(
"TXT_ENTRY", $i[
"content"]);
119 if ($i[
"target"] !=
"")
121 $tpl->setVariable(
"TARGET",
'target="'.$i[
"target"].
'"');
125 $tpl->setVariable(
"TARGET",
'target="_top"');
127 if ($i[
"onclick"] !=
"")
129 $tpl->setVariable(
"ONCLICK",
'onclick="'.$i[
"onclick"].
'"');
133 $tpl->setVariable(
"ID",
'id="'.$i[
"id"].
'"');
135 $tpl->parseCurrentBlock();
136 $tpl->touchBlock(
"item");
137 if ($i[
"ttip"] !=
"" && $i[
"id"] !=
"")
139 include_once(
"./Services/UIComponent/Tooltip/classes/class.ilTooltipGUI.php");
140 if ($ilCtrl->isAsynch())
142 $tt_calls.=
" ".ilTooltipGUI::getTooltip($i[
"id"], $i[
"ttip"],
143 "", $i[
"tt_my"], $i[
"tt_at"], $i[
"tt_use_htmlspecialchars"]);
148 "", $i[
"tt_my"], $i[
"tt_at"], $i[
"tt_use_htmlspecialchars"]);
157 if ($this->multi_column)
159 $tpl->touchBlock(
"multi_start");
160 $tpl->touchBlock(
"multi_end");
165 $tpl->setCurrentBlock(
"script");
166 $tpl->setVariable(
"TT_CALLS", $tt_calls);
167 $tpl->parseCurrentBlock();