* adjust the UI.

* fix some errors.
This commit is contained in:
wangchunsheng
2010-04-14 02:19:52 +00:00
parent cda83e2134
commit 32c9effd8a
11 changed files with 142 additions and 138 deletions

View File

@@ -179,6 +179,10 @@ class project extends control
$project = $this->commonAction($projectID);
/* 登记session。*/
$this->app->session->set('taskList', $this->app->getURI(true));
$this->app->session->set('storyList', $this->app->getURI(true));
$this->view->header->title = $project->name . $this->lang->colon . $this->lang->project->importTask;
$this->view->position[] = html::a(inlink('browse', "projectID=$projectID"), $project->name);
$this->view->position[] = $this->lang->project->importTask;
@@ -250,7 +254,7 @@ class project extends control
$this->assign('position', $position);
$this->assign('bugs', $bugs);
$this->assign('tabID', 'bug');
$this->assign('pager', $pager->get());
$this->assign('pager', $pager);
$this->assign('orderBy', $orderBy);
$this->assign('users', $users);

View File

@@ -85,30 +85,31 @@ $lang->project->delete = "删除项目";
$lang->project->browse = "浏览项目";
$lang->project->edit = "编辑项目";
$lang->project->manageMembers = '团队管理';
$lang->project->unlinkMember = '移除';
$lang->project->unlinkMember = '移除成员';
$lang->project->unlinkStory = '移除需求';
$lang->project->importTask = '导入任务';
/* 分组浏览。*/
$lang->project->listTask = '列表方式';
$lang->project->groupTaskByStory = '需求分组';
$lang->project->groupTaskByStatus = '状态分组';
$lang->project->groupTaskByPri = '优先级分组';
$lang->project->groupTaskByOwner = '指派给分组';
$lang->project->groupTaskByEstimate = '预计工时分组';
$lang->project->groupTaskByConsumed = '已消耗分组';
$lang->project->groupTaskByLeft = '剩余工时分组';
$lang->project->groupTaskByType = '任务类型分组';
$lang->project->groupTaskByDeadline = '截止日期分组';
$lang->project->listTaskNeedConfrim = '需求变动的任务';
$lang->project->groupTaskByStory = '需求分组';
$lang->project->groupTaskByStatus = '状态分组';
$lang->project->groupTaskByPri = '优先级分组';
$lang->project->groupTaskByOwner = '指派给分组';
$lang->project->groupTaskByEstimate = '预计工时分组';
$lang->project->groupTaskByConsumed = '已消耗分组';
$lang->project->groupTaskByLeft = '剩余工时分组';
$lang->project->groupTaskByType = '任务类型分组';
$lang->project->groupTaskByDeadline = '截止日期分组';
$lang->project->listTaskNeedConfrim = '需求变动';
/* 页面提示。*/
$lang->project->selectProject = "请选择项目";
$lang->project->beginAndEnd = '起止时间';
$lang->project->lblStats = '工时统计';
$lang->project->stats = '总共预计『%s』工时<br />已经消耗『%s』工时<br />预计剩余『%s』工时';
$lang->project->oneLineStats = "项目『%s』, 代号为『%s』, 相关产品为『%s』『%s』开始『%s』结束总预计『%s』工时已消耗『%s』工时预计剩余『%s』工时。";
$lang->project->storySummary = "共『%s』个需求预计『%s』个工时。";
$lang->project->beginAndEnd = '起止时间';
$lang->project->lblStats = '工时统计';
$lang->project->stats = '总共预计『%s』工时<br />已经消耗『%s』工时<br />预计剩余『%s』工时';
$lang->project->oneLineStats = "项目『%s』, 代号为『%s』, 相关产品为『%s』『%s』开始『%s』结束总预计『%s』工时已消耗『%s』工时预计剩余『%s』工时。";
$lang->project->storySummary = "共『%s』个需求预计『%s』个工时。";
$lang->project->wbs = "分解任务";
/* 交互提示。*/
$lang->project->confirmDelete = '您确定删除项目[%s]吗?';

View File

