zentaopms/module/personnel/view/invest.html.php
2023-05-16 10:47:08 +08:00

104 lines
4.9 KiB
PHP

<?php
/**
* The html template file of invest method of personnel module of ZenTaoPMS.
*
* @copyright Copyright 2009-2015 禅道软件(青岛)有限公司(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 Chunsheng Wang <chunsheng@cnezsoft.com>
* @package ZenTaoPMS
* @version $Id
*/
?>
<?php include '../../common/view/header.html.php';?>
<style>
.main-table thead>tr>th:first-child {padding-left: 8px;}
.table.has-sort-head thead>tr>th {padding-right: 8px;}
</style>
<div id="mainContent" class="main-row fade">
<?php if(!empty($investList)):?>
<div class="main-col">
<form class="main-table table-product" data-ride="table" method="post" action="">
<table class="table has-sort-head table-fixed table-bordered text-center">
<thead>
<tr>
<th rowspan='2' class="c-role"><?php echo $lang->personnel->role;?></th>
<th rowspan='2' class="c-user"> <?php echo $lang->personnel->name;?></th>
<th rowspan='2'><?php echo $lang->personnel->projects;?></th>
<th rowspan='2'><?php echo $lang->personnel->executions;?></th>
<th colspan="2"><?php echo $lang->personnel->workingHours;?></th>
<th colspan="3"><?php echo $lang->personnel->task;?></th>
<th colspan="3"><?php echo $lang->personnel->bug;?></th>
<th <?php echo $config->URAndSR ? "colspan='2'" : "rowspan='2'";?> class="c-story"><?php echo $lang->personnel->createStories;?></th>
<?php if($this->config->edition == 'max'): ?>
<th colspan="3"><?php echo $lang->personnel->issue;?></th>
<th colspan="3"><?php echo $lang->personnel->risk;?></th>
<?php endif;?>
</tr>
<tr>
<th><?php echo $lang->personnel->invest;?></th>
<th><?php echo $lang->personnel->left;?></th>
<th><?php echo $lang->personnel->created;?></th>
<th><?php echo $lang->personnel->finished;?></th>
<th><?php echo $lang->personnel->wait;?></th>
<th><?php echo $lang->personnel->created;?></th>
<th><?php echo $lang->personnel->resolved;?></th>
<th><?php echo $lang->personnel->wait;?></th>
<?php if($this->config->URAndSR):?>
<th><?php echo $lang->personnel->UR;?></th>
<th><?php echo $lang->personnel->SR;?></th>
<?php endif;?>
<?php if($this->config->edition == 'max'): ?>
<th><?php echo $lang->personnel->created;?></th>
<th><?php echo $lang->personnel->resolved;?></th>
<th><?php echo $lang->personnel->wait;?></th>
<th><?php echo $lang->personnel->created;?></th>
<th><?php echo $lang->personnel->resolved;?></th>
<th><?php echo $lang->personnel->wait;?></th>
<?php endif;?>
</tr>
</thead>
<tbody class="sortable">
<?php foreach($investList as $role => $personnelList):?>
<?php foreach($personnelList as $personnel):?>
<tr>
<td title='<?php echo $personnel['role'];?>' style="overflow: hidden; white-space:nowrap; text-overflow: ellipsis;"><?php echo $personnel['role'];?></td>
<td title='<?php echo $personnel['realname'];?>'><?php echo $personnel['realname'];?></td>
<td><?php echo $personnel['projects'];?></td>
<td><?php echo $personnel['executions'];?></td>
<td><?php echo round($personnel['consumedTask'], 1);?></td>
<td><?php echo round($personnel['leftTask'], 1);?></td>
<td><?php echo $personnel['createdTask'];?></td>
<td><?php echo $personnel['finishedTask'];?></td>
<td><?php echo $personnel['pendingTask'];?></td>
<td><?php echo $personnel['createdBug'];?></td>
<td><?php echo $personnel['resolvedBug'];?></td>
<td><?php echo $personnel['pendingBug'];?></td>
<?php if($this->config->URAndSR):?>
<td><?php echo $personnel['UR'];?></td>
<?php endif;?>
<td><?php echo $personnel['SR'];?></td>
<?php if($this->config->edition == 'max'): ?>
<td><?php echo $personnel['createdIssue'];?></td>
<td><?php echo $personnel['resolvedIssue'];?></td>
<td><?php echo $personnel['pendingIssue'];?></td>
<td><?php echo $personnel['createdRisk'];?></td>
<td><?php echo $personnel['resolvedRisk'];?></td>
<td><?php echo $personnel['pendingRisk'];?></td>
<?php endif;?>
</tr>
<?php endforeach;?>
<?php endforeach;?>
</tbody>
</table>
</form>
</div>
<?php else:?>
<div class="table-empty-tip">
<p>
<span class="text-muted"><?php echo $lang->noData;?></span>
</p>
</div>
<?php endif;?>
</div>
<?php include '../../common/view/footer.html.php';?>