Structures_DataGrid_Renderer_HTMLTable

From: Date: Thu, 31 Jul 2008 07:45:25 +0000
Subject: Structures_DataGrid_Renderer_HTMLTable
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-29105@lists.php.net to get a copy of this message
Hi folks! I am currently using this Code: *require 'Structures/DataGrid.php';* *// 10 records per page $datagrid =& new Structures_DataGrid(20);* *// Setup your datasource $options = array('dbc' => $db); $test = $datagrid->bind($query, $options); $datagrid->setRendererOption('sortIconASC', '<img src="pics/asc.gif" alt="aufsteigend">'); $datagrid->setRendererOption('sortIconDESC', '<img src="pics/desc.gif" alt="absteigend">'); $datagrid->setRendererOption('convertEntities', false);* * // Print the DataGrid with the default renderer (HTML Table) $test = $datagrid->render(); * *// Print the HTML paging links $test = $datagrid->render(DATAGRID_RENDER_PAGER); if (PEAR::isError($test)) { echo $test->getMessage(); }* I've left some of the code (such as page-specific or error-handling) and it works fine! *BUT*: I would like to modify the content of the table, i.e. that the result of the DB-query is put between anchor-tags. Is there any way, I can change the contet?

« previous php.pear.general (#29105) next »