setLabel(_('Plan type:')) ->setMultiOptions($productTypes) ->setRequired(true) ->setValue($currentPlanProductId); $this->addElement($pid); //Logging::info(BillingController::getClientCurrentAirtimeProduct()); $billingcycle = new Zend_Form_Element_Radio('newproductbillingcycle'); $billingCycleOptionMap = array('monthly' => 'Monthly', 'annually' => 'Annually'); if (!array_key_exists($currentPlanProductBillingCycle, $billingCycleOptionMap)) { $currentPlanProductBillingCycle = 'monthly'; } $billingcycle->setLabel(_('Billing cycle:')) ->setMultiOptions($billingCycleOptionMap) ->setRequired(true) ->setValue($currentPlanProductBillingCycle); $this->addElement($billingcycle); $paymentmethod = new Zend_Form_Element_Radio('paymentmethod'); $paymentmethod->setLabel(_('Payment method:')) ->setRequired(true) ->setMultiOptions(array( 'paypal' => _('PayPal'), 'tco' => _('Credit Card via 2Checkout'))) ->setValue('paypal'); $this->addElement($paymentmethod); /*$submit = new Zend_Form_Element_Submit("submit"); $submit->setIgnore(true) ->setLabel(_("Save")); $this->addElement($submit);*/ $client = new Application_Form_BillingClient(); $client->removeElement("password2"); $client->removeElement("password2verify"); $this->addSubForm($client, 'billing_client_info'); } }