X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=index.php;h=311addfefa38c6fa46c3a83309450329dfa33ab0;hb=535cdc5a3f32063d12d29b99cffeae9d39ae8ef5;hp=91c24eea99d8e83bf9f6d6e83fd4f6ffe858bf6a;hpb=cd31f0e08af5e737de8d25a1c27f62d811345bc2;p=contractor-progress.git diff --git a/index.php b/index.php index 91c24ee..311addf 100644 --- a/index.php +++ b/index.php @@ -29,7 +29,7 @@ function task_summary($tem_prefix, $where_clause/*, ... */) { tem_set('task_price', $price); tem_set('task_state', task_state_pretty($state)); if(logged_in_as_contractor()) { - tem_set('client', db_get_value('people', 'name', 'where id=%i', $client_id)); + tem_set('client', db_get_value('people', 'username', 'where id=%i', $client_id)); } tem_show($tem_prefix . '_row'); $total += $price; @@ -51,6 +51,7 @@ function _index_main() { } if(logged_in_as_contractor()) { + tem_show('su_link'); tem_show('needs_attention_header'); task_summary('needs_approval', 'where state=%i order by id desc', TASK_WORKING); task_summary('needs_fixing', 'where (state=%i || state=%i) || (client_id=1 && state<%i) order by id desc', TASK_NEEDS_QUOTE, TASK_BUG, TASK_QUEUED);