"admin", "enable_nextmatchs_class" => True); include("../header.inc.php"); include(PHPGW_APP_INC . "/accounts_".$phpgw_info["server"]["account_repository"].".inc.php"); $p = CreateObject('phpgwapi.Template',$phpgw->common->get_tpl_dir('admin')); $p->set_file(array("list" => "accounts.tpl", "row" => "accounts_row.tpl")); $total = account_total(); $p->set_var("bg_color",$phpgw_info["theme"]["bg_color"]); $p->set_var("th_bg",$phpgw_info["theme"]["th_bg"]); $p->set_var("left_next_matchs",$phpgw->nextmatchs->left("accounts.php",$start,$total)); $p->set_var("lang_user_accounts",lang("user accounts")); $p->set_var("right_next_matchs",$phpgw->nextmatchs->right("accounts.php",$start,$total)); $p->set_var("lang_loginid",$phpgw->nextmatchs->show_sort_order($sort,"account_lid",$order,"accounts.php",lang("LoginID"))); $p->set_var("lang_lastname",$phpgw->nextmatchs->show_sort_order($sort,"account_lastname",$order,"accounts.php",lang("last name"))); $p->set_var("lang_firstname",$phpgw->nextmatchs->show_sort_order($sort,"account_firstname",$order,"accounts.php",lang("first name"))); $p->set_var("lang_edit",lang("Edit")); $p->set_var("lang_delete",lang("Delete")); $p->set_var("lang_view",lang("View")); $account_info = account_read($method,$start,$sort,$order); while (list($null,$account) = each($account_info)) { // while (list($key) = each($account_info[0])) { // for ($i=0; $i0: " . $account_info[1][$key]; // echo "
1: " . $a[2]; // echo "
2: " . $b[1]; $lastname = $account["account_lastname"]; $firstname = $account["account_firstname"]; $account_id = $account["account_id"]; $loginid = $account["account_lid"]; $tr_color = $phpgw->nextmatchs->alternate_row_color($tr_color); $p->set_var("tr_color",$tr_color); // $lastname = $account["account_lastname"]; // $firstname = $account["account_firstname"]; if (! $lastname) $lastname = ' '; if (! $firstname) $firstname = ' '; $p->set_var("row_loginid",$loginid); $p->set_var("row_firstname",$firstname); $p->set_var("row_lastname",$lastname); $p->set_var("row_edit",' ' . lang("Edit") . ' '); if ($phpgw_info["user"]["userid"] != $account["account_lid"]) { $p->set_var("row_delete",' '.lang("Delete").' '); } else { $p->set_var("row_delete"," "); } $p->set_var("row_view",' ' . lang("View") . ' '); $p->parse("rows","row",True); } $p->set_var("actionurl",$phpgw->link("newaccount.php")); $p->set_var("lang_add",lang("add")); $p->set_var("lang_search",lang("search")); $p->pparse("out","list"); account_close(); $phpgw->common->phpgw_footer(); ?>