X-Git-Url: https://jasonwoof.com/gitweb/?p=contractor-progress.git;a=blobdiff_plain;f=people.php;fp=people.php;h=31b4fa07f96a97d6bbea4ea0fba393b1f2359e1f;hp=00bd5132b06c1db870e6b41595b34b357cc857de;hb=a7d43d9737bdcdf8c906469845742414a047f166;hpb=1656ee459ec82ab8f1113ebc71a8c923517b43ad diff --git a/people.php b/people.php index 00bd513..31b4fa0 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'); }