45 lines
1.9 KiB
PHP
45 lines
1.9 KiB
PHP
<?php
|
|
/**
|
|
* The task block view file of block module of RanZhi.
|
|
*
|
|
* @copyright Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
|
|
* @license ZPL (http://zpl.pub/page/zplv12.html)
|
|
* @author Yidong Wang <yidong@cnezsoft.com>
|
|
* @package block
|
|
* @version $Id$
|
|
* @link http://www.ranzhi.org
|
|
*/
|
|
?>
|
|
<style>
|
|
td.delayed{background: #e84e0f!important; color: white;}
|
|
</style>
|
|
<table class='table tablesorter table-data table-hover block-task table-fixed'>
|
|
<thead>
|
|
<tr>
|
|
<th width='50'><?php echo $lang->idAB?></th>
|
|
<th width='30'><?php echo $lang->priAB?></th>
|
|
<th> <?php echo $lang->task->name;?></th>
|
|
<th width='50'><?php echo $lang->task->estimateAB;?></th>
|
|
<th width='75'><?php echo $lang->task->deadline;?></th>
|
|
<th width='70'><?php echo $lang->statusAB;?></th>
|
|
</tr>
|
|
</thead>
|
|
<?php foreach($tasks as $task):?>
|
|
<?php
|
|
$appid = isset($_GET['entry']) ? "class='app-btn' data-id='{$this->get->entry}'" : '';
|
|
$viewLink = $this->createLink('task', 'view', "taskID={$task->id}");
|
|
?>
|
|
<tr data-url='<?php echo empty($sso) ? $viewLink : $sso . $sign . 'referer=' . base64_encode($viewLink); ?>' <?php echo $appid?>>
|
|
<td class='text-center'><?php echo $task->id;?></td>
|
|
<td class='text-center'><?php echo zget($lang->task->priList, $task->pri, $task->pri)?></td>
|
|
<td style='color: <?php echo $task->color?>' title='<?php echo $task->name?>'><?php echo $task->name?></td>
|
|
<td class='text-center'><?php echo $task->estimate?></td>
|
|
<td class='<?php if(isset($task->delay)) echo 'delayed';?>'><?php if(substr($task->deadline, 0, 4) > 0) echo $task->deadline;?></td>
|
|
<td class='text-center'><?php echo zget($lang->task->statusList, $task->status, $task->status);?></th>
|
|
</tr>
|
|
<?php endforeach;?>
|
|
</table>
|
|
<script>
|
|
if(typeof(dataTable) == 'function')$('.block-task').dataTable();
|
|
</script>
|