db->query("select count(*) from accounts $querymethod"); $phpgw->db->next_record(); $total = $phpgw->db->f(0); $limit = $phpgw->nextmatchs->sql_limit($start); echo '

' . '' . '' . '' . '
' . $phpgw->nextmatchs->left("accounts.php",$start,$total) . '' . lang_admin("user accounts") . '' . $phpgw->nextmatchs->right("accounts.php",$start,$total) . '
'; echo "

" . "\n"; $phpgw->db->query("select con,firstname,lastname,loginid from accounts $querymethod " . "$ordermethod limit $limit"); while ($phpgw->db->next_record()) { $tr_color = $phpgw->nextmatchs->alternate_row_color($tr_color); $lastname = $phpgw->db->f("lastname"); $firstname = $phpgw->db->f("firstname"); if (! $lastname) $lastname = ' '; if (! $firstname) $firstname = ' '; echo "" . ""; if ($phpgw->session->loginid != $phpgw->db->f("loginid")) echo ""; else echo ""; echo "\n"; } echo "\n" . $phpgw->session->hidden_var() . "
" . $phpgw->nextmatchs->show_sort_order($sort,"lastname",$order,"accounts.php",lang_common("last name")) . "" . $phpgw->nextmatchs->show_sort_order($sort,"firstname",$order,"accounts.php",lang_common("first name")) . "" . lang_common("Edit") . " " . lang_common("Delete") . " " . lang_common("View") . "
$lastname$firstnamelink("editaccount.php", "con=" . $phpgw->db->f("con")) . "\"> " . lang_common("Edit") . " link("deleteaccount.php", "con=" . $phpgw->db->f("con")) . "\"> " . lang_common("Delete") . "  link("viewaccount.php", "con=" . $phpgw->db->f("con")) . "\"> " . lang_common("View") . "
" . "" . $phpgw->session->hidden_var() . "
" . lang_common("search") . " " . "
"; include($phpgw_info["server"]["api_dir"] . "/footer.inc.php");