<?php
require 'Structures/DataGrid.php';
class myDataGrid extends Structures_DataGrid
{
function myDataGrid($limit = null, $page = null)
{
parent::Structures_DataGrid($limit, $page);
// Get the rendering layer instance
$renderer =& $this->getRenderer();
// Define DataGrid Color Attributes
$renderer->setTableEvenRowAttributes(array('class' => 'evenrow'));
$renderer->setTableOddRowAttributes(array('class' => 'oddrow'));
// Define DataGrid Table Attributes
$renderer->setTableAttribute('width', '100%');
$renderer->setTableAttribute('cellspacing', '1');
$renderer->setTableAttribute('cellpadding', '4');
$renderer->setTableAttribute('class', 'datagrid');
// Set sorting icons
$renderer->sortIconASC = '↑';
$renderer->sortIconDESC = '↓';
}
}
?> |