Agile Toolkit is a PHP UI framework, which comes with Object-Oriented User Interface. Pure HTML is produced when objects are rendered recursively. jQuery and jQuery UI widgets are used to enhance the output and implement AJAX. Here is a simple code snippet:
class page_users extends Page {
function page_index(){
$crud=$this->add('CRUD');
$crud->setModel('User',null,array('id','email','name','status'));
if($crud->grid){
$crud->grid->addColumn('expander','more','More...');
}
}
function page_more(){
$tt=$this->add('Tabs');
$tabs=$this->add('Tabs');
$tab=$tt->addTab('BasicInfo');
$tab->add('MVCForm')->setModel('User')->loadData($_GET['id']);
$tabs->addTabURL('../password','Password');
$tabs->addTabURL('../activity','Activity');
$tabs->addTabURL('../engage','Engage');
}
}
Interface is based on jQuery UI CSS Framework and therefore can be themed using Themeroller. Interaction with HTML, JS or AJAX is handled by Agile Toolkit but can be enhanced or replaced by developer. Above code alone will produce this:
The object structure is well-designed and can be used in major web projects. Agile Toolkit is available under OpenSource license.
See also: atk4
I'm one of the authors of this wonderful toolkit.