From fbfa7ec422d25d20978e2a2c8f3232aa91ad4409 Mon Sep 17 00:00:00 2001 From: "guotao@cnezsoft.com" Date: Sun, 13 Mar 2011 01:12:43 +0000 Subject: [PATCH] + bug #139 --- module/user/control.php | 7 +++- module/user/view/profile.html.php | 63 +++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+), 1 deletion(-) diff --git a/module/user/control.php b/module/user/control.php index 0fa92d2ae7..a937dc18bc 100644 --- a/module/user/control.php +++ b/module/user/control.php @@ -180,9 +180,14 @@ class user extends control /* Set menu. */ $this->user->setMenu($this->user->getPairs('noempty|noclosed'), $account); + $user = $this->user->getById($account); + $deptPath = $this->dept->getParents($user->dept); + $this->view->header = $header; $this->view->position = $position; - $this->view->user = $this->user->getById($account); + $this->view->user = $user; + + $this->view->deptPath = $deptPath; $this->display(); } diff --git a/module/user/view/profile.html.php b/module/user/view/profile.html.php index f746dfa19a..e90ee07e51 100644 --- a/module/user/view/profile.html.php +++ b/module/user/view/profile.html.php @@ -14,6 +14,25 @@ + + + + @@ -48,5 +67,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
user->profile;?>
user->dept;?> + $dept) + { + if($dept->name) echo $dept->name; + if(isset($deptPath[$key + 1])) echo $lang->arrow; + } + } + ?> +
user->account;?> account;?>user->last;?> last;?>
user->msn;?>msn;?>
user->qq;?>qq;?>
user->yahoo;?>yahoo;?>
user->gtalk;?>gtalk;?>
user->wangwang;?>wangwang;?>
user->mobile;?>mobile;?>
user->phone;?>phone;?>
user->address;?>address;?>
user->zipcode;?>zipcode;?>
+ createLink('user', 'edit', "userID=$user->id&from=company"), $lang->user->editProfile); + echo html::a($this->createLink('user', 'logout'), $lang->logout); + ?> +