* add link when export to html.

This commit is contained in:
areyou123456
2012-06-20 08:18:46 +00:00
parent 815158966f
commit d617b5f697
6 changed files with 32 additions and 1 deletions
+27
View File
@@ -158,6 +158,33 @@ class file extends control
{
$this->view->fields = $this->post->fields;
$this->view->rows = $this->post->rows;
switch($this->post->kind)
{
case 'task':
foreach($this->view->rows as $row)
{
$row->name = html::a('http://' . $_SERVER['HTTP_HOST'] . $this->createLink('task', 'view', "taskID=$row->id"), $row->name);
}
break;
case 'story':
foreach($this->view->rows as $row)
{
$row->title= html::a('http://' . $_SERVER['HTTP_HOST'] . $this->createLink('story', 'view', "storyID=$row->id"), $row->title);
}
break;
case 'bug':
foreach($this->view->rows as $row)
{
$row->title= html::a('http://' . $_SERVER['HTTP_HOST'] . $this->createLink('bug', 'view', "bugID=$row->id"), $row->title);
}
break;
case 'testcase':
foreach($this->view->rows as $row)
{
$row->title= html::a('http://' . $_SERVER['HTTP_HOST'] . $this->createLink('testcase', 'view', "caseID=$row->id"), $row->title);
}
break;
}
$this->view->fileName = $this->post->fileName;
$output = $this->parse('file', 'export2Html');