* Finish task #71905.
This commit is contained in:
@@ -200,6 +200,10 @@ $lang->project->productTip = 'After clicking New Product, the projec
|
||||
$lang->project->noDevStage = 'There is no R&D stage under this project, or you do not have access permissions. The creation of builds is not supported at the moment.';
|
||||
$lang->project->budgetOverrun = "The project's budget exceeds the remaining budget of the parent program:";
|
||||
$lang->project->disabledInputTip = 'Please cancel %s first';
|
||||
$lang->project->summary = 'Total projects: <strong>%s</strong>.';
|
||||
$lang->project->allSummary = 'Total projects: <strong>%s</strong>, Wait: <strong>%s</strong>, Doing: <strong>%s</strong>, Suspended: <strong>%s</strong>, Closed: <strong>%s</strong>.';
|
||||
$lang->project->checkedSummary = 'Seleted: <strong>%total%</strong>.';
|
||||
$lang->project->checkedAllSummary = 'Seleted: <strong>%total%</strong>, Wait: <strong>%wait%</strong>, Doing: <strong>%doing%</strong>, Suspended: <strong>%suspended%</strong>, Closed: <strong>%closed%</strong>.';
|
||||
|
||||
$lang->project->tenThousand = '';
|
||||
$lang->project->hundredMillion = 'Hundred Million';
|
||||
|
||||
@@ -200,6 +200,10 @@ $lang->project->productTip = 'After clicking New Product, the projec
|
||||
$lang->project->noDevStage = 'There is no R&D stage under this project, or you do not have access permissions. The creation of builds is not supported at the moment.';
|
||||
$lang->project->budgetOverrun = "The project's budget exceeds the remaining budget of the parent program:";
|
||||
$lang->project->disabledInputTip = 'Please cancel %s first';
|
||||
$lang->project->summary = 'Total projects: <strong>%s</strong>.';
|
||||
$lang->project->allSummary = 'Total projects: <strong>%s</strong>, Wait: <strong>%s</strong>, Doing: <strong>%s</strong>, Suspended: <strong>%s</strong>, Closed: <strong>%s</strong>.';
|
||||
$lang->project->checkedSummary = 'Seleted: <strong>%total%</strong>.';
|
||||
$lang->project->checkedAllSummary = 'Seleted: <strong>%total%</strong>, Wait: <strong>%wait%</strong>, Doing: <strong>%doing%</strong>, Suspended: <strong>%suspended%</strong>, Closed: <strong>%closed%</strong>.';
|
||||
|
||||
$lang->project->tenThousand = 'Ten Thousand';
|
||||
$lang->project->hundredMillion = 'Hundred Million';
|
||||
|
||||
@@ -200,6 +200,10 @@ $lang->project->productTip = 'After clicking New Product, the projec
|
||||
$lang->project->noDevStage = "Il n'y a pas de phase R&D dans ce projet, ou vous n'avez pas la permission d'accès. La version ne peut pas être créée pour le moment.";
|
||||
$lang->project->budgetOverrun = "Le budget du projet a dépassé le budget restant du programme parent:";
|
||||
$lang->project->disabledInputTip = 'Please cancel %s first';
|
||||
$lang->project->summary = 'Total projects: <strong>%s</strong>.';
|
||||
$lang->project->allSummary = 'Total projects: <strong>%s</strong>, Wait: <strong>%s</strong>, Doing: <strong>%s</strong>, Suspended: <strong>%s</strong>, Closed: <strong>%s</strong>.';
|
||||
$lang->project->checkedSummary = 'Seleted: <strong>%total%</strong>.';
|
||||
$lang->project->checkedAllSummary = 'Seleted: <strong>%total%</strong>, Wait: <strong>%wait%</strong>, Doing: <strong>%doing%</strong>, Suspended: <strong>%suspended%</strong>, Closed: <strong>%closed%</strong>.';
|
||||
|
||||
$lang->project->tenThousand = '';
|
||||
$lang->project->hundredMillion = 'Hundred Million';
|
||||
|
||||
@@ -200,6 +200,10 @@ $lang->project->productTip = '点击新建产品后,项目将不
|
||||
$lang->project->noDevStage = '该项目下没有研发类型的阶段,或者您没有权限访问,暂时不支持创建版本。';
|
||||
$lang->project->budgetOverrun = '项目的预算超出了父项目集的剩余预算:';
|
||||
$lang->project->disabledInputTip = '请先取消%s';
|
||||
$lang->project->summary = '本页共 <strong>%s</strong> 个项目。';
|
||||
$lang->project->allSummary = '本页共 <strong>%s</strong> 个项目,未开始 <strong>%s</strong>,进行中 <strong>%s</strong>,已挂起 <strong>%s</strong>,已关闭 <strong>%s</strong> 。';
|
||||
$lang->project->checkedSummary = '选中 <strong>%total%</strong> 个项目。';
|
||||
$lang->project->checkedAllSummary = '选中 <strong>%total%</strong> 个项目,未开始 <strong>%wait%</strong>,进行中 <strong>%doing%</strong>,已挂起 <strong>%suspended%</strong>,已关闭 <strong>%closed%</strong> 。';
|
||||
|
||||
$lang->project->tenThousand = '万';
|
||||
$lang->project->hundredMillion = '亿';
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
</p>
|
||||
</div>
|
||||
<?php else:?>
|
||||
<form class='main-table' id='projectForm' method='post' data-ride="table">
|
||||
<form class='main-table' id='projectForm' method='post'>
|
||||
<div class="table-header fixed-right">
|
||||
<nav class="btn-toolbar pull-right"></nav>
|
||||
</div>
|
||||
@@ -94,6 +94,10 @@
|
||||
$useDatatable = (!commonModel::isTutorialMode() and (isset($config->datatable->$datatableId->mode) and $config->datatable->$datatableId->mode == 'datatable'));
|
||||
$setting = $this->datatable->getSetting('project');
|
||||
$fixedFieldsWidth = $this->datatable->setFixedFieldWidth($setting);
|
||||
$waitCount = 0;
|
||||
$doingCount = 0;
|
||||
$suspendedCount = 0;
|
||||
$closedCount = 0;
|
||||
|
||||
if($useDatatable) include dirname(dirname(dirname(__FILE__))) . '/common/view/datatable.html.php';
|
||||
?>
|
||||
@@ -115,7 +119,11 @@
|
||||
<tbody class="sortable">
|
||||
<?php foreach($projectStats as $project):?>
|
||||
<?php $project->from = 'project';?>
|
||||
<tr data-id="<?php echo $project->id;?>">
|
||||
<?php if($project->status == 'wait') $waitCount ++;?>
|
||||
<?php if($project->status == 'doing') $doingCount ++;?>
|
||||
<?php if($project->status == 'suspended') $suspendedCount ++;?>
|
||||
<?php if($project->status == 'closed') $closedCount ++;?>
|
||||
<tr data-id="<?php echo $project->id;?>" data-status="<?php echo $project->status;?>">
|
||||
<?php foreach($setting as $value) $this->project->printCell($value, $project, $users, $programID);?>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
@@ -136,10 +144,51 @@
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<div class="table-statistic"><?php echo strpos(',all,undone,', ",$browseType,") !== false ? sprintf($lang->project->allSummary, count($projectStats), $waitCount, $doingCount, $suspendedCount, $closedCount) : sprintf($lang->project->summary, count($projectStats));?></div>
|
||||
<?php $pager->show('right', 'pagerjs');?>
|
||||
</div>
|
||||
</form>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
</div>
|
||||
<?php js::set('useDatatable', isset($useDatatable) ? $useDatatable : false);?>
|
||||
<?php
|
||||
js::set('useDatatable', isset($useDatatable) ? $useDatatable : false);
|
||||
js::set('summary', sprintf($lang->project->summary, count($projectStats)));
|
||||
js::set('allSummary', sprintf($lang->project->allSummary, count($projectStats), $waitCount, $doingCount, $suspendedCount, $closedCount));
|
||||
js::set('checkedSummary', $lang->project->checkedSummary);
|
||||
js::set('checkedAllSummary', $lang->project->checkedAllSummary);
|
||||
?>
|
||||
<script>
|
||||
$(function()
|
||||
{
|
||||
$('#projectForm').table(
|
||||
{
|
||||
replaceId: 'projectIdList',
|
||||
statisticCreator: function(table)
|
||||
{
|
||||
var $table = table.getTable();
|
||||
var $checkedRows = $table.find('tbody>tr.checked');
|
||||
var checkedTotal = $checkedRows.length;
|
||||
var statistics = summary;
|
||||
var checkedStatistics = checkedSummary.replace('%total%', checkedTotal);
|
||||
|
||||
if(browseType == 'all' || browseType == 'undone')
|
||||
{
|
||||
var checkedWait = $checkedRows.filter("[data-status=wait]").length;
|
||||
var checkedDoing = $checkedRows.filter("[data-status=doing]").length;
|
||||
var checkedSuspended = $checkedRows.filter("[data-status=suspended]").length;
|
||||
var checkedClosed = $checkedRows.filter("[data-status=closed]").length;
|
||||
|
||||
statistics = allSummary;
|
||||
checkedStatistics = checkedAllSummary.replace('%total%', checkedTotal)
|
||||
.replace('%wait%', checkedWait)
|
||||
.replace('%doing%', checkedDoing)
|
||||
.replace('%suspended%', checkedSuspended)
|
||||
.replace('%closed%', checkedClosed);
|
||||
}
|
||||
|
||||
return checkedTotal ? checkedStatistics : statistics;
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user