-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreport_incidents.php
130 lines (100 loc) · 3.62 KB
/
report_incidents.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<?php include "php/inc/header.inc.php" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?=$language;?>" lang="<?=$language;?>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $Text['global_title'] . " - " . $Text['head_ti_incidents'];?></title>
<link rel="stylesheet" type="text/css" media="screen" href="css/aixada_main.css" />
<link rel="stylesheet" type="text/css" media="print" href="css/print.css" />
<link rel="stylesheet" type="text/css" media="screen" href="js/fgmenu/fg.menu.css" />
<link rel="stylesheet" type="text/css" media="screen" href="css/ui-themes/<?=$default_theme;?>/jqueryui.css"/>
<script type="text/javascript" src="js/jquery/jquery.js"></script>
<script type="text/javascript" src="js/jqueryui/jqueryui.js"></script>
<?php echo aixada_js_src(); ?>
<script type="text/javascript">
$(function(){
$.ajaxSetup({ cache: false });
/**
* incidents
*/
$('#tbl_incidents tbody').xml2html('init',{
url: 'php/ctrl/Incidents.php',
params : 'oper=getIncidentsListing&filter=today',
loadOnInit: true,
complete : function(rowCount){
if (rowCount == 0){
$.showMsg({
msg:'<?php echo $Text['no_news_today']; ?>',
type: 'info'});
}
//$('#tbl_incidents tbody tr:even').addClass('rowHighlight');
}
});
}); //close document ready
</script>
</head>
<body>
<div id="wrap">
<div id="headwrap">
<?php include "php/inc/menu.inc.php" ?>
</div>
<!-- end of headwrap -->
<div id="stagewrap" class="ui-widget">
<div id="titlewrap">
<div id="titleLeftCol">
<h1><?=$Text['nav_report_incidents']; ?></h1>
</div>
</div>
<div id="incidents_listing ui-widget ui-widget-content">
<h2 class="ui-widget-header ui-corner-all hideInPrint"><?php echo $Text['overview'];?> </h2>
<div id="tbl_div2">
<table id="tbl_incidents" class="ui-widget">
<thead>
<tr>
<th class="mwidth-30"><?php echo $Text['id'];?></th>
<th><?php echo $Text['priority'];?></th>
<th class="mwidth-150"><?php echo $Text['created_by'];?></th>
<th class="mwidth-150"><?php echo $Text['created'];?></th>
<th><?php echo $Text['status'];?></th>
<th><?php echo $Text['provider_name'];?></th>
<th><?php echo $Text['ufs_concerned'];?></th>
<th><?php echo $Text['comi_concerned'];?></th>
</tr>
</thead>
<tbody>
<tr>
<td field_name="incident_id">{id}</td>
<td field_name="priority">{priority}</td>
<td field_name="operator">{uf_id} {user_name}</td>
<td field_name="date_posted">{ts}</td>
<td field_name="status">{status}</td>
<td field_name="provider">{provider_concerned}</td>
<td field_name="ufs_concerned">{ufs_concerned}</td>
<td field_name="commission">{commission_concerned}</td>
</tr>
<tr>
<td class="noBorder"></td>
<td class="noBorder"><?php echo $Text['subject'];?>:</td>
<td colspan="10" class="noBorder">{subject}</td>
</tr>
<tr>
<td class="noBorder"></td>
<td class="noBorder"><?php echo $Text['message'];?>:</td>
<td class="noBorder"colspan="10">{details}</td>
</tr>
<tr><td colspan="12" class="noBorder spacingEnd"> </td></tr>
</tbody>
</table>
</div>
</div>
</div>
<!-- now the statistics -->
<div/>
<br/><br/>
</div>
<!-- end of stage wrap -->
</div>
<!-- end of wrap -->
<!-- / END -->
</body>
</html>