@@ -236,7 +236,7 @@ class projectModel extends model
/* 导入任务。*/
public function importTask($projectID)
{
$tasks = $this->dao->select('id, project, owner, story')->from(TABLE_TASK)->where('id')->in($this->post->tasks)->fetchAll('id');
$tasks = $this->dao->select('id, project, owner, story, consumed')->from(TABLE_TASK)->where('id')->in($this->post->tasks)->fetchAll('id');
/* 更新task表。*/
foreach($tasks as $task)
@@ -250,6 +250,9 @@ class projectModel extends model
$this->loadModel('action')->create('task', $task->id, 'moved', '', $task->project);
}
/* 去掉story=0的记录。*/
unset($stories[0]);
/* 将没有关联进来的用户加入到团队中。*/
$teamMembers = $this->getTeamMemberPairs($projectID);
foreach($owners as $account => $preProjectID)

View File

@@ -24,39 +24,49 @@
?>
<?php include '../../common/view/header.html.php';?>
<?php include '../../common/view/colorize.html.php';?>
<?php include '../../common/view/tablesorter.html.php';?>
<div class='yui-d0'>
<div id='featurebar'>
<div class='f-right'><?php common::printLink('bug', 'create', "productID=0&extra=projectID=$project->id", $lang->bug->create);?></div>
</div>
</div>
<div class='yui-d0'>
<table class='table-1 fixed colored tablesorter'>
<caption class='caption-tl'>
<div class='f-left'><?php echo $lang->project->bug;?></div>
<div class='f-right'><?php common::printLink('bug', 'create', "productID=0&extra=projectID=$project->id", $lang->bug->create);?></div>
</caption>
<thead>
<tr class='colhead'>
<th><?php echo $lang->bug->id;?></th>
<th><?php echo $lang->bug->severity;?></th>
<th class='w-p50'><?php echo $lang->bug->title;?></th>
<th><?php echo $lang->bug->openedBy;?></th>
<th><?php echo $lang->bug->assignedTo;?></th>
<th><?php echo $lang->bug->resolvedBy;?></th>
<th><?php echo $lang->bug->resolution;?></th>
<?php $vars = "projectID={$project->id}&orderBy=%s&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}"; ?>
<th class='w-id'> <?php common::printOrderLink('id', $orderBy, $vars, $lang->idAB);?></th>
<th class='w-severity'><?php common::printOrderLink('severity', $orderBy, $vars, $lang->bug->severityAB);?></th>
<th class='w-pri'> <?php common::printOrderLink('pri', $orderBy, $vars, $lang->priAB);?></th>
<th><?php common::printOrderLink('title', $orderBy, $vars, $lang->bug->title);?></th>
<th class='w-user'><?php common::printOrderLink('openedBy', $orderBy, $vars, $lang->openedByAB);?></th>
<th class='w-user'><?php common::printOrderLink('assignedTo', $orderBy, $vars, $lang->assignedToAB);?></th>
<th class='w-user'><?php common::printOrderLink('resolvedBy', $orderBy, $vars, $lang->bug->resolvedBy);?></th>
<th class='w-resolution'><?php common::printOrderLink('resolution', $orderBy, $vars, $lang->bug->resolutionAB);?></th>
<th class='w-100px {sorter:false}'><?php echo $lang->actions;?></th>
</tr>
</thead>
<tbody>
<?php foreach($bugs as $bug):?>
<tr class='a-center'>
<td><?php echo html::a($this->createLink('bug', 'view', "bugID=$bug->id"), sprintf('%03d', $bug->id));?></td>
<td><?php echo $bug->severity?></td>
<td class='a-left nobr'><?php echo $bug->title;?></td>
<td><?php echo html::a($this->createLink('bug', 'view', "bugID=$bug->id"), $bug->id, '_blank');?></td>
<td><?php echo $lang->bug->severityList[$bug->severity]?></td>
<td><?php echo $lang->bug->priList[$bug->pri]?></td>
<td class='a-left nobr'><?php echo html::a($this->createLink('bug', 'view', "bugID=$bug->id"), $bug->title);?></td>
<td><?php echo $users[$bug->openedBy];?></td>
<td><?php echo $users[$bug->assignedTo];?></td>
<td><?php echo $users[$bug->resolvedBy];?></td>
<td><?php echo $bug->resolution;?></td>
<td><?php echo $lang->bug->resolutionList[$bug->resolution];?></td>
<td>
<?php
$params = "bugID=$bug->id";
if(!($bug->status == 'active' and common::printLink('bug', 'resolve', $params, $lang->bug->buttonResolve))) echo $lang->bug->buttonResolve . ' ';
if(!($bug->status == 'resolved' and common::printLink('bug', 'close', $params, $lang->bug->buttonClose))) echo $lang->bug->buttonClose . ' ';
common::printLink('bug', 'edit', $params, $lang->bug->buttonEdit);
?>
</td>
</tr>
<?php endforeach;?>
</tbody>
</table>
<div class='a-right'><?php echo $pager;?></div>
<div class='a-right'><?php $pager->show();?></div>
</div>
<?php include '../../common/view/footer.html.php';?>

