Location: PHPKode > projects > xajaxGrid > xajaxGrid/doc-es/html/classxajaxGrid.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>xajaxGrid: Referencia de la Clase xajaxGrid</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generado por Doxygen 1.4.6 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Página&nbsp;principal</span></a></li>
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
    <li id="current"><a href="annotated.html"><span>Clases</span></a></li>
    <li><a href="files.html"><span>Archivos</span></a></li>
  </ul></div>
<div class="tabs">
  <ul>
    <li><a href="annotated.html"><span>Lista&nbsp;de&nbsp;componentes</span></a></li>
    <li><a href="hierarchy.html"><span>Jerarquía&nbsp;de&nbsp;la&nbsp;clase</span></a></li>
    <li><a href="functions.html"><span>Miembros&nbsp;de&nbsp;las&nbsp;clases</span></a></li>
  </ul></div>
<h1>Referencia de la Clase xajaxGrid</h1><!-- doxytag: class="xajaxGrid" --><a href="classxajaxGrid-members.html">Lista de todos los miembros.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Métodos públicos</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxajaxGrid.html#170a92b9210a67c7c8a45ffcb4154c7d">xajaxGrid</a> ($cols, $start=0, $limit, $filter=null, $numRows=0, $content=null, $order=null)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor de la clase.  <a href="#170a92b9210a67c7c8a45ffcb4154c7d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxajaxGrid.html#23067ba557f611b2cbeface93b4fd7e6">setHeader</a> ($class, $headers, $attribs, $events, $edit=true, $delete=true)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Pone los encabezados de la tabla con los atributos sobre la valriable $header de la clase.  <a href="#23067ba557f611b2cbeface93b4fd7e6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxajaxGrid.html#e85bf0fd5a7624018fb2091fcc7ebee5">setAttribsCols</a> ($attribsCols)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Pone los atributos para las columnas de la tabla.  <a href="#e85bf0fd5a7624018fb2091fcc7ebee5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxajaxGrid.html#edd31c006ebda9c13d08f0bb61e907a3">addRow</a> ($table, $arr, $edit=true, $delete=true, $divName=&quot;grid&quot;, $fields=null)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Agrega cada linea generada dinamicamente de los registros obtenidos de la base de datos.  <a href="#edd31c006ebda9c13d08f0bb61e907a3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxajaxGrid.html#aedc324aced641dd6346de3dad0f64fb">addRow2</a> ($table, $arr)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Agrega cada linea generada dinamicamente de los registros obtenidos de la base de datos pero sin las columnas de Edicion y Borrar.  <a href="#aedc324aced641dd6346de3dad0f64fb"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxajaxGrid.html#d80ce8754bf2654965ad569ecce03e86">addRowSearch</a> ($table, $fieldsFromSearch, $fieldsFromSearchShowAs, $withNewButton=1)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Agrega la linea con la forma de busqueda y kis botones de Agregar Nuevo Registro.  <a href="#d80ce8754bf2654965ad569ecce03e86"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxajaxGrid.html#732b7b0efd1810d35b569b66ce4c117e">setFooter</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Agreaga el final de la tabla (GRID) mostrando informacion del numero de registros totales, registros de la pagina anterior, registros iniciales, registros de la pagina siguiente y de la pagina final.  <a href="#732b7b0efd1810d35b569b66ce4c117e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxajaxGrid.html#c94e56c508caa63dc93bef30632b3a13">render</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Esto conjunta las variables $this-&gt;search .  <a href="#c94e56c508caa63dc93bef30632b3a13"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Atributos públicos</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxajaxGrid.html#80249a9274c9470605a7a233d85d6e8d">$n_cols</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><em>integer</em> Numero de columnas de la tabla  <a href="#80249a9274c9470605a7a233d85d6e8d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxajaxGrid.html#342b8f5355909e66f39b232eb6f4cfb8">$search</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><em>string</em> Lineas a desplegar en la forma de busqueda  <a href="#342b8f5355909e66f39b232eb6f4cfb8"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxajaxGrid.html#eaf004bef42d8c1a11efc3e918f88ab5">$top</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><em>string</em> Contenido de la parte superior de la tabla HTML  <a href="#eaf004bef42d8c1a11efc3e918f88ab5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxajaxGrid.html#4a0340a62a975aa1df73ec50909188cc">$header</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><em>string</em> Contenido de los encabezados de la tabla  <a href="#4a0340a62a975aa1df73ec50909188cc"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxajaxGrid.html#6f5febb45be829173d2de57fc78c6e27">$rows</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><em>string</em> Contenido de cada una de las filas de la tabla  <a href="#6f5febb45be829173d2de57fc78c6e27"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxajaxGrid.html#e01f989fb4fab4e90b9a106c2fe32639">$footer</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><em>string</em> Contenido de la parte final de la tabla  <a href="#e01f989fb4fab4e90b9a106c2fe32639"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxajaxGrid.html#ca57d3372b5d2a689414532510dbb40a">$rowStyle</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><em>string</em> Estilo aplicado a cada linea de la tabla  <a href="#ca57d3372b5d2a689414532510dbb40a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxajaxGrid.html#1837ef5a5509e276a42d4d7657afaf8d">$colAttrib</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><em>string</em> Atributos para cada una de las columnas de la tabla  <a href="#1837ef5a5509e276a42d4d7657afaf8d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxajaxGrid.html#19bec911e4b48d94f68fefafa28c96a6">$limit</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><em>integer</em> Contiene el limite de registros que seran mostrados en la sentencia SQL.  <a href="#19bec911e4b48d94f68fefafa28c96a6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxajaxGrid.html#12f59c09e4ba131daf3b9ae7f28ddbbc">$start</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><em>integer</em> Contiene el registro inicial que sera mostrado en la sentencia SQL ejecutada.  <a href="#12f59c09e4ba131daf3b9ae7f28ddbbc"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxajaxGrid.html#76df6532a255a6ac51a6fbd6efd1dc9e">$filter</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><em>string</em> Contiene el filtro para la sentencia SQL ejecutada.  <a href="#76df6532a255a6ac51a6fbd6efd1dc9e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxajaxGrid.html#28bd5ca9cf7fd5aeb7bcb580d866c270">$numRowsToShow</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><em>integer</em> Contiene el numero total de lineas a mostrar en la tabla.  <a href="#28bd5ca9cf7fd5aeb7bcb580d866c270"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxajaxGrid.html#1afdde462f5791ce3912d8a2d27a7549">$numRows</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><em>integer</em> Contiene el numero total de lineas mostradas en la sentencia SQL ejecutada.  <a href="#1afdde462f5791ce3912d8a2d27a7549"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxajaxGrid.html#02cfe67d4450a70b02f298d4c22c1735">$content</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><em>string</em> Es el contenido de la busqueda en la sentencia SQL.  <a href="#02cfe67d4450a70b02f298d4c22c1735"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxajaxGrid.html#37ddd348a83e1fd811f2373a50362a8e">$order</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><em>string</em> Es el campo por el cual sera ordenados los datos en la tabla.  <a href="#37ddd348a83e1fd811f2373a50362a8e"></a><br></td></tr>
</table>
<hr><h2>Documentación del constructor y destructor</h2>
<a class="anchor" name="170a92b9210a67c7c8a45ffcb4154c7d"></a><!-- doxytag: member="xajaxGrid::xajaxGrid" ref="170a92b9210a67c7c8a45ffcb4154c7d" args="($cols, $start=0, $limit, $filter=null, $numRows=0, $content=null, $order=null)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">xajaxGrid::xajaxGrid           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname" nowrap> <em>cols</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>start</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>limit</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>filter</em> = <code>null</code>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>numRows</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>content</em> = <code>null</code>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>order</em> = <code>null</code></td>
        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Constructor de la clase. 
