Esempio n. 1
0
 /**
  * getForm
  * Get the customized application form 
  * @return unknown_type
  */
 private function getForm($action)
 {
     $form = new Admin_Form_CustomersForm(array('action' => $action, 'method' => 'post'));
     // Add the customer custom attributes
     $form = CustomAttributes::getElements($form, "customers");
     return $form;
 }
Esempio n. 2
0
 /**
  * getForm
  * Get the customized application form 
  * @return unknown_type
  */
 private function getForm($action, $serverId = NULL)
 {
     $form = new Admin_Form_ServersForm(array('action' => $action, 'method' => 'post'));
     $rs = Servers::getAll($serverId);
     $panel_id = isset($rs['panel_id']) ? $rs['panel_id'] : null;
     // Add the customer custom attributes
     $form = CustomAttributes::getElements($form, "servers", $panel_id);
     return $form;
 }