| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211 |
- <?php
- /**
- * The view view of product module of ZenTaoPMS.
- *
- * @copyright Copyright 2009-2015 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
- * @license ZPL(http://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
- * @author Chunsheng Wang <chunsheng@cnezsoft.com>
- * @package product
- * @version $Id: view.html.php 4129 2013-01-18 01:58:14Z wwccss $
- * @link http://www.zentao.net
- */
- ?>
- <?php include $app->getModuleRoot() . 'common/view/header.html.php';?>
- <?php include $app->getModuleRoot() . 'common/view/kindeditor.html.php';?>
- <?php $style = isonlybody() ? 'style="margin-top: 0px;"' : '';?>
- <div id='mainContent' class="main-row" <?php echo $style;?>>
- <div class="col-8 main-col">
- <div class="row">
- <div class="col-sm-12">
- <div class="cell">
- <div class="detail">
- <?php $hiddenCode = (!isset($config->setCode) or $config->setCode == 0) ? 'hidden' : '';?>
- <h2 class="detail-title"><span class="label-id"><?php echo $product->id;?></span> <span class="label label-light label-outline <?php echo $hiddenCode;?>"><?php echo $product->code;?></span> <?php echo $product->name;?></h2>
- <div class="detail-content article-content">
- <p><?php echo $product->desc;?></p>
- </div>
- </div>
- <?php if($product->type == 'platform'):?>
- <div class="detail">
- <div class="detail-title"><strong><?php echo $lang->product->branchName['platform'];?></strong><a class="btn btn-link pull-right muted" href="<?php echo $this->createLink('branch', 'manage', "productID={$product->id}")?>"><i class="icon icon-more icon-sm"></i></a></div>
- <div class="detail-content">
- <ul class="clearfix branch-list">
- <?php foreach($branches as $branchName):?>
- <li><?php echo $branchName;?></li>
- <?php endforeach;?>
- <li><a class="text-muted" href="<?php echo $this->createLink('branch', 'manage', "productID={$product->id}")?>"><i class="icon icon-plus hl-primary text-primary"></i> <?php echo $lang->branch->add;?></a></li>
- </ul>
- </div>
- </div>
- <?php endif;?>
- <div class="detail pm-detail">
- <div class="detail-title"><strong><?php echo $lang->product->manager;?></strong></div>
- <div class="detail-content">
- <table class="table table-data">
- <tbody>
- <?php if($this->config->edition != 'open'):?>
- <tr>
- <th><i class="icon icon-person icon-sm"></i> <?php echo $lang->product->PO;?></th>
- <td colspan="2"><strong><?php echo zget($users, $product->PO) . " ";?></strong></td>
- </tr>
- <tr>
- <th><i class="icon icon-person icon-sm"></i> <?php echo $lang->product->PMT;?></th>
- <td colspan="2"><strong><?php foreach(explode(',', $product->PMT) as $PMT) echo zget($users, $PMT) . " ";?></strong></td>
- </tr>
- <tr>
- <th><i class="icon icon-person icon-sm"></i> <?php echo $lang->product->reviewer;?></th>
- <td><strong><?php foreach($reviewers as $reviewer) echo zget($users, $reviewer) . " ";?></strong></td>
- </tr>
- <?php endif;?>
- </tbody>
- </table>
- </div>
- </div>
- <div class="detail">
- <div class="detail-title"><strong><?php echo $lang->product->basicInfo;?></strong></div>
- <div class="detail-content">
- <table class="table table-data data-basic">
- <tbody>
- <?php if(!$hiddenCode):?>
- <tr>
- <th class="c-code"><?php echo $lang->product->code;?></th>
- <td><strong><?php echo $product->code;?></strong></td>
- <th class="c-openedBy"><?php echo $lang->story->openedBy?></th>
- <td colspan="2"><strong><?php echo zget($users, $product->createdBy);?></strong></td>
- </tr>
- <tr>
- <th><?php echo $lang->product->type;?></th>
- <td><strong><?php echo zget($lang->product->typeList, $product->type);?></strong></td>
- <th><?php echo $lang->story->openedDate?></th>
- <td colspan="2"><strong><?php echo formatTime($product->createdDate, DT_DATE1);?></strong></td>
- </tr>
- <tr>
- <th class="c-type"><?php echo $lang->productCommon . $lang->product->status;?></th>
- <td class="<?php echo $product->status;?>"><strong><?php echo zget($lang->product->statusList, $product->status);?></strong></td>
- <th class="c-acl"><?php echo $lang->product->acl;?></th>
- <td <?php echo empty($product->code) ? "colspan='4'" : "colspan='2'";?>><strong><?php echo $lang->product->aclList[$product->acl];?></strong></td>
- </tr>
- <?php else:?>
- <tr>
- <th><?php echo $lang->product->type;?></th>
- <td><strong><?php echo zget($lang->product->typeList, $product->type);?></strong></td>
- <th class="c-openedBy"><?php echo $lang->story->openedBy?></th>
- <td colspan="2"><strong><?php echo zget($users, $product->createdBy);?></strong></td>
- </tr>
- <tr>
- <th class="c-type"><?php echo $lang->productCommon . $lang->product->status;?></th>
- <td class="<?php echo $product->status;?>"><strong><?php echo zget($lang->product->statusList, $product->status);?></strong></td>
- <th><?php echo $lang->story->openedDate?></th>
- <td colspan="2"><strong><?php echo formatTime($product->createdDate, DT_DATE1);?></strong></td>
- </tr>
- <tr>
- <th class="c-acl"><?php echo $lang->product->acl;?></th>
- <td colspan='4'><strong><?php echo $lang->product->aclList[$product->acl];?></strong></td>
- </tr>
- <?php endif;?>
- <?php if($product->acl == 'custom'):?>
- <tr>
- <th><?php echo $lang->product->whitelist;?></th>
- <td>
- <strong>
- <?php
- $whitelist = explode(',', $product->whitelist);
- foreach($whitelist as $groupID) if(isset($groups[$groupID])) echo $groups[$groupID] . ' ';
- ?>
- </strong>
- </td>
- </tr>
- <?php endif;?>
- </tbody>
- </table>
- </div>
- </div>
- <div class="detail">
- <div class="detail-title"><strong><?php echo $lang->product->otherInfo;?></strong></div>
- <div class="detail-content">
- <table class="table table-data data-basic">
- <tbody>
- <?php $space = common::checkNotCN() ? ' ' : '';?>
- <?php $lang->URCommon = common::checkNotCN() ? ' URs' : $lang->URCommon;?>
- <?php if($config->vision == 'or'):?>
- <?php $product = $this->product->getStatByID($product->id, 'requirement');?>
- <tr>
- <th><?php echo $lang->story->statusList['draft'] . $space . $lang->URCommon;?></th>
- <td><strong><?php echo $product->stories['draft']?></strong></td>
- <th class="c-common"><?php echo $lang->story->statusList['active'] . $space . $lang->URCommon;?></th>
- <td colspan="2"><strong><?php echo $product->stories['active']?></strong></td>
- </tr>
- <tr>
- <th><?php echo $lang->story->statusList['reviewing'] . $space . $lang->URCommon;?></th>
- <td><strong><?php echo $product->stories['reviewing']?></strong></td>
- <th><?php echo $lang->story->statusList['changing'] . $space . $lang->URCommon;?></th>
- <td colspan="2"><strong><?php echo $product->stories['changing']?></strong></td>
- </tr>
- <?php else:?>
- <tr>
- <th class="c-common"><?php echo $lang->story->statusList['active'] . $space . $lang->story->common;?></th>
- <td><strong><?php echo $product->stories['active']?></strong></td>
- <th><?php echo $lang->product->plans?></th>
- <td><strong><?php echo $product->plans?></strong></td>
- <th class='c-bugs'><?php echo $lang->product->bugs?></th>
- <td><strong><?php echo $product->bugs?></strong></td>
- </tr>
- <tr>
- <th><?php echo $lang->story->statusList['draft'] . $space . $lang->story->common;?></th>
- <td><strong><?php echo $product->stories['draft']?></strong></td>
- <th><?php echo $lang->product->builds?></th>
- <td><strong><?php echo $product->builds?></strong></td>
- <th><?php echo $lang->product->docs?></th>
- <td><strong><?php echo $product->docs?></strong></td>
- </tr>
- <tr>
- <th><?php echo $lang->story->statusList['changing'] . $space . $lang->story->common;?></th>
- <td><strong><?php echo $product->stories['changing']?></strong></td>
- <th><?php echo $lang->product->releases?></th>
- <td><strong><?php echo $product->releases?></strong></td>
- <th><?php echo $lang->product->cases?></th>
- <td><strong><?php echo $product->cases?></strong></td>
- </tr>
- <tr>
- <th><?php echo $lang->story->statusList['reviewing'] . $space . $lang->story->common;?></th>
- <td><strong><?php echo $product->stories['reviewing']?></strong></td>
- <th><?php echo $lang->product->projects?></th>
- <td><strong><?php echo $product->projects?></strong></td>
- <th><?php echo $lang->product->executions?></th>
- <td><strong><?php echo $product->executions?></strong></td>
- </tr>
- <?php endif;?>
- </tbody>
- </table>
- </div>
- </div>
- <?php $this->printExtendFields($product, 'div', "position=left&inForm=0&inCell=1");?>
- </div>
- </div>
- </div>
- <div class='main-actions'>
- <div class="btn-toolbar">
- <?php
- $browseLink = $this->session->productList ? $this->session->productList : inlink('browse', "productID=$product->id");
- common::printBack($browseLink);
- if(!$product->deleted) echo $this->product->buildOperateMenu($product, 'view');
- ?>
- </div>
- </div>
- </div>
- <div class="col-4 side-col">
- <div class="row">
- <div class="col-sm-12">
- <?php $this->printExtendFields($product, 'div', "position=right&inForm=0&inCell=1");?>
- <?php $blockHistory = true;?>
- <?php $actionFormLink = $this->createLink('action', 'comment', "objectType=product&objectID=$product->id");?>
- <?php include $app->getModuleRoot() . 'common/view/action.html.php';?>
- </div>
- </div>
- </div>
- </div>
- <div id="mainActions" class='main-actions'>
- <nav class="container"></nav>
- </div>
- <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>
|