95 lines
4.1 KiB
PHP
95 lines
4.1 KiB
PHP
<?php
|
|
/**
|
|
* The link story view of project module of ZenTaoPMS.
|
|
*
|
|
* @copyright Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
|
|
* @license ZPL (http://zpl.pub/page/zplv12.html)
|
|
* @author Chunsheng Wang <chunsheng@cnezsoft.com>
|
|
* @package project
|
|
* @version $Id: linkstory.html.php 4129 2013-01-18 01:58:14Z wwccss $
|
|
* @link http://www.zentao.net
|
|
*/
|
|
?>
|
|
<?php include '../../common/view/header.html.php';?>
|
|
<?php include '../../common/view/tablesorter.html.php';?>
|
|
<div id='titlebar'>
|
|
<div class='heading' style='margin-bottom: 15px'>
|
|
<span class='prefix'><?php echo html::icon($lang->icons['story']);?></span>
|
|
<strong><small><?php echo html::icon($lang->icons['link']);?></small> <?php echo $lang->project->linkStory;?></strong>
|
|
</div>
|
|
<div class='actions'><?php echo html::a($this->server->http_referer, '<i class="icon-goback icon-level-up icon-large icon-rotate-270"></i> ' . $lang->goback, '', "class='btn'")?></div>
|
|
<div id='querybox' class='show'></div>
|
|
</div>
|
|
<form method='post' class='form-condensed' id='linkStoryForm'>
|
|
<table class='table tablesorter table-fixed table-selectable' id='linkStoryList'>
|
|
<thead>
|
|
<tr>
|
|
<th class='w-id'><?php echo $lang->idAB;?></th>
|
|
<th class='w-pri'><?php echo $lang->priAB;?></th>
|
|
<th><?php echo $lang->story->product;?></th>
|
|
<th><?php echo $lang->story->module;?></th>
|
|
<th><?php echo $lang->story->title;?></th>
|
|
<th><?php echo $lang->story->plan;?></th>
|
|
<?php if($productType != 'normal'):?>
|
|
<th><?php echo $lang->product->branchName[$productType];?></th>
|
|
<?php endif;?>
|
|
<th class='w-user'><?php echo $lang->openedByAB;?></th>
|
|
<th class='w-80px'><?php echo $lang->story->estimateAB;?></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php $storyCount = 0;?>
|
|
<?php foreach($allStories as $story):?>
|
|
<?php if(isset($prjStories[$story->id])) continue;?>
|
|
<?php $storyLink = $this->createLink('story', 'view', "storyID=$story->id");?>
|
|
<tr class='text-center'>
|
|
<td class='cell-id'>
|
|
<input type='checkbox' name='stories[]' value='<?php echo $story->id;?>'/>
|
|
<?php echo html::hidden("products[$story->id]", $story->product);?>
|
|
<?php echo html::a($storyLink, sprintf('%03d', $story->id));?>
|
|
</td>
|
|
<td><span class='<?php echo 'pri' . zget($lang->story->priList, $story->pri, $story->pri)?>'><?php echo zget($lang->story->priList, $story->pri, $story->pri);?></span></td>
|
|
<td class='text-left'><?php echo html::a($this->createLink('product', 'browse', "productID=$story->product&branch=$story->branch"), $products[$story->product]->name, '_blank');?></td>
|
|
<td class='text-left'><?php echo zget($modules, $story->module, '')?></td>
|
|
<td class='text-left nobr' title="<?php echo $story->title?>"><?php echo html::a($storyLink, $story->title);?></td>
|
|
<td><?php echo $story->planTitle;?></td>
|
|
<?php if($productType != 'normal'):?>
|
|
<td><?php if(isset($branchGroups[$story->product][$story->branch])) echo $branchGroups[$story->product][$story->branch];?></td>
|
|
<?php endif;?>
|
|
<td><?php echo $users[$story->openedBy];?></td>
|
|
<td><?php echo $story->estimate;?></td>
|
|
</tr>
|
|
<?php $storyCount ++;?>
|
|
<?php endforeach;?>
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan='<?php echo $productType == 'normal' ? '8' :'9';?>' class='text-left'>
|
|
<div class='table-actions clearfix'>
|
|
<?php
|
|
if($storyCount)
|
|
{
|
|
echo html::selectButton() . html::submitButton();
|
|
}
|
|
else
|
|
{
|
|
echo "<div class='text'>" . $lang->project->whyNoStories . '</div>';
|
|
}
|
|
?>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
</form>
|
|
|
|
<script type='text/javascript'>
|
|
$(function()
|
|
{
|
|
ajaxGetSearchForm()
|
|
setTimeout(function(){fixedTheadOfList('#linkStoryList')}, 500);
|
|
setTimeout(function(){fixedTfootAction('#linkStoryForm')}, 500);
|
|
});
|
|
</script>
|
|
<?php include '../../common/view/footer.html.php';?>
|