diff options
Diffstat (limited to 'samples/grid/04_custom_sql.html')
-rw-r--r-- | samples/grid/04_custom_sql.html | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/samples/grid/04_custom_sql.html b/samples/grid/04_custom_sql.html index 396b0db..2819025 100644 --- a/samples/grid/04_custom_sql.html +++ b/samples/grid/04_custom_sql.html @@ -1,17 +1,14 @@ -
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<!DOCTYPE HTML>
<html>
<head>
<title>For demo purpose only :: &1</title>
-
-
-
-
-<script src="../dhtmlx/dhtmlx.js" type="text/javascript" charset="utf-8"></script>
-<link rel="stylesheet" href="../dhtmlx/dhtmlx.css" type="text/css" charset="utf-8">
+ <script src="../dhtmlx/dhtmlx.js" type="text/javascript" charset="utf-8"></script>
+ <link rel="stylesheet" href="../dhtmlx/dhtmlx.css" type="text/css" charset="utf-8">
</head>
+
<body>
- <div id="gridbox" width="350px" height="550px" style="background-color:white;overflow:hidden"></div>
+ <div id="gridbox" width="350px" height="550px" style="background-color:white;overflow:hidden"></div>
+
<script>
mygrid = new dhtmlXGridObject('gridbox');
mygrid.setImagePath("../dhtmlx/imgs/");
@@ -23,10 +20,12 @@ mygrid.enableSmartRendering(true)
mygrid.enableMultiselect(true)
mygrid.init();
- mygrid.loadXML("04_custom_sql_connector.php");
+ mygrid.load("04_custom_sql_connector.php");
+
var dp = new dataProcessor("04_custom_sql_connector.php");
dp.init(mygrid);
</script>
+
<input type="button" name="add" value="add row" onclick="var id=mygrid.uid(); mygrid.addRow(id,'',0); mygrid.showRow(id);">
<input type="button" name="delete" value="delete row" onclick="mygrid.deleteSelectedRows()">
<div class='code'><code><span style="color: #000000">
|