useForSubpanel = true; $this->useModuleQuickCreateTemplate = true; } /** * display * * We are overridding the display method to manipulate the sectionPanels. * If portal is not enabled then don't show the Portal Information panel. */ function display() { $this->ev->process(); if ( !empty($_REQUEST['contact_name']) && !empty($_REQUEST['contact_id']) && $this->ev->fieldDefs['report_to_name']['value'] == '' && $this->ev->fieldDefs['reports_to_id']['value'] == '') { $this->ev->fieldDefs['report_to_name']['value'] = $_REQUEST['contact_name']; $this->ev->fieldDefs['reports_to_id']['value'] = $_REQUEST['contact_id']; $c=new Contact(); $c->retrieve($_REQUEST['contact_id']); } // echo $c->id.$_REQUEST['relate_id']; //loading view // echo '
'; $c=new Contact(); $c->retrieve($_REQUEST['record']); global $mod_strings; if($c->contact_picture!='')$this->ss->assign("CONTACT_PICTURE",$mod_strings['LBL_UPLOADED']); unset($c); $admin = new Administration(); $admin->retrieveSettings(); if(empty($admin->settings['portal_on']) || !$admin->settings['portal_on']) { unset($this->ev->sectionPanels[strtoupper('lbl_portal_information')]); } else { echo ''; echo ''; } $pl55 = $this->bean->getPositionList55(); $this->ss->assign('POSITION_LIST55', $pl55); $OPT = array(); global $mod_strings; $json = getJSONobj(); if ($_REQUEST['IamPopup']) $OPT['IamPopup'] = '1'; echo ' '; echo $this->ev->display($this->showTitle); } } ?>