8 namespace Fossology\Lib\UI;
20 $agentRequiringFolderId = [
"ui_reportImport",
"ui_fodecisionimporter"];
25 $showFullName = isset($_SESSION) && array_key_exists(
'fullmenudebug', $_SESSION) && $_SESSION[
'fullmenudebug'] == 1;
28 foreach ($menu as $Val) {
29 if (!empty($Val->HTML)) {
31 }
else if (!empty($Val->URI)) {
32 if (!empty($uploadId) &&
"tag" == $Val->URI) {
33 $tagstatus = TagStatus($uploadId);
34 if (0 == $tagstatus) {
40 if ($folderId != 0 && in_array($Val->URI, $agentRequiringFolderId)) {
41 $value .=
'&folder=' . $folderId;
43 $entry =
'<option value="' . $value .
'"';
44 if (!empty($Val->Title)) {
45 $entry .=
' title="' . htmlentities($Val->Title, ENT_QUOTES) .
'"';
47 $entry .=
'>'. $Val->getName($showFullName).
'</option>';
49 $entry =
"<option>" . $Val->getName($showFullName) .
"</option>";
51 $optionsOut .= $entry;
54 if (plugin_find_id(
'showjobs') >= 0) {
55 $optionsOut .=
'<option value="' .
Traceback_uri() .
'?mod=showjobs&upload='.$uploadId.
'" title="' . _(
"Scan History") .
'" >'._(
"History").
'</option>';
58 return '<select class="goto-active-option form-control-sm"><option disabled selected>-- select action --</option>'.$optionsOut.
'</select>';
Traceback_uri()
Get the URI without query to this location.