<p>
<dl compact><dt><b>Parámetros:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>integer</em>&nbsp;</td><td>$cols: Cantidad de columnas de la tabla. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>integer</em>&nbsp;</td><td>$start: Registro inicial a mostrar. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>integer</em>&nbsp;</td><td>$limit: Registro final a mostrar. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$filter: Nombre del campo de la tabla de la base de datos </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>integer</em>&nbsp;</td><td>$numRows: Numero de lineas de la busqueda </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$content: Contenido a buscar </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$order: Campo para ordenar los datos en la tabla </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<hr><h2>Documentación de las funciones miembro</h2>
<a class="anchor" name="edd31c006ebda9c13d08f0bb61e907a3"></a><!-- doxytag: member="xajaxGrid::addRow" ref="edd31c006ebda9c13d08f0bb61e907a3" args="($table, $arr, $edit=true, $delete=true, $divName=&quot;grid&quot;, $fields=null)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">xajaxGrid::addRow           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname" nowrap> <em>table</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>arr</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>edit</em> = <code>true</code>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>delete</em> = <code>true</code>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>divName</em> = <code>&quot;grid&quot;</code>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>fields</em> = <code>null</code></td>
        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Agrega cada linea generada dinamicamente de los registros obtenidos de la base de datos. 
<p>
<dl compact><dt><b>Parámetros:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$table Nombre de la tabla de la base de datos a usar. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>array</em>&nbsp;</td><td>$arr Arreglo con los datos extraidos como resultado de la sentencia SQL ejecutada. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>boolen</em>&nbsp;</td><td>$edit Bandera para determinar si es mostrada la columna de Edicion. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>boolen</em>&nbsp;</td><td>$delete Bandera para determinar si es mostrada la columna de Borrar. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$divName Nombre del elemendio tipo DIV donde sera desplegado el GRID. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>array</em>&nbsp;</td><td>$fields Arreglo que contiene todos los nombre de los campos de la tabla de la base de datos. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Devuelve:</b></dt><dd>none </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="aedc324aced641dd6346de3dad0f64fb"></a><!-- doxytag: member="xajaxGrid::addRow2" ref="aedc324aced641dd6346de3dad0f64fb" args="($table, $arr)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">xajaxGrid::addRow2           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname" nowrap> <em>table</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>arr</em></td>
        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Agrega cada linea generada dinamicamente de los registros obtenidos de la base de datos pero sin las columnas de Edicion y Borrar. 
