Current code.
[capital-apms.git] / inc / browse / users.php
bloba553c6850708b3a57812f19c67e40b1c8d620236
1 <?php
2 /** @todo Should have active/inactive and find name pattern widgets on here. */
4 $browser = new Browser("Users");
5 $browser->AddColumn( 'user_no', 'No.', 'center' );
6 $browser->AddColumn( 'username', 'Username' );
7 $browser->AddColumn( 'fullname', 'Full Name' );
8 $browser->SetJoins( "usr" );
9 $browser->SetWhere( 'active' );
10 $browser->AddOrder( 'username', 'ASC', 1 );
12 $rowurl = '/view.php?t=user&id=%d';
13 $browser->RowFormat( "<tr onclick=\"window.location='$rowurl';\" title=\"Click to Display User Detail\" class=\"r%d\">\n", "</tr>\n", 'user_no', '#even' );
14 $browser->DoQuery();
15 $page_elements[] = $browser;
17 $c->page_title = "Browse Users";