33 $next_class = $ilCtrl->getNextClass();
34 $cmd = $ilCtrl->getCmd();
49 global $ilNavigationHistory,
$lng;
51 include_once(
"./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
53 $selection->setFormSelectMode(
"url_ref_id",
"ilNavHistorySelect",
true,
54 "goto.php?target=navi_request",
"ilNavHistory",
"ilNavHistoryForm",
55 "_top", $lng->txt(
"go"),
"ilNavHistorySubmit");
56 $selection->setListTitle($lng->txt(
"last_visited"));
57 $selection->setId(
"lastvisited");
58 $selection->setSelectionHeaderClass(
"MMInactive");
60 $selection->setItemLinkClass(
"small");
61 $selection->setUseImages(
true);
62 include_once(
"./Services/Accessibility/classes/class.ilAccessKey.php");
65 $items = $ilNavigationHistory->getItems();
69 foreach(
$items as $k => $item)
71 if ($cnt++ > 20)
break;
72 if (!isset($item[
"ref_id"]) || !isset(
$_GET[
"ref_id"]) ||
73 $item[
"ref_id"] !=
$_GET[
"ref_id"] || $k > 0)
76 $selection->addItem($item[
"title"], $item[
"ref_id"], $item[
"link"],
78 $lng->txt(
"obj_".$item[
"type"]),
"_top");
81 $html = $selection->getHTML();
85 $selection->addItem($lng->txt(
"no_items"),
"",
"#",
87 $selection->setUseImages(
false);
88 $html = $selection->getHTML();
98 global $ilNavigationHistory,
$ilCtrl;
100 if (
$_GET[
"target"] ==
"navi_request")
102 $items = $ilNavigationHistory->getItems();
105 if ($item[
"ref_id"] ==
$_POST[
"url_ref_id"])
112 if (
$_POST[
"url_ref_id"] == 0 && $item[
"ref_id"] ==
$_GET[
"ref_id"])
116 if (
$_POST[
"url_ref_id"] == 0 && $item[
"link"] !=
"")
121 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id",
"");
122 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"getlast",
"true");
123 $ilCtrl->redirectByClass(
"ilrepositorygui",
"frameset");
135 global $ilNavigationHistory;
137 $ilNavigationHistory->deleteDBEntries();
138 $ilNavigationHistory->deleteSessionEntries();