focus =(object) $value;
}
function setNotesList(&$value){
$this->notes_list =$value;
}
function setHideNewButton($value){
$this->hideNewButton = $value;
}
function SubPanelViewNotes(){
global $theme;
}
function getHeaderText($action, $currentModule){
global $app_strings;
$button = "
\n";
return $button;
}
function ProcessSubPanelListView($xTemplatePath, &$mod_strings,$action, $curModule=''){
global $currentModule,$app_strings;
if(empty($curModule))
$curModule = $currentModule;
$ListView = new ListView();
global $current_user;
$header_text = '';
if(is_admin($current_user) && $_REQUEST['module'] != 'DynamicLayout' && !empty($_SESSION['editinplace'])){
$header_text = " ".SugarThemeRegistry::current()->getImage("EditLayout","border='0' alt='Edit Layout' align='bottom'")."";
}
$ListView->initNewXTemplate($xTemplatePath,$mod_strings);
$ListView->xTemplateAssign("RETURN_URL", "&return_module=".$curModule."&return_action=DetailView&return_id=".$this->focus->id);
$ListView->xTemplateAssign("DELETE_INLINE_PNG", SugarThemeRegistry::current()->getImage('delete_inline','align="absmiddle" alt="'.$app_strings['LNK_DELETE'].'" border="0"'));
$ListView->xTemplateAssign("EDIT_INLINE_PNG", SugarThemeRegistry::current()->getImage('edit_inline','align="absmiddle" alt="'.$app_strings['LNK_EDIT'].'" border="0"'));
$ListView->xTemplateAssign("RECORD_ID", $this->focus->id);
$ListView->setHeaderTitle($mod_strings['LBL_MODULE_NAME']. $header_text);
$ListView->setHeaderText($this->getHeaderText($action, $curModule));
$ListView->processListView($this->notes_list, "notes", "NOTE");
}
}
?>