View File

@@ -25,21 +25,20 @@
<?php include '../../common/view/header.html.php';?>
<?php include '../../common/view/tablesorter.html.php';?>
<div class='yui-d0'>
<div id='featurebar'>
<div class='f-right'><?php common::printLink('build', 'create', "project=$project->id", $lang->build->create);?></div>
</div>
</div>
<div class='yui-d0'>
<table class='table-1 tablesorter'>
<table class='table-1 tablesorter fixed'>
<caption class='caption-tl'>
<div class='f-left'><?php echo $lang->project->build;?></div>
<div class='f-right'><?php common::printLink('build', 'create', "project=$project->id", $lang->build->create);?></div>
</caption>
<thead>
<tr class='colhead'>
<th><?php echo $lang->build->product;?></th>
<th class='w-120px'><?php echo $lang->build->product;?></th>
<th><?php echo $lang->build->name;?></th>
<th><?php echo $lang->build->scmPath;?></th>
<th><?php echo $lang->build->filePath;?></th>
<th><?php echo $lang->build->date;?></th>
<th><?php echo $lang->build->builder;?></th>
<th><?php echo $lang->actions;?></th>
<th class='w-date'><?php echo $lang->build->date;?></th>
<th class='w-user'><?php echo $lang->build->builder;?></th>
<th class='w-60px'><?php echo $lang->actions;?></th>
</tr>
</thead>
<tbody>

View File

@@ -27,24 +27,24 @@
<?php include './taskheader.html.php';?>
<div class='yui-d0'>
<table class='table-1' id='treetable'>
<tr class='colhead bg-gray strong a-center'>
<td></td>
<td><?php echo $lang->task->name;?></td>
<td><?php echo $lang->task->pri;?></td>
<td><?php echo $lang->task->owner;?></td>
<td><?php echo $lang->task->estimate;?></td>
<td><?php echo $lang->task->consumed;?></td>
<td><?php echo $lang->task->left;?></td>
<td><?php echo $lang->task->type;?></td>
<td><?php echo $lang->task->deadline;?></td>
<td colspan='2' class='a-left'><?php echo $lang->task->status;?></td>
<tr class='colhead'>
<th></th>
<th><?php echo $lang->task->name;?></th>
<th class='w-pri'><?php echo $lang->priAB;?></th>
<th class='w-user'><?php echo $lang->task->owner;?></th>
<th><?php echo $lang->task->estimateAB;?></th>
<th><?php echo $lang->task->consumedAB;?></th>
<th><?php echo $lang->task->leftAB;?></th>
<th><?php echo $lang->typeAB;?></th>
<th><?php echo $lang->task->deadlineAB;?></th>
<th colspan='2' class='a-left'><?php echo $lang->task->status;?></th>
</tr>
<?php $i = 0;?>
<?php foreach($tasks as $groupKey => $groupTasks):?>
<?php $groupClass = ($i % 2 == 0) ? 'odd' : 'bg-yellow'; $i ++;?>
<?php $groupClass = ($i % 2 == 0) ? 'even' : 'bg-yellow'; $i ++;?>
<tr id='node-<?php echo $groupKey;?>'>
<td class='<?php echo $groupClass;?> a-center f-16px strong'><?php echo $groupKey;?></td>
<td colspan='11'><?php if($groupByList) echo $groupByList[$groupKey];?></td>
<td colspan='10'><?php if($groupByList) echo $groupByList[$groupKey];?></td>
</tr>
<?php foreach($groupTasks as $task):?>
<?php $ownerClass = $task->owner == $app->user->account ? 'style=color:red' : '';?>

View File

