Files
EasySoft-ZenTaoPMS/module/project/view/view.html.php
T
xia0ta0 a954e09d53 Merge branch 'zui'
Conflicts:
	module/bug/view/activate.html.php
	module/bug/view/assignto.html.php
	module/bug/view/confirmbug.html.php
	module/bug/view/edit.html.php
	module/bug/view/resolve.html.php
	module/build/view/create.html.php
	module/build/view/edit.html.php
	module/common/model.php
	module/common/view/header.lite.html.php
	module/file/view/edit.html.php
	module/my/view/bug.html.php
	module/product/view/browse.html.php
	module/product/view/close.html.php
	module/product/view/edit.html.php
	module/productplan/view/edit.html.php
	module/project/view/activate.html.php
	module/project/view/batchedit.html.php
	module/project/view/burn.html.php
	module/project/view/close.html.php
	module/project/view/edit.html.php
	module/project/view/putoff.html.php
	module/project/view/start.html.php
	module/project/view/story.html.php
	module/project/view/suspend.html.php
	module/project/view/taskheader.html.php
	module/release/view/edit.html.php
	module/search/view/buildform.html.php
	module/story/view/batchclose.html.php
	module/story/view/change.html.php
	module/task/control.php
	module/task/css/batchcreate.css
	module/task/view/activate.html.php
	module/task/view/assignto.html.php
	module/task/view/batchcreate.html.php
	module/task/view/cancel.html.php
	module/task/view/close.html.php
	module/task/view/create.html.php
	module/task/view/edit.html.php
	module/task/view/finish.html.php
	module/task/view/start.html.php
	module/testtask/view/close.html.php
	module/testtask/view/edit.html.php
	module/testtask/view/start.html.php
	www/theme/default/style.css
2014-03-27 16:27:43 +08:00

144 lines
5.5 KiB
PHP

<?php
/**
* The view method view file of project module of ZenTaoPMS.
*
* @copyright Copyright 2009-2013 青岛易软天创网络科技有限公司 (QingDao Nature Easy Soft Network Technology Co,LTD www.cnezsoft.com)
* @license LGPL (http://www.gnu.org/licenses/lgpl.html)
* @author Chunsheng Wang <chunsheng@cnezsoft.com>
* @package project
* @version $Id: view.html.php 4594 2013-03-13 06:16:02Z wyd621@gmail.com $
* @link http://www.zentao.net
*/
?>
<?php include '../../common/view/header.html.php';?>
<div id='titlebar'>
<div class='heading'>
<span class='prefix'><?php echo html::icon($lang->icons['project']) . ' #' . $project->id;?></span>
<strong><?php echo $project->name;?></strong>
<?php if($project->deleted):?>
<span class='label label-danger'><?php echo $lang->project->deleted;?></span>
<?php endif; ?>
</div>
<div class='actions'>
<?php
$params = "project=$project->id";
$browseLink = $this->session->projectList ? $this->session->projectList : inlink('browse', "projectID=$project->id");
if(!$project->deleted)
{
ob_start();
echo "<div class='btn-group'>";
common::printIcon('project', 'start', "projectID=$project->id", $project);
common::printIcon('project', 'activate', "projectID=$project->id", $project, 'button', '', '', 'text-success');
common::printIcon('project', 'putoff', "projectID=$project->id", $project);
common::printIcon('project', 'suspend', "projectID=$project->id", $project);
common::printIcon('project', 'close', "projectID=$project->id", $project, 'button', '', '', 'text-danger');
echo '</div>';
echo "<div class='btn-group'>";
common::printIcon('project', 'edit', $params);
common::printIcon('project', 'delete', $params, '', 'button', '', 'hiddenwin');
echo '</div>';
common::printRPN($browseLink);
$actionLinks = ob_get_contents();
ob_end_clean();
echo $actionLinks;
}
else
{
common::printRPN($browseLink);
}
?>
</div>
</div>
<div class='row'>
<div class='col-md-8 col-lg-9'>
<div class='main'>
<fieldset>
<legend><?php echo $lang->project->desc;?></legend>
<div class='content'><?php echo $project->desc;?></div>
</fieldset>
<?php include '../../common/view/action.html.php';?>
<div class='actions'> <?php if(!$project->deleted) echo $actionLinks;?></div>
</div>
</div>
<div class='col-md-4 col-lg-3'>
<div class='main main-side'>
<fieldset>
<legend><?php echo $lang->project->basicInfo?></legend>
<table class='table table-data table-condensed table-borderless'>
<tr>
<th class='w-80px text-right strong'><?php echo $lang->project->name;?></th>
<td><?php echo $project->name;?></td>
</tr>
<tr>
<th><?php echo $lang->project->code;?></th>
<td><?php echo $project->code;?></td>
</tr>
<tr>
<th><?php echo $lang->project->beginAndEnd;?></th>
<td><?php echo $project->begin . ' ~ ' . $project->end;?></td>
</tr>
<tr>
<th><?php echo $lang->project->days;?></th>
<td><?php echo $project->days;?></td>
</tr>
<tr>
<th><?php echo $lang->project->type;?></th>
<td><?php echo $lang->project->typeList[$project->type];?></td>
</tr>
<tr>
<th><?php echo $lang->project->status;?></th>
<td class='<?php echo $project->status;?>'><?php $lang->show($lang->project->statusList, $project->status);?></td>
</tr>
<tr>
<th><?php echo $lang->project->PM;?></th>
<td><?php echo $users[$project->PM];?></td>
</tr>
<tr>
<th><?php echo $lang->project->PO;?></th>
<td><?php echo $users[$project->PO];?></td>
</tr>
<tr>
<th><?php echo $lang->project->QD;?></th>
<td><?php echo $users[$project->QD];?></td>
</tr>
<tr>
<th><?php echo $lang->project->RD;?></th>
<td><?php echo $users[$project->RD];?></td>
</tr>
<tr>
<th><?php echo $lang->project->products;?></th>
<td>
<?php foreach($products as $productID => $productName) echo html::a($this->createLink('product', 'browse', "productID=$productID"), $productName) . '<br />';?>
</td>
</tr>
<tr>
<th><?php echo $lang->project->acl;?></th>
<td><?php echo $lang->project->aclList[$project->acl];?></td>
</tr>
<tr>
<th><?php echo $lang->project->whitelist;?></th>
<td>
<?php
$whitelist = explode(',', $project->whitelist);
foreach($whitelist as $groupID) if(isset($groups[$groupID])) echo $groups[$groupID] . '&nbsp;';
?>
</td>
</tr>
</table>
</fieldset>
<fieldset>
<legend><?php echo $lang->project->otherInfo?></legend>
<table class='table table-data table-condensed table-borderless'>
<tr>
<th class='w-80px'><?php echo $lang->project->lblStats;?></th>
<td><?php printf($lang->project->stats, $project->totalHours, $project->totalEstimate, $project->totalConsumed, $project->totalLeft, 10)?></td>
</tr>
</table>
</fieldset>
</div>
</div>
</div>
<?php include '../../common/view/footer.html.php';?>