"admin", "enable_nextmatchs_class" => True); include("../header.inc.php"); if (! $start) $start = 0; if ($order) $ordermethod = "order by $order $sort"; else $ordermethod = "order by group_name asc"; if (! $sort) $sort = "asc"; if ($query) { $querymethod = " where group_name like '%$query%'"; } $phpgw->db->query("select count(*) from groups $querymethod"); $phpgw->db->next_record(); $total = $phpgw->db->f(0); $limit = $phpgw->nextmatchs->sql_limit($start); echo '

' . '' . '' . '' . '
' . $phpgw->nextmatchs->left("groups.php",$start,$total) . '' . lang("user groups") . '' . $phpgw->nextmatchs->right("groups.php",$start,$total) . '
'; echo "" . "" . ""; $phpgw->db->query("select * from groups $querymethod $ordermethod limit $limit"); while ($phpgw->db->next_record()) { $tr_color = $phpgw->nextmatchs->alternate_row_color($tr_color); $group_name = $phpgw->db->f("group_name"); if (! $group_name) $group_name = ' '; echo "" . "" . ""; } echo "\nlink("newgroup.php")."\">" . "
" . $phpgw->nextmatchs->show_sort_order($sort,"group_name",$order,"groups.php", lang("name")) . " " . lang("Edit") . " " . lang("Delete") . "
$group_namelink("editgroup.php","group_id=" . $phpgw->db->f("group_id")) . "\"> " . lang("Edit") . " link("deletegroup.php","group_id=" . $phpgw->db->f("group_id")) . "\"> " . lang("Delete") . "
" . "" . "
link("groups.php")."\">
" . lang("search") . " " . "
"; $phpgw->common->phpgw_footer(); ?>