<p>
<dl compact><dt><b>Parámetros:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$table Nombre de la tabla de la base de datos a usar. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>array</em>&nbsp;</td><td>$arr Arreglo con los datos extraidos como resultado de la sentencia SQL ejecutada. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Devuelve:</b></dt><dd>none </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="d80ce8754bf2654965ad569ecce03e86"></a><!-- doxytag: member="xajaxGrid::addRowSearch" ref="d80ce8754bf2654965ad569ecce03e86" args="($table, $fieldsFromSearch, $fieldsFromSearchShowAs, $withNewButton=1)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">xajaxGrid::addRowSearch           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname" nowrap> <em>table</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>fieldsFromSearch</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>fieldsFromSearchShowAs</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>withNewButton</em> = <code>1</code></td>
        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Agrega la linea con la forma de busqueda y kis botones de Agregar Nuevo Registro. 
<p>
<dl compact><dt><b>Parámetros:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$table Nombre de la tabla de la base de datos a usar. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>array</em>&nbsp;</td><td>$fieldsFromSearch Contiene los valores del elemento "SELECT de la forma. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>array</em>&nbsp;</td><td>$fieldsFromSearchShowAs Contiene las etiquetas mostradas del elemento "SELECT" de la forma. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>boolen</em>&nbsp;</td><td>$withNewButton Si es 0, entonces no imprime el boton de "Agregar Nuevo Registro". </td></tr>
  </table>
</dl>
<dl compact><dt><b>Devuelve:</b></dt><dd>nada </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="c94e56c508caa63dc93bef30632b3a13"></a><!-- doxytag: member="xajaxGrid::render" ref="c94e56c508caa63dc93bef30632b3a13" args="()" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">xajaxGrid::render           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Esto conjunta las variables $this-&gt;search . 
<p>
$this-&gt;top . $this-&gt;header . $this-&gt;rows . $this-&gt;footer ara crear la tabla con los datos (GRID).     </td>
  </tr>
