-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtrends.php
More file actions
83 lines (79 loc) · 4.03 KB
/
trends.php
File metadata and controls
83 lines (79 loc) · 4.03 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
<?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 valign=top width=800>
<?php
$i = mysql_connect ($mysql_host,$mysql_user,$mysql_password); $e=mysql_select_db ($mysql_db_name);
$today = getdate ();
//if ($_POST["mon"]!='') $mon=$_POST["mon"];
//else $mon=$today[mon];
//if ($_POST["year"]!='') $year=$_POST["year"];
//else $year=$today[year];
//-------------------------------------------------------
//print '<form name="redd" method=post action="trends.php">';
//print '<tr><td align=center><font class="menu">Ìåñÿö è ãîä îò÷åòà: </font><select class=log id="mon" name="mon" style="height:18">';
//for ($z=1;$z<=12;$z++)
// {
// print '<option value="'; if ($z>9) print $z; else print '0'.$z; print '" ';
// if ($z==$mon) print 'selected '; print '>';
// if ($z==1) print 'ßíâàðü'; if ($z==2) print 'Ôåâðàëü';
// if ($z==3) print 'Ìàðò'; if ($z==4) print 'Àïðåëü';
// if ($z==5) print 'Ìàé'; if ($z==6) print 'Èþíü';
// if ($z==7) print 'Èþëü'; if ($z==8) print 'Àâãóñò';
// if ($z==9) print 'Ñåíòÿáðü'; if ($z==10) print 'Îêòÿáðü';
// if ($z==11) print 'Íîÿáðü'; if ($z==12) print 'Äåêàáðü';
// }
//print '</select><select class=log id="year" name="year" style="height:18">';
//for ($z=0;$z<=5;$z++)
// {
// print '<option value="'; print $today[year]-$z; print '" ';
// if ($today[year]-$z == $year) print 'selected';
// print '>'; print $today[year]-$z;
// }
//print '</select></td><td><input alt="ok" border=0 hspace=3 name=A1 align=left src="files/outp.gif" type=image></td></tr>';
print '<tr><td bgcolor=#e6e6e6 colspan=2><font class="menu">Òåïëîôèêàöèîííàÿ âîäà</font></td></tr>';
print '<tr><td width=600><img border=0 src="charts/xyplot.php?source=0"></td><td valign=top></td></tr>';
print '<tr><td bgcolor=#e6e6e6 colspan=2><font class="menu">Òåïëîâàÿ ýíåðãèÿ</font></td></tr>';
print '<tr><td width=600><img border=0 src="charts/xyplot.php?source=1"></td><td valign=top></td></tr>';
print '<tr><td bgcolor=#e6e6e6 colspan=2><font class="menu">Ïîæàðíî-ïèòüåâàÿ âîäà</font></td></tr>';
print '<tr><td width=600><img border=0 src="charts/xyplot.php?source=2"></td><td valign=top></td></tr>';
print '<tr><td bgcolor=#e6e6e6 colspan=2><font class="menu">Ñæàòûé âîçäóõ</font></td></tr>';
print '<tr><td width=600><img border=0 src="charts/xyplot.php?source=5"></td><td valign=top></td></tr>';
print '<tr><td bgcolor=#e6e6e6 colspan=2><font class="menu">Ýëåêòðè÷åñêàÿ ýíåðãèÿ</font></td></tr>';
print '<tr><td width=600><img border=0 src="charts/xyplot.php?source=7"></td><td valign=top></td></tr>';
?>
</table><br>
</td><tr>
</table><br>
</td><tr>
</table>
</body>
</html>