$Sql .= " AND A.`otherserial` != ''\n AND A.`otherserial` = B.`otherserial`"; } else { if ($crit & 1) { $Sql .= " AND A.`name` != ''\n AND A.`name` = B.`name`"; } if ($crit & 2) { $Sql .= " AND A.`serial` NOT IN ({$SerialBlacklist})\n AND A.`serial` = B.`serial`\n AND A.`computermodels_id` = B.`computermodels_id`"; } } $col = ""; } } } if ($crit > 0) { // Display result $canedit = $computer->canUpdate(); $colspan = ($col ? 8 : 7) + ($canedit ? 1 : 0); // save crit for massive action $_SESSION['plugin_reports_doublons_crit'] = $crit; if ($canedit) { echo "<form method='post' name='massiveaction_form' id='massiveaction_form' action=\"" . $CFG_GLPI["root_doc"] . "/front/massiveaction.php\">"; } echo "<table class='tab_cadrehov' cellpadding='5'>" . "<tr><th colspan='{$colspan}'>" . __('First computer', 'reports') . "</th>" . "<th class='blue' colspan='{$colspan}'>" . __('Second computer', 'reports') . "</th></tr>\n" . "<tr>"; $colspan *= 2; if ($canedit) { echo "<th> </th>"; } echo "<th>" . __('ID') . "</th>" . "<th>" . __('Name') . "</th>" . "<th>" . __('Manufacturer') . "</th>" . "<th>" . __('Model') . "</th>" . "<th>" . __('Serial number') . "</th>" . "<th>" . __('Inventory number') . "</th>"; if ($col) { echo "<th>{$col}</th>"; }