X-Git-Url: https://jasonwoof.com/gitweb/?p=contractor-progress.git;a=blobdiff_plain;f=index.php;h=ab4ff12828abe66e8a617e7d53ca6055ebf2f2cc;hp=d8eb41130720eef386128c8e8319fe1cb3d61f74;hb=68f2db1c72a71b10afa99f4869e266d0f6d6ee85;hpb=70133b28d00744547ede8a9f8a3ad635de1c6c6b diff --git a/index.php b/index.php index d8eb411..ab4ff12 100644 --- a/index.php +++ b/index.php @@ -123,7 +123,7 @@ function _index_main() { } if(logged_in_as_contractor()) { - tem_show('su_link'); + tem_show('contractor_links'); tem_show('needs_attention_header'); $GLOBALS['unpaid_totals'] = array(); @@ -138,6 +138,7 @@ function _index_main() { totals_summary($GLOBALS['unpaid_totals']); task_summary('finished_paid', 'where state=%i && paid = 1 order by finished_at desc limit 20', TASK_FINISHED); } else { + tem_show('not_contractor_links'); if(db_count('tasks', 'where client_id=%i && (state=%i || state=%i || state=%i || state=%i)', $client_id, TASK_DRAFT, TASK_NEEDS_CLARIFICATION, TASK_NEEDS_GO_AHEAD, TASK_NEEDS_TESTING)) { tem_show('needs_attention_header'); task_summary('needs_approval', 'where client_id=%i && (state=%i || state=%i) order by id', $client_id, TASK_NEEDS_GO_AHEAD, TASK_NEEDS_TESTING);