示例#1
0
 /**
  * getPagebrowser
  *
  * @param array or string condition (see build_select_query() for details)
  * @param array searchmode - (see build_select_query() for details)
  * @return array - pagebrowser keys ("aa-cz", "de-pf", ...)
  */
 public function getPagebrowser($condition, $searchmode)
 {
     $queryparts = $this->build_select_query($condition, $searchmode);
     return create_page_browser($this->label_field, $queryparts['from_where_order']);
 }
示例#2
0
        }
        if (!$this->fInit) {
            $this->init();
        }
        $ret_val .= $this->display_pre();
        $ret_val .= '</td><td valign="middle" align="right">';
        $ret_val .= $this->arr_prev;
        $ret_val .= $this->arr_top;
        $ret_val .= $this->arr_next;
        $ret_val .= $this->display_post();
        return $ret_val;
    }
}
$nav_bar_alias = new cNav_bar($PALANG['pOverview_alias_title'], $fDisplay, $CONF['page_size'], $pagebrowser_alias, $search);
$nav_bar_alias->url = '&amp;domain=' . $fDomain;
$pagebrowser_mailbox = create_page_browser("{$table_mailbox}.username", $mailbox_pagebrowser_query);
$nav_bar_mailbox = new cNav_bar($PALANG['pOverview_mailbox_title'], $fDisplay, $CONF['page_size'], $pagebrowser_mailbox, $search);
$nav_bar_mailbox->url = '&amp;domain=' . $fDomain;
//print $nav_bar_alias->display_top ();
// this is why we need a proper template layer.
$fDomain = htmlentities($fDomain, ENT_QUOTES);
if (empty($_GET['domain'])) {
    $_GET['domain'] = '';
}
$smarty->assign('admin_list', array());
$smarty->assign('select_options', select_options($list_domains, array($fDomain)), false);
$smarty->assign('nav_bar_alias', array('top' => $nav_bar_alias->display_top(), 'bottom' => $nav_bar_alias->display_bottom()), false);
$smarty->assign('nav_bar_mailbox', array('top' => $nav_bar_mailbox->display_top(), 'bottom' => $nav_bar_mailbox->display_bottom()), false);
$smarty->assign('fDomain', $fDomain, false);
$smarty->assign('search', $search);
$smarty->assign('list_domains', $list_domains);