@@ -29,17 +29,16 @@
<table class='table-1 fixed tablesorter'>
<thead>
<tr class='colhead'>
<th class='w-p15'><?php echo $lang->task->project;?></th>
<th><?php echo $lang->task->id;?></th>
<th><?php echo $lang->task->pri;?></th>
<th class='w-p20'><?php echo $lang->task->name;?></th>
<th><?php echo $lang->task->owner;?></th>
<th><?php echo $lang->task->left;?></th>
<th><?php echo $lang->task->type;?></th>
<th><?php echo $lang->task->deadline;?></th>
<th><?php echo $lang->task->status;?></th>
<th class='w-p20'><?php echo $lang->task->story;?></th>
<th class='w-50px'><?php echo $lang->project->import;?></th>
<th class='w-150px'><?php echo $lang->task->project;?></th>
<th class='w-id'><?php echo $lang->idAB;?></th>
<th class='w-pri'><?php echo $lang->priAB;?></th>
<th class='w-p30'><?php echo $lang->task->name;?></th>
<th class='w-user'><?php echo $lang->task->owner;?></th>
<th class='w-hour'><?php echo $lang->task->leftAB;?></th>
<th class='w-date'><?php echo $lang->task->deadlineAB;?></th>
<th class='w-status'><?php echo $lang->statusAB;?></th>
<th><?php echo $lang->task->story;?></th>
<th class='w-30px {sorter:false}'><?php echo $lang->import;?></th>
</tr>
</thead>
<tbody>
@@ -52,7 +51,6 @@
<td class='a-left nobr'><?php if(!common::printLink('task', 'view', "task=$task->id", $task->name)) echo $task->name;?></td>
<td <?php echo $class;?>><?php echo $task->ownerRealName;?></td>
<td><?php echo $task->left;?></td>
<td><?php echo $lang->task->typeList[$task->type];?></td>
<td class=<?php if(isset($task->delay)) echo 'delayed';?>><?php if(substr($task->deadline, 0, 4) > 0) echo $task->deadline;?></td>
<td class=<?php echo $task->status;?> ><?php echo $lang->task->statusList[$task->status];?></td>
<td class='a-left nobr'>

View File

@@ -29,24 +29,25 @@
<table align='center' class='table-1 tablesorter a-center'>
<thead>
<tr class='colhead'>
<th class='w-50px'><?php echo $lang->story->id;?></th>
<th class='w-50px'><?php echo $lang->story->pri;?></th>
<th class='w-200px'><?php echo $lang->story->product;?></th>
<th class='w-id'><?php echo $lang->idAB;?></th>
<th class='w-pri'><?php echo $lang->priAB;?></th>
<th><?php echo $lang->story->product;?></th>
<th><?php echo $lang->story->title;?></th>
<th><?php echo $lang->story->plan;?></th>
<th class='w-100px'><?php echo $lang->story->openedBy;?></th>
<th class='w-100px'><?php echo $lang->story->estimate;?></th>
<th class='w-100px'><?php echo $lang->story->linkStory;?></th>
<th class='w-user'><?php echo $lang->openedByAB;?></th>
<th class='w-hour'><?php echo $lang->story->estimateAB;?></th>
<th class='w-50px'><?php echo $lang->link;?></th>
</tr>
</thead>
<tbody>
<?php foreach($allStories as $story):?>
<?php if(isset($prjStories[$story->id])) continue;?>
<?php $storyLink = $this->createLink('story', 'view', "storyID=$story->id");?>
<tr>
<td><?php echo $story->id;?></td>
<td><?php echo $story->pri;?></td>
<td><?php echo html::a($storyLink, $story->id);?></td>
<td><?php echo $lang->story->priList[$story->pri];?></td>
<td><?php echo html::a($this->createLink('product', 'browse', "productID=$story->product"), $products[$story->product], '_blank');?></td>
<td class='a-left nobr'><?php echo html::a($this->createLink('story', 'view', "story=$story->id"), $story->title);?></td>
<td class='a-left nobr'><?php echo html::a($storyLink, $story->title);?></td>
<td><?php echo $story->planTitle;?></td>
<td><?php echo $users[$story->openedBy];?></td>
<td><?php echo $story->estimate;?></td>

View File

