* Revert the index page, remove the table header fixed.

This commit is contained in:
chencongzhi520@gmail.com
2012-07-09 01:27:12 +00:00
parent 77104b6222
commit d98daae818
6 changed files with 93 additions and 169 deletions

View File

@@ -1,14 +1,8 @@
.block {border:1px solid #efefef; height:225px;}
.linkbox1{height:180px; overflow-y:auto}
.linkbox2{height:225px; overflow-y:auto}
#row1{margin-bottom:20px}
#row2{margin-bottom:10px}
#row1 .table-1, #row1 caption{border:none}
#row2 .table-1, #row2 caption{border:none}
.block {border:1px solid #efefef;}
.linkbox1 {height:180px;}
.linkbox2 {height:225px;}
.mainTable {width:100%; margin:0px; padding:0px; border:none}
.headTable {width:100%; margin:0px; padding:0px; border:none}
.contentDiv1 {height:150px; overflow-y:auto}
.contentDiv2 {height:195px; overflow-y:auto}

View File

@@ -1,28 +1,14 @@
<div class='block linkbox2'>
<table class='mainTable'>
<tr>
<td>
<table class='headTable'>
<caption>
<div class='f-left'><span class='icon-bug'></span> <?php echo $lang->my->bug;?></div>
<div class='f-right'><?php echo html::a($this->createLink('my', 'bug'), $lang->more . "<span class='icon-more'></span>");?></div>
</caption>
</table>
</td>
</tr>
<tr>
<td>
<div class='contentDiv2'>
<table class='table-1 fixed colored'>
<?php
foreach($bugs as $bugID => $bugTitle)
{
echo "<tr><td class='nobr'>" . "#$bugID " . html::a($this->createLink('bug', 'view', "id=$bugID"), $bugTitle) . "</td><td width='5'></td></tr>";
}
?>
</table>
</div>
</td>
</tr>
<table class='table-1 fixed colored'>
<caption>
<div class='f-left'><span class='icon-bug'></span> <?php echo $lang->my->bug;?></div>
<div class='f-right'><?php echo html::a($this->createLink('my', 'bug'), $lang->more . "<span class='icon-more'></span>");?></div>
</caption>
<?php
foreach($bugs as $bugID => $bugTitle)
{
echo "<tr><td class='nobr'>" . "#$bugID " . html::a($this->createLink('bug', 'view', "id=$bugID"), $bugTitle) . "</td><td width='5'></td></tr>";
}
?>
</table>
</div>

View File

@@ -18,47 +18,33 @@
</tr>
</table>
<?php else:?>
<table class='mainTable'>
<tr>
<td>
<table class='headTable fixed'>
<tr class='colhead'>
<th class='w-100px'><?php echo $lang->product->name;?></th>
<th class='w-60px'><?php echo $lang->story->statusList['active'] . $lang->story->common;?></th>
<th class='w-60px'><?php echo $lang->story->statusList['changed'] . $lang->story->common;?></th>
<th class='w-60px'><?php echo $lang->story->statusList['draft'] . $lang->story->common;?></th>
<th class='w-60px'><?php echo $lang->story->statusList['closed'] . $lang->story->common;?></th>
<th class='w-60px'><?php echo $lang->product->plans;?></th>
<th class='w-60px'><?php echo $lang->product->releases;?></th>
<th class='w-60px'><?php echo $lang->product->bugs;?></th>
<th class='w-60px'><?php echo $lang->bug->unResolved;?></th>
<th class='w-60px'><?php echo $lang->bug->assignToNull;?></th>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<div class='contentDiv1'>
<table class='table-1 fixed colored'>
<?php foreach($productStats as $product):?>
<tr class='a-center' style='height:30px'>
<td class='a-left w-100px'><?php echo html::a($this->createLink('product', 'view', 'product=' . $product->id), $product->name);?></td>
<td class='w-60px'><?php echo $product->stories['active']?></td>
<td class='w-60px'><?php echo $product->stories['changed']?></td>
<td class='w-60px'><?php echo $product->stories['draft']?></td>
<td class='w-60px'><?php echo $product->stories['closed']?></td>
<td class='w-60px'><?php echo $product->plans?></td>
<td class='w-60px'><?php echo $product->releases?></td>
<td class='w-60px'><?php echo $product->bugs?></td>
<td class='w-60px'><?php echo $product->unResolved?></td>
<td class='w-60px'><?php echo $product->assignToNull?></td>
</tr>
<?php endforeach;?>
</table>
</div>
</td>
</tr>
</table>
<table class='table-1 colored fixed'>
<tr class='colhead'>
<th class='w-150px'><?php echo $lang->product->name;?></th>
<th><?php echo $lang->story->statusList['active'] . $lang->story->common;?></th>
<th><?php echo $lang->story->statusList['changed'] . $lang->story->common;?></th>
<th><?php echo $lang->story->statusList['draft'] . $lang->story->common;?></th>
<th><?php echo $lang->story->statusList['closed'] . $lang->story->common;?></th>
<th><?php echo $lang->product->plans;?></th>
<th><?php echo $lang->product->releases;?></th>
<th><?php echo $lang->product->bugs;?></th>
<th><?php echo $lang->bug->unResolved;?></th>
<th><?php echo $lang->bug->assignToNull;?></th>
</tr>
<?php foreach($productStats as $product):?>
<tr class='a-center' style='height:30px'>
<td class='a-left'><?php echo html::a($this->createLink('product', 'view', 'product=' . $product->id), $product->name);?></td>
<td><?php echo $product->stories['active']?></td>
<td><?php echo $product->stories['changed']?></td>
<td><?php echo $product->stories['draft']?></td>
<td><?php echo $product->stories['closed']?></td>
<td><?php echo $product->plans?></td>
<td><?php echo $product->releases?></td>
<td><?php echo $product->bugs?></td>
<td><?php echo $product->unResolved?></td>
<td><?php echo $product->assignToNull?></td>
</tr>
<?php endforeach;?>
</table>
<?php endif;?>
</div>

View File

@@ -1,6 +1,6 @@
<div class='block linkbox1' id='projectbox'>
<?php if(count($projectStats) == 0):?>
<table class='table-1 a-center bg-gray fixed' height='138px'>
<table class='table-1 a-center bg-gray' height='138px'>
<caption><span class='icon-title'></span><?php echo $lang->my->home->projects;?></caption>
<tr>
<td valign='middle'>
@@ -22,46 +22,32 @@
</tr>
</table>
<?php else:?>
<table class='mainTable'>
<tr>
<td>
<table class='headTable fixed'>
<tr class='colhead'>
<th class='w-100px'><?php echo $lang->project->name;?></th>
<th class='w-date'><?php echo $lang->project->end;?></th>
<th class='w-status'><?php echo $lang->statusAB;?></th>
<th class='w-hour'><?php echo $lang->project->totalEstimate;?></th>
<th class='w-hour'><?php echo $lang->project->totalConsumed;?></th>
<th class='w-hour'><?php echo $lang->project->totalLeft;?></th>
<th class='w-100px'><?php echo $lang->project->progess;?></th>
<th class='w-100px'><?php echo $lang->project->burn;?></th>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<div class='contentDiv1'>
<table class='table-1 fixed colored'>
<?php foreach($projectStats as $project):?>
<tr class='a-center'>
<td class='a-left w-100px'><?php echo html::a($this->createLink('project', 'task', 'project=' . $project->id), $project->name);?></td>
<td class='w-date'><?php echo $project->end;?></td>
<td class='w-status'><?php echo $lang->project->statusList[$project->status];?></td>
<td class='w-hour'><?php echo $project->hours->totalEstimate;?></td>
<td class='w-hour'><?php echo $project->hours->totalConsumed;?></td>
<td class='w-hour'><?php echo $project->hours->totalLeft;?></td>
<td class='w-100px'>
<?php if($project->hours->progress):?><img src='<?php echo $defaultTheme;?>images/main/green.png' width=<?php echo $project->hours->progress;?> height='13' text-align: /><?php endif;?>
<small><?php echo $project->hours->progress;?>%</small>
</td>
<td class='projectline w-100px' values='<?php echo join(',', $project->burns);?>'></td>
</tr>
<?php endforeach;?>
</table>
</div>
</td>
</tr>
</table>
<table class='table-1 fixed colored'>
<tr class='colhead'>
<th class='w-150px'><?php echo $lang->project->name;?></th>
<th><?php echo $lang->project->end;?></th>
<th><?php echo $lang->statusAB;?></th>
<th><?php echo $lang->project->totalEstimate;?></th>
<th><?php echo $lang->project->totalConsumed;?></th>
<th><?php echo $lang->project->totalLeft;?></th>
<th class='w-120px'><?php echo $lang->project->progess;?></th>
<th class='w-100px'><?php echo $lang->project->burn;?></th>
</tr>
<?php foreach($projectStats as $project):?>
<tr class='a-center'>
<td class='a-left'><?php echo html::a($this->createLink('project', 'task', 'project=' . $project->id), $project->name);?></td>
<td><?php echo $project->end;?></td>
<td><?php echo $lang->project->statusList[$project->status];?></td>
<td><?php echo $project->hours->totalEstimate;?></td>
<td><?php echo $project->hours->totalConsumed;?></td>
<td><?php echo $project->hours->totalLeft;?></td>
<td class='a-left w-150px'>
<?php if($project->hours->progress):?><img src='<?php echo $defaultTheme;?>images/main/green.png' width=<?php echo $project->hours->progress;?> height='13' text-align: /><?php endif;?>
<small><?php echo $project->hours->progress;?>%</small>
</td>
<td class='projectline a-left' values='<?php echo join(',', $project->burns);?>'></td>
</tr>
<?php endforeach;?>
</table>
<?php endif;?>
</div>

View File

@@ -1,28 +1,14 @@
<div class='block linkbox2'>
<table class='mainTable'>
<tr>
<td>
<table class='headTable'>
<caption>
<div class='f-left'><span class='icon-doing'></span><?php echo $lang->my->task;?></div>
<div class='f-right'><?php echo html::a($this->createLink('my', 'task'), $lang->more . "<span class='icon-more'></span>");?></div>
</caption>
</table>
</td>
</tr>
<tr>
<td>
<div class='contentDiv2'>
<table class='table-1 fixed colored'>
<?php
foreach($tasks as $task)
{
echo "<tr><td class='nobr'>" . "#$task->id " . html::a($this->createLink('task', 'view', "id=$task->id"), $task->name) . "</td><td width='5'</td></tr>";
}
?>
</table>
</div>
</td>
</tr>
<table class='table-1 fixed colored'>
<caption>
<div class='f-left'><span class='icon-doing'></span><?php echo $lang->my->task;?></div>
<div class='f-right'><?php echo html::a($this->createLink('my', 'task'), $lang->more . "<span class='icon-more'></span>");?></div>
</caption>
<?php
foreach($tasks as $task)
{
echo "<tr><td class='nobr'>" . "#$task->id " . html::a($this->createLink('task', 'view', "id=$task->id"), $task->name) . "</td><td width='5'</td></tr>";
}
?>
</table>
</div>

View File

@@ -1,28 +1,14 @@
<div class='block linkbox2'>
<table class='mainTable'>
<tr>
<td>
<table class='headTable'>
<caption>
<div class='f-left'><span class='icon-todo'></span><?php echo $lang->my->todo;?></div>
<div class='f-right'><?php echo html::a($this->createLink('my', 'todo'), $lang->more . "<span class='icon-more'></span>");?></div>
</caption>
</table>
</td>
</tr>
<tr>
<td>
<div class='contentDiv2'>
<table class='table-1 fixed colored'>
<?php
foreach($todos as $todo)
{
echo "<tr><td class='nobr'>" . "#$todo->id " . html::a($this->createLink('todo', 'view', "id=$todo->id"), $todo->name) . "</td><td width='5'</td></tr>";
}
?>
</table>
</div>
</td>
</tr>
<table class='table-1 fixed colored'>
<caption>
<div class='f-left'><span class='icon-todo'></span><?php echo $lang->my->todo;?></div>
<div class='f-right'><?php echo html::a($this->createLink('my', 'todo'), $lang->more . "<span class='icon-more'></span>");?></div>
</caption>
<?php
foreach($todos as $todo)
{
echo "<tr><td class='nobr'>" . "#$todo->id " . html::a($this->createLink('todo', 'view', "id=$todo->id"), $todo->name) . "</td><td width='5'</td></tr>";
}
?>
</table>
</div>