-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex_2g_customized.php
260 lines (241 loc) · 8.6 KB
/
index_2g_customized.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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
<?php
include 'include/header.php';
?>
<table class="dash-table" border=1>
<tr>
<th colspan=3 style="background:#990000"><font color="#fff"> Nokia Network BSC Alarm Summary </font></th>
</tr>
<tr>
<center>
<th style="background: #91C910">Alarm ID </th>
<th style="background: #91C910">Alarm Text </th>
<th style="background: #91C910">Count </th>
</center>
</tr>
<?php
$query = "SELECT alarm_number, text, COUNT(*) FROM net_diag
WHERE (dn NOT LIKE '%BCF%' AND dn NOT LIKE '%JUNIPER%' AND dn NOT LIKE '%OMS%' AND object_name NOT LIKE '%_C' AND DN NOT LIKE '%RNC%' AND dn NOT LIKE '%NETACT%'
AND alarm_number!=2863
AND alarm_number!=3941
AND alarm_number!=3977
AND alarm_number!=2720
AND alarm_number!=1221
AND alarm_number!=1103
AND alarm_number!=3183
AND alarm_number!=4004
AND alarm_number!=2018
AND alarm_number!=4003
AND alarm_number!=3903
AND alarm_number!=1583
AND alarm_number!=4000
AND alarm_number!=3900
AND alarm_number!=4006
AND alarm_number!=3642
AND alarm_number!=3905
AND alarm_number!=2725
AND alarm_number!=7402
AND alarm_number!=7403
AND alarm_number!=7404
AND alarm_number!=7405
AND alarm_number!=7406
AND alarm_number!=7407
AND alarm_number!=7408
AND alarm_number!=4008
AND alarm_number!=7409
AND alarm_number!=7410
AND alarm_number!=7412
AND alarm_number!='ALARM_NUMBER'
AND alarm_number!='')
GROUP BY text ORDER BY text";
$result = mysql_query($query);
$row = mysql_num_rows($result);
while ($rowsql = mysql_fetch_assoc($result)) {
if ($rowsql['COUNT(*)'] > 100) {
$color = '#cc0033';
$bg = 'background:#990000';
} else if ($rowsql['COUNT(*)'] > 50) {
$color = '#0066cc';
} else {
$color = 'black';
}
if ($rowsql['text'] == 'BTS AND TC UNSYNCHRONIZATION CLEAR CALLS ON ABIS I') {
$color = 'red';
}
?>
<tr>
<td class=td1 align="center"><font color=<?php echo $color . ">"; ?><?php echo $rowsql['alarm_number']; ?></color></td>
<td class=td1 align="left"><a href="alarm_details_customized.php?object_type=bsc&text=<?php echo $rowsql['text']; ?>" target="_blank"><font color=<?php echo $color . ">"; ?><?php echo $rowsql['text']; ?> </color></a></td>
<td class=td2 align="center"><font color=<?php echo $color . ">"; ?><?php echo $rowsql['COUNT(*)']; ?><color></td>
</tr>
<?php
}
?>
</table>
<table class="dash-table" border=1>
<tr>
<th colspan=3 style="background:#990000"><font color="#fff"> Nokia Network BTS Alarm Summary <font></th>
</tr>
<tr>
<center>
<th style="background: #91C910">Alarm ID </th>
<th style="background: #91C910">Alarm Text </th>
<th style="background: #91C910">Count</th>
</center>
</tr>
<?php
$query2 = "SELECT alarm_number, text, COUNT(*)
FROM net_diag
WHERE (dn LIKE '%BCF%'
AND alarm_number!=7406
AND alarm_number!=8125
AND alarm_number!=7405
AND alarm_number!=7408
AND alarm_number!=7621
AND alarm_number!=7737
AND alarm_number!=7404
AND alarm_number!=7412
AND alarm_number!=7410
AND alarm_number!=7608
AND alarm_number!=7403
AND alarm_number!=7801
AND alarm_number!=7402
AND alarm_number!=7405
AND alarm_number!=7408
AND alarm_number!=7412
AND alarm_number!=1900
AND alarm_number!=7717
AND alarm_number!=7711
AND alarm_number!=7405
AND alarm_number!=7746
AND alarm_number!=7701
AND alarm_number!=7401
AND alarm_number!=7710
AND alarm_number!=2925
AND alarm_number!=7740
AND alarm_number!=8099
AND alarm_number!=7405
AND alarm_number!=7407
AND alarm_number!=8102
AND alarm_number!=2902
AND alarm_number!=7407
AND alarm_number!=7712
AND alarm_number!=7405
AND alarm_number!=7741
AND alarm_number!=7705
AND alarm_number!=1900
AND alarm_number!=7409
AND alarm_number!=2925 )
GROUP BY text ORDER BY COUNT(*) DESC";
$result2 = mysql_query($query2);
$row2 = mysql_num_rows($result2);
while ($rowsql2 = mysql_fetch_assoc($result2)) {
if ($rowsql2['COUNT(*)'] > 100) {
$color = '#cc0033';
} else if ($rowsql2['COUNT(*)'] > 50) {
$color = '#0066cc';
} else {
$color = 'black';
}
if ($rowsql2['text'] == 'BTS AND TC UNSYNCHRONIZATION CLEAR CALLS ON ABIS I') {
$color = 'red';
}
?>
<tr>
<td class=td1 align="center"><font color=<?php echo $color . ">"; ?><?php echo $rowsql2['alarm_number']; ?></color></td>
<td class=td1 align="left"><a href="alarm_details_customized.php?object_type=bts&text=<?php echo $rowsql2['text']; ?>" target="_blank"><font color=<?php echo $color . ">"; ?><?php echo $rowsql2['text']; ?> </color></a></td>
<td class=td2 align="center"><font color=<?php echo $color . ">"; ?><?php echo $rowsql2['COUNT(*)']; ?><color></td>
</tr>
<?php
}
?>
</table>
<table class="dash-table" border=1>
<tr>
<th colspan=3 style="background:#990000"><font color="#fff"> VVIP SITES Alarm Summary <font></th>
</tr>
<tr>
<center>
<th style="background: #91C910">Alarm ID </th>
<th style="background: #91C910">Alarm Text </th>
<th style="background: #91C910">Count</th>
</center>
</tr>
<?php
$query2 = "SELECT alarm_number, text, COUNT(*)
FROM net_diag
WHERE (vip_site='Y' AND (dn LIKE '%BCF%'
AND alarm_number!=7406
AND alarm_number!=8125
AND alarm_number!=7405
AND alarm_number!=7408
AND alarm_number!=7621
AND alarm_number!=7737
AND alarm_number!=7404
AND alarm_number!=7412
AND alarm_number!=7410
AND alarm_number!=7608
AND alarm_number!=7403
AND alarm_number!=7801
AND alarm_number!=7402
AND alarm_number!=7405
AND alarm_number!=7408
AND alarm_number!=7412
AND alarm_number!=1900
AND alarm_number!=7717
AND alarm_number!=7711
AND alarm_number!=7405
AND alarm_number!=7746
AND alarm_number!=7701
AND alarm_number!=7401
AND alarm_number!=7710
AND alarm_number!=2925
AND alarm_number!=7740
AND alarm_number!=8099
AND alarm_number!=7405
AND alarm_number!=7407
AND alarm_number!=8102
AND alarm_number!=2902
AND alarm_number!=7407
AND alarm_number!=7712
AND alarm_number!=7405
AND alarm_number!=7741
AND alarm_number!=7705
AND alarm_number!=1900
AND alarm_number!=7409
AND alarm_number!=2925 )
GROUP BY text ORDER BY COUNT(*) DESC";
$result2 = mysql_query($query2);
$row2 = mysql_num_rows($result2);
while ($rowsql2 = mysql_fetch_assoc($result2)) {
if ($rowsql2['COUNT(*)'] > 100) {
$color = '#cc0033';
} else if ($rowsql2['COUNT(*)'] > 50) {
$color = '#0066cc';
} else {
$color = 'black';
}
if ($rowsql2['text'] == 'BTS AND TC UNSYNCHRONIZATION CLEAR CALLS ON ABIS I') {
$color = 'red';
}
?>
<tr>
<td class=td1 align="center"><font color=<?php echo $color . ">"; ?><?php echo $rowsql2['alarm_number']; ?></color></td>
<td class=td1 align="left"><a href="alarm_details_customized.php?object_type=vvip&text=<?php echo $rowsql2['text']; ?>" target="_blank"><font color=<?php echo $color . ">"; ?><?php echo $rowsql2['text']; ?> </color></a></td>
<td class=td2 align="center"><font color=<?php echo $color . ">"; ?><?php echo $rowsql2['COUNT(*)']; ?><color></td>
</tr>
<?php
}
?>
</table>
</div>
</div>
</div>
</div>
<script type="text/javascript">
Element.cleanWhitespace('content');
init();
</script>
<div class=top-portion>
</div>
</body>
</html>