-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdetails.php
More file actions
112 lines (109 loc) · 4.16 KB
/
details.php
File metadata and controls
112 lines (109 loc) · 4.16 KB
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
<div id="main">
<div id="leftcolumn">
<div id="leftmenu">
<div id="leftmenu_general_a" style="margin-top: 10px;">
<div class="m_separator">Äåòàëüíî</div>
<div class="menuitem first"><a href="index.php?sel=details&name=channels" onmouseover="arrowOn(this);" onmouseout="arrowOff(this);">Âñå êàíàëû</a></div>
<div class="menuitem"><a href="index.php?sel=details&name=protocols" onmouseover="arrowOn(this);" onmouseout="arrowOff(this);">Ïðîòîêîëû</a></div>
<div class="menuitem"><a href="index.php?sel=details&name=var2" onmouseover="arrowOn(this);" onmouseout="arrowOff(this);">Ïàðàìåòðû</a></div>
</div>
</div>
</div>
<div id="maincontent" style="width:840px">
<table border="0" cellpadding="0" cellspacing="0" width="99%">
<tbody><tr>
<td><table border="0" cellpadding="0" cellspacing="0">
<tr><td>
<table border="0" cellpadding="0" cellspacing="0">
<tbody><tr><td>
<table border="0" cellpadding="0" cellspacing="5" width="100%">
<tbody><tr><td valign="top">
<?php
if ($_GET["name"]=='channels')
{
print '<table cellpadding=2 cellspacing=1 bgcolor=#82cc7f align=center>
<tr bgcolor="#476a94">
<td align="center"><font color="white">Èìÿ êàíàëà</font></td>
<td align="center"><font color="white">Óñòðîéñòâî</font></td>
<td align="center"><font color="white">Îïðîñ</font></td>
<td align="center"><font color="white">Åäèíèöû èçìåðåíèÿ</font></td>
<td align="center"><font color="white">Òåêóùèå</font></td>
<td align="center"><font color="white">×àñîâûå</font></td>
<td align="center"><font color="white">Äíåâíûå</font></td>
<td align="center"><font color="white">Ïî ìåñÿöàì</font></td>
<td align="center"><font color="white">Ïàðàìåòð</font></td></tr>';
$query = 'SELECT * FROM channels';
$e = mysql_query ($query,$i);
if ($e) $ui = mysql_fetch_row ($e);
while ($ui)
{
$query = 'SELECT * FROM var2 WHERE prm='.$ui[9].' AND pipe='.$ui[10];
$e2 = mysql_query ($query,$i);
if ($e2) $ur = mysql_fetch_row ($e2);
$name=$ur[1];
$query = 'SELECT * FROM devices WHERE device='.$ui[2];
$e2 = mysql_query ($query,$i);
if ($e2) $ur = mysql_fetch_row ($e2);
print '<tr id="row'.$ui[0].'" bgcolor="#ffffff">';
print '<td align="left"><b>'.$ui[1].'</b></td>';
print '<td align="left"><b>'.$ur[1].'('.$ui[2].')</b></td>';
if ($ui[3]=='1') print '<td align="center">Äà</td>';
else print '<td align="center">Íåò</td>';
print '<td align="center">'.$ui[4].'</td>';
print '<td align="center">'.$ui[5].'</td>';
print '<td align="center">'.$ui[6].'</td>';
print '<td align="center">'.$ui[7].'</td>';
print '<td align="center">'.$ui[8].'</td>';
print '<td align="center">('.$ui[9].'|'.$ui[10].')</td></tr>';
$ui = mysql_fetch_row ($e);
}
}
if ($_GET["name"]=='var2')
{
print '<table cellpadding=2 cellspacing=1 bgcolor=#82cc7f align=center>
<tr bgcolor="#476a94">
<td align="center"><font color="white">Íàçâàíèå ïàðàìåòðà</font></td>
<td align="center"><font color="white">Ïàðàìåòð</font></td>
<td align="center"><font color="white">Òðóáà</font></td></tr>';
$query = 'SELECT * FROM var2';
$e = mysql_query ($query,$i);
if ($e) $ui = mysql_fetch_row ($e);
while ($ui)
{
print '<tr bgcolor="#ffffff">';
print '<td align="left"><b>'.$ui[1].'</b></td>';
print '<td align="left">'.$ui[2].'</td>';
print '<td align="center">'.$ui[3].'</td></tr>';
$ui = mysql_fetch_row ($e);
}
}
if ($_GET["name"]=='protocols')
{
print '<table cellpadding=2 cellspacing=1 bgcolor=#82cc7f align=center>
<tr bgcolor="#476a94">
<td align="center"><font color="white">Íàçâàíèå</font></td>
<td align="center"><font color="white">Òèï</font></td>
<td align="center"><font color="white">Ïðîòîêîë</font></td></tr>';
$query = 'SELECT * FROM protocols';
$e = mysql_query ($query,$i);
if ($e) $ui = mysql_fetch_row ($e);
while ($ui)
{
print '<tr bgcolor="#ffffff">';
print '<td align="left"><b>'.$ui[1].'</b></td>';
print '<td align="left">'.$ui[2].'</td>';
print '<td align="center">'.$ui[3].'</td></tr>';
$ui = mysql_fetch_row ($e);
}
}
?>
</tbody></table>
</td>
</tr>
</tbody></table>
</td></tr></tbody></table>
</td></tr>
</tbody></table>
<br><br><br>
<br><br><br><br><br>
</div>