1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| $form = new Zend_Form();
$idElement = $form->createElement('hidden', 'id')->setValue($id);
$keyElement = $form->createElement('hidden', 'key')->setValue($key);
$form->setMethod('post')
->setAttrib("target","_self")
->setAction(ROOT_URL . '/pay')
->addElement(
'CheckBox',
'cgu',
array(
'label' => 'I accept CGU',
'style' =>'margin-left:100px;',
'required' => true,
'checkedValue' => '1'
)
)
->addElement('submit', 'Accéder à la plateforme ', array('label' => 'Accéder à la plateforme'))
->addElement($idElement)
->addElement($keyElement);
$this->view->form = $form;
$this->view->dp = $dp; |