grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026. -------------------------------------------------------------------------- */ /** @file * @brief */ include ('../inc/includes.php'); header("Content-Type: text/html; charset=UTF-8"); Html::header_nocache(); if (!($item = getItemForItemtype($_POST['itemtype']))) { exit(); } $item->checkGlobal(READ); $group = ""; $values = array(); $searchopt = Search::getCleanedOptions($_POST["itemtype"]); echo "
| "; foreach ($searchopt as $key => $val) { // print groups $str_limit = 28; if (!is_array($val)) { $group = $val; } else { // No search on plugins if (!isPluginItemType($key) && !isset($val["nometa"])) { $values[$group][$key] = $val["name"]; } } } $rand = Dropdown::showFromArray("metacriteria[".$_POST["num"]."][field]", $values, array('value' => $_POST["field"])); $field_id = Html::cleanId("dropdown_metacriteria[".$_POST["num"]."][field]".$rand); echo " | "; echo "\n"; $_POST['meta'] = 1; include (GLPI_ROOT."/ajax/searchoption.php"); echo "\n"; $params = array('field' => '__VALUE__', 'itemtype' => $_POST["itemtype"], 'num' => $_POST["num"], 'value' => $_POST["value"], 'searchtype' => $_POST["searchtype"], 'meta' => 1); Ajax::updateItemOnSelectEvent($field_id, "Search2Span".$_POST["itemtype"].$_POST["num"], $CFG_GLPI["root_doc"]."/ajax/searchoption.php", $params); echo ' |