DwZone Forum DwZone Forum
Welcome to the DwZone-it Forum
 
  FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  
    RegisterRegister -->   LoginLogin  
Ajax DataGrid  
DwZone Forum Index -> Ajax DataGrid
.
Moderators: AdministratorsModerators 
Hint: For improved responsiveness, use Internet Explorer 4 (or above) with Javascript enabled, choose 'Dynamic' from the View dropdown and hit 'Set Options' to save your changes.
New Topic Search for
 View     Per page     Messages Since 
Messages 31 to 40 of 96 (Total: 94) First |  Prev |  Next |  Last  
 Subject Author Date  
   Re: DataGrid not displaying in page (page is blank)  
View this persons public profile  Gianluigi   8:08 3 Jul 2015  
    Re: DataGrid not displaying in page (page is blank)  
View this persons public profile  Esperanza   7:08 6 Oct 2016  
 
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
 
Reply to this current thread  View this persons public profile  Send Private Message
   Re: DataGrid not displaying in page (page is blank)  
View this persons public profile  Gianluigi   11:53 6 Oct 2016  
   how to remove message on update  
View this persons public profile  ulises   7:05 8 Jun 2015  
   Re: how to remove message on update  
View this persons public profile  Gianluigi   10:09 8 Jun 2015  
   Did not get Dynamicly data as URL  
View this persons public profile  Andreas   9:22 21 Apr 2015  
   Re: Did not get Dynamicly data as URL  
View this persons public profile  Andreas   9:40 21 Apr 2015  
   Search and then create record on other table  
View this persons public profile  ulises   6:53 27 Mar 2015  
   Re: Search and then create record on other table  
View this persons public profile  Gianluigi   10:51 27 Mar 2015  
   datagrid pops blank  
View this persons public profile  ulises   13:18 26 Mar 2015  
Last Visit: Friday 3 May, 2024 9:35 pm First |  Prev |  Next |  Last  
 Login
Username:  Password:    
Read Message Read Message   Unread message Unread message
Read message [popular] Read message [popular]   Unread message [popular] Unread message [popular]
Read message [locked] Read message [locked]   Unread message [locked] Unread message [locked]
All times are GMT-2

Jump to: