zentaopms/extension/max/stakeholder/view/viewexpect.html.php
2023-05-16 10:50:42 +08:00

111 lines
4.8 KiB
PHP

<?php
/**
* The view view of stakeholder 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 Congzhi Chen <congzhi@cnezsoft.com>
* @package company
* @version $Id: edit.html.php 4488 2013-02-27 02:54:49Z chencongzhi520@gmail.com $
* @link http://www.zentao.net
*/
?>
<?php include $app->getModuleRoot() . 'common/view/header.html.php';?>
<?php include $app->getModuleRoot() . 'common/view/kindeditor.html.php';?>
<?php
$browseLink = $this->createLink('stakeholder', 'expectation');
$createLink = $this->createLink('stakeholder', 'createExpect');
?>
<div id="mainMenu" class="clearfix">
<div class="btn-toolbar pull-left">
<?php if(!isonlybody()):?>
<?php echo html::a($browseLink, '<i class="icon icon-back icon-sm"></i>' . $lang->goback, '', 'class="btn btn-secondary"');?>
<div class="divider"></div>
<?php endif;?>
<div class="page-title">
<span class="label label-id"><?php echo $expect->id?></span>
<span class="text" title="<?php echo $user->name?>"><?php echo $user->name?></span>
</div>
</div>
<div class="btn-toolbar pull-right">
<?php if(common::hasPriv('stakeholder', 'createExpect')) echo html::a($createLink, "<i class='icon icon-plus'></i> {$lang->stakeholder->createExpect}", '', "class='btn btn-primary'");?>
</div>
</div>
<div class="main-row" id="mainContent">
<div class="main-col col-8">
<div class="cell">
<div class="detail">
<div class="detail-title"><?php echo $lang->stakeholder->expect;?></div>
<div class="detail-content article-content">
<?php echo !empty($expect->expect) ? $expect->expect : '<div class="text-center text-muted">' . $lang->noData . '</div>';?>
</div>
</div>
<div class="detail">
<div class="detail-title"><?php echo $lang->stakeholder->progress;?></div>
<div class="detail-content article-content">
<?php echo !empty($expect->progress) ? $expect->progress : '<div class="text-center text-muted">' . $lang->noData . '</div>';?>
</div>
</div>
</div>
<?php $actionFormLink = $this->createLink('action', 'comment', "objectType=expect&objectID=$expect->id");?>
<div class="cell" id="expect"><?php include $app->getModuleRoot() . 'common/view/action.html.php';?></div>
</div>
<div class="side-col col-4">
<div class="cell">
<div class="tabs">
<ul class="nav nav-tabs">
<li class="active">
<a href="#basicInfo" data-toggle="tab"><?php echo $lang->stakeholder->basicInfo;?></a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="basicInfo">
<table class="table table-data">
<tbody>
<tr valign="middle">
<th class="thWidth w-80px"><?php echo $lang->stakeholder->name;?></th>
<td><?php echo $user->name?></td>
</tr>
<tr>
<th><?php echo $this->lang->stakeholder->type;?></th>
<td><?php echo zget($lang->stakeholder->typeList, $user->type, '');?></td>
</tr>
<tr>
<th><?php echo $this->lang->stakeholder->company;?></th>
<td><?php echo $user->companyName;?></td>
</tr>
<tr>
<th><?php echo $this->lang->stakeholder->phone;?></th>
<td><?php echo $user->phone;?></td>
</tr>
<tr>
<th><?php echo $this->lang->stakeholder->qq;?></th>
<td><?php echo $user->qq;?></td>
</tr>
<tr>
<th><?php echo $this->lang->stakeholder->weixin;?></th>
<td><?php echo $user->weixin;?></td>
</tr>
<tr>
<th><?php echo $this->lang->stakeholder->email;?></th>
<td><?php echo $user->email;?></td>
</tr>
<tr>
<th><?php echo $this->lang->stakeholder->isKey;?></th>
<td><?php echo zget($lang->stakeholder->keyList, $user->key, '');?></td>
</tr>
<tr>
<th><?php echo $this->lang->stakeholder->from;?></th>
<td><?php echo zget($lang->stakeholder->fromList, $user->from, '');?></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<?php include $app->getModuleRoot() . 'common/view/syntaxhighlighter.html.php';?>
<?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>