@@ -31,69 +31,62 @@ $(document).ready(function()
$("a.iframe").colorbox({width:640, height:480, iframe:true, transition:'none'});
});
</script>
<div class="yui-d0">
<div id='featurebar'>
<div class='f-left'>
</div>
<div class='f-right'>
<?php if(common::hasPriv('project', 'linkstory')) echo html::a($this->createLink('project', 'linkstory', "project=$project->id"), $lang->project->linkStory);?>
</div>
</div>
</div>
<div class='yui-d0'>
<table class='table-1 tablesorter fixed'>
<caption class='caption-tl'>
<div class='f-left'><?php echo $lang->project->story;?></div>
<div class='f-right'>
<?php if(common::hasPriv('project', 'linkstory')) echo html::a($this->createLink('project', 'linkstory', "project=$project->id"), $lang->project->linkStory);?>
</div>
</caption>
<thead>
<tr class='colhead'>
<th><?php echo $lang->story->id;?></th>
<th><?php echo $lang->story->pri;?></th>
<th class='w-p50'><?php echo $lang->story->title;?></th>
<th><?php echo $lang->story->assignedTo;?></th>
<th><?php echo $lang->story->openedBy;?></th>
<th><?php echo $lang->story->estimate;?></th>
<th><?php echo $lang->story->status;?></th>
<th><?php echo $lang->story->stage;?></th>
<th class='w-150px'><?php echo $lang->actions;?></th>
<th class='w-id'><?php echo $lang->idAB;?></th>
<th class='w-pri'><?php echo $lang->priAB;?></th>
<th><?php echo $lang->story->title;?></th>
<th class='w-user'><?php echo $lang->openedByAB;?></th>
<th class='w-user'><?php echo $lang->assignedToAB;?></th>
<th class='w-hour'><?php echo $lang->story->estimateAB;?></th>
<th class='w-status'><?php echo $lang->statusAB;?></th>
<th class='w-status'><?php echo $lang->story->stageAB;?></th>
<th class='w-50px'><?php echo $lang->story->taskCount;?></th>
<th class='w-100px'><?php echo $lang->actions;?></th>
</tr>
</thead>
<tbody>
<?php $totalEstimate = 0;?>
<?php foreach($stories as $key => $story):?>
<?php
$viewLink = $this->createLink('story', 'view', "storyID=$story->id");
$canView = common::hasPriv('story', 'view');
$storyLink = $this->createLink('story', 'view', "storyID=$story->id");
$totalEstimate += $story->estimate;
?>
<tr class='a-center'>
<td><?php if($canView) echo html::a($viewLink, sprintf('%03d', $story->id)); else printf('%03d', $story->id);?></td>
<td><?php echo $story->pri;?></td>
<td class='a-left nobr'>
<?php
echo $story->title;
if($storyTasks[$story->id] > 0)
{
echo ' ' . html::a($this->createLink('story', 'tasks', "storyID=$story->id&projectID=$project->id"), '('. $storyTasks[$story->id] . ')', '', 'class=iframe');
}
else
{
echo ' (0)';
}
?>
</td>
<td><?php echo $users[$story->assignedTo];?></td>
<td><?php echo html::a($storyLink, sprintf('%03d', $story->id));?></td>
<td><?php echo $lang->story->priList[$story->pri];?></td>
<td class='a-left nobr'><?php echo html::a($storyLink,$story->title);?></td>
<td><?php echo $users[$story->openedBy];?></td>
<td><?php echo $users[$story->assignedTo];?></td>
<td><?php echo $story->estimate;?></td>
<td class='<?php echo $story->status;?>'><?php echo $lang->story->statusList[$story->status];?></td>
<td><?php echo $lang->story->stageList[$story->stage];?></td>
<td class='linkbox'>
<?php
$tasksLink = $this->createLink('story', 'tasks', "storyID=$story->id&projectID=$project->id");
$storyTasks[$story->id] > 0 ? print(html::a($tasksLink, $storyTasks[$story->id], '', 'class="iframe"')) : print(0);
?>
</td>
<td>
<?php if(common::hasPriv('task', 'create')) echo html::a($this->createLink('task', 'create', "projectID={$project->id}&story={$story->id}"), $lang->task->create);?>
<?php if(common::hasPriv('project', 'unlinkStory')) echo html::a($this->createLink('project', 'unlinkStory', "projectID={$project->id}&story={$story->id}&confirm=no"), $lang->project->unlinkStory, 'hiddenwin');?>
<?php
$param = "projectID={$project->id}&story={$story->id}";
common::printLink('task', 'create', $param, $lang->project->wbs);
common::printLink('project', 'unlinkStory', $param, $lang->unlink, 'hiddenwin');
?>
</td>
</tr>
<?php endforeach;?>
</tbody>
<tfoot>
<tr><td colspan='9' class='a-right'><?php printf($lang->project->storySummary, count($stories), $totalEstimate);?></td></tr>
<tr><td colspan='10' class='a-right'><?php printf($lang->project->storySummary, count($stories), $totalEstimate);?></td></tr>
</tfoot>
</table>
</div>

View File