</table>
<a class="anchor" name="e85bf0fd5a7624018fb2091fcc7ebee5"></a><!-- doxytag: member="xajaxGrid::setAttribsCols" ref="e85bf0fd5a7624018fb2091fcc7ebee5" args="($attribsCols)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">xajaxGrid::setAttribsCols           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>attribsCols</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Pone los atributos para las columnas de la tabla. 
<p>
<dl compact><dt><b>Parámetros:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>array</em>&nbsp;</td><td>$attribsCols Arreglo que contiene los atributos para los encabezados de la tabla </td></tr>
  </table>
</dl>
<dl compact><dt><b>Devuelve:</b></dt><dd>nada </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="732b7b0efd1810d35b569b66ce4c117e"></a><!-- doxytag: member="xajaxGrid::setFooter" ref="732b7b0efd1810d35b569b66ce4c117e" args="()" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">xajaxGrid::setFooter           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Agreaga el final de la tabla (GRID) mostrando informacion del numero de registros totales, registros de la pagina anterior, registros iniciales, registros de la pagina siguiente y de la pagina final. 
<p>
Cada uno de estos links son suprimidos cuando no aplica el criterio.     </td>
  </tr>
</table>
<a class="anchor" name="23067ba557f611b2cbeface93b4fd7e6"></a><!-- doxytag: member="xajaxGrid::setHeader" ref="23067ba557f611b2cbeface93b4fd7e6" args="($class, $headers, $attribs, $events, $edit=true, $delete=true)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">xajaxGrid::setHeader           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname" nowrap> <em>class</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>headers</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>attribs</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>events</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>edit</em> = <code>true</code>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>delete</em> = <code>true</code></td>
        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Pone los encabezados de la tabla con los atributos sobre la valriable $header de la clase. 
<p>
<dl compact><dt><b>Parámetros:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$class Estilo utilizado por la clase para la tabla HTML </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>array</em>&nbsp;</td><td>$options Arreglo que contiene las etiquetas de los encabezados </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>array</em>&nbsp;</td><td>$attribs Arreglo que contiene los atributos de los encabezados </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>array</em>&nbsp;</td><td>$events Arreglo que contiene los eventos de las etiquetas de los encabezados </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>boolean</em>&nbsp;</td><td>$edit Bandera para determinar si es mostrada la columna de Edicion. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>boolean</em>&nbsp;</td><td>$delete Bandera para determinar si es mostrada la columna de Borrar. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Devuelve:</b></dt><dd>nada </dd></dl>
    </td>
  </tr>
</table>
<hr><h2>Documentación de los datos miembro</h2>
<a class="anchor" name="1837ef5a5509e276a42d4d7657afaf8d"></a><!-- doxytag: member="xajaxGrid::$colAttrib" ref="1837ef5a5509e276a42d4d7657afaf8d" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">xajaxGrid::$colAttrib          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<em>string</em> Atributos para cada una de las columnas de la tabla 
<p>
    </td>
  </tr>
</table>
<a class="anchor" name="02cfe67d4450a70b02f298d4c22c1735"></a><!-- doxytag: member="xajaxGrid::$content" ref="02cfe67d4450a70b02f298d4c22c1735" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">xajaxGrid::$content          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<em>string</em> Es el contenido de la busqueda en la sentencia SQL. 
<p>
    </td>
  </tr>
</table>
<a class="anchor" name="76df6532a255a6ac51a6fbd6efd1dc9e"></a><!-- doxytag: member="xajaxGrid::$filter" ref="76df6532a255a6ac51a6fbd6efd1dc9e" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">xajaxGrid::$filter          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<em>string</em> Contiene el filtro para la sentencia SQL ejecutada. 
<p>
    </td>
  </tr>
</table>
<a class="anchor" name="e01f989fb4fab4e90b9a106c2fe32639"></a><!-- doxytag: member="xajaxGrid::$footer" ref="e01f989fb4fab4e90b9a106c2fe32639" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">xajaxGrid::$footer          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<em>string</em> Contenido de la parte final de la tabla 
<p>
    </td>
  </tr>
</table>
<a class="anchor" name="4a0340a62a975aa1df73ec50909188cc"></a><!-- doxytag: member="xajaxGrid::$header" ref="4a0340a62a975aa1df73ec50909188cc" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">xajaxGrid::$header          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<em>string</em> Contenido de los encabezados de la tabla 
<p>
    </td>
  </tr>
