* @package productplan
* @version $Id: view.html.php 5096 2013-07-11 07:02:43Z chencongzhi520@gmail.com $
* @link http://www.zentao.net
*/
?>
productplan->confirmUnlinkStory)?>
productplan->confirmUnlinkBug)?>
id);?>
pageID);?>
recPerPage);?>
recTotal);?>
deleted && !isonlybody())
{
echo $this->buildOperateMenu($plan, 'view');
if($plan->parent >= 0)
{
$attr = "target='hiddenwin'";
$class = $plan->status == 'wait' ? '' : 'disabled';
common::printLink('productplan', 'start', "planID=$plan->id", "{$lang->productplan->startAB}", '', "class='btn btn-link {$class}'{$attr} title='{$lang->productplan->start}'", '', false, $plan);
$class = $plan->status == 'doing' ? '' : 'disabled';
common::printLink('productplan', 'finish', "planID=$plan->id", "{$lang->productplan->finishAB}", '', "class='btn btn-link {$class}' target='hiddenwin' title='{$lang->productplan->finish}'", '', false, $plan);
$class = $plan->status !== 'closed' ? 'iframe' : 'disabled';
common::printLink('productplan', 'close', "planID=$plan->id", "{$lang->productplan->closeAB}", '', "class='btn btn-link {$class}' title='{$lang->productplan->close}'", '', true, $plan);
$class = in_array($plan->status, array('closed', 'done')) ? '' : 'disabled';
common::printLink('productplan', 'activate', "planID=$plan->id", "{$lang->productplan->activateAB}", '', "class='btn btn-link {$class}' target='hiddenwin' title='{$lang->productplan->activate}'", '', false, $plan);
}
$class= (isset($branchStatus) and $branchStatus == 'closed') ? 'disabled' : '';
if(common::hasPriv('productplan', 'create', $plan) and $plan->parent <= 0) echo html::a($this->createLink('productplan', 'create', "product={$plan->product}&branch={$plan->branch}&parent={$plan->id}"), " " . $this->lang->productplan->children , '', "class='btn btn-link {$class}' title='{$this->lang->productplan->children}'");
if(common::hasPriv('productplan', 'edit', $plan)) echo html::a($this->createLink('productplan', 'edit', "planID=$plan->id"), " " . $this->lang->edit, '', "class='btn btn-link' title='{$this->lang->edit}'");
if(common::hasPriv('productplan', 'delete', $plan) and $plan->parent >= 0) echo html::a($this->createLink('productplan', 'delete', "planID=$plan->id"), " " . $this->lang->delete, '', "class='btn btn-link' title='{$this->lang->delete}' target='hiddenwin'");
}
?>
app->getViewType() == 'xhtml'):?>
name . ' ' . $plan->title ?>
app->getViewType() == 'xhtml'):?>
'>
deleted and $plan->parent >= 0 and $canBeChanged):?>
createLink('story', 'create', "productID=$plan->product&branch=$plan->branch&moduleID=0&storyID=0&projectID=0&bugID=0&planID=$plan->id") : '#';
$createMisc = common::hasPriv('story', 'create') ? 'btn btn-secondary' : " btn btn-secondary disabled";
echo html::a($createLink, "" . $lang->story->create . "", '', "class='$createMisc'");
?>
parent >= 0) echo html::a("javascript:showLink($plan->id, \"story\")", '
' . $lang->productplan->linkStory, '', "class='btn btn-primary'");?>
'>
parent >= 0):?>
id, \"bug\")", ' ' . $lang->productplan->linkBug, '', "class='btn btn-primary'");?>
productplan->basicInfo;?>
| productplan->title;?> |
title;?> |
parent > 0):?>
| productplan->parent;?> |
id}"), "#{$parentPlan->id} " . $parentPlan->title);?> |
type != 'normal'):?>
| product->branch;?> |
branch];?> |
| productplan->begin;?> |
begin == $config->productplan->future ? $lang->productplan->future : $plan->begin;?> |
| productplan->end;?> |
end == $config->productplan->future ? $lang->productplan->future : $plan->end;?> |
parent == '-1'):?>
| productplan->children;?> |
id}"), "#{$childrenPlan->id} " . $childrenPlan->title) . ' ';?>
|
printExtendFields($plan, 'table', 'inForm=0');?>
| productplan->status;?> |
productplan->statusList[$plan->status];?> |
| productplan->desc;?> |
desc;?> |
app->getViewType() != 'xhtml') include '../../common/view/action.html.php';?>
id)?>
app->getViewType() == 'xhtml'):?>