Location: PHPKode > projects > AModules3 > amodules-3.0.1/lib/Form/AjaxSubmit.php
<?
/**
 * Displays submit button
 *
 * @author		Romans <hide@address.com>
 * @copyright	See file COPYING
 * @version		$Id$
 */
class Form_AjaxSubmit extends AbstractView {
    public $label;
    function setLabel($_label){
        $this->label=$_label;
    }
    function render(){
        $this->owner->template_chunks['form']->append('form_buttons',
		'<input type="button" value="'.$this->label.'" onclick="submit_'.$this->owner->name.'(\''.$this->name.'\')">');
    }
}
Return current item: AModules3