focus =(object) $value;
}
function setContactsList(&$value){
$this->contacts_list =$value;
}
function setUsersList(&$value){
$this->users_list =$value;
}
function setHideUsers($value){
$this->hideUsers = $value;
}
function setHideContacts($value){
$this->hideContacts = $value;
}
function setHideNewButton($value){
$this->hideNewButton = $value;
}
function SubPanelViewContactsAndUsers(){
global $theme;
$theme_path="themes/".$theme."/";
require_once($theme_path.'layout_utils.php');
}
function getHeaderText($action, $currentModule){
global $app_strings;
global $mod_strings;
$button = "
\n";
return $button;
}
function ProcessSubPanelListView($xTemplatePath, &$mod_strings,$action, $curModule=''){
global $currentModule;
if(empty($curModule))
$curModule = $currentModule;
$ListView = new ListView();
$ListView->initNewXTemplate($xTemplatePath,$mod_strings);
$ListView->xTemplateAssign("RETURN_URL", "&return_module=".$curModule."&return_action=DetailView&return_id=".$this->focus->id);
$ListView->xTemplateAssign("RECORD_ID", $this->focus->id);
$ListView->setHeaderTitle($mod_strings['LBL_INVITEE']);
$ListView->setHeaderText($this->getHeaderText($action, $curModule));
if(!$this->hideUsers){
if(!isset($this->users_list))
$this->setUsersList($this->focus->get_users());
$ListView->processListView($this->users_list, "users", "USER");
}
if(!$this->hideContacts){
if(!$this->hideUsers){
$ListView->setDisplayHeaderAndFooter(false);
}
if(!isset($this->contacts_list)){
$this->setContactsList($this->focus->get_contacts());
}
$ListView->processListView($this->contacts_list, "contacts", "CONTACT");
}
}
}
?>