X-Git-Url: https://jasonwoof.com/gitweb/?p=contractor-progress.git;a=blobdiff_plain;f=people.php;h=2443042625aa80f2811090b22b8d9bfdb4f212e1;hp=00bd5132b06c1db870e6b41595b34b357cc857de;hb=HEAD;hpb=fa236b27bfc3bc87902f0a92d0d017b9f2d444be diff --git a/people.php b/people.php index 00bd513..2443042 100644 --- a/people.php +++ b/people.php @@ -46,8 +46,8 @@ function people_tem_sets($username, $password, $name, $privs, $balance) { } # You may pass a "where clause" for the db query. -function people_display_listing($where = 'order by username limit 100') { - $rows = db_get_rows('people', 'id,username', $where); +function people_display_listing($where = 'order by name limit 100') { + $rows = db_get_rows('people', 'id,name,username', $where); if($rows == false || count($rows) == 0) { tem_show('empty_listing'); tem_show('listings'); @@ -55,11 +55,12 @@ function people_display_listing($where = 'order by username limit 100') { } foreach($rows as $row) { - list($id, $username) = $row; + list($id, $name, $username) = $row; tem_set('id', $id); if($username == '') { $username = '--'; } + tem_set('name', $name); tem_set('username', $username); tem_show('listing_row'); } @@ -79,7 +80,6 @@ function people_main() { if($ret) { return $ret; } - tem_show('main_body'); } function _people_main() {