public function createRunForm() { $form = new Am_Form(); $form->setAction($this->getUrl(null, 'run')); $s = $form->addSelect('paysys_id')->setLabel(___('Choose a plugin')); $s->addRule('required'); foreach ($this->getModule()->getPlugins() as $p) { $s->addOption($p->getTitle(), $p->getId()); } $form->addDate('date')->setLabel(___('Run Rebill Manually'))->addRule('required'); $form->addHidden('back_url'); $form->addSubmit('run', array('value' => ___('Run'))); return $form; }