summaryrefslogtreecommitdiff
path: root/addons/web_graph/static/lib/dhtmlxGraph/samples/common/data.php
diff options
context:
space:
mode:
authorJiten (OpenERP) <jra@tinyerp.com>2011-09-07 17:40:25 +0530
committerJiten (OpenERP) <jra@tinyerp.com>2011-09-07 17:40:25 +0530
commitdad60c2f9cc3eb1f461639ed53008a71a18d39f3 (patch)
treeca918cfaa39b9fa970990baca55c31ccd7e06061 /addons/web_graph/static/lib/dhtmlxGraph/samples/common/data.php
parentd874c29edda752b0a207c84ccea3b564820e8b44 (diff)
parent3d9fb5d4cc7ed3e187ce577d382177818652c08b (diff)
[MER] Merged from openerp-web.
bzr revid: jra@tinyerp.com-20110907121025-qr2bbacxn8fwf07v
Diffstat (limited to 'addons/web_graph/static/lib/dhtmlxGraph/samples/common/data.php')
-rw-r--r--addons/web_graph/static/lib/dhtmlxGraph/samples/common/data.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/addons/web_graph/static/lib/dhtmlxGraph/samples/common/data.php b/addons/web_graph/static/lib/dhtmlxGraph/samples/common/data.php
new file mode 100644
index 00000000000..ac8f5116a9d
--- /dev/null
+++ b/addons/web_graph/static/lib/dhtmlxGraph/samples/common/data.php
@@ -0,0 +1,16 @@
+<?php
+
+$str = "<data>";
+
+for ($i=1; $i <= 100; $i++) {
+ $sales = rand(100,1000);
+ $year = rand(1996,2009);
+ $company = "Company ".rand(1,3);
+ $str.="<item id='{$i}' sales='{$sales}' year='{$year}' company='{$company}'></item>";
+}
+
+$str .= "</data>";
+
+file_put_contents("stat.xml",$str);
+
+?> \ No newline at end of file