-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex_netact.php
53 lines (43 loc) · 1.44 KB
/
index_netact.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
<?php
include 'include/header.php';
?>
<table class="dash-table" border=1>
<tr>
<th colspan=3 style="background:#990000"><font color="#fff"> Nokia Network OMC/NetAct Related 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 LIKE '%NETACT%' AND alarm_number!=30000 AND alarm_number!=30001 AND alarm_number!=30002)
GROUP BY text ORDER BY text";
$result = mysql_query($query);
$row = mysql_num_rows($result);
while ($rowsql = mysql_fetch_assoc($result)) {
?>
<tr>
<td class=td1 align="center"><font color=black><?php echo $rowsql['alarm_number']; ?></color></td>
<td class=td1 align="left"><a href="alarm_details.php?object_type=omc&text=<?php echo $rowsql['text']; ?>" target="_blank"><font color=black><?php echo $rowsql['text']; ?> </color></a></td>
<td class=td2 align="center"><font color=black><?php echo $rowsql['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>