Beispiel #1
0
 /**
  * accountAction
  * Manage the Isp account settings.
  * @return void
  */
 public function accountAction()
 {
     $form = $this->getForm('/admin/isp/process');
     $this->view->form = $form;
     $this->view->mex = $this->getRequest()->getParam('mex');
     $this->view->mexstatus = $this->getRequest()->getParam('status');
     $this->view->title = $this->translator->translate("ISP Account");
     $this->view->description = $this->translator->translate("Here you can edit your ISP account information");
     $this->view->serversgrid = $this->serversGrid();
     // Create the buttons in the edit form
     $this->view->buttons = array(array("url" => "#", "label" => $this->translator->translate('Save'), "params" => array('css' => null, 'id' => 'submit')));
     $isp = ISP::find($this->isp['isp_id'])->toArray();
     // the password is a MD5 string so we need to empty it, because the software could save the MD5 value again.
     $isp['password'] = "";
     $form->populate($isp);
     $this->view->srclogo = !empty($isp['logo']) ? "/documents/isp/" . $isp['logo'] : null;
     $this->view->srclogoemail = !empty($isp['logo_email']) ? "/documents/isp/" . $isp['logo_email'] : null;
     $this->render('applicantform');
 }