grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026. -------------------------------------------------------------------------- */ /** @file * @brief */ include ('../inc/includes.php'); if (!$CFG_GLPI["use_anonymous_helpdesk"]) { exit(); } // Send UTF8 Headers header("Content-Type: text/html; charset=UTF-8"); ?> GLPI "; // Appel javascript echo ""; ?> "; echo "

".__('Search the ID of your hardware')."

"; echo "
"; echo ""; echo ""; echo "
".__('Enter the first letters (user, item name, serial or asset number)'). "
"; echo ""; echo ""; // bug IE ! La validation par enter ne fonctionne pas sans cette ligne incroyable mais vrai ! echo ""; echo "
"; Html::closeForm(); echo ""; if (isset($_POST["send"])) { echo ""; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; $types = array('Computer' => __('Computer'), 'NetworkEquipment' => __('Network device'), 'Printer' => __('Printer'), 'Monitor' => __('Monitor'), 'Peripheral' => __('Device')); foreach ($types as $type => $label) { $query = "SELECT `name`, `id`, `contact`, `serial`, `otherserial` FROM `".getTableForItemType($type)."` WHERE `is_template` = '0' AND `is_deleted` = '0' AND (`contact` LIKE '%".$_POST["NomContact"]."%' OR `name` LIKE '%".$_POST["NomContact"]."%' OR `serial` LIKE '%".$_POST["NomContact"]."%' OR `otherserial` LIKE '%".$_POST["NomContact"]."%') ORDER BY `name`"; $result = $DB->query($query); while ($ligne = $DB->fetch_assoc($result)) { $Comp_num = $ligne['id']; $Contact = $ligne['contact']; $Computer = $ligne['name']; $s1 = $ligne['serial']; $s2 = $ligne['otherserial']; echo " "; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } } $query = "SELECT `name`, `id` FROM `glpi_softwares` WHERE `is_template` = '0' AND `is_deleted` = '0' AND (`name` LIKE '%".$_POST["NomContact"]."%' ) ORDER BY `name`"; $result = $DB->query($query); while ($ligne = $DB->fetch_assoc($result)) { $Comp_num = $ligne['id']; $Computer = $ligne['name']; echo " "; echo ""; echo ""; echo ""; echo ""; echo ""; } echo "
".__('Alternate username')."".__('Hardware type').""._n('Associated element', 'Associated elements', 2)."".__('ID')."".__('Serial number')."".__('Inventory number')."
 $Contact  $label  $Computer  $Comp_num  $s1  $s2 "; echo "
  "._n('Software', 'Software', 1)."  $Computer  $Comp_num  
"; } echo ''; ?>