</td> <td <?php echo $class; ?> ><?php Incident::colorize_status($incident->get_status()); ?> </td> <td <?php echo $class; ?> > <?php $rows = 0; foreach ($incident->get_tags() as $tag_id) { echo "<font color='grey' size='1'>" . $incident_tag->get_html_tag($tag_id) . "</font><br/>\n"; $rows++; } if (!$rows) { echo " "; } ?> </td> </tr> <?php } /* foreach */ ?> </table> <?php } else {
<td> <?php Incident::colorize_status($incident->get_status()); if ($incident->get_status() == 'Closed') { echo " <span style='font-size: 9px;'>[" . $incident->get_last_update() . "]</span>"; } ?> </td> <td id='tags_<?php echo $incident->get_id(); ?> '> <?php foreach ($incident->get_tags() as $tag_id) { echo "<div style='color:grey; font-size: 10px; padding: 0 5px 3px 5px;'>" . $incident_tag->get_html_tag($tag_id) . "</div>\n"; } ?> </td> </tr> <?php $row++; } } else { ?> <tr><td colspan='11' class='tl_empty'><?php echo _("No tickets found"); ?> </td></tr> <?php }
$incident_id = $ids[$i]; if ($incident_id != "" && Incident::user_incident_perms($conn, $incident_id, 'show')) { if ($action == 'apply_tags') { $res = Incident::insert_incident_tag($conn, $incident_id, $tag); } else { $res = Incident::delete_incident_tags($conn, $incident_id); } if ($res === TRUE) { $ids_updated[$incident_id] = $incident_id; } } } if ($action == 'apply_tags') { $incident_tag = new Incident_tag($conn); if (count($ids) != count($ids_updated)) { echo "OK###DB Error###" . implode(",", $ids_updated) . "###"; } else { echo "OK###Tag added###"; } echo "<div style='color:grey; font-size: 10px; padding-bottom: 3px;'>" . $incident_tag->get_html_tag($tag) . "</div>"; } else { if (count($ids) != count($ids_updated)) { echo "OK###DB Error###" . implode(",", $ids_updated); } else { echo "OK###Tags removed"; } } } else { echo "OK###No incidents"; } $db->close();
$title = $incident->get_title(); $ref = $incident->get_ref(); $type = $incident->get_type(); $created = $incident->get_date(); $life = $incident->get_life_time(); $updated = $incident->get_last_modification($conn); $priority = $incident->get_priority(); $incident_status = $incident->get_status(); $incident_in_charge = $incident->get_in_charge(); $users = Session::get_users_to_assign($conn); $entities = Session::get_entities_to_assign($conn); $incident_tags = $incident->get_tags(); $incident_tag = new Incident_tag($conn); $taga = array(); foreach ($incident_tags as $tag_id) { $taga[] = $incident_tag->get_html_tag($tag_id); } $taghtm = count($taga) ? implode(' - ', $taga) : _("n/a"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title><?php echo gettext("OSSIM Framework"); ?> </title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/> <meta http-equiv="Pragma" content="no-cache"/> <link rel="stylesheet" type="text/css" href="../style/style.css"/> <link rel="stylesheet" type="text/css" href="../style/greybox.css"/> <link rel="stylesheet" type="text/css" href="../js/CLeditor/jquery.cleditor.css"/>