<?php
+# Copyright (C) 2008 Jason Woofenden
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
require_once('code/tasks.php');
function index_main() {
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;
}
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);