/adei/ui

To get this branch, use:
bzr branch http://darksoft.org/webbzr/adei/ui

« back to all changes in this revision

Viewing changes to modules/graph.php

  • Committer: Suren A. Chilingaryan
  • Date: 2008-04-02 10:23:22 UTC
  • Revision ID: csa@dside.dyndns.org-20080402102322-okib92sicg2dx3o3
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
 
 
3
$graph_title = _("Data");
 
4
 
 
5
function graphJS() {
 
6
    global $GRAPH_MARGINS;
 
7
    global $GRAPH_SELECTION;
 
8
?>
 
9
    zeus_graph = new GRAPH("graph_image_div", "graph_selector_div");
 
10
    zeus_graph.SetMargins(<?echo $GRAPH_MARGINS['left'] . "," . $GRAPH_MARGINS['top'] . "," . $GRAPH_MARGINS['right'] . "," .$GRAPH_MARGINS['bottom']?>);
 
11
    zeus_graph.SetAllSizes(<?echo $GRAPH_SELECTION['min_width'] . "," . $GRAPH_SELECTION['min_height']?>);
 
12
    adei.AttachGraphModule(zeus_graph);
 
13
 
 
14
<?
 
15
    return "zeus_graph";
 
16
}
 
17
 
 
18
 
 
19
function graphPage() {
 
20
/*    <div id="graph_selector_div" class="selector">selector1</div>*/
 
21
?>
 
22
<table width="100%" <?/*height="100%"*/?> cellspacing="0" cellpadding="0"><tr><td>
 
23
</td></tr><tr><td>
 
24
    <div id="graph_image_div">
 
25
        <img id="graph_image" alt="chart"/>
 
26
        <?/* onMouseDown="zeus_graph.MouseStart(event)" onMouseUp="zeus_graph.MouseDone(event)" onMouseMove="zeus_graph.MouseVisualize(event)" onClick="zeus_graph.MouseStart()"/>*/?>
 
27
    </div>
 
28
</td></tr></table>
 
29
<?}?>
 
 
b'\\ No newline at end of file'