01.
<?
02.
include
(
"../connect.inc.php"
);
03.
include
(
'php/FusionCharts.php'
);
04.
05.
?>
07.
<head>
08.
<meta http-equiv=
"Content-Type"
content=
"text/html; charset=iso-8859-1"
/>
09.
<title>FusionCharts Free Documentation</title>
10.
<link rel=
"stylesheet"
href=
"css/Style.css"
type=
"text/css"
/>
11.
<script language=
"JavaScript"
src=
"js/FusionCharts.js"
></script>
12.
13.
<style type=
"text/css"
>
14.
#chartdiv {
15.
position: relative;
16.
width:1000px;
17.
height:370px;
18.
overflow: auto;
19.
}
20.
</style>
21.
</head>
22.
<body>
23.
<?
24.
$ddd
=
date
(
'Y-m-d'
);
25.
$strXML
.=
"<graph caption='Daly Used Frame' xAxisName='Daly' yAxisName='Units' decimalPrecision='0' formatNumberScale='0'>"
;
26.
$query
=mysql_query(
"SELECT stock, SUM( actual ) As totac FROM frame_sent where exp = '$ddd' GROUP BY stock Order by totac DESC LIMIT 0,10"
);
27.
while
(
$rom
= mysql_fetch_array(
$query
)){
28.
$i
++;
29.
$a
[
$i
]=
$rom
[
'stock'
];
30.
$b
[
$i
]=
$rom
[
'totac'
];
31.
$strXML
.=
"<set name='$a[$i]' value='$b[$i]' color='291E48'/>"
;
32.
}
33.
$strXML
.=
"</graph>"
;
34.
?>
35.
<table width=
"98%"
border=
"0"
cellspacing=
"0"
cellpadding=
"3"
align=
"center"
>
36.
<tr>
37.
<td valign=
"top"
class
=
"text"
align=
"center"
> <div id=
"chartdiv"
align=
"center"
>
38.
<?
echo
renderChart(
"swf/FCF_Column3D.swf"
,
""
,
$strXML
,
"ChartId"
,
"1000"
,
"350"
); ?> </div>
39.
</td>
40.
</tr>
41.
<tr>
42.
<td valign=
"top"
class
=
"text"
align=
"center"
> </td>
43.
</tr>
44.
<tr>
45.
<td valign=
"top"
class
=
"text"
align=
"center"
></td>
46.
</tr>
47.
</table>
48.
</body>
49.
</html>