29 global $ilNavigationHistory,
$lng;
31 include_once(
"./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
33 $selection->setFormSelectMode(
"url_ref_id",
"ilNavHistorySelect",
true,
34 "goto.php?target=navi_request",
"ilNavHistory",
"ilNavHistoryForm",
35 "_top", $lng->txt(
"go"),
"ilNavHistorySubmit");
36 $selection->setListTitle($lng->txt(
"last_visited"));
37 $selection->setId(
"lastvisited");
38 $selection->setSelectionHeaderClass(
"MMInactive");
40 $selection->setItemLinkClass(
"small");
41 $selection->setUseImages(
true);
42 include_once(
"./Services/Accessibility/classes/class.ilAccessKey.php");
45 $items = $ilNavigationHistory->getItems();
51 if ($cnt++ > 20)
break;
53 if (!isset($item[
"ref_id"]) || !isset(
$_GET[
"ref_id"]) || $item[
"ref_id"] !=
$_GET[
"ref_id"])
56 $selection->addItem($item[
"title"], $item[
"ref_id"], $item[
"link"],
58 $lng->txt(
"obj_".$item[
"type"]),
"_top");
61 $html = $selection->getHTML();
65 $selection->addItem($lng->txt(
"no_items"),
"",
"#",
67 $selection->setUseImages(
false);
68 $html = $selection->getHTML();
78 global $ilNavigationHistory,
$lng;
80 $items = $ilNavigationHistory->getItems();
90 if (count(
$items) == 1 && $item[
"ref_id"] ==
$_GET[
"ref_id"])
95 $GLOBALS[
"tpl"]->addJavascript(
"./Services/Navigation/js/ServiceNavigation.js");
98 "Services/Navigation");
100 $sel_arr = array(0 =>
"-- ".$lng->txt(
"last_visited").
" --");
106 if ($cnt++ > 20)
break;
108 if ($item[
"ref_id"] !=
$_GET[
"ref_id"])
110 $sel_arr[$item[
"ref_id"]] = $item[
"title"];
111 $this->css_row = ($this->css_row !=
"tblrow1_mo")
114 $tpl->setCurrentBlock(
"item");
115 $tpl->setVariable(
"HREF_ITEM", $item[
"link"]);
116 $tpl->setVariable(
"CSS_ROW", $this->css_row);
117 $tpl->setVariable(
"TXT_ITEM", $item[
"title"]);
120 $tpl->setVariable(
"IMG_ITEM",
122 $tpl->setVariable(
"ALT_ITEM", $lng->txt(
"obj_".$item[
"type"]));
123 $tpl->parseCurrentBlock();
126 $select =
ilUtil::formSelect(
"",
"url_ref_id", $sel_arr,
false,
true,
"0",
"ilEditSelect");
127 $tpl->setVariable(
"TXT_LAST_VISITED", $lng->txt(
"last_visited"));
129 $tpl->setVariable(
"NAVI_SELECT", $select);
130 $tpl->setVariable(
"TXT_GO", $lng->txt(
"go"));
131 $tpl->setVariable(
"ACTION",
"goto.php?target=navi_request&ref_id=".
$_GET[
"ref_id"]);
141 global $ilNavigationHistory;
143 if (
$_GET[
"target"] ==
"navi_request")
145 $items = $ilNavigationHistory->getItems();
148 if ($item[
"ref_id"] ==
$_POST[
"url_ref_id"])
155 if (
$_POST[
"url_ref_id"] == 0 && $item[
"ref_id"] ==
$_GET[
"ref_id"])
159 if (
$_POST[
"url_ref_id"] == 0 && $item[
"link"] !=
"")