@@ -30,18 +30,17 @@
<?php $vars = "projectID=$project->id&status=all&orderBy=%s&recTotal=$recTotal&recPerPage=$recPerPage"; ?>
<thead>
<tr class='colhead'>
<th><?php common::printOrderLink('id', $orderBy, $vars, $lang->task->id);?></th>
<th><?php common::printOrderLink('pri', $orderBy, $vars, $lang->task->pri);?></th>
<th class='w-p20'><?php common::printOrderLink('name', $orderBy, $vars, $lang->task->name);?></th>
<th><?php common::printOrderLink('owner', $orderBy, $vars, $lang->task->owner);?></th>
<th><?php common::printOrderLink('estimate', $orderBy, $vars, $lang->task->estimate);?></th>
<th><?php common::printOrderLink('consumed', $orderBy, $vars, $lang->task->consumed);?></th>
<th><?php common::printOrderLink('left', $orderBy, $vars, $lang->task->left);?></th>
<th><?php common::printOrderLink('type', $orderBy, $vars, $lang->task->type);?></th>
<th><?php common::printOrderLink('deadline', $orderBy, $vars, $lang->task->deadline);?></th>
<th><?php common::printOrderLink('status', $orderBy, $vars, $lang->task->status);?></th>
<th class='w-p20'><?php common::printOrderLink('story', $orderBy, $vars, $lang->task->story);?></th>
<th class='w-100px'><?php echo $lang->actions;?></th>
<th class='w-id'> <?php common::printOrderLink('id', $orderBy, $vars, $lang->idAB);?></th>
<th class='w-pri'> <?php common::printOrderLink('pri', $orderBy, $vars, $lang->priAB);?></th>
<th class='w-p30'> <?php common::printOrderLink('name', $orderBy, $vars, $lang->task->name);?></th>
<th class='w-user'> <?php common::printOrderLink('owner', $orderBy, $vars, $lang->task->owner);?></th>
<th class='w-hour'> <?php common::printOrderLink('estimate', $orderBy, $vars, $lang->task->estimateAB);?></th>
<th class='w-hour'> <?php common::printOrderLink('consumed', $orderBy, $vars, $lang->task->consumedAB);?></th>
<th class='w-hour'> <?php common::printOrderLink('left', $orderBy, $vars, $lang->task->leftAB);?></th>
<th class='w-date'> <?php common::printOrderLink('deadline', $orderBy, $vars, $lang->task->deadlineAB);?></th>
<th class='w-status'><?php common::printOrderLink('status', $orderBy, $vars, $lang->statusAB);?></th>
<th><?php common::printOrderLink('story', $orderBy, $vars, $lang->task->story);?></th>
<th class='w-70px'><?php echo $lang->actions;?></th>
</tr>
</thead>
<tbody>
@@ -49,13 +48,12 @@
<?php $class = $task->owner == $app->user->account ? 'style=color:red' : '';?>
<tr class='a-center'>
<td><?php if(!common::printLink('task', 'view', "task=$task->id", sprintf('%03d', $task->id))) printf('%03d', $task->id);?></td>
<td><?php echo $task->pri;?></td>
<td><?php echo $lang->task->priList[$task->pri];?></td>
<td class='a-left nobr'><?php if(!common::printLink('task', 'view', "task=$task->id", $task->name)) echo $task->name;?></td>
<td <?php echo $class;?>><?php echo $task->ownerRealName;?></td>
<td><?php echo $task->estimate;?></td>
<td><?php echo $task->consumed;?></td>
<td><?php echo $task->left;?></td>
<td><?php echo $lang->task->typeList[$task->type];?></td>
<td class=<?php if(isset($task->delay)) echo 'delayed';?>><?php if(substr($task->deadline, 0, 4) > 0) echo $task->deadline;?></td>
<td class=<?php echo $task->status;?> >
<?php

View File

@@ -1,7 +1,4 @@
<div class="yui-d0">
<div class='bg-gray mb-10px padding-5px'>
<?php include './project.html.php';?>
</div>
<div id='featurebar'>
<div class='f-left'>
<?php
@@ -20,8 +17,8 @@
</div>
<div class='f-right'>
<?php
common::printLink('task', 'create', "project=$project->id", $lang->task->create);
common::printLink('project', 'importTask', "project=$project->id", $lang->project->importTask);
common::printLink('task', 'create', "project=$project->id", $lang->task->create);
?>
</div>
</div>