<td style='border-bottom:none;' valign='middle'><?php 
        echo _("No Data Available");
        ?>
</td>
            </tr>
        </table>
        <?php 
    }
}
$db = new ossim_db();
$conn = $db->connect();
$user = Session::get_session_user();
$tickets_by_status = Incident::incidents_by_status($conn, null, $user);
$tickets_by_type = Incident::incidents_by_type($conn, null, $user);
$tickets_by_user = Incident::incidents_by_user($conn, true, null, $user);
$tickets_by_tag = Incident::incidents_by_tag($conn, null, $user);
/*echo "<pre>";
	print_r($tickets_by_status);
echo "</pre>";*/
?>
<!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"/>
	<!--[if IE]><script language="javascript" type="text/javascript" src="../js/jqplot/excanvas.js"></script><![endif]-->
	<meta http-equiv="Pragma" content="no-cache"/>
	<link rel="stylesheet" type="text/css" href="../style/av_common.css?t=<?php 
Exemple #2
0
     $list = Incident::incidents_by_priority($conn, $param_filters["assets"], $param_filters["user"]);
     if (is_array($list) && !empty($list)) {
         foreach ($list as $priority => $v) {
             if ($v > 0) {
                 $data[] = $v;
                 $label[] = _("Priority") . " " . $priority;
                 $link = Menu::get_menu_url("/ossim/incidents/index.php?priority=" . Incident::get_priority_string($priority) . "&status=not_closed&hmenu=Tickets&smenu=Tickets", 'analysis', 'tickets');
                 $links[] = $link;
             }
         }
     }
     $serie = 'Amount of Tickets';
     $colors = get_widget_colors(count($data));
     break;
 case 'ticketTags':
     $ticket_by_tags = Incident::incidents_by_tag($conn, $param_filters["assets"], $param_filters["user"]);
     if (is_array($ticket_by_tags) && !empty($ticket_by_tags)) {
         foreach ($ticket_by_tags as $type => $ocurrences) {
             $type_short = strlen($type) > 28 ? substr($type, 0, 25) . "..." : $type;
             $data[] = $ocurrences;
             $label[] = _($type_short);
             $link = Menu::get_menu_url("incidents/index.php?tag=" . Incident::get_id_by_tag($conn, $type) . "&status=not_closed&hmenu=Tickets&smenu=Tickets", 'analysis', 'tickets');
             $links[] = $link;
         }
     }
     $serie = 'Amount of Tickets';
     $colors = get_widget_colors(count($data));
     break;
 case 'ticketsClosedByMonth':
     $ticket_closed_by_month = Incident::incidents_closed_by_month($conn, $param_filters["assets"], $param_filters["user"]);
     if (is_array($ticket_closed_by_month) && !empty($ticket_closed_by_month)) {