Files
EasySoft-ZenTaoPMS/module/block/view/bugblock.html.php
2017-03-01 17:20:22 +08:00

40 lines
1.7 KiB
PHP

<?php
/**
* The bug 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
*/
?>
<table class='table table-data table-hover block-bug table-fixed tablesorter'>
<thead>
<tr>
<th width='50'><?php echo $lang->idAB?></th>
<th width='50'><?php echo $lang->priAB?></th>
<th> <?php echo $lang->bug->title;?></th>
<th width='50'><?php echo $lang->bug->severityAB?></th>
<th width='70'><?php echo $lang->bug->statusAB;?></th>
</tr>
</thead>
<?php foreach($bugs as $bug):?>
<?php
$appid = isset($_GET['entry']) ? "class='app-btn' data-id='{$this->get->entry}'" : '';
$viewLink = $this->createLink('bug', 'view', "bugID={$bug->id}");
?>
<tr data-url='<?php echo empty($sso) ? $viewLink : $sso . $sign . 'referer=' . base64_encode($viewLink); ?>' <?php echo $appid?>>
<td class='text-center'><?php echo $bug->id;?></td>
<td class='text-center'><?php echo zget($lang->bug->priList, $bug->pri, $bug->pri)?></td>
<td style='color: <?php echo $bug->color?>' title='<?php echo $bug->title?>'><?php echo $bug->title?></td>
<td class='text-center'><?php echo zget($lang->bug->severityList, $bug->severity, $bug->severity)?></td>
<td class='text-center'><?php echo zget($lang->bug->statusList, $bug->status, $bug->status)?></td>
</tr>
<?php endforeach;?>
</table>
<script>
if(typeof(dataTable) == 'function')$('.block-bug').dataTable();
</script>