-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunastr.php
93 lines (89 loc) · 3.44 KB
/
unastr.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
<?php include("config/local.php"); ?>
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<!doctype php manual "-//by the PHP Documentation Group//en">
<!doctype odbc manual "-//by microsoft corp.//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<link rel="stylesheet" href="shablon.css" type="text/css">
<?
include_once("../../adodb/adodb.inc.php");
$db= &ADONewConnection($sqldriver);
if (!$db->Connect($mysql_host, $mysql_user, $mysql_password, $mysql_db_name))
{die("Error: ".$db->ErrorMsg());}
$resq = "SELECT * FROM users WHERE user='".$PHP_AUTH_USER."' AND passwd='".$PHP_AUTH_PW."';";
$rc=&$db->Execute($resq);
echo "<title>Íàñòðîéêè óçëîâ-Èíòåðôåéñ '".$priveleges[$rc->fields[user_priveleges]]."'</title></head><body>";
?>
</head>
<body><table cellpadding="0" cellspacing="0" border="0" style="width:100%;">
<tr><td><table cellpadding="0" cellspacing="0" border="0" style="width:100%;">
<tr>
<td id="header" style="width:100%;background-image: url(files/14164-598x134.jpg);">
<a href="http://www.tpchel.ru/" title="Íà ãëàâíóþ ñòðàíèöó ÎÀÎ Òåïëîïðèáîð"><img src="files/logo.gif" alt="Íà ãëàâíóþ ñòðàíèöó" class="logo" align="top" width="103" height="100" border="0"/>
</a><div class="transparent"><a href="http://www.rossich.ru/"><img src="files/transparent.gif" /></a></div>
</div></td></tr></table></td></tr>
<tr><td>
<table border=0 align=center bgcolor=#ffffff>
<tr><td>
<? include ("inc/menu.inc"); ?>
</td></tr>
<tr><td>
<table border=0 align=center bgcolor=#ffffff>
<font class="main">
<?php
$i = mysql_connect ($mysql_host,$mysql_user,$mysql_password); $e=mysql_select_db ($mysql_db_name);
$query = 'SELECT * FROM uzel WHERE id=\''.$_GET["id"].'\'';
print '<tr><td align=center><table><tr><td><font class="down">Ïîñìîòðåòü ïàðàìåòðû íàñòðîéêè óçëà </font></td><td>
<form name="reda" method=post action="unastr.php">
<select class=log id="idlog" name="idlog" style="height:18">';
$query = 'SELECT * FROM uzel WHERE idres<7 AND port!="odbc"';
$e = mysql_query ($query,$i);
for ($z=0;$z<=220;$z++)
{
$ui = mysql_fetch_row ($e);
while ($ui)
{
print '<option value="'; print $ui[4][0].$ui[4][1].$ui[4][3].$ui[4][4]; print '">'; print $ui[1];
$ui = mysql_fetch_row ($e);
}
}
print '</select></td>';
print '<td><input alt="see" border=0 src="files/outp.gif" type=image align=right style="cursor: hand"></form></td></tr>';
print '</table></td></tr>';
print '<table align=center><tr>';
print '<td bgcolor=#ffffff valign=top><table cellpadding="1" cellspacing="1">';
if ($_POST["idlog"]!='') $query = 'SELECT chan,par,ind,ed,name,value FROM logbase WHERE idlog=\''.$_POST["idlog"].'\'';
if ($_GET["idlog"]!='') $query = 'SELECT chan,par,ind,ed,name,value FROM logbase WHERE idlog=\''.$_GET["idlog"].'\'';
print '<tr align=center><td bgcolor=#e6e6e6><font class="main">Êàíàë</td>
<td bgcolor=#e6e6e6><font class="main">Ïàðàìåòð</font></td>
<td bgcolor=#e6e6e6><font class="main">Èíäåêñ</td>
<td bgcolor=#e6e6e6><font class="main">Åäåíèöû</td>
<td bgcolor=#e6e6e6><font class="main">Èìÿ</td>
<td bgcolor=#e6e6e6><font class="main">Çíà÷åíèå</td></tr>';
$max=6;
//echo $query;
$e = mysql_query ($query,$i);
for ($z=1;$z<=1000;$z++)
{
$ui = mysql_fetch_row ($e);
if ($ui)
{
print '<tr>';
for ($j=0;$j<$max;$j++)
{
print '<td><font class="dd">';
echo $ui[$j];
print '</td>';
}
}
else break;
}
?>
</table>
</td></tr>
<? include ("inc/down.inc"); ?>
</td><tr>
</table>
</body>
</html>