summaryrefslogtreecommitdiffstats
path: root/samples/export/excel.php
diff options
context:
space:
mode:
Diffstat (limited to 'samples/export/excel.php')
-rw-r--r--samples/export/excel.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/samples/export/excel.php b/samples/export/excel.php
new file mode 100644
index 0000000..c9c9581
--- /dev/null
+++ b/samples/export/excel.php
@@ -0,0 +1,16 @@
+<?php
+ require_once("../config.php");
+ $res=mysql_connect($mysql_server,$mysql_user,$mysql_pass);
+ mysql_select_db($mysql_db);
+
+
+ require("../../codebase/grid_connector.php");
+ require("../../codebase/convert.php");
+
+ $convert = new ConvertService("http://dhtmlxgrid.appspot.com/export/excel");
+ $convert->excel();
+
+ $grid = new GridConnector($res);
+ $grid->set_config(new GridConfiguration());
+ $grid->render_table("grid50");
+?> \ No newline at end of file