about
This is a fully featured php grid control. It allow you to do CRUD opperations and stuff. The code you have to write:
$type = array('idUser'=>'int', 'birthDate' => 'date', 'profile' => 'list', 'name' => 'bool'); $headerList = array('idUser' => 'Id', 'username' => 'User', 'name' => 'Name', 'email'=> 'Email', 'birthDate' => 'Birthdate', 'image'=> 'Pic', 'profile' => 'Profile'); $hiddenList = array('idUser' => 'true'); $list2 = array('1' => 'aaa', '2' => 'bbb', '3' => 'ccc'); $attributeList = array('profile' => $list2); //Method links $listAll = 'http://localhost/mygrid/index.php?action=getList'; $update = 'http://localhost/mygrid/index.php?action=update'; $delete = 'http://localhost/mygrid/index.php?action=delete'; $create = 'http://localhost/mygrid/index.php?action=insert'; $container = 'mygrid'; $grid = new MyGrid($container, $listAll, $update, $create, $delete, $type, $attributeList, $headerList, $hiddenList, null); $grid->width = 710; $grid->height = 250; $grid->key = 'idUser'; //$grid->style = 'dark'; $grid->pageLimit = 2; $grid->showGrid();
page revision: 0, last edited: 26 Oct 2009 10:37





