コード例 #1
0
 protected function createFormFields()
 {
     parent::createFormFields();
     if (empty($this->record['id'])) {
         $this->form->addField(new CoreFormFieldText('adminName'));
     }
     $this->form->addField(new CoreFormFieldPassword('adminPassword'));
     $this->form->addField(new CoreFormFieldPassword('adminPasswordConfirm'));
     if ($this->currentUser['adminRole'] == $this->adminRoles['adminRoleSuperadmin']) {
         $this->form->addField(new CoreFormFieldText('adminFirstName'));
         $this->form->addField(new CoreFormFieldText('adminSurname'));
         if ($this->record['id'] != $this->currentUser['id']) {
             $this->form->addField(new CoreFormFieldSelect('adminRole', null, array(0 => '<choose>') + CoreConfig::get('Data', 'adminRoles')));
         }
     }
 }
コード例 #2
0
 public function assignDisplayVariables()
 {
     parent::assignDisplayVariables();
     $display = CoreServices::get('display');
     $display->assign('sectionNumber', $this->sectionNumber);
     if (empty($this->trajectoryParams['error'])) {
         $display->assign('trajectoryParamsA', $this->trajectoryParams["A"]);
         $display->assign('trajectoryParamsH', $this->trajectoryParams["H"]);
         $display->assign('trajectoryParamsL', $this->trajectoryParams["L"]);
         $display->assign('trajectoryParamsR', $this->trajectoryParams["R"]);
         $display->assign('trajectoryParamsAlfa', $this->trajectoryParams["alfa"]);
         $display->assign('trajectoryParamsDelta', $this->trajectoryParams["delta"]);
         $display->assign('trajectoryParamsDLS', $this->trajectoryParams["DLS"]);
     }
     $display->assign('points3d', $this->points3d);
     $display->assign('trajectoryTable', $this->trajectoryTable);
     $display->assign('trajectory3DRender', $this->trajectory3DRender);
     $display->assign('trajectory3DRenderParam', $this->trajectory3DRenderParam);
     //print_r($this->trajectory3DRender);
     $display->assign('startingPoint', $this->startingPoint);
     $display->assign('trajectoryHaracteristicPoints', $this->trajectoryHaracteristicPoints);
     $display->assign('wellColor', $this->wellColor);
     if (!empty($this->defaultVsection)) {
         $display->assign('defaultVsection', $this->defaultVsection);
     }
 }
 public function assignDisplayVariables()
 {
     parent::assignDisplayVariables();
     $display = CoreServices2::getDisplay();
     $display->assign('recordType', $this->getRecordType());
     $display->assign('fileUrl', CoreServices::get('attachmentLocationManager'));
     foreach (array_keys($this->swfAttachmentTypes) as $listName) {
         if (!empty($this->fileList[$listName])) {
             $display->assign($listName, $this->fileList[$listName]);
         }
     }
     foreach (array_keys($this->allAttachmentTypes) as $listName) {
         if (!empty($this->fileListOldValues[$listName])) {
             $display->assign($listName . 'OldValues', $this->fileListOldValues[$listName]);
         }
     }
     $display->assign('maxFileSize', CoreConfig::get('CoreFiles', 'maxFileSize'));
 }
コード例 #4
0
 public function assignDisplayVariables()
 {
     parent::assignDisplayVariables();
     $display = CoreServices::get('display');
     $display->assign('stats', $this->stats);
 }
コード例 #5
0
 protected function handleDeleteRequest()
 {
     parent::handleDeleteRequest();
     $this->setRedirectAddress(CoreServices2::getUrl()->createAddress('_m', 'Home', '_o', 'CMSEdit'));
 }
コード例 #6
0
 public function assignDisplayVariables()
 {
     parent::assignDisplayVariables();
     $display = CoreServices::get('display');
     $display->assign('trajectory', $this->trajectory);
     if (!empty($this->trajectoryRender)) {
         $display->assign('trajectoryRender', $this->trajectoryRender);
     }
     if (!empty($this->trajectoryRender3d)) {
         $display->assign('trajectoryRender3d', $this->trajectoryRender3d);
     }
     if (!empty($this->trajectoryRenderParams)) {
         $display->assign('trajectoryRenderParams', $this->trajectoryRenderParams);
     }
 }
コード例 #7
0
 public function assignDisplayVariables()
 {
     parent::assignDisplayVariables();
     $display = CoreServices::get('display');
     $display->assign('record', $this->record);
 }