* finish task #5611.
This commit is contained in:
@@ -48,6 +48,9 @@ $lang->user->originalPassword = 'Password';
|
||||
$lang->user->verifyPassword = 'Password';
|
||||
$lang->user->resetPassword = 'Forgot Password?';
|
||||
|
||||
$lang->user->legendBasic = '基本资料';
|
||||
$lang->user->legendContribution = '个人贡献';
|
||||
|
||||
$lang->user->index = "Home";
|
||||
$lang->user->view = "Overview";
|
||||
$lang->user->create = "Add User";
|
||||
@@ -126,6 +129,15 @@ $lang->user->passwordStrengthList[0] = "<span style='color:red'>Weak</span>";
|
||||
$lang->user->passwordStrengthList[1] = "<span style='color:#000'>Good</span>";
|
||||
$lang->user->passwordStrengthList[2] = "<span style='color:green'>Strong</span>";
|
||||
|
||||
$lang->user->statusList['active'] = '正常';
|
||||
$lang->user->statusList['delete'] = '删除';
|
||||
|
||||
$lang->user->personalData['createdTodo'] = '创建的待办数';
|
||||
$lang->user->personalData['createdStory'] = '创建的需求数';
|
||||
$lang->user->personalData['finishedTask'] = '完成的任务数';
|
||||
$lang->user->personalData['resolvedBug'] = '解决的Bug数';
|
||||
$lang->user->personalData['createdCase'] = '创建的用例数';
|
||||
|
||||
$lang->user->statusList['active'] = 'Activated';
|
||||
$lang->user->statusList['delete'] = 'Deleted';
|
||||
|
||||
|
||||
@@ -48,6 +48,9 @@ $lang->user->originalPassword = '原密码';
|
||||
$lang->user->verifyPassword = '您的系统登录密码';
|
||||
$lang->user->resetPassword = '忘记密码';
|
||||
|
||||
$lang->user->legendBasic = '基本资料';
|
||||
$lang->user->legendContribution = '个人贡献';
|
||||
|
||||
$lang->user->index = "用户视图首页";
|
||||
$lang->user->view = "用户详情";
|
||||
$lang->user->create = "添加用户";
|
||||
@@ -129,6 +132,12 @@ $lang->user->passwordStrengthList[2] = "<span style='color:green'>强</span>";
|
||||
$lang->user->statusList['active'] = '正常';
|
||||
$lang->user->statusList['delete'] = '删除';
|
||||
|
||||
$lang->user->personalData['createdTodo'] = '创建的待办数';
|
||||
$lang->user->personalData['createdStory'] = '创建的需求数';
|
||||
$lang->user->personalData['finishedTask'] = '完成的任务数';
|
||||
$lang->user->personalData['resolvedBug'] = '解决的Bug数';
|
||||
$lang->user->personalData['createdCase'] = '创建的用例数';
|
||||
|
||||
$lang->user->keepLogin['on'] = '保持登录';
|
||||
$lang->user->loginWithDemoUser = '使用demo帐号登录:';
|
||||
|
||||
|
||||
@@ -1550,4 +1550,25 @@ class userModel extends model
|
||||
->orderBy('id')
|
||||
->fetchAll();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get personal data.
|
||||
*
|
||||
* @param string $account
|
||||
* @access public
|
||||
* @return array
|
||||
*/
|
||||
public function getPersonalData($account = '')
|
||||
{
|
||||
if(empty($account)) $account = $this->app->user->account;
|
||||
|
||||
$personalData = array();
|
||||
$personalData['createdTodo'] = $this->dao->select('count(*) as count')->from(TABLE_TODO)->where('account')->eq($account)->fetch('count');
|
||||
$personalData['createdStory'] = $this->dao->select('count(*) as count')->from(TABLE_STORY)->where('openedBy')->eq($account)->andWhere('deleted')->eq('0')->fetch('count');
|
||||
$personalData['finishedTask'] = $this->dao->select('count(*) as count')->from(TABLE_TASK)->where('finishedBy')->eq($account)->andWhere('deleted')->eq('0')->fetch('count');
|
||||
$personalData['resolvedBug'] = $this->dao->select('count(*) as count')->from(TABLE_BUG)->where('resolvedBy')->eq($account)->andWhere('deleted')->eq('0')->fetch('count');
|
||||
$personalData['createdCase'] = $this->dao->select('count(*) as count')->from(TABLE_CASE)->where('openedBy')->eq($account)->andWhere('deleted')->eq('0')->fetch('count');
|
||||
|
||||
return $personalData;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user