-
Notifications
You must be signed in to change notification settings - Fork 0
/
uzel_summary.php
123 lines (116 loc) · 5.82 KB
/
uzel_summary.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
<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<link href="files/BaseStyle.css" type="text/css" rel="stylesheet">
</head>
<?php
include("config/local.php");
$i = mysql_connect ($mysql_host,$mysql_user,$mysql_password); $e=mysql_select_db ($mysql_db_name);
$query = "set character_set_client='cp1251'"; mysql_query ($query,$i);
$query = "set character_set_results='cp1251'"; mysql_query ($query,$i);
$query = "set collation_connection='cp1251_general_ci'"; mysql_query ($query,$i);
?>
<body bottommargin="0" topmargin="10">
<form name="Form1" method="post" action="uzel_summary.php" id="Form1">
<div>
</div>
<?php
if ($_GET["obj"]=='') $query = 'SELECT * FROM objects LIMIT 1';
else $query = 'SELECT * FROM objects WHERE id='.$_GET["obj"];
$e = mysql_query ($query,$i);
if ($e) $ui = mysql_fetch_row ($e);
while ($ui)
{
$dat='-';
$query = 'SELECT * FROM devices WHERE type=11 AND object='.$ui[0];
$u = mysql_query ($query,$i);
if ($u) $uo = mysql_fetch_row ($u);
$query = 'SELECT * FROM data WHERE type=0 AND device='.$uo[11];
$y = mysql_query ($query,$i);
if ($y) $uy = mysql_fetch_row ($y);
while ($uy)
{
if ($uy[8]==4 && $uy[6]==0 && !$tpod) $tpod=$uy[3];
if ($uy[8]==4 && $uy[6]==1 && !$tobr) $tobr=$uy[3];
if ($uy[8]==11 && $uy[6]==0 && !$vpod) $vpod=$uy[3];
if ($uy[8]==11 && $uy[6]==1 && !$vobr) $vobr=$uy[3];
if ($uy[8]==13 && $uy[6]==10 && !$qpod) $qpod=$uy[3];
if ($uy[8]==13 && $uy[6]==11 && !$qobr) $qobr=$uy[3];
if ($uy[8]==13 && $uy[6]==2 && !$qpot) $qpot=$uy[3];
if ($uy[8]==12 && $uy[6]==5 && !$vgvs) $vgvs=$uy[3];
if ($uy[8]==12 && $uy[6]==6 && !$vhvs) $vhvs=$uy[3];
if ($uy[8]==16 && $uy[6]==10 && !$phvs) $phvs=$uy[3];
if ($uy[8]==16 && $uy[6]==0 && !$vgvs) $p1=$uy[3];
if ($uy[8]==16 && $uy[6]==1 && !$vhvs) $p2=$uy[3];
if ($dat=='-') $dat=$uy[2];
$uy = mysql_fetch_row ($y);
}
$ui = mysql_fetch_row ($e);
}
?>
<table id="Table0" border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td nowrap="nowrap" width="35%">
<a id="lblMarketName" href="" target="_top" style="font-size: x-small; font-weight: bold;"></a></td>
<td align="right" nowrap="nowrap" width="15%">
<a id="MarketwatchHL" class="BlueText" href="" target="_parent" style="font-size: xx-small;">Ïîëíàÿ èíôîðìàöèÿ |</a>
<a id="SectorHL" class="BlueText" href="index.php?sel=objects" target="_parent" style="font-size: xx-small;"> Âñå óçëû ó÷åòà</a>
<img src="files/moredetails.gif"></td>
</tr>
</tbody></table>
<table id="Table1" border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td class="DashedLine" nowrap="nowrap" width="35%"><span id="Label7" class="BlueText">Òåêóùèå ïîêàçàíèÿ</span></td>
<td class="DashedLine" nowrap="nowrap"> </td>
<td class="DashedLine" nowrap="nowrap" width="50%"><span id="CurrentLbl" class="BlackText">ÝÝ 1,475.10 êÂò / Ãàç 1,475.10 ì3</span> </td>
</tr>
<tr>
<td class="DashedLine" nowrap="nowrap" width="35%"><span id="Label8" class="BlueText">Ïðåäûäóùèé ïåðèîä</span></td>
<td class="DashedLine" nowrap="nowrap"> </td>
<td class="DashedLine" nowrap="nowrap" width="50%"><span id="PevLbl" class="BlackText">ÝÝ 1,466.66 êÂò / Ãàç 1,466.66 ì3</span> </td>
<td class="DashedLine" width="15%"> </td>
</tr>
<tr>
<td class="DashedLine" nowrap="nowrap" width="35%"><span id="Label9" class="BlueText">Èçìåíåíèå</span></td>
<td class="DashedLine" nowrap="nowrap">
<img id="imgChange" src="files/up.gif" style="border-width: 0px; height: 16px; width: 16px;"></td>
<td class="DashedLine" nowrap="nowrap" width="50%"><span id="ChangeLbl" class="BlackText">8.44</span>
<span id="lblChangePer" class="blackText">0.58%</span></td>
<td class="DashedLine" width="15%"> </td>
</tr>
</tbody></table>
<hr noshade="noshade" size="1" width="100%">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td nowrap="nowrap" width="35%"><span id="Label10" class="BlueText">Íàêîïèòåëüíûå èòîãè</span></td>
<td nowrap="nowrap"> </td>
<td nowrap="nowrap" width="70%"><span id="VolumeLbl" class="BlackText">79,050</span></td>
</tr>
<tr>
<td class="DashedLine" nowrap="nowrap" width="35%"><span id="Label11" class="BlueText">Ñðåäíåå çíà÷åíèå çà ìåñÿö</span></td>
<td class="DashedLine" nowrap="nowrap" width="16"> </td>
<td class="DashedLine" nowrap="nowrap" width="70%"><span id="AverageLbl" class="BlackText">2,203,169</span>
</td>
</tr>
<tr>
<td class="DashedLine" nowrap="nowrap" width="30%"><span id="Label20" class="BlueText"> Ìèíèìàëüíîå çíà÷åíèå çà ìåñÿö</span></td>
<td class="DashedLine" nowrap="nowrap" width="16"> </td>
<td class="DashedLine" nowrap="nowrap" width="70%"><span id="LowLbl" class="BlackText">1,361.12 [12 ôåâðàëÿ 2011]</span>
</tr>
<tr>
<td class="DashedLine" nowrap="nowrap" width="30%"><span id="Label20" class="BlueText"> Ìàêñèìàëüíîå çíà÷åíèå çà ìåñÿö</span></td>
<td class="DashedLine" nowrap="nowrap" width="16"> </td>
<td class="DashedLine" nowrap="nowrap" width="70%"><span id="LowLbl" class="BlackText">1,529.21 [17 ôåâðàëÿ 2011]</span>
</tr>
</tbody></table>
<hr noshade="noshade" size="0" width="100%">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td colspan="3" nowrap="nowrap" width="100%">
<span id="Label1" class="BlueText" style="font-size: xx-small;">Äàííûå íà:</span> <span id="lastUpdateLbl" class="BlackText">17/02/2011 13:03</span>
<input name="ImageButton1" id="ImageButton1" src="files/refresh.gif" alt="Refresh" style="border-width: 0px;" type="image"></td>
</tr>
</tbody></table>
</form>
</body></html>