From: Jason Woofenden Date: Sun, 16 Nov 2008 21:57:46 +0000 (-0500) Subject: in admin view, display client's username on their records X-Git-Url: https://jasonwoof.com/gitweb/?p=contractor-progress.git;a=commitdiff_plain;h=535cdc5a3f32063d12d29b99cffeae9d39ae8ef5 in admin view, display client's username on their records --- diff --git a/index.html b/index.html index 0e16cec..aad0999 100644 --- a/index.html +++ b/index.html @@ -19,10 +19,10 @@

Tasks needing your attention:

-
Task #~task_id~: ~task_title.html~ (~task_state~)
+
~client.html~ Task #~task_id~: ~task_title.html~ (~task_state~)
-
Task #~task_id~: ~task_title.html~ (~task_state~)
+
~client.html~ Task #~task_id~: ~task_title.html~ (~task_state~)
@@ -43,14 +43,14 @@

Queued tasks

Jason hasn't started on these yet, so you can change them if you want. At some point you'll also be able to prioritize them.
-
Task #~task_id~: ~task_title.html~ (~task_price.money~)
+
~client.html~ Task #~task_id~: ~task_title.html~ (~task_price.money~)

Finished tasks

-
Task #~task_id~: ~task_title.html~ (~task_price.money~)
+
~client.html~ Task #~task_id~: ~task_title.html~ (~task_price.money~)
Total: ~task_total.money~
diff --git a/index.php b/index.php index b156cb7..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;