diff options
| author | Xavier Morel <xmo@openerp.com> | 2011-06-16 15:23:47 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2011-06-16 15:23:47 +0200 |
| commit | 691a6b48d25f6097b29b3509217f804a1a7487c5 (patch) | |
| tree | dfc904318b0db8659a790adedd120ece6cbdac34 /addons/base_graph/static/lib/dhtmlxGraph/samples/common/data.php | |
| parent | c76f48108822d3d9ad4fe984b7ffb442c32c0757 (diff) | |
| parent | 21c1626f5e26547cd51d277d312945a94729e5de (diff) | |
[MERGE] graph and trunk
bzr revid: xmo@openerp.com-20110616132347-nxv0fw4oe163q6au
Diffstat (limited to 'addons/base_graph/static/lib/dhtmlxGraph/samples/common/data.php')
| -rw-r--r-- | addons/base_graph/static/lib/dhtmlxGraph/samples/common/data.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/addons/base_graph/static/lib/dhtmlxGraph/samples/common/data.php b/addons/base_graph/static/lib/dhtmlxGraph/samples/common/data.php new file mode 100644 index 00000000000..ac8f5116a9d --- /dev/null +++ b/addons/base_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 |
