Ejemplo n.º 1
0
						</td>
					</tr>
				</table>
			</td>
			<!-- end ticket contents -->
       
			<!-- ticket summary -->
			<td style="border-top-width: 0px; width: 230px" valign="top">
				<table class="noborder">
					<tr>
						<th><strong><?php 
    echo _("Status");
    ?>
: </strong></th>
						<td nowrap='nowrap' style="text-align:left;padding-left:5px;"><?php 
    Incident::colorize_status($status);
    ?>
</td>
					</tr>
					
					<tr valign="middle">
						<th><strong><?php 
    echo _("Priority");
    ?>
: </strong></th>
						<td nowrap='nowrap' style="text-align:left;">
							<table class="noborder"><tr><td><?php 
    echo $prio_box;
    ?>
</td><td> - <?php 
    echo $prio_str;
Ejemplo n.º 2
0
><?php 
        echo $incident->get_submitter();
        ?>
&nbsp;</td>
						<td <?php 
        echo $class;
        ?>
><?php 
        echo $incident->get_type();
        ?>
</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 "&nbsp;";
        }
Ejemplo n.º 3
0
function incidents_by_status_table($tickets_by_status)
{
    ?>
		
		<table align="center" width="100%">
			<?php 
    if (count($tickets_by_status) > 0) {
        ?>
				<tr>
					<th><?php 
        echo gettext("Ticket Status");
        ?>
</th>
					<th><?php 
        echo gettext("Ocurrences");
        ?>
</th>
				</tr>
				
				<?php 
        foreach ($tickets_by_status as $status => $occurrences) {
            ?>
					<tr>
						<td><?php 
            Incident::colorize_status($status);
            ?>
</td>
						<td><?php 
            echo $occurrences;
            ?>
</td>
					</tr>
					<?php 
        }
        ?>
	
				<tr>
					<td colspan="2" class="nobborder">
						<!--<iframe src="graphs/incidents_pie_graph.php?by=status" frameborder="0" style="width:99%;height:400px;"></iframe>-->
						<iframe src="../panel/tickets.php?type=ticketStatus&legend=s&height=470" frameborder="0" style="width:99%;height:470px;"></iframe>
				    </td>
				</tr>
			<?php 
    } else {
        echo "<tr><td style='border-bottom:none;' valign='middle'>" . _("No Data Available") . "</td></tr>";
    }
    ?>
		</table>
<?php 
}