I have successfully loaded the extension and I am able to use it to generate code. Regardless of what I do, I cannot get the grid to render on the page. I tried turning on error logging but it does not show any errors. I have attached a copy of my code below, as well as the link to the page that should be showing the data grid. Any help would be much appreciated. Thanks!
The URL to the page that should display the grid is http://www.apocryphaportal.com/AjaxTest.php
My code is below:
<?php ini_set('display_errors',1); error_reporting(E_ALL); ?>
<?php //*************** // Ajax DataGrid //*************** require_once('../dwzGrid/AjaxDataGrid.php'); ?> <?php require_once('../Connections/text_profile.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; }
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "long": case "int": $theValue = ($theValue != "") ? intval($theValue) : "NULL"; break; case "double": $theValue = ($theValue != "") ? doubleval($theValue) : "NULL"; break; case "date": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "defined": $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue; break; } return $theValue; } }
mysql_select_db($database_text_profile, $text_profile); $query_Recordset1 = "SELECT * FROM t_translator"; $Recordset1 = mysql_query($query_Recordset1, $text_profile) or die(mysql_error()); $row_Recordset1 = mysql_fetch_assoc($Recordset1); $totalRows_Recordset1 = mysql_num_rows($Recordset1);
ini_set('display_errors',1); error_reporting(E_ALL);
mysql_free_result($Recordset1); ?> <?php //****************************** // http://www.DwZone-it.com // Ajax DataGrid // Version 1.4.19 //****************************** $dwzGrid_1 = new dwzAjaxDataGrid(); $dwzGrid_1->Init(); $dwzGrid_1->SetInstance("1"); $dwzGrid_1->SetRootPath("../"); $dwzGrid_1->SetCnString("text_profile"); $dwzGrid_1->SetEditPar("void|_@_|void|_@_|t_translator|_@_|translator_id|_@_|ALL|_@_|false"); $dwzGrid_1->Add("translator_last", "Last", "20", "String", "Left", "Y", "Y", "N|_@_|Y|_@_|50|_@_|3|_@_|TextBox|_@_||_@_||_@_||_@_||_@_||_@_||_@_|Void|_@_||_@_|false|_@_||_@_||_@_||_@_||_@_||_@_||_@_|20|_@_|12|_@_||_@_||_@_|None|_@_|rec_placeholder|_@_|Y|_@_|None|_@_|None|_@_|", Null); $dwzGrid_1->Add("translator_first", "First", "30", "String", "Left", "Y", "Y", "N|_@_|Y|_@_|50|_@_|3|_@_|TextBox|_@_||_@_||_@_||_@_||_@_||_@_||_@_|Void|_@_||_@_|false|_@_||_@_||_@_||_@_||_@_||_@_||_@_|20|_@_|12|_@_||_@_||_@_|None|_@_|rec_placeholder|_@_|Y|_@_|None|_@_|None|_@_|", Null); $dwzGrid_1->AddDetailPar(""); $dwzGrid_1->AddDetailFields(""); $dwzGrid_1->SaveDelete(); $dwzGrid_1->SetRecordset($Recordset1); $dwzGrid_1->SetDetailRecordset("NULL"); $dwzGrid_1->SetMainPar("400|_@_|250|_@_|void|_@_|true|_@_|true|_@_|true|_@_|true|_@_|true|_@_|true|_@_|true|_@_|true|_@_|true|_@_|false|_@_|false|_@_|false|_@_|true|_@_|true|_@_|true|_@_|15|_@_|10,15,20,25,40|_@_||_@_|Form|_@_|en|_@_|utf-8;65001;Unicode (UTF-8)|_@_|like|_@_|date|_@_||_@_|true|_@_|Required|_@_|Max length must be {1}|_@_|Text format|_@_|Date format|_@_|Min value must be {1}|_@_|Max value must be {1}|_@_|Not the first item|_@_|true|_@_||_@_|false|_@_|false|_@_|false|_@_|false|_@_|false|_@_|,|_@_|No|_@_|false|_@_|root|_@_|row|_@_|Nodes|_@_|false|_@_|None;12;#000000;false;false;false;#FFFFFF|_@_|None;12;#000000;false;false;false;#FFFFFF;0;#000000;0,3|_@_|A4;L;25;25;25;25;false;Center;1|_@_|No|_@_||_@_||_@_||_@_|#000000|_@_|0.6|_@_|10|_@_|350|_@_|_s|_@_|false|_@_|None|_@_|<b>{0} - {1} Item(s)</b>|_@_|false|_@_|false|_@_|false|_@_|false|_@_|false|_@_|ASC|_@_|false|_@_|false|_@_||_@_||_@_||_@_||_@_||_@_||_@_|true|_@_|true|_@_|true|_@_|0|_@_|false|_@_|false|_@_||_@_|true"); $dwzGrid_1->CreateData(); ?>
<?php //****************************** // Ajax DataGrid //****************************** $dwzGrid_1->GetHeadCode(); //****************************** // Ajax DataGrid //****************************** ?> <?php //****************************** // Ajax DataGrid //****************************** echo dwzGridGetHeadCode("../", "black-tie", "en"); //****************************** // Ajax DataGrid //****************************** ?> <body> <?php //****************************** // Ajax DataGrid //****************************** $dwzGrid_1->CreateGrid(); //****************************** // Ajax DataGrid //******************************
?>
</body> |
|
|