</table>
<a class="anchor" name="19bec911e4b48d94f68fefafa28c96a6"></a><!-- doxytag: member="xajaxGrid::$limit" ref="19bec911e4b48d94f68fefafa28c96a6" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">xajaxGrid::$limit          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<em>integer</em> Contiene el limite de registros que seran mostrados en la sentencia SQL. 
<p>
    </td>
  </tr>
</table>
<a class="anchor" name="80249a9274c9470605a7a233d85d6e8d"></a><!-- doxytag: member="xajaxGrid::$n_cols" ref="80249a9274c9470605a7a233d85d6e8d" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">xajaxGrid::$n_cols          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<em>integer</em> Numero de columnas de la tabla 
<p>
    </td>
  </tr>
</table>
<a class="anchor" name="1afdde462f5791ce3912d8a2d27a7549"></a><!-- doxytag: member="xajaxGrid::$numRows" ref="1afdde462f5791ce3912d8a2d27a7549" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">xajaxGrid::$numRows          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<em>integer</em> Contiene el numero total de lineas mostradas en la sentencia SQL ejecutada. 
<p>
    </td>
  </tr>
</table>
<a class="anchor" name="28bd5ca9cf7fd5aeb7bcb580d866c270"></a><!-- doxytag: member="xajaxGrid::$numRowsToShow" ref="28bd5ca9cf7fd5aeb7bcb580d866c270" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">xajaxGrid::$numRowsToShow          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<em>integer</em> Contiene el numero total de lineas a mostrar en la tabla. 
<p>
    </td>
  </tr>
</table>
<a class="anchor" name="37ddd348a83e1fd811f2373a50362a8e"></a><!-- doxytag: member="xajaxGrid::$order" ref="37ddd348a83e1fd811f2373a50362a8e" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">xajaxGrid::$order          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<em>string</em> Es el campo por el cual sera ordenados los datos en la tabla. 
<p>
    </td>
  </tr>
</table>
<a class="anchor" name="6f5febb45be829173d2de57fc78c6e27"></a><!-- doxytag: member="xajaxGrid::$rows" ref="6f5febb45be829173d2de57fc78c6e27" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">xajaxGrid::$rows          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<em>string</em> Contenido de cada una de las filas de la tabla 
<p>
    </td>
  </tr>
</table>
<a class="anchor" name="ca57d3372b5d2a689414532510dbb40a"></a><!-- doxytag: member="xajaxGrid::$rowStyle" ref="ca57d3372b5d2a689414532510dbb40a" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">xajaxGrid::$rowStyle          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<em>string</em> Estilo aplicado a cada linea de la tabla 
<p>
    </td>
  </tr>
</table>
<a class="anchor" name="342b8f5355909e66f39b232eb6f4cfb8"></a><!-- doxytag: member="xajaxGrid::$search" ref="342b8f5355909e66f39b232eb6f4cfb8" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">xajaxGrid::$search          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<em>string</em> Lineas a desplegar en la forma de busqueda 
<p>
    </td>
  </tr>
</table>
<a class="anchor" name="12f59c09e4ba131daf3b9ae7f28ddbbc"></a><!-- doxytag: member="xajaxGrid::$start" ref="12f59c09e4ba131daf3b9ae7f28ddbbc" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">xajaxGrid::$start          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<em>integer</em> Contiene el registro inicial que sera mostrado en la sentencia SQL ejecutada. 
<p>
    </td>
  </tr>
</table>
<a class="anchor" name="eaf004bef42d8c1a11efc3e918f88ab5"></a><!-- doxytag: member="xajaxGrid::$top" ref="eaf004bef42d8c1a11efc3e918f88ab5" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">xajaxGrid::$top          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<em>string</em> Contenido de la parte superior de la tabla HTML 
<p>
    </td>
  </tr>
</table>
<hr>La documentación para esta clase fué generada a partir del siguiente archivo:<ul>
<li>include/<a class="el" href="xajaxGrid_8inc_8php.html">xajaxGrid.inc.php</a></ul>
<hr size="1"><address style="align: right;"><small>Generado el Wed Sep 27 17:37:44 2006 para xajaxGrid por&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>
</body>
</html>
Return current item: xajaxGrid