\n
";
$module = preg_replace("/ /","",$this->module);
$params = $this->_getModuleTitleParams();
$count = count($params);
$index = 0;
if(SugarThemeRegistry::current()->directionality == "rtl") {
$params = array_reverse($params);
}
foreach($params as $parm){
$index++;
$theTitle .= $parm;
if($index < $count){
$theTitle .= $this->getBreadCrumbSymbol();
}
}
$theTitle .= "
\n";
if ($show_help) {
$theTitle .= "";
if(is_admin($current_user) || is_admin_for_module($current_user, $this->module))
{
$createImageURL = SugarThemeRegistry::current()->getImageURL('create-record.gif');
$theTitle .= <<
{$GLOBALS['app_strings']['LNK_CREATE']}
EOHTML;
}
}
$theTitle .= "\n";
return $theTitle;
}
function display() {
if(is_admin($GLOBALS['current_user']) || $_REQUEST['record'] == $GLOBALS['current_user']->id) {
$this->ss->assign('DISPLAY_EDIT', true);
}
if(is_admin($GLOBALS['current_user'])){
$this->ss->assign('DISPLAY_DUPLICATE', true);
}
$showDeleteButton = FALSE;
if( $_REQUEST['record'] != $GLOBALS['current_user']->id && $GLOBALS['current_user']->isAdminForModule('Users') )
{
$showDeleteButton = TRUE;
if( empty($this->bean->user_name) ) //Indicates just employee
$deleteWarning = $GLOBALS['mod_strings']['LBL_DELETE_EMPLOYEE_CONFIRM'];
else
$deleteWarning = $GLOBALS['mod_strings']['LBL_DELETE_USER_CONFIRM'];
$this->ss->assign('DELETE_WARNING', $deleteWarning);
}
$this->ss->assign('DISPLAY_DELETE', $showDeleteButton);
parent::display();
}
}
?>