Files
EasySoft-ZenTaoPMS/module/block/view/storyblock.html.php
T
2018-01-26 09:37:00 +08:00

53 lines
2.2 KiB
PHP

<?php
/**
* The story 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
*/
?>
<?php $longBlock = $block->grid >= 6;?>
<table class='table table-borderless table-hover table-fixed block-story'>
<thead>
<tr>
<?php if($longBlock):?>
<th width='50'><?php echo $lang->idAB?></th>
<?php endif;?>
<th width='30'><?php echo $lang->priAB?></th>
<th> <?php echo $lang->story->title;?></th>
<?php if($longBlock):?>
<th width='50'><?php echo $lang->story->estimateAB;?></th>
<th width='70'><?php echo $lang->statusAB;?></th>
<?php endif;?>
<th width='70' class='text-center'><?php echo $lang->story->stageAB;?></th>
</tr>
</thead>
<?php foreach($stories as $story):?>
<?php
$appid = isset($_GET['entry']) ? "class='app-btn' data-id='{$this->get->entry}'" : '';
$viewLink = $this->createLink('story', 'view', "storyID={$story->id}");
?>
<tr data-url='<?php echo empty($sso) ? $viewLink : $sso . $sign . 'referer=' . base64_encode($viewLink); ?>' <?php echo $appid?>>
<?php if($longBlock):?>
<td class='text-center'><?php echo $story->id;?></td>
<?php endif;?>
<td class='text-center'><?php echo zget($lang->story->priList, $story->pri, $story->pri)?></td>
<td style='color: <?php echo $story->color?>' title='<?php echo $story->title?>'><?php echo $story->title?></td>
<?php if($longBlock):?>
<td class='text-center'><?php echo $story->estimate?></td>
<td class='text-left' title='<?php echo zget($lang->story->statusList, $story->status)?>'>
<span class="project-status-<?php echo $story->status?>">
<span class="label label-dot"></span>
<?php if($longBlock) echo zget($lang->story->statusList, $story->status);?>
</span>
</td>
<?php endif;?>
<td class='text-center'><?php echo zget($lang->story->stageList, $story->stage, $story->stage);?></td>
</tr>
<?php endforeach;?>
</table>