38 lines
2.2 KiB
PHP
38 lines
2.2 KiB
PHP
<?php
|
|
/**
|
|
* The overview block view file of block module of ZenTaoPMS.
|
|
*
|
|
* @copyright Copyright 2009-2018 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
|
|
* @license ZPL(http://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
|
|
* @author Gang Liu <liugang@cnezsoft.com>
|
|
* @package block
|
|
* @version $Id$
|
|
* @link http://www.zentao.net
|
|
*/
|
|
?>
|
|
<style>
|
|
.block-overview .status-list li + li {margin-top: 5px;}
|
|
.block-overview .status-list li > strong {font-size: 16px;}
|
|
.progress-pie {position: relative;}
|
|
.progress-pie .progress-info {position: absolute; width: 100%; height: 100%; left: 0; top: 0; text-align: center; padding-top: 25px;}
|
|
.progress-pie .progress-info > small {display: block; color: #A6AAB8; line-height: 14px;}
|
|
.progress-pie .progress-info > strong {display: block; font-size: 32px; line-height: 40px;}
|
|
</style>
|
|
<div class="panel-body table-row">
|
|
<div class="col-6 text-middle text-center">
|
|
<div class="progress-pie inline-block" data-value="<?php echo $normalPercent;?>" data-doughnut-size="80">
|
|
<canvas width="100" height="100" style="width: 100px; height: 100px;"></canvas>
|
|
<div class="progress-info">
|
|
<small><?php echo $lang->product->all;?></small>
|
|
<strong class='text-primary'><?php echo empty($total) ? 0 : html::a($this->createLink('product', 'all', "browseType=all"), $total, '', "class='text-primary'");?></strong>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-6 text-middle">
|
|
<ul class="list-unstyled status-list">
|
|
<li><span class="status-product status-unclosed"><?php echo $lang->product->statusList['normal'];?></span> <strong class='text-primary'><?php echo empty($normal) ? 0 : html::a($this->createLink('product', 'all', "browseType=noclosed"), $normal, '', "class='text-primary'");?></strong></li>
|
|
<li><span class="status-product status-closed"><?php echo $lang->product->statusList['closed'];?></span> <strong class='text-primary'><?php echo empty($closed) ? 0 : html::a($this->createLink('product', 'all', "browseType=closed"), $closed, '', "class='text-primary'");?></strong></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|