Merge branch 'master' of https://github.com/easysoft/zentaopms
This commit is contained in:
@@ -46,6 +46,7 @@ $lang->doc->users = 'Users';
|
||||
$lang->doc->item = ' Items';
|
||||
$lang->doc->num = 'Docs';
|
||||
$lang->doc->searchResult = 'Search Result';
|
||||
$lang->doc->gt = '>';
|
||||
|
||||
$lang->doc->moduleDoc = 'By Module';
|
||||
$lang->doc->searchDoc = 'Search';
|
||||
|
||||
@@ -46,6 +46,7 @@ $lang->doc->users = '用户';
|
||||
$lang->doc->item = '项';
|
||||
$lang->doc->num = '文档数量';
|
||||
$lang->doc->searchResult = '搜索结果';
|
||||
$lang->doc->gt = '>';
|
||||
|
||||
$lang->doc->moduleDoc = '按模块浏览';
|
||||
$lang->doc->searchDoc = '搜索';
|
||||
|
||||
@@ -1572,7 +1572,7 @@ class docModel extends model
|
||||
{
|
||||
$active = '';
|
||||
if($param == $parentID) $active = "class='active'";
|
||||
$title .= html::a(helper::createLink('doc', 'browse', "libID=$libID&browseType=byModule¶m={$parentID}"), ' > ' . $moduleName->name , '', "$active");
|
||||
$title .= html::a(helper::createLink('doc', 'browse', "libID=$libID&browseType=byModule¶m={$parentID}"), " {$this->lang->doc->gt} " . $moduleName->name , '', "$active");
|
||||
}
|
||||
|
||||
return $title;
|
||||
|
||||
@@ -13,6 +13,7 @@ $lang->misc = new stdclass();
|
||||
$lang->misc->common = 'Misc';
|
||||
$lang->misc->ping = 'Ping';
|
||||
$lang->misc->api = 'https://api.zentao.net';
|
||||
$lang->misc->enApi = 'http://api.zentao.pm';
|
||||
|
||||
$lang->misc->zentao = new stdclass();
|
||||
$lang->misc->zentao->version = 'Version %s';
|
||||
|
||||
@@ -13,6 +13,7 @@ $lang->misc = new stdclass();
|
||||
$lang->misc->common = '杂项';
|
||||
$lang->misc->ping = '防超时';
|
||||
$lang->misc->api = 'https://api.zentao.net';
|
||||
$lang->misc->enApi = 'http://api.zentao.pm';
|
||||
|
||||
$lang->misc->zentao = new stdclass();
|
||||
$lang->misc->zentao->version = '版本%s';
|
||||
|
||||
@@ -9,8 +9,9 @@
|
||||
</div>
|
||||
<div class='panel-body'>
|
||||
<ul>
|
||||
<?php $api = $app->getClientLang() == 'en' ? $lang->misc->enApi : $lang->misc->api;?>
|
||||
<?php foreach($groupItems as $item => $label):?>
|
||||
<li><?php echo html::a($lang->misc->api . "/goto.php?item=$item&from=about", $label, '_blank', "id='$item'");;?></li>
|
||||
<li><?php echo html::a($api . "/goto.php?item=$item&from=about", $label, '_blank', "id='$item'");;?></li>
|
||||
<?php endforeach;?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -43,7 +43,7 @@ $lang->product->doc = 'Doc';
|
||||
$lang->product->project = $lang->projectCommon . 'List';
|
||||
$lang->product->build = 'Build';
|
||||
|
||||
$lang->product->currentProject = 'Current Project';
|
||||
$lang->product->currentProject = "Current {$lang->projectCommon}";
|
||||
$lang->product->activeStories = 'Activated Story';
|
||||
$lang->product->changedStories = 'Changed Story';
|
||||
$lang->product->draftStories = 'Draft Story';
|
||||
|
||||
@@ -43,7 +43,7 @@ $lang->product->doc = '文档列表';
|
||||
$lang->product->project = $lang->projectCommon . '列表';
|
||||
$lang->product->build = '版本列表';
|
||||
|
||||
$lang->product->currentProject = '当前项目';
|
||||
$lang->product->currentProject = '当前' . $lang->projectCommon;
|
||||
$lang->product->activeStories = '激活需求';
|
||||
$lang->product->changedStories = '已变更需求';
|
||||
$lang->product->draftStories = '草稿需求';
|
||||
|
||||
@@ -68,8 +68,8 @@
|
||||
<div data-ride='table'>
|
||||
<table class='table table-condensed table-striped table-bordered table-fixed no-margin' id="workload">
|
||||
<thead>
|
||||
<tr class='colhead'>
|
||||
<th class="w-200px"><?php echo $lang->report->user;?></th>
|
||||
<tr class='colhead text-center'>
|
||||
<th class="w-100px"><?php echo $lang->report->user;?></th>
|
||||
<th><?php echo $lang->report->project;?></th>
|
||||
<th class="w-100px"><?php echo $lang->report->task;?></th>
|
||||
<th class="w-100px"><?php echo $lang->report->remain;?></th>
|
||||
@@ -88,19 +88,13 @@
|
||||
<?php foreach($load['task'] as $project => $info):?>
|
||||
<?php $class = $color ? 'rowcolor' : '';?>
|
||||
<?php if($id != 1) echo '<tr class="text-center">';?>
|
||||
<td class="<?php echo $class;?>"><?php echo html::a($this->createLink('project', 'view', "projectID={$info['projectID']}"), $project);?></td>
|
||||
<td class="<?php echo $class;?> text-center"><?php echo $info['count'];?></td>
|
||||
<td class="<?php echo $class;?> text-center"><?php echo $info['manhour'];?></td>
|
||||
<td title='<?php echo $project?>' class="<?php echo $class;?> text-left"><?php echo html::a($this->createLink('project', 'view', "projectID={$info['projectID']}"), $project);?></td>
|
||||
<td class="<?php echo $class;?>"><?php echo $info['count'];?></td>
|
||||
<td class="<?php echo $class;?>"><?php echo $info['manhour'];?></td>
|
||||
<?php if($id == 1):?>
|
||||
<td rowspan="<?php echo count($load['task']);?>" class="text-center">
|
||||
<?php echo $load['total']['count'];?>
|
||||
</td>
|
||||
<td rowspan="<?php echo count($load['task']);?>" class="text-center">
|
||||
<?php echo $load['total']['manhour'];?>
|
||||
</td>
|
||||
<td rowspan="<?php echo count($load['task']);?>" class="text-center">
|
||||
<?php echo round($load['total']['manhour'] / $allHour * 100, 2) . '%';?>
|
||||
</td>
|
||||
<td rowspan="<?php echo count($load['task']);?>"><?php echo $load['total']['count'];?></td>
|
||||
<td rowspan="<?php echo count($load['task']);?>"><?php echo $load['total']['manhour'];?></td>
|
||||
<td rowspan="<?php echo count($load['task']);?>"><?php echo round($load['total']['manhour'] / $allHour * 100, 2) . '%';?></td>
|
||||
<?php endif;?>
|
||||
<?php if($id != 1) echo '</tr>'; $id ++;?>
|
||||
<?php $color = !$color;?>
|
||||
|
||||
@@ -1401,7 +1401,7 @@ class story extends control
|
||||
}
|
||||
else
|
||||
{
|
||||
$stmt = $this->dbh->query($this->session->storyQueryCondition . ($this->post->exportType == 'selected' ? " AND t1.id IN({$this->cookie->checkedItem})" : '') . " ORDER BY " . strtr($orderBy, '_', ' '));
|
||||
$stmt = $this->dbh->query($this->session->storyQueryCondition . ($this->post->exportType == 'selected' ? " AND t2.id IN({$this->cookie->checkedItem})" : '') . " ORDER BY " . strtr($orderBy, '_', ' '));
|
||||
while($row = $stmt->fetch()) $stories[$row->id] = $row;
|
||||
}
|
||||
|
||||
|
||||
@@ -2320,6 +2320,11 @@ class storyModel extends model
|
||||
$title = $story->planTitle;
|
||||
$class .= ' text-ellipsis';
|
||||
}
|
||||
if($id == 'sourceNote')
|
||||
{
|
||||
$title = $story->sourceNote;
|
||||
$class .= ' text-ellipsis';
|
||||
}
|
||||
|
||||
echo "<td class='" . $class . "' title='$title'>";
|
||||
switch($id)
|
||||
|
||||
@@ -94,7 +94,7 @@
|
||||
echo "</div>";
|
||||
}
|
||||
|
||||
if($from == 'project') common::printIcon('task', 'create', "project=$param&storyID=$story->id&moduleID=$story->module", $story, 'button', 'smile', '', 'showinonlybody');
|
||||
if($from == 'project') common::printIcon('task', 'create', "project=$param&storyID=$story->id&moduleID=$story->module", $story, 'button', 'plus', '', 'showinonlybody');
|
||||
|
||||
echo "<div class='divider'></div>";
|
||||
common::printIcon('story', 'edit', "storyID=$story->id", $story);
|
||||
|
||||
@@ -340,7 +340,7 @@ class todo extends control
|
||||
$this->lang->set('menugroup.todo', $from);
|
||||
}
|
||||
|
||||
$this->view->title = "{$this->lang->todo->common} #$todo->id $todo->name";
|
||||
$this->view->title = $this->app->user->account == $todo->account ? "{$this->lang->todo->common} #$todo->id $todo->name" : $this->lang->todo->common ;
|
||||
$this->view->position[] = $this->lang->todo->view;
|
||||
$this->view->todo = $todo;
|
||||
$this->view->times = date::buildTimeList($this->config->todo->times->begin, $this->config->todo->times->end, $this->config->todo->times->delta);
|
||||
|
||||
@@ -383,14 +383,13 @@ class todoModel extends model
|
||||
->beginIF($begin)->andWhere('date')->ge($begin)->fi()
|
||||
->beginIF($end)->andWhere('date')->le($end)->fi()
|
||||
->beginIF($status != 'all' and $status != 'undone')->andWhere('status')->in($status)->fi()
|
||||
->beginIF($status == 'undone')->andWhere('status')->ne('done')->fi()
|
||||
->beginIF($status == 'undone')->andWhere('status')->notin('done,closed')->fi()
|
||||
->beginIF($date == 'cycle')->andWhere('cycle')->eq('1')->fi()
|
||||
->beginIF($date != 'cycle')->andWhere('cycle')->eq('0')->fi()
|
||||
->orderBy($orderBy)
|
||||
->beginIF($limit > 0)->limit($limit)->fi()
|
||||
->page($pager)
|
||||
->query();
|
||||
|
||||
/* Set session. */
|
||||
$sql = explode('WHERE', $this->dao->get());
|
||||
$sql = explode('ORDER', $sql[1]);
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<table align='center' class="table table-form">
|
||||
<tr>
|
||||
<th class='w-verifyPassword'><?php echo $lang->user->dept;?></th>
|
||||
<td class='w-p50'><?php echo html::select('dept', $depts, $deptID, "class='form-control chosen'");?></td>
|
||||
<td class='w-p40'><?php echo html::select('dept', $depts, $deptID, "class='form-control chosen'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->user->account;?></th>
|
||||
@@ -83,7 +83,8 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='3' class='text-center form-actions'>
|
||||
<th></th>
|
||||
<td colspan='2' class='text-left form-actions'>
|
||||
<?php echo html::submitButton();?>
|
||||
<?php echo html::backButton();?>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user