* ajusted views of moduel 'user'.

This commit is contained in:
Catouse
2014-04-03 15:01:15 +08:00
parent f1183fed54
commit d2a30ecfb0
26 changed files with 368 additions and 341 deletions
+14 -13
View File
@@ -13,18 +13,18 @@
<?php include '../../common/view/header.html.php';?>
<?php include '../../common/view/tablesorter.html.php';?>
<?php include './featurebar.html.php';?>
<div id='featurebar'>
<div class='f-left'>
<div class='sub-featurebar'>
<ul class='nav'>
<?php
echo "<span id='assignedToTab'>" . html::a(inlink('task', "account=$account&type=assignedTo"), $lang->user->assignedTo) . "</span>";
echo "<span id='openedByTab'>" . html::a(inlink('task', "account=$account&type=openedBy"), $lang->user->openedBy) . "</span>";
echo "<span id='finishedByTab'>" . html::a(inlink('task', "account=$account&type=finishedBy"), $lang->user->finishedBy) . "</span>";
echo "<span id='closedByTab'>" . html::a(inlink('task', "account=$account&type=closedBy"), $lang->user->closedBy) . "</span>";
echo "<span id='canceledByTab'>" . html::a(inlink('task', "account=$account&type=canceledBy"), $lang->user->canceledBy) . "</span>";
echo "<li id='assignedToTab'>" . html::a(inlink('task', "account=$account&type=assignedTo"), $lang->user->assignedTo) . "</li>";
echo "<li id='openedByTab'>" . html::a(inlink('task', "account=$account&type=openedBy"), $lang->user->openedBy) . "</li>";
echo "<li id='finishedByTab'>" . html::a(inlink('task', "account=$account&type=finishedBy"), $lang->user->finishedBy) . "</li>";
echo "<li id='closedByTab'>" . html::a(inlink('task', "account=$account&type=closedBy"), $lang->user->closedBy) . "</li>";
echo "<li id='canceledByTab'>" . html::a(inlink('task', "account=$account&type=canceledBy"), $lang->user->canceledBy) . "</li>";
?>
</div>
</ul>
</div>
<table class='table-1 tablesorter' id='tasktable'>
<table class='table tablesorter' id='tasktable'>
<thead>
<tr class='colhead'>
<th class='w-id'><?php echo $lang->idAB;?></th>
@@ -32,10 +32,10 @@
<th><?php echo $lang->task->project;?></th>
<th><?php echo $lang->task->name;?></th>
<th class='w-hour'><?php echo $lang->task->estimateAB;?></th>
<th class='w-hour'><?php echo $lang->task->consumedAB;?></th>
<th class='w-70px'><?php echo $lang->task->consumedAB;?></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 class='w-70px'><?php echo $lang->statusAB;?></th>
</tr>
</thead>
<tbody>
@@ -43,13 +43,14 @@
<tr class='text-center'>
<td><?php echo html::a($this->createLink('task', 'view', "taskID=$task->id"), sprintf('%03d', $task->id));?></td>
<td><span class='<?php echo 'pri' . $lang->task->priList[$task->pri];?>'><?php echo $lang->task->priList[$task->pri]?></span></td>
<td class='nobr'><?php echo html::a($this->createLink('project', 'browse', "projectid=$task->projectID"), $task->projectName);?></th>
<td class='a-left nobr'><?php echo html::a($this->createLink('task', 'view', "taskID=$task->id"), $task->name);?></td>
<td class='nobr'><?php echo html::a($this->createLink('project', 'browse', "projectid=$task->projectID"), $task->projectName);?></td>
<td class='text-left nobr'><?php echo html::a($this->createLink('task', 'view', "taskID=$task->id"), $task->name);?></td>
<td><?php echo $task->estimate;?></td>
<td><?php echo $task->consumed;?></td>
<td><?php echo $task->left;?></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>
</tr>
<?php endforeach;?>
</tbody>
<tfoot><tr><td colspan='9'><?php $pager->show();?></td></tr></tfoot>