* move report list to blockreportlist.html.php.

This commit is contained in:
zhujinyong
2012-07-11 08:36:27 +00:00
parent 0618cde772
commit 305b780595
8 changed files with 33 additions and 27 deletions
+4
View File
@@ -32,6 +32,7 @@ class report extends control
{
$this->view->header->title = $this->lang->report->projectDeviation;
$this->view->projects = $this->report->getProjects();
$this->view->submenu = 'project';
$this->display();
}
@@ -48,6 +49,7 @@ class report extends control
$this->app->loadLang('story');
$this->view->header->title = $this->lang->report->productInfo;
$this->view->products = $this->report->getProducts();
$this->view->submenu = 'product';
$this->display();
}
@@ -82,6 +84,7 @@ class report extends control
$this->view->begin = $begin;
$this->view->end = $end;
$this->view->bugs = $this->report->getBugs($begin, $end);
$this->view->submenu = 'test';
$this->display();
}
@@ -96,6 +99,7 @@ class report extends control
$this->view->header->title = $this->lang->report->workload;
$this->view->workload = $this->report->getWorkload();
$this->view->users = $this->loadModel('user')->getPairs('noletter|noclosed');
$this->view->submenu = 'staff';
$this->display();
}
}
+6 -1
View File
@@ -35,8 +35,13 @@ $lang->report->singleColor[] = 'F6BD0F';
$lang->report->projectDeviation = 'Project deviation';
$lang->report->productInfo = 'Product information';
$lang->report->workload = 'Workload';
$lang->report->bugSummary = 'Bug summary';
$lang->report->workload = 'Workload';
$lang->reportList->project->lists[10] = 'Project deviation|report|projectdeviation';
$lang->reportList->product->lists[10] = 'Product information|report|productinfo';
$lang->reportList->test->lists[10] = 'Bug summary|report|bugsummary';
$lang->reportList->staff->lists[10] = 'Workload|report|workload';
$lang->report->id = 'ID';
$lang->report->project = 'Project';
+6 -1
View File
@@ -35,8 +35,13 @@ $lang->report->singleColor[] = 'F6BD0F';
$lang->report->projectDeviation = '项目偏差报表';
$lang->report->productInfo = '产品信息统计表';
$lang->report->workload = '员工负载表';
$lang->report->bugSummary = 'Bug汇总表';
$lang->report->workload = '员工负载表';
$lang->reportList->project->lists[10] = '项目偏差报表|report|projectdeviation';
$lang->reportList->product->lists[10] = '产品信息统计表|report|productinfo';
$lang->reportList->test->lists[10] = 'Bug汇总表|report|bugsummary';
$lang->reportList->staff->lists[10] = '员工负载表|report|workload';
$lang->report->id = '编号';
$lang->report->project = '项目';
@@ -0,0 +1,13 @@
<div class='box-title'><?php echo $lang->report->list;?></div>
<div class='box-content'>
<ul id="report-list">
<?php
ksort($lang->reportList->$submenu->lists);
foreach($lang->reportList->$submenu->lists as $list)
{
list($label, $module, $method) = explode('|', $list);
echo '<li>' . html::a($this->createLink($module, $method), $label) . '</li>';
}
?>
</ul>
</div>
+1 -6
View File
@@ -3,12 +3,7 @@
<table class="cont-lt1">
<tr valign='top'>
<td class='side'>
<div class='box-title'><?php echo $lang->report->list;?></div>
<div class='box-content'>
<ul id="report-list">
<li><?php echo html::a(inlink('bugSummary'), $lang->report->bugSummary);?></li>
</ul>
</div>
<?php include 'blockreportlist.html.php';?>
</td>
<td class='divider'></td>
<td>
+1 -6
View File
@@ -2,12 +2,7 @@
<table class="cont-lt1">
<tr valign='top'>
<td class='side'>
<div class='box-title'><?php echo $lang->report->list;?></div>
<div class='box-content'>
<ul id="report-list">
<li><?php echo html::a(inlink('productInfo'), $lang->report->productInfo);?></li>
</ul>
</div>
<?php include 'blockreportlist.html.php';?>
</td>
<td class='divider'></td>
<td>
+1 -7
View File
@@ -3,14 +3,8 @@
<table class="cont-lt1">
<tr valign='top'>
<td class='side'>
<div class='box-title'><?php echo $lang->report->list;?></div>
<div class='box-content'>
<ul id="report-list">
<li><?php echo html::a(inlink('projectDeviation'), $lang->report->projectDeviation);?></li>
</ul>
</div>
<?php include 'blockreportlist.html.php';?>
<div class='proversion'><?php echo $lang->report->proVersion;?></div>
</td>
<td class='divider'></td>
<td>
+1 -6
View File
@@ -2,12 +2,7 @@
<table class="cont-lt1">
<tr valign='top'>
<td class='side'>
<div class='box-title'><?php echo $lang->report->list;?></div>
<div class='box-content'>
<ul id="report-list">
<li><?php echo html::a(inlink('workload'), $lang->report->workload, '', 'id="workload"');?></li>
</ul>
</div>
<?php include 'blockreportlist.html.php';?>
</td>
<td class='divider'></td>
<td>