/** * @brief Display the add chat form */ function ajaxAdd() { $view = $this->tpl(); $cd = new \Modl\ContactDAO(); $chats = Cache::c('chats'); if (!isset($chats)) { $chats = array(); } $view->assign('chats', array_keys($chats)); $view->assign('top', $cd->getTop(15)); $view->assign('presencestxt', getPresencesTxt()); Dialog::fill($view->draw('_chats_add', true), true); }
function prepareEmpty() { $view = $this->tpl(); $cd = new \Modl\ContactDAO(); $view->assign('presencestxt', getPresencesTxt()); $view->assign('top', $cd->getTop(8)); return $view->draw('_chat_empty', true); }
/** * @brief Display the add chat form */ function ajaxAdd() { $view = $this->tpl(); $cd = new \Modl\ContactDAO(); $view->assign('top', $cd->getTop(10)); $view->assign('presencestxt', getPresencesTxt()); Dialog::fill($view->draw('_chats_add', true), true); }