diff options
author | Stanislau Wolski <stanislau.wolski@gmail.com> | 2014-08-08 15:50:58 +0300 |
---|---|---|
committer | Stanislau Wolski <stanislau.wolski@gmail.com> | 2014-08-08 15:50:58 +0300 |
commit | 7e489ef83cf2b3854b71d357e9164ab1f00e310f (patch) | |
tree | 0580fbea288db47ab430f652e399dae01072b46e /samples/grid | |
parent | a3f61f91ca50598de2126ea0864b3acc7f56a847 (diff) | |
download | connector-php-7e489ef83cf2b3854b71d357e9164ab1f00e310f.zip connector-php-7e489ef83cf2b3854b71d357e9164ab1f00e310f.tar.gz connector-php-7e489ef83cf2b3854b71d357e9164ab1f00e310f.tar.bz2 |
[update] updated to dhtmlx 4.x
Diffstat (limited to 'samples/grid')
34 files changed, 174 insertions, 60 deletions
diff --git a/samples/grid/01_basic_connector.php b/samples/grid/01_basic_connector.php index 52dcda5..93d8007 100644 --- a/samples/grid/01_basic_connector.php +++ b/samples/grid/01_basic_connector.php @@ -1,5 +1,6 @@ <?php require_once("../config.php"); + require("../../codebase/db_pdo.php"); $res= new PDO($mysql_server,$mysql_user,$mysql_pass); @@ -7,5 +8,5 @@ $grid = new GridConnector($res, "PDO"); $grid->enable_log("some.txt", true); $grid->dynamic_loading(100); - $grid->render_table("grida50000","item_id","item_nm,item_cd"); + $grid->render_table("grid50000","item_id","item_nm,item_cd"); ?>
\ No newline at end of file diff --git a/samples/grid/01a_sql_basic.html b/samples/grid/01a_sql_basic.html index 9564e1e..fdaadb2 100644 --- a/samples/grid/01a_sql_basic.html +++ b/samples/grid/01a_sql_basic.html @@ -8,8 +8,6 @@ <script src="../dhtmlx/dhtmlx.js" type="text/javascript" charset="utf-8"></script>
-<script src="../dhtmlx/dhtmlxdataprocessor.js" type="text/javascript" charset="utf-8"></script>
-<script src="../../codebase/connector.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="../dhtmlx/dhtmlx.css" type="text/css" charset="utf-8">
</head>
<body>
diff --git a/samples/grid/01a_sql_basic_connector.php b/samples/grid/01a_sql_basic_connector.php index 2c2ed6e..66e0a3e 100644 --- a/samples/grid/01a_sql_basic_connector.php +++ b/samples/grid/01a_sql_basic_connector.php @@ -1,5 +1,6 @@ <?php require_once("../config.php"); + require("../../codebase/db_pdo.php"); $res= new PDO($mysql_server,$mysql_user,$mysql_pass); require("../../codebase/grid_connector.php"); diff --git a/samples/grid/02_rendering.html b/samples/grid/02_rendering.html index 537bad3..3fe8b17 100644 --- a/samples/grid/02_rendering.html +++ b/samples/grid/02_rendering.html @@ -8,8 +8,6 @@ <script src="../dhtmlx/dhtmlx.js" type="text/javascript" charset="utf-8"></script> -<script src="../dhtmlx/dhtmlxdataprocessor.js" type="text/javascript" charset="utf-8"></script> -<script src="../../codebase/connector.js" type="text/javascript" charset="utf-8"></script> <link rel="stylesheet" href="../dhtmlx/dhtmlx.css" type="text/css" charset="utf-8"> </head> <body> diff --git a/samples/grid/02_rendering_connector.php b/samples/grid/02_rendering_connector.php index 2c185df..9c2ccb9 100644 --- a/samples/grid/02_rendering_connector.php +++ b/samples/grid/02_rendering_connector.php @@ -1,5 +1,6 @@ <?php require_once("../config.php"); + require("../../codebase/db_pdo.php"); $res= new PDO($mysql_server,$mysql_user,$mysql_pass); diff --git a/samples/grid/03_validation.html b/samples/grid/03_validation.html index 9c7080f..2bfce38 100644 --- a/samples/grid/03_validation.html +++ b/samples/grid/03_validation.html @@ -8,8 +8,6 @@ <script src="../dhtmlx/dhtmlx.js" type="text/javascript" charset="utf-8"></script> -<script src="../dhtmlx/dhtmlxdataprocessor.js" type="text/javascript" charset="utf-8"></script> -<script src="../../codebase/connector.js" type="text/javascript" charset="utf-8"></script> <link rel="stylesheet" href="../dhtmlx/dhtmlx.css" type="text/css" charset="utf-8"> </head> <body> diff --git a/samples/grid/03_validation_connector.php b/samples/grid/03_validation_connector.php index 13f8cd0..87343b9 100644 --- a/samples/grid/03_validation_connector.php +++ b/samples/grid/03_validation_connector.php @@ -1,5 +1,6 @@ <?php require_once("../config.php"); + require("../../codebase/db_pdo.php"); $res= new PDO($mysql_server,$mysql_user,$mysql_pass); diff --git a/samples/grid/04_custom_sql.html b/samples/grid/04_custom_sql.html index bcad539..396b0db 100644 --- a/samples/grid/04_custom_sql.html +++ b/samples/grid/04_custom_sql.html @@ -8,8 +8,6 @@ <script src="../dhtmlx/dhtmlx.js" type="text/javascript" charset="utf-8"></script>
-<script src="../dhtmlx/dhtmlxdataprocessor.js" type="text/javascript" charset="utf-8"></script>
-<script src="../../codebase/connector.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="../dhtmlx/dhtmlx.css" type="text/css" charset="utf-8">
</head>
<body>
diff --git a/samples/grid/04_custom_sql_connector.php b/samples/grid/04_custom_sql_connector.php index c1015be..f0bed29 100644 --- a/samples/grid/04_custom_sql_connector.php +++ b/samples/grid/04_custom_sql_connector.php @@ -1,5 +1,6 @@ <?php require_once("../config.php"); + require("../../codebase/db_pdo.php"); $res= new PDO($mysql_server,$mysql_user,$mysql_pass); diff --git a/samples/grid/05_select_filter.html b/samples/grid/05_select_filter.html index ce56044..95ebf3c 100644 --- a/samples/grid/05_select_filter.html +++ b/samples/grid/05_select_filter.html @@ -8,8 +8,6 @@ <script src="../dhtmlx/dhtmlx.js" type="text/javascript" charset="utf-8"></script> -<script src="../dhtmlx/dhtmlxdataprocessor.js" type="text/javascript" charset="utf-8"></script> -<script src="../../codebase/connector.js" type="text/javascript" charset="utf-8"></script> <link rel="stylesheet" href="../dhtmlx/dhtmlx.css" type="text/css" charset="utf-8"> </head> <body> diff --git a/samples/grid/05_select_filter_connector.php b/samples/grid/05_select_filter_connector.php index 8a33a97..63690a9 100644 --- a/samples/grid/05_select_filter_connector.php +++ b/samples/grid/05_select_filter_connector.php @@ -1,5 +1,6 @@ <?php require_once("../config.php"); + require("../../codebase/db_pdo.php"); $res= new PDO($mysql_server,$mysql_user,$mysql_pass); require("../../codebase/grid_connector.php"); diff --git a/samples/grid/05a_select_filter.html b/samples/grid/05a_select_filter.html index 2d1ddbd..279de54 100644 --- a/samples/grid/05a_select_filter.html +++ b/samples/grid/05a_select_filter.html @@ -8,8 +8,6 @@ <script src="../dhtmlx/dhtmlx.js" type="text/javascript" charset="utf-8"></script>
-<script src="../dhtmlx/dhtmlxdataprocessor.js" type="text/javascript" charset="utf-8"></script>
-<script src="../../codebase/connector.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="../dhtmlx/dhtmlx.css" type="text/css" charset="utf-8">
</head>
<body>
diff --git a/samples/grid/05a_select_filter_connector.php b/samples/grid/05a_select_filter_connector.php index a8600b6..a21dad3 100644 --- a/samples/grid/05a_select_filter_connector.php +++ b/samples/grid/05a_select_filter_connector.php @@ -1,5 +1,6 @@ <?php require_once("../config.php"); + require("../../codebase/db_pdo.php"); $res= new PDO($mysql_server,$mysql_user,$mysql_pass); require("../../codebase/grid_connector.php"); diff --git a/samples/grid/06_combo.html b/samples/grid/06_combo.html index 86a5b96..9b44051 100644 --- a/samples/grid/06_combo.html +++ b/samples/grid/06_combo.html @@ -8,8 +8,6 @@ <script src="../dhtmlx/dhtmlx.js" type="text/javascript" charset="utf-8"></script>
-<script src="../dhtmlx/dhtmlxdataprocessor.js" type="text/javascript" charset="utf-8"></script>
-<script src="../../codebase/connector.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="../dhtmlx/dhtmlx.css" type="text/css" charset="utf-8">
</head>
<body>
diff --git a/samples/grid/06_combo_connector.php b/samples/grid/06_combo_connector.php index 3dac5ba..9029730 100644 --- a/samples/grid/06_combo_connector.php +++ b/samples/grid/06_combo_connector.php @@ -1,5 +1,6 @@ <?php require_once("../config.php"); + require("../../codebase/db_pdo.php"); $res= new PDO($mysql_server,$mysql_user,$mysql_pass); require("../../codebase/grid_connector.php"); diff --git a/samples/grid/06a_combo.html b/samples/grid/06a_combo.html index 84a2b65..c5a2f99 100644 --- a/samples/grid/06a_combo.html +++ b/samples/grid/06a_combo.html @@ -8,8 +8,6 @@ <script src="../dhtmlx/dhtmlx.js" type="text/javascript" charset="utf-8"></script> -<script src="../dhtmlx/dhtmlxdataprocessor.js" type="text/javascript" charset="utf-8"></script> -<script src="../../codebase/connector.js" type="text/javascript" charset="utf-8"></script> <link rel="stylesheet" href="../dhtmlx/dhtmlx.css" type="text/css" charset="utf-8"> </head> <body> diff --git a/samples/grid/09_server_side_configuration.html b/samples/grid/09_server_side_configuration.html index 7235c0c..553c4f4 100644 --- a/samples/grid/09_server_side_configuration.html +++ b/samples/grid/09_server_side_configuration.html @@ -8,8 +8,6 @@ <script src="../dhtmlx/dhtmlx.js" type="text/javascript" charset="utf-8"></script> -<script src="../dhtmlx/dhtmlxdataprocessor.js" type="text/javascript" charset="utf-8"></script> -<script src="../../codebase/connector.js" type="text/javascript" charset="utf-8"></script> <link rel="stylesheet" href="../dhtmlx/dhtmlx.css" type="text/css" charset="utf-8"> </head> <body> diff --git a/samples/grid/09_server_side_configuration.php b/samples/grid/09_server_side_configuration.php index ae07509..35d2304 100644 --- a/samples/grid/09_server_side_configuration.php +++ b/samples/grid/09_server_side_configuration.php @@ -1,5 +1,6 @@ <?php require_once("../config.php"); + require("../../codebase/db_pdo.php"); $res= new PDO($mysql_server,$mysql_user,$mysql_pass); diff --git a/samples/grid/10_auto_config.html b/samples/grid/10_auto_config.html index d8fd6e0..a3e16c1 100644 --- a/samples/grid/10_auto_config.html +++ b/samples/grid/10_auto_config.html @@ -8,8 +8,6 @@ <script src="../dhtmlx/dhtmlx.js" type="text/javascript" charset="utf-8"></script> -<script src="../dhtmlx/dhtmlxdataprocessor.js" type="text/javascript" charset="utf-8"></script> -<script src="../../codebase/connector.js" type="text/javascript" charset="utf-8"></script> <link rel="stylesheet" href="../dhtmlx/dhtmlx.css" type="text/css" charset="utf-8"> </head> <body> diff --git a/samples/grid/10_auto_config.php b/samples/grid/10_auto_config.php index a1dcf33..ea78e8f 100644 --- a/samples/grid/10_auto_config.php +++ b/samples/grid/10_auto_config.php @@ -1,5 +1,6 @@ <?php require_once("../config.php"); + require("../../codebase/db_pdo.php"); $res= new PDO($mysql_server,$mysql_user,$mysql_pass); diff --git a/samples/grid/11_auto_config_filters.html b/samples/grid/11_auto_config_filters.html index 60d146f..9a478b8 100644 --- a/samples/grid/11_auto_config_filters.html +++ b/samples/grid/11_auto_config_filters.html @@ -8,8 +8,6 @@ <script src="../dhtmlx/dhtmlx.js" type="text/javascript" charset="utf-8"></script> -<script src="../dhtmlx/dhtmlxdataprocessor.js" type="text/javascript" charset="utf-8"></script> -<script src="../../codebase/connector.js" type="text/javascript" charset="utf-8"></script> <link rel="stylesheet" href="../dhtmlx/dhtmlx.css" type="text/css" charset="utf-8"> </head> <body> diff --git a/samples/grid/11_auto_config_filters.php b/samples/grid/11_auto_config_filters.php index 4eb8604..63d7ed2 100644 --- a/samples/grid/11_auto_config_filters.php +++ b/samples/grid/11_auto_config_filters.php @@ -1,5 +1,6 @@ <?php require_once("../config.php"); + require("../../codebase/db_pdo.php"); $res= new PDO($mysql_server,$mysql_user,$mysql_pass); diff --git a/samples/grid/12_attach_header_server.html b/samples/grid/12_attach_header_server.html index 59e9acc..37753a4 100644 --- a/samples/grid/12_attach_header_server.html +++ b/samples/grid/12_attach_header_server.html @@ -8,8 +8,6 @@ <script src="../dhtmlx/dhtmlx.js" type="text/javascript" charset="utf-8"></script> -<script src="../dhtmlx/dhtmlxdataprocessor.js" type="text/javascript" charset="utf-8"></script> -<script src="../../codebase/connector.js" type="text/javascript" charset="utf-8"></script> <link rel="stylesheet" href="../dhtmlx/dhtmlx.css" type="text/css" charset="utf-8"> </head> <body> diff --git a/samples/grid/12_attach_header_server.php b/samples/grid/12_attach_header_server.php index cf09458..b26d06e 100644 --- a/samples/grid/12_attach_header_server.php +++ b/samples/grid/12_attach_header_server.php @@ -1,5 +1,6 @@ <?php require_once("../config.php"); + require("../../codebase/db_pdo.php"); $res= new PDO($mysql_server,$mysql_user,$mysql_pass); diff --git a/samples/grid/13_filesystem_grid_connector.html b/samples/grid/13_filesystem_grid_connector.html index 37d2bbc..0f2e696 100644 --- a/samples/grid/13_filesystem_grid_connector.html +++ b/samples/grid/13_filesystem_grid_connector.html @@ -8,8 +8,6 @@ <script src="../dhtmlx/dhtmlx.js" type="text/javascript" charset="utf-8"></script> -<script src="../dhtmlx/dhtmlxdataprocessor.js" type="text/javascript" charset="utf-8"></script> -<script src="../../codebase/connector.js" type="text/javascript" charset="utf-8"></script> <link rel="stylesheet" href="../dhtmlx/dhtmlx.css" type="text/css" charset="utf-8"> </head> <body> diff --git a/samples/grid/some.txt b/samples/grid/some.txt new file mode 100644 index 0000000..1b45afb --- /dev/null +++ b/samples/grid/some.txt @@ -0,0 +1,72 @@ + + +==================================== +Log started, 08/08/2014 02:11:30 +==================================== + +SELECT item_id,item_nm,item_cd FROM grid50000 LIMIT 0,100 + +SELECT COUNT(*) as DHX_COUNT FROM grid50000 + +Done in 0.0074200630187988s + + + +==================================== +Log started, 08/08/2014 02:13:34 +==================================== + +SELECT item_id,item_nm,item_cd FROM grid50000 LIMIT 0,100 + +SELECT COUNT(*) as DHX_COUNT FROM grid50000 + +Done in 0.0053791999816895s + + + +==================================== +Log started, 08/08/2014 02:17:52 +==================================== + +SELECT item_id,item_nm,item_cd FROM grid50000 LIMIT 0,100 + +SELECT COUNT(*) as DHX_COUNT FROM grid50000 + +Done in 0.0059990882873535s + + + +==================================== +Log started, 08/08/2014 02:17:54 +==================================== + +SELECT item_id,item_nm,item_cd FROM grid50000 LIMIT 0,100 + +SELECT COUNT(*) as DHX_COUNT FROM grid50000 + +Done in 0.0051469802856445s + + + +==================================== +Log started, 08/08/2014 02:29:44 +==================================== + +SELECT item_id,item_nm,item_cd FROM grid50000 LIMIT 0,100 + +SELECT COUNT(*) as DHX_COUNT FROM grid50000 + +Done in 0.004889965057373s + + + +==================================== +Log started, 08/08/2014 02:31:03 +==================================== + +SELECT item_id,item_nm,item_cd FROM grid50000 LIMIT 0,100 + +SELECT COUNT(*) as DHX_COUNT FROM grid50000 + +Done in 0.0049238204956055s + diff --git a/samples/grid/xx_adodb.html b/samples/grid/xx_adodb.html index a6226f5..b342e28 100644 --- a/samples/grid/xx_adodb.html +++ b/samples/grid/xx_adodb.html @@ -8,8 +8,6 @@ <script src="../dhtmlx/dhtmlx.js" type="text/javascript" charset="utf-8"></script> -<script src="../dhtmlx/dhtmlxdataprocessor.js" type="text/javascript" charset="utf-8"></script> -<script src="../../codebase/connector.js" type="text/javascript" charset="utf-8"></script> <link rel="stylesheet" href="../dhtmlx/dhtmlx.css" type="text/css" charset="utf-8"> </head> <body> diff --git a/samples/grid/xx_sample_mssql.html b/samples/grid/xx_sample_mssql.html index e3130a9..9eac6a6 100644 --- a/samples/grid/xx_sample_mssql.html +++ b/samples/grid/xx_sample_mssql.html @@ -8,8 +8,6 @@ <script src="../dhtmlx/dhtmlx.js" type="text/javascript" charset="utf-8"></script>
-<script src="../dhtmlx/dhtmlxdataprocessor.js" type="text/javascript" charset="utf-8"></script>
-<script src="../../codebase/connector.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="../dhtmlx/dhtmlx.css" type="text/css" charset="utf-8">
</head>
<body>
@@ -31,8 +29,20 @@ </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"> -<span style="color: #0000BB"><?php
<br /> </span><span style="color: #007700">require_once(</span><span style="color: #DD0000">"../config.php"</span><span style="color: #007700">);
<br /> </span><span style="color: #0000BB">$res</span><span style="color: #007700">=</span><span style="color: #0000BB">mssql_connect</span><span style="color: #007700">(</span><span style="color: #DD0000">'.\SQLEXPRESS'</span><span style="color: #007700">,</span><span style="color: #DD0000">"sa"</span><span style="color: #007700">,</span><span style="color: #DD0000">"1"</span><span style="color: #007700">,</span><span style="color: #0000BB">false</span><span style="color: #007700">);
<br /> </span><span style="color: #0000BB">mssql_select_db</span><span style="color: #007700">(</span><span style="color: #DD0000">"sampleDB"</span><span style="color: #007700">);
<br />
<br /> require(</span><span style="color: #DD0000">"../../codebase/grid_connector.php"</span><span style="color: #007700">);
<br /> require(</span><span style="color: #DD0000">"../../codebase/db_mssql.php"</span><span style="color: #007700">);
<br />
<br /> </span><span style="color: #0000BB">$grid </span><span style="color: #007700">= new </span><span style="color: #0000BB">GridConnector</span><span style="color: #007700">(</span><span style="color: #0000BB">$res</span><span style="color: #007700">,</span><span style="color: #DD0000">"MsSQL"</span><span style="color: #007700">);
<br /> </span><span style="color: #0000BB">$grid</span><span style="color: #007700">-></span><span style="color: #0000BB">enable_log</span><span style="color: #007700">(</span><span style="color: #DD0000">"temp.log"</span><span style="color: #007700">,</span><span style="color: #0000BB">true</span><span style="color: #007700">);
<br /> </span><span style="color: #0000BB">$grid</span><span style="color: #007700">-></span><span style="color: #0000BB">dynamic_loading</span><span style="color: #007700">(</span><span style="color: #0000BB">100</span><span style="color: #007700">);
<br /> </span><span style="color: #0000BB">$grid</span><span style="color: #007700">-></span><span style="color: #0000BB">render_table</span><span style="color: #007700">(</span><span style="color: #DD0000">"grid50000"</span><span style="color: #007700">,</span><span style="color: #DD0000">"item_id"</span><span style="color: #007700">,</span><span style="color: #DD0000">"item_nm,item_cd"</span><span style="color: #007700">);
<br /></span><span style="color: #0000BB">?></span> -</span> +<div class='code'><code><span style="color: #000000">
+<span style="color: #0000BB"><?php
+<br /> </span><span style="color: #007700">require_once(</span><span style="color: #DD0000">"../config.php"</span><span style="color: #007700">);
+<br /> </span><span style="color: #0000BB">$res</span><span style="color: #007700">=</span><span style="color: #0000BB">mssql_connect</span><span style="color: #007700">(</span><span style="color: #DD0000">'.\SQLEXPRESS'</span><span style="color: #007700">,</span><span style="color: #DD0000">"sa"</span><span style="color: #007700">,</span><span style="color: #DD0000">"1"</span><span style="color: #007700">,</span><span style="color: #0000BB">false</span><span style="color: #007700">);
+<br /> </span><span style="color: #0000BB">mssql_select_db</span><span style="color: #007700">(</span><span style="color: #DD0000">"sampleDB"</span><span style="color: #007700">);
+<br />
+<br /> require(</span><span style="color: #DD0000">"../../codebase/grid_connector.php"</span><span style="color: #007700">);
+<br /> require(</span><span style="color: #DD0000">"../../codebase/db_mssql.php"</span><span style="color: #007700">);
+<br />
+<br /> </span><span style="color: #0000BB">$grid </span><span style="color: #007700">= new </span><span style="color: #0000BB">GridConnector</span><span style="color: #007700">(</span><span style="color: #0000BB">$res</span><span style="color: #007700">,</span><span style="color: #DD0000">"MsSQL"</span><span style="color: #007700">);
+<br /> </span><span style="color: #0000BB">$grid</span><span style="color: #007700">-></span><span style="color: #0000BB">enable_log</span><span style="color: #007700">(</span><span style="color: #DD0000">"temp.log"</span><span style="color: #007700">,</span><span style="color: #0000BB">true</span><span style="color: #007700">);
+<br /> </span><span style="color: #0000BB">$grid</span><span style="color: #007700">-></span><span style="color: #0000BB">dynamic_loading</span><span style="color: #007700">(</span><span style="color: #0000BB">100</span><span style="color: #007700">);
+<br /> </span><span style="color: #0000BB">$grid</span><span style="color: #007700">-></span><span style="color: #0000BB">render_table</span><span style="color: #007700">(</span><span style="color: #DD0000">"grid50000"</span><span style="color: #007700">,</span><span style="color: #DD0000">"item_id"</span><span style="color: #007700">,</span><span style="color: #DD0000">"item_nm,item_cd"</span><span style="color: #007700">);
+<br /></span><span style="color: #0000BB">?></span>
+</span>
</code></div></body>
</html>
diff --git a/samples/grid/xx_sample_mysqli.html b/samples/grid/xx_sample_mysqli.html index 1e7891e..8930ac0 100644 --- a/samples/grid/xx_sample_mysqli.html +++ b/samples/grid/xx_sample_mysqli.html @@ -3,8 +3,6 @@ <head> <title>MySQLi connector with dhtmlxGrid - read-only version</title> <script src="../dhtmlx/dhtmlx.js" type="text/javascript" charset="utf-8"></script> -<script src="../dhtmlx/dhtmlxdataprocessor.js" type="text/javascript" charset="utf-8"></script> - <script src="../../codebase/connector.js" type="text/javascript" charset="utf-8"></script> <link rel="stylesheet" href="../dhtmlx/dhtmlx.css" type="text/css" charset="utf-8"> <script> function doOnLoad() { diff --git a/samples/grid/xx_sample_oracle.html b/samples/grid/xx_sample_oracle.html index bb91ec7..e06c543 100644 --- a/samples/grid/xx_sample_oracle.html +++ b/samples/grid/xx_sample_oracle.html @@ -8,8 +8,6 @@ <script src="../dhtmlx/dhtmlx.js" type="text/javascript" charset="utf-8"></script>
-<script src="../dhtmlx/dhtmlxdataprocessor.js" type="text/javascript" charset="utf-8"></script>
-<script src="../../codebase/connector.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="../dhtmlx/dhtmlx.css" type="text/css" charset="utf-8">
</head>
<body>
@@ -31,8 +29,23 @@ </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"> -<span style="color: #0000BB"><?php
<br /> </span><span style="color: #007700">require_once(</span><span style="color: #DD0000">"../config.php"</span><span style="color: #007700">);
<br /> </span><span style="color: #0000BB">$res </span><span style="color: #007700">= </span><span style="color: #0000BB">oci_connect</span><span style="color: #007700">(</span><span style="color: #0000BB">$oci_dbuser</span><span style="color: #007700">,</span><span style="color: #0000BB">$oci_dbpass</span><span style="color: #007700">,</span><span style="color: #0000BB">$oci_dbname</span><span style="color: #007700">);
<br />
<br />
<br />
<br /> require(</span><span style="color: #DD0000">"../../codebase/grid_connector.php"</span><span style="color: #007700">);
<br /> require(</span><span style="color: #DD0000">"../../codebase/db_oracle.php"</span><span style="color: #007700">);
<br />
<br /> </span><span style="color: #0000BB">$grid </span><span style="color: #007700">= new </span><span style="color: #0000BB">GridConnector</span><span style="color: #007700">(</span><span style="color: #0000BB">$res</span><span style="color: #007700">,</span><span style="color: #DD0000">"Oracle"</span><span style="color: #007700">);
<br /> </span><span style="color: #0000BB">$grid</span><span style="color: #007700">-></span><span style="color: #0000BB">enable_log</span><span style="color: #007700">(</span><span style="color: #DD0000">"temp.log"</span><span style="color: #007700">,</span><span style="color: #0000BB">true</span><span style="color: #007700">);
<br /> </span><span style="color: #0000BB">$grid</span><span style="color: #007700">-></span><span style="color: #0000BB">dynamic_loading</span><span style="color: #007700">(</span><span style="color: #0000BB">50</span><span style="color: #007700">);
<br /> </span><span style="color: #0000BB">$grid</span><span style="color: #007700">-></span><span style="color: #0000BB">sql</span><span style="color: #007700">-></span><span style="color: #0000BB">sequence</span><span style="color: #007700">(</span><span style="color: #DD0000">"EMPLOYEES_INC.nextVal"</span><span style="color: #007700">);
<br /> </span><span style="color: #0000BB">$grid</span><span style="color: #007700">-></span><span style="color: #0000BB">render_table</span><span style="color: #007700">(</span><span style="color: #DD0000">"EMPLOYEES"</span><span style="color: #007700">,</span><span style="color: #DD0000">"EMPLOYEE_ID"</span><span style="color: #007700">,</span><span style="color: #DD0000">"FIRST_NAME,LAST_NAME"</span><span style="color: #007700">);
<br />
<br /></span><span style="color: #0000BB">?></span> -</span> +<div class='code'><code><span style="color: #000000">
+<span style="color: #0000BB"><?php
+<br /> </span><span style="color: #007700">require_once(</span><span style="color: #DD0000">"../config.php"</span><span style="color: #007700">);
+<br /> </span><span style="color: #0000BB">$res </span><span style="color: #007700">= </span><span style="color: #0000BB">oci_connect</span><span style="color: #007700">(</span><span style="color: #0000BB">$oci_dbuser</span><span style="color: #007700">,</span><span style="color: #0000BB">$oci_dbpass</span><span style="color: #007700">,</span><span style="color: #0000BB">$oci_dbname</span><span style="color: #007700">);
+<br />
+<br />
+<br />
+<br /> require(</span><span style="color: #DD0000">"../../codebase/grid_connector.php"</span><span style="color: #007700">);
+<br /> require(</span><span style="color: #DD0000">"../../codebase/db_oracle.php"</span><span style="color: #007700">);
+<br />
+<br /> </span><span style="color: #0000BB">$grid </span><span style="color: #007700">= new </span><span style="color: #0000BB">GridConnector</span><span style="color: #007700">(</span><span style="color: #0000BB">$res</span><span style="color: #007700">,</span><span style="color: #DD0000">"Oracle"</span><span style="color: #007700">);
+<br /> </span><span style="color: #0000BB">$grid</span><span style="color: #007700">-></span><span style="color: #0000BB">enable_log</span><span style="color: #007700">(</span><span style="color: #DD0000">"temp.log"</span><span style="color: #007700">,</span><span style="color: #0000BB">true</span><span style="color: #007700">);
+<br /> </span><span style="color: #0000BB">$grid</span><span style="color: #007700">-></span><span style="color: #0000BB">dynamic_loading</span><span style="color: #007700">(</span><span style="color: #0000BB">50</span><span style="color: #007700">);
+<br /> </span><span style="color: #0000BB">$grid</span><span style="color: #007700">-></span><span style="color: #0000BB">sql</span><span style="color: #007700">-></span><span style="color: #0000BB">sequence</span><span style="color: #007700">(</span><span style="color: #DD0000">"EMPLOYEES_INC.nextVal"</span><span style="color: #007700">);
+<br /> </span><span style="color: #0000BB">$grid</span><span style="color: #007700">-></span><span style="color: #0000BB">render_table</span><span style="color: #007700">(</span><span style="color: #DD0000">"EMPLOYEES"</span><span style="color: #007700">,</span><span style="color: #DD0000">"EMPLOYEE_ID"</span><span style="color: #007700">,</span><span style="color: #DD0000">"FIRST_NAME,LAST_NAME"</span><span style="color: #007700">);
+<br />
+<br /></span><span style="color: #0000BB">?></span>
+</span>
</code></div></body>
</html>
diff --git a/samples/grid/xx_sample_pdo.html b/samples/grid/xx_sample_pdo.html index 2f4e12c..518aa2d 100644 --- a/samples/grid/xx_sample_pdo.html +++ b/samples/grid/xx_sample_pdo.html @@ -8,8 +8,6 @@ <script src="../dhtmlx/dhtmlx.js" type="text/javascript" charset="utf-8"></script>
-<script src="../dhtmlx/dhtmlxdataprocessor.js" type="text/javascript" charset="utf-8"></script>
-<script src="../../codebase/connector.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="../dhtmlx/dhtmlx.css" type="text/css" charset="utf-8">
</head>
<body>
@@ -31,8 +29,19 @@ </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"> -<span style="color: #0000BB"><?php
<br /> </span><span style="color: #007700">require_once(</span><span style="color: #DD0000">"../config.php"</span><span style="color: #007700">);
<br /> </span><span style="color: #0000BB">$dbh </span><span style="color: #007700">= new </span><span style="color: #0000BB">PDO</span><span style="color: #007700">(</span><span style="color: #DD0000">'mysql:host='</span><span style="color: #007700">.</span><span style="color: #0000BB">$mysql_server</span><span style="color: #007700">.</span><span style="color: #DD0000">';dbname='</span><span style="color: #007700">.</span><span style="color: #0000BB">$mysql_db</span><span style="color: #007700">, </span><span style="color: #0000BB">$mysql_user</span><span style="color: #007700">, </span><span style="color: #0000BB">$mysql_pass</span><span style="color: #007700">);
<br />
<br /> require(</span><span style="color: #DD0000">"../../codebase/grid_connector.php"</span><span style="color: #007700">);
<br /> require(</span><span style="color: #DD0000">"../../codebase/db_pdo.php"</span><span style="color: #007700">);
<br />
<br /> </span><span style="color: #0000BB">$grid </span><span style="color: #007700">= new </span><span style="color: #0000BB">GridConnector</span><span style="color: #007700">(</span><span style="color: #0000BB">$dbh</span><span style="color: #007700">,</span><span style="color: #DD0000">"PDO"</span><span style="color: #007700">);
<br /> </span><span style="color: #0000BB">$grid</span><span style="color: #007700">-></span><span style="color: #0000BB">enable_log</span><span style="color: #007700">(</span><span style="color: #DD0000">"temp.log"</span><span style="color: #007700">,</span><span style="color: #0000BB">true</span><span style="color: #007700">);
<br /> </span><span style="color: #0000BB">$grid</span><span style="color: #007700">-></span><span style="color: #0000BB">dynamic_loading</span><span style="color: #007700">(</span><span style="color: #0000BB">100</span><span style="color: #007700">);
<br /> </span><span style="color: #0000BB">$grid</span><span style="color: #007700">-></span><span style="color: #0000BB">render_table</span><span style="color: #007700">(</span><span style="color: #DD0000">"grid50000"</span><span style="color: #007700">,</span><span style="color: #DD0000">"item_id"</span><span style="color: #007700">,</span><span style="color: #DD0000">"item_nm,item_cd"</span><span style="color: #007700">);
<br /></span><span style="color: #0000BB">?></span> -</span> +<div class='code'><code><span style="color: #000000">
+<span style="color: #0000BB"><?php
+<br /> </span><span style="color: #007700">require_once(</span><span style="color: #DD0000">"../config.php"</span><span style="color: #007700">);
+<br /> </span><span style="color: #0000BB">$dbh </span><span style="color: #007700">= new </span><span style="color: #0000BB">PDO</span><span style="color: #007700">(</span><span style="color: #DD0000">'mysql:host='</span><span style="color: #007700">.</span><span style="color: #0000BB">$mysql_server</span><span style="color: #007700">.</span><span style="color: #DD0000">';dbname='</span><span style="color: #007700">.</span><span style="color: #0000BB">$mysql_db</span><span style="color: #007700">, </span><span style="color: #0000BB">$mysql_user</span><span style="color: #007700">, </span><span style="color: #0000BB">$mysql_pass</span><span style="color: #007700">);
+<br />
+<br /> require(</span><span style="color: #DD0000">"../../codebase/grid_connector.php"</span><span style="color: #007700">);
+<br /> require(</span><span style="color: #DD0000">"../../codebase/db_pdo.php"</span><span style="color: #007700">);
+<br />
+<br /> </span><span style="color: #0000BB">$grid </span><span style="color: #007700">= new </span><span style="color: #0000BB">GridConnector</span><span style="color: #007700">(</span><span style="color: #0000BB">$dbh</span><span style="color: #007700">,</span><span style="color: #DD0000">"PDO"</span><span style="color: #007700">);
+<br /> </span><span style="color: #0000BB">$grid</span><span style="color: #007700">-></span><span style="color: #0000BB">enable_log</span><span style="color: #007700">(</span><span style="color: #DD0000">"temp.log"</span><span style="color: #007700">,</span><span style="color: #0000BB">true</span><span style="color: #007700">);
+<br /> </span><span style="color: #0000BB">$grid</span><span style="color: #007700">-></span><span style="color: #0000BB">dynamic_loading</span><span style="color: #007700">(</span><span style="color: #0000BB">100</span><span style="color: #007700">);
+<br /> </span><span style="color: #0000BB">$grid</span><span style="color: #007700">-></span><span style="color: #0000BB">render_table</span><span style="color: #007700">(</span><span style="color: #DD0000">"grid50000"</span><span style="color: #007700">,</span><span style="color: #DD0000">"item_id"</span><span style="color: #007700">,</span><span style="color: #DD0000">"item_nm,item_cd"</span><span style="color: #007700">);
+<br /></span><span style="color: #0000BB">?></span>
+</span>
</code></div></body>
</html>
diff --git a/samples/grid/xx_sample_pdo_pg.html b/samples/grid/xx_sample_pdo_pg.html index 30b80ee..29c7085 100644 --- a/samples/grid/xx_sample_pdo_pg.html +++ b/samples/grid/xx_sample_pdo_pg.html @@ -8,8 +8,6 @@ <script src="../dhtmlx/dhtmlx.js" type="text/javascript" charset="utf-8"></script>
-<script src="../dhtmlx/dhtmlxdataprocessor.js" type="text/javascript" charset="utf-8"></script>
-<script src="../../codebase/connector.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="../dhtmlx/dhtmlx.css" type="text/css" charset="utf-8">
</head>
<body>
@@ -31,8 +29,19 @@ </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"> -<span style="color: #0000BB"><?php
<br /> </span><span style="color: #007700">require_once(</span><span style="color: #DD0000">"../config.php"</span><span style="color: #007700">);
<br /> </span><span style="color: #0000BB">$dbh </span><span style="color: #007700">= new </span><span style="color: #0000BB">PDO</span><span style="color: #007700">(</span><span style="color: #DD0000">'pgsql:host=localhost;dbname='</span><span style="color: #007700">.</span><span style="color: #0000BB">$mysql_db</span><span style="color: #007700">.</span><span style="color: #DD0000">";user=root;password=1234"</span><span style="color: #007700">);
<br />
<br /> require(</span><span style="color: #DD0000">"../../codebase/grid_connector.php"</span><span style="color: #007700">);
<br /> require(</span><span style="color: #DD0000">"../../codebase/db_pdo.php"</span><span style="color: #007700">);
<br />
<br /> </span><span style="color: #0000BB">$grid </span><span style="color: #007700">= new </span><span style="color: #0000BB">GridConnector</span><span style="color: #007700">(</span><span style="color: #0000BB">$dbh</span><span style="color: #007700">,</span><span style="color: #DD0000">"PDO"</span><span style="color: #007700">);
<br /> </span><span style="color: #0000BB">$grid</span><span style="color: #007700">-></span><span style="color: #0000BB">enable_log</span><span style="color: #007700">(</span><span style="color: #DD0000">"temp.log"</span><span style="color: #007700">,</span><span style="color: #0000BB">true</span><span style="color: #007700">);
<br /> </span><span style="color: #0000BB">$grid</span><span style="color: #007700">-></span><span style="color: #0000BB">dynamic_loading</span><span style="color: #007700">(</span><span style="color: #0000BB">100</span><span style="color: #007700">);
<br /> </span><span style="color: #0000BB">$grid</span><span style="color: #007700">-></span><span style="color: #0000BB">render_table</span><span style="color: #007700">(</span><span style="color: #DD0000">"grid50000"</span><span style="color: #007700">,</span><span style="color: #DD0000">"item_id"</span><span style="color: #007700">,</span><span style="color: #DD0000">"item_nm,item_cd"</span><span style="color: #007700">);
<br /></span><span style="color: #0000BB">?></span> -</span> +<div class='code'><code><span style="color: #000000">
+<span style="color: #0000BB"><?php
+<br /> </span><span style="color: #007700">require_once(</span><span style="color: #DD0000">"../config.php"</span><span style="color: #007700">);
+<br /> </span><span style="color: #0000BB">$dbh </span><span style="color: #007700">= new </span><span style="color: #0000BB">PDO</span><span style="color: #007700">(</span><span style="color: #DD0000">'pgsql:host=localhost;dbname='</span><span style="color: #007700">.</span><span style="color: #0000BB">$mysql_db</span><span style="color: #007700">.</span><span style="color: #DD0000">";user=root;password=1234"</span><span style="color: #007700">);
+<br />
+<br /> require(</span><span style="color: #DD0000">"../../codebase/grid_connector.php"</span><span style="color: #007700">);
+<br /> require(</span><span style="color: #DD0000">"../../codebase/db_pdo.php"</span><span style="color: #007700">);
+<br />
+<br /> </span><span style="color: #0000BB">$grid </span><span style="color: #007700">= new </span><span style="color: #0000BB">GridConnector</span><span style="color: #007700">(</span><span style="color: #0000BB">$dbh</span><span style="color: #007700">,</span><span style="color: #DD0000">"PDO"</span><span style="color: #007700">);
+<br /> </span><span style="color: #0000BB">$grid</span><span style="color: #007700">-></span><span style="color: #0000BB">enable_log</span><span style="color: #007700">(</span><span style="color: #DD0000">"temp.log"</span><span style="color: #007700">,</span><span style="color: #0000BB">true</span><span style="color: #007700">);
+<br /> </span><span style="color: #0000BB">$grid</span><span style="color: #007700">-></span><span style="color: #0000BB">dynamic_loading</span><span style="color: #007700">(</span><span style="color: #0000BB">100</span><span style="color: #007700">);
+<br /> </span><span style="color: #0000BB">$grid</span><span style="color: #007700">-></span><span style="color: #0000BB">render_table</span><span style="color: #007700">(</span><span style="color: #DD0000">"grid50000"</span><span style="color: #007700">,</span><span style="color: #DD0000">"item_id"</span><span style="color: #007700">,</span><span style="color: #DD0000">"item_nm,item_cd"</span><span style="color: #007700">);
+<br /></span><span style="color: #0000BB">?></span>
+</span>
</code></div></body>
</html>
diff --git a/samples/grid/xx_sample_postgresql.html b/samples/grid/xx_sample_postgresql.html index fe09980..3d4ff2e 100644 --- a/samples/grid/xx_sample_postgresql.html +++ b/samples/grid/xx_sample_postgresql.html @@ -8,8 +8,6 @@ <script src="../dhtmlx/dhtmlx.js" type="text/javascript" charset="utf-8"></script>
-<script src="../dhtmlx/dhtmlxdataprocessor.js" type="text/javascript" charset="utf-8"></script>
-<script src="../../codebase/connector.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="../dhtmlx/dhtmlx.css" type="text/css" charset="utf-8">
</head>
<body>
@@ -31,8 +29,19 @@ </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"> -<span style="color: #0000BB"><?php
<br /> </span><span style="color: #007700">require_once(</span><span style="color: #DD0000">"../config.php"</span><span style="color: #007700">);
<br /> </span><span style="color: #0000BB">$res</span><span style="color: #007700">=</span><span style="color: #0000BB">pg_connect</span><span style="color: #007700">(</span><span style="color: #0000BB">$postrgre_connection</span><span style="color: #007700">);
<br />
<br /> require(</span><span style="color: #DD0000">"../../codebase/grid_connector.php"</span><span style="color: #007700">);
<br /> require(</span><span style="color: #DD0000">"../../codebase/db_postgre.php"</span><span style="color: #007700">);
<br />
<br /> </span><span style="color: #0000BB">$grid </span><span style="color: #007700">= new </span><span style="color: #0000BB">GridConnector</span><span style="color: #007700">(</span><span style="color: #0000BB">$res</span><span style="color: #007700">,</span><span style="color: #DD0000">"Postgre"</span><span style="color: #007700">);
<br /> </span><span style="color: #0000BB">$grid</span><span style="color: #007700">-></span><span style="color: #0000BB">enable_log</span><span style="color: #007700">(</span><span style="color: #DD0000">"temp.log"</span><span style="color: #007700">,</span><span style="color: #0000BB">true</span><span style="color: #007700">);
<br /> </span><span style="color: #0000BB">$grid</span><span style="color: #007700">-></span><span style="color: #0000BB">dynamic_loading</span><span style="color: #007700">(</span><span style="color: #0000BB">100</span><span style="color: #007700">);
<br /> </span><span style="color: #0000BB">$grid</span><span style="color: #007700">-></span><span style="color: #0000BB">render_table</span><span style="color: #007700">(</span><span style="color: #DD0000">"grid50000"</span><span style="color: #007700">,</span><span style="color: #DD0000">""</span><span style="color: #007700">,</span><span style="color: #DD0000">"item_nm,item_cd"</span><span style="color: #007700">);
<br /></span><span style="color: #0000BB">?></span> -</span> +<div class='code'><code><span style="color: #000000">
+<span style="color: #0000BB"><?php
+<br /> </span><span style="color: #007700">require_once(</span><span style="color: #DD0000">"../config.php"</span><span style="color: #007700">);
+<br /> </span><span style="color: #0000BB">$res</span><span style="color: #007700">=</span><span style="color: #0000BB">pg_connect</span><span style="color: #007700">(</span><span style="color: #0000BB">$postrgre_connection</span><span style="color: #007700">);
+<br />
+<br /> require(</span><span style="color: #DD0000">"../../codebase/grid_connector.php"</span><span style="color: #007700">);
+<br /> require(</span><span style="color: #DD0000">"../../codebase/db_postgre.php"</span><span style="color: #007700">);
+<br />
+<br /> </span><span style="color: #0000BB">$grid </span><span style="color: #007700">= new </span><span style="color: #0000BB">GridConnector</span><span style="color: #007700">(</span><span style="color: #0000BB">$res</span><span style="color: #007700">,</span><span style="color: #DD0000">"Postgre"</span><span style="color: #007700">);
+<br /> </span><span style="color: #0000BB">$grid</span><span style="color: #007700">-></span><span style="color: #0000BB">enable_log</span><span style="color: #007700">(</span><span style="color: #DD0000">"temp.log"</span><span style="color: #007700">,</span><span style="color: #0000BB">true</span><span style="color: #007700">);
+<br /> </span><span style="color: #0000BB">$grid</span><span style="color: #007700">-></span><span style="color: #0000BB">dynamic_loading</span><span style="color: #007700">(</span><span style="color: #0000BB">100</span><span style="color: #007700">);
+<br /> </span><span style="color: #0000BB">$grid</span><span style="color: #007700">-></span><span style="color: #0000BB">render_table</span><span style="color: #007700">(</span><span style="color: #DD0000">"grid50000"</span><span style="color: #007700">,</span><span style="color: #DD0000">""</span><span style="color: #007700">,</span><span style="color: #DD0000">"item_nm,item_cd"</span><span style="color: #007700">);
+<br /></span><span style="color: #0000BB">?></span>
+</span>
</code></div></body>
</html>
diff --git a/samples/grid/xx_sample_sasql.html b/samples/grid/xx_sample_sasql.html index 6dc0d75..9d4b008 100644 --- a/samples/grid/xx_sample_sasql.html +++ b/samples/grid/xx_sample_sasql.html @@ -8,7 +8,6 @@ <script src="../common/dhtmlx.js" type="text/javascript" charset="utf-8"></script>
-<script src="../../codebase/connector.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="../common/dhtmlx.css" type="text/css" charset="utf-8">
</head>
<body>
@@ -30,8 +29,19 @@ </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"> -<span style="color: #0000BB"><?php
<br /> </span><span style="color: #007700">require_once(</span><span style="color: #DD0000">"../config.php"</span><span style="color: #007700">);
<br /> </span><span style="color: #0000BB">$res</span><span style="color: #007700">=</span><span style="color: #0000BB">pg_connect</span><span style="color: #007700">(</span><span style="color: #0000BB">$postrgre_connection</span><span style="color: #007700">);
<br />
<br /> require(</span><span style="color: #DD0000">"../../codebase/grid_connector.php"</span><span style="color: #007700">);
<br /> require(</span><span style="color: #DD0000">"../../codebase/db_postgre.php"</span><span style="color: #007700">);
<br />
<br /> </span><span style="color: #0000BB">$grid </span><span style="color: #007700">= new </span><span style="color: #0000BB">GridConnector</span><span style="color: #007700">(</span><span style="color: #0000BB">$res</span><span style="color: #007700">,</span><span style="color: #DD0000">"Postgre"</span><span style="color: #007700">);
<br /> </span><span style="color: #0000BB">$grid</span><span style="color: #007700">-></span><span style="color: #0000BB">enable_log</span><span style="color: #007700">(</span><span style="color: #DD0000">"temp.log"</span><span style="color: #007700">,</span><span style="color: #0000BB">true</span><span style="color: #007700">);
<br /> </span><span style="color: #0000BB">$grid</span><span style="color: #007700">-></span><span style="color: #0000BB">dynamic_loading</span><span style="color: #007700">(</span><span style="color: #0000BB">100</span><span style="color: #007700">);
<br /> </span><span style="color: #0000BB">$grid</span><span style="color: #007700">-></span><span style="color: #0000BB">render_table</span><span style="color: #007700">(</span><span style="color: #DD0000">"grid50000"</span><span style="color: #007700">,</span><span style="color: #DD0000">""</span><span style="color: #007700">,</span><span style="color: #DD0000">"item_nm,item_cd"</span><span style="color: #007700">);
<br /></span><span style="color: #0000BB">?></span> -</span> +<div class='code'><code><span style="color: #000000">
+<span style="color: #0000BB"><?php
+<br /> </span><span style="color: #007700">require_once(</span><span style="color: #DD0000">"../config.php"</span><span style="color: #007700">);
+<br /> </span><span style="color: #0000BB">$res</span><span style="color: #007700">=</span><span style="color: #0000BB">pg_connect</span><span style="color: #007700">(</span><span style="color: #0000BB">$postrgre_connection</span><span style="color: #007700">);
+<br />
+<br /> require(</span><span style="color: #DD0000">"../../codebase/grid_connector.php"</span><span style="color: #007700">);
+<br /> require(</span><span style="color: #DD0000">"../../codebase/db_postgre.php"</span><span style="color: #007700">);
+<br />
+<br /> </span><span style="color: #0000BB">$grid </span><span style="color: #007700">= new </span><span style="color: #0000BB">GridConnector</span><span style="color: #007700">(</span><span style="color: #0000BB">$res</span><span style="color: #007700">,</span><span style="color: #DD0000">"Postgre"</span><span style="color: #007700">);
+<br /> </span><span style="color: #0000BB">$grid</span><span style="color: #007700">-></span><span style="color: #0000BB">enable_log</span><span style="color: #007700">(</span><span style="color: #DD0000">"temp.log"</span><span style="color: #007700">,</span><span style="color: #0000BB">true</span><span style="color: #007700">);
+<br /> </span><span style="color: #0000BB">$grid</span><span style="color: #007700">-></span><span style="color: #0000BB">dynamic_loading</span><span style="color: #007700">(</span><span style="color: #0000BB">100</span><span style="color: #007700">);
+<br /> </span><span style="color: #0000BB">$grid</span><span style="color: #007700">-></span><span style="color: #0000BB">render_table</span><span style="color: #007700">(</span><span style="color: #DD0000">"grid50000"</span><span style="color: #007700">,</span><span style="color: #DD0000">""</span><span style="color: #007700">,</span><span style="color: #DD0000">"item_nm,item_cd"</span><span style="color: #007700">);
+<br /></span><span style="color: #0000BB">?></span>
+</span>
</code></div></body>
</html>
|