Location: PHPKode > projects > AModules3 > amodules-3.0.1/mini-apps/02-DBver_control/page/Application/version.php
<?php
/*
 * Created on 26.03.2006 by *Camper*
 */
class page_Application_version extends Page{
	function init(){
		parent::init();
		$this->add('ListVersion', null, 'Content');
		$this->api->memorize('application_id', $_GET['id']);
	}
}
class ListVersion extends Grid{
	function init(){
		parent::init();
		$this
			->addColumn('text', 'name', 'Version number')
			->addColumn('text', 'description', 'Version summary')
			->addColumn('expander', 'edit', 'Edit')
			->addColumn('expander', 'deploy', 'Deploy')
			
			->setSource('version')
		;
		$this->dq->where('application_id', $_GET['id']);
		$this->api->memorize('application_id', $_GET['id']);
		$this->dq->order('id', true);
		$this->addButton('Add version')->redirect('AddVersion');
	}
}
Return current item: AModules3