Location: PHPKode > projects > AModules3 > amodules-3.0.1/mini-apps/02-DBver_control/FormVersion.php
<?php
/*
 * Created on 26.03.2006 by *Camper*
 */
class FormVersion extends Form{
	function init(){
		parent::init();
		$this
			->addField('line', 'name', 'Version number')
			->addField('text', 'description', 'Version summary')
			
			->addSubmit('Save')
			
			->setSource('version')
			->addConditionFromGet('id')
		;
	}
	function submitted(){
		if(parent::submitted()){
			$this->dq->set('application_id', $this->api->recall('application_id'));
			$id = $this->update();
			$this->api->redirect('Application');
		}
	}
}
?>
Return current item: AModules3