Beispiel #1
0
 /**
  * Form to register a new application.
  */
 public function RegisterForm()
 {
     $db =& $this->db;
     $user =& $this->user;
     $response = new ResponseManager();
     Theme::Set('form_id', 'RegisterOAuth');
     Theme::Set('form_action', 'index.php?p=oauth&q=Register');
     $formFields = array();
     $formFields[] = FormManager::AddText('requester_name', __('Full Name'), NULL, __('The name of the person or organization that authored this application.'), 'n', 'required');
     $formFields[] = FormManager::AddEmail('requester_email', __('Email Address'), NULL, __('The email address of the person or organization that authored this application.'), 'e', 'required');
     $formFields[] = FormManager::AddText('application_uri', __('Application Homepage'), NULL, __('The URL of your application homepage'), 'h', '');
     $formFields[] = FormManager::AddText('callback_uri', __('Application Homepage'), NULL, __('The call back URL for requests'), 'c', '');
     Theme::Set('form_fields', $formFields);
     $response->SetFormRequestResponse(NULL, __('Registration for Consumer Information'), '550px', '475px');
     $response->AddButton(__('Help'), "XiboHelpRender('index.php?p=help&q=Display&Topic=Services&Category=Register')");
     $response->AddButton(__('Cancel'), 'XiboDialogClose()');
     $response->AddButton(__('Register'), '$("#RegisterOAuth").submit()');
     $response->Respond();
 }