/** * @param PageBuilder $pageBuilder * @return ContactsPanel */ function ContactsPanel(&$pagebuilder) { $this->_pagebuilder =& $pagebuilder; $this->_proc =& $pagebuilder->_proc; $this->_pagebuilder->AddJSFile('./classic/base.contactsmain.js'); $this->_pagebuilder->_top->AddOnResize('ResizeElements(\'all\');'); $this->_pagebuilder->AddJSText(' function ViewAdressRecord(idstring) { var record = ParseCId(idstring); var cmode = (record.type == "c") ? "' . C_VIEW . '" : "' . G_VIEW . '"; document.location = "' . BASEFILE . '?' . CONTACT_MODE . '=" + cmode + "&' . CONTACT_ID . '=" + record.cid; } '); $this->contactList =& new ContactsList($this->_pagebuilder); $this->contactViewer =& new ContactsViewer($this->_pagebuilder); $this->footText = ''; if (isset($GLOBALS['contactCount']) && isset($GLOBALS['contactCount'][0])) { $this->footText .= (int) $GLOBALS['contactCount'][0] . ' ' . JS_LANG_ContactsCount; //$this->footText .= ' / '; //$this->footText .= ((int) $GLOBALS['contactCount'][1]).' '.JS_LANG_GroupsCount; } $this->text .= '<div class="wm_contacts" id="main_contacts">' . $this->contactList->ToHTML() . $this->contactViewer->ToHTML() . ' <div id="lowtoolbar" class="wm_lowtoolbar"> <span class="wm_lowtoolbar_messages"> ' . $this->footText . ' </span> </div>'; }