diff --git a/module/project/control.php b/module/project/control.php index 6c6a1a2396..eebaf3c24c 100644 --- a/module/project/control.php +++ b/module/project/control.php @@ -768,7 +768,7 @@ class project extends control $this->view->projectName = $this->projects[$projectID]; $this->view->pager = $pager; $this->view->orderBy = $orderBy; - $this->view->tasks = $this->testtask->getProjectTasks($projectID); + $this->view->tasks = $this->testtask->getProjectTasks($projectID, $orderBy, $pager); $this->view->users = $this->loadModel('user')->getPairs('noclosed|noletter'); $this->view->products = $this->loadModel('product')->getPairs(); diff --git a/module/project/view/testtask.html.php b/module/project/view/testtask.html.php index 96a396bcab..b0c800149b 100644 --- a/module/project/view/testtask.html.php +++ b/module/project/view/testtask.html.php @@ -11,51 +11,52 @@ */ ?> - testtask->confirmDelete)?>
- +
+ recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}";?> + - - - - - - - - - + + + + + + + + - @@ -65,17 +66,20 @@ @@ -84,6 +88,7 @@
- + +
- idAB;?> + idAB);?>
testtask->product;?>testtask->name;?>testtask->build;?>testtask->owner;?>testtask->begin;?>testtask->end;?>statusAB;?>actions;?>testtask->product);?>testtask->name);?>testtask->build);?>testtask->owner);?>testtask->begin);?>testtask->end);?>statusAB);?>actions;?>
-
- - - id);?> -
+
+ + id => sprintf('%03d', $task->id)));?> + + id);?> + product, '');?> createLink('testtask', 'view', "taskID=$task->id"), $task->name);?>end?> testtask->statusList[$task->status];?> +
+ createLink('testtask', 'delete', "taskID=$task->id&confirm=yes"); + echo html::a("javascript:ajaxDelete(\"$deleteURL\",\"taskList\",confirmDelete)", '', '', "class='btn' title='{$lang->testtask->delete}'"); + } + ?> +
id", $task, 'list', 'sitemap'); - common::printIcon('testtask', 'linkCase', "taskID=$task->id", $task, 'list', 'link'); - common::printIcon('testtask', 'edit', "taskID=$task->id", $task, 'list'); - common::printIcon('testreport', 'browse', "objectID=$task->product&objectType=product&extra=$task->id", $task, 'list','flag'); - - if(common::hasPriv('testtask', 'delete', $task)) - { - $deleteURL = $this->createLink('testtask', 'delete', "taskID=$task->id&confirm=yes"); - echo html::a("javascript:ajaxDelete(\"$deleteURL\",\"taskList\",confirmDelete)", '', '', "class='btn' title='{$lang->testtask->delete}'"); - } + common::printIcon('testtask', 'cases', "taskID=$task->id", $task, 'list', 'sitemap'); + common::printIcon('testtask', 'linkCase', "taskID=$task->id", $task, 'list', 'link'); + common::printIcon('testreport', 'browse', "objectID=$task->product&objectType=product&extra=$task->id", $task, 'list','flag'); + common::printIcon('testtask', 'edit', "taskID=$task->id", $task, 'list'); ?>