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() {
$json = getJSONobj();
global $mod_strings;
echo '
';
$pl55 = $this->bean->getPositionList55();
$this->ss->assign('POSITION_LIST55', $pl55);
$this->ev->process();
if ( !empty($_REQUEST['contactlead_name']) && !empty($_REQUEST['contactlead_id'])
&& $this->ev->fieldDefs['report_to_name']['value'] == ''
&& $this->ev->fieldDefs['reports_to_id']['value'] == '') {
$this->ev->fieldDefs['report_to_name']['value'] = $_REQUEST['contactlead_name'];
$this->ev->fieldDefs['reports_to_id']['value'] = $_REQUEST['contactlead_id'];
}
$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 '';
}
echo $this->ev->display($this->showTitle);
}
}
?>