* Add product report block.

This commit is contained in:
guanxiying
2018-04-18 11:08:37 +08:00
parent 79f0599f4a
commit 433896a1d0
2 changed files with 39 additions and 1 deletions
+24 -1
View File
@@ -9,7 +9,30 @@
* @version $Id$
* @link http://www.zentao.net
*/
$this->loadModel('story');
?>
<div class="panel-body has-table">
<?php a($products);?>
<ul class='nav nav-secondary nav-product-report'>
<?php foreach($products as $product):?>
<li><?php echo html::a('###', $product->name, "data-id='$product->id'");?></li>
<?php endforeach;?>
</ul>
<?php foreach($products as $product):?>
<div class='div-product-report' id='productReport<?php echo $product->id;?>'>
<div class='col-md-6'>
<label class='storyCount text-lg'><?php echo count($product->stories);?></li>
<?php foreach($config->product->report->stageLabels as $stage):?>
<dl>
<dt><?php echo zget($product->stories, $stage, '0');?></dt>
<dd><?php echo zget($lang->story->stageList, $stage, '0');?></dd>
</dl>
<?php endforeach;?>
</ol>
</div>
<div class='col-md-6'>
</div>
</div>
<?php endforeach;?>
</div>
+15
View File
@@ -89,3 +89,18 @@ $config->product->editor = new stdclass();
$config->product->editor->create = array('id' => 'desc', 'tools' => 'simpleTools');
$config->product->editor->edit = array('id' => 'desc', 'tools' => 'simpleTools');
$config->product->editor->close = array('id' => 'comment', 'tools' => 'simpleTools');
$config->product->report = new stdclass();
$config->product->report->stage = array();
$config->product->report->stageLabels[] = 'wait';
$config->product->report->stageLabels[] = 'planed';
$config->product->report->stageLabels[] = 'released';
$config->product->report->planLabels = array();
$config->product->report->planLabels[] = '';
$config->product->report->projectLabels = array();
$config->product->report->projectLabels[] = '';
$config->product->report->planLabels = array();
$config->product->report->planLabels[] = '';