Hello.
I have the same problem.
Page blank
I have this directory
root\vistas\prueba.php
root\dwzGrid
the code is this:
<?php //*************** // Ajax DataGrid //*************** require_once('../dwzGrid/AjaxDataGrid.php'); ?><?php require_once('../Connections/Conecta.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_Conecta, $Conecta); $query_Fpsico = "SELECT * FROM colores"; $Fpsico = mysql_query($query_Fpsico, $Conecta) or die(mysql_error()); $row_Fpsico = mysql_fetch_assoc($Fpsico); $totalRows_Fpsico = mysql_num_rows($Fpsico); ?><?php //****************************** // http://www.DwZone-it.com // Ajax DataGrid // Version 1.4.28 //****************************** $dwzGrid_1 = new dwzAjaxDataGrid(); $dwzGrid_1->Init(); $dwzGrid_1->SetInstance("1"); $dwzGrid_1->SetRootPath("../"); $dwzGrid_1->SetCnString("Conecta"); $dwzGrid_1->SetEditPar("void|_@_|void|_@_|colores|_@_|id_color|_@_|ALL|_@_|true"); $dwzGrid_1->Add("Dimension", "Dimensiones", "25", "String", "Left", "N", "Y", "Y|_@_|Y|_@_|50|_@_||_@_|TextBox|_@_||_@_||_@_||_@_||_@_||_@_||_@_|Void|_@_||_@_|false|_@_||_@_||_@_||_@_||_@_||_@_||_@_||_@_|25|_@_||_@_||_@_|None|_@_|rec_placeholder|_@_|Y|_@_|None|_@_|None|_@_|", Null); $dwzGrid_1->Add("Iniciales", "Iniciales", "10", "String", "Left", "N", "Y", "Y|_@_|Y|_@_|10|_@_||_@_|TextBox|_@_||_@_||_@_||_@_||_@_||_@_||_@_|Void|_@_||_@_|false|_@_||_@_||_@_||_@_||_@_||_@_||_@_||_@_|3|_@_||_@_||_@_|None|_@_|rec_placeholder|_@_|Y|_@_|None|_@_|None|_@_|", Null); $dwzGrid_1->Add("Verde", "Verde", "10", "String", "Left", "N", "Y", "Y|_@_|Y|_@_|10|_@_||_@_|TextBox|_@_||_@_||_@_||_@_||_@_||_@_||_@_|Void|_@_||_@_|false|_@_||_@_||_@_||_@_||_@_||_@_||_@_||_@_|10|_@_||_@_||_@_|None|_@_|rec_placeholder|_@_|Y|_@_|None|_@_|None|_@_|", Null); $dwzGrid_1->AddDetailPar(""); $dwzGrid_1->AddDetailFields(""); $dwzGrid_1->SaveDelete(); $dwzGrid_1->SetRecordset($Fpsico); $dwzGrid_1->SetDetailRecordset("NULL"); $dwzGrid_1->SetMainPar("400|_@_|250|_@_|black-tie|_@_|false|_@_|false|_@_|true|_@_|false|_@_|false|_@_|true|_@_|false|_@_|false|_@_|false|_@_|false|_@_|true|_@_|false|_@_|true|_@_|false|_@_|true|_@_|15|_@_|10,15,20,25,40|_@_|Colores de informes|_@_|Form|_@_|sp|_@_|utf-8;65001;Unicode (UTF-8)|_@_|like|_@_|date|_@_|Actualizar|_@_|false|_@_|Required|_@_|Max length must be {1}|_@_|Text format|_@_|Date format|_@_|Min value must be {1}|_@_|Max value must be {1}|_@_|Not the first item|_@_|false|_@_||_@_|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|_@_||_@_||_@_||_@_||_@_|400|_@_|250|_@_|false|_@_|false|_@_|false|_@_|0|_@_|false|_@_|false|_@_||_@_|false"); $dwzGrid_1->CreateData(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <?php //****************************** // Ajax DataGrid //****************************** echo dwzGridGetHeadCode("../", "black-tie", "sp"); //****************************** // Ajax DataGrid //****************************** ?><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Nuevo informe</title> <link rel="stylesheet" href="../css/jquery-ui.css"> <link rel="stylesheet" href="../css/jquery-ui.min.css"> <link rel="stylesheet" type="text/css" href="../css/estilos.css"/> <script src="https://code.jquery.com/jquery-1.12.4.js"></script> <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> <script src="https://code.jquery.com/jquery-1.11.1.min.js"></script><?php //****************************** // Ajax DataGrid //****************************** $dwzGrid_1->GetHeadCode(); //****************************** // Ajax DataGrid //****************************** ?> </head>
<body> <div class="container"> <div class="header"> <table width="100%"> <tr> <td><p><img src="../img/afforTransp.png" width="250" height="71" alt="Affor" /></p></td> <td align="right" valign="middle"><p>Gestión de informes FPSICO</p></td> </tr> </table> </div>
<div class="sidebar1"> <ul class="nav"> <li>Informes</li> <li><a href="nuevo_informe.php">Nuevo</a></li> <li><a href="operaciones.php" target="_self">Operaciones</a></li> <li>Administración</li> <li><a href="colores.php" target="_self">Colores</a></li> <li><a href="pesos.php" target="_self">Pesos</a></li> </ul> <!-- end .Slider--></div> </div> <div class="content">
<p> <?php //****************************** // Ajax DataGrid //****************************** $dwzGrid_1->CreateGrid(); //****************************** // Ajax DataGrid //****************************** ?></p>
</div> <div class="footer"> <p style="text-align: center">(c)Affor Prevención Psicosocial 2016</p> <p> </p> </div> </body> </html> <?php mysql_free_result($Fpsico); ?>
Thank's
Esperanza |
|
|