From 05e01bf85089a7d63ff7f27cd33a79964ec4ed55 Mon Sep 17 00:00:00 2001 From: holan20180123 <56391770@qq.com> Date: Tue, 26 Jan 2021 14:28:22 +0800 Subject: [PATCH] * Finish task #9091. --- module/my/css/profile.css | 1 + module/my/view/project.html.php | 2 +- module/user/control.php | 3 +- module/user/css/profile.css | 24 ++-- module/user/view/profile.html.php | 200 +++++++++++++++++------------- 5 files changed, 125 insertions(+), 105 deletions(-) diff --git a/module/my/css/profile.css b/module/my/css/profile.css index 065aea3819..1671f2e971 100644 --- a/module/my/css/profile.css +++ b/module/my/css/profile.css @@ -1,4 +1,5 @@ .body-modal .main-header{padding: 13px 0px 0px 0;} +.row{height: 340px;} .row table{width: 100%; margin-top: 5px;} table+table{border-top: 1px solid #eee;} .row th{width: 17%; line-height: 30px; padding-right: 20px; text-align: right; font-weight: 500;} diff --git a/module/my/view/project.html.php b/module/my/view/project.html.php index b865bd9eac..a2688eba68 100644 --- a/module/my/view/project.html.php +++ b/module/my/view/project.html.php @@ -63,7 +63,7 @@ budget != 0 ? zget($lang->program->currencySymbol, $project->budgetUnit) . number_format($project->budget, 2) : $lang->program->future;?> PM]) ? $PMList[$project->PM]->id : ''?> - PM)) echo html::a($this->createLink('user', 'profile', "userID=$userID", '', true), zget($users, $project->PM), '', "data-toggle='modal' data-type='iframe' data-width='800'");?> + PM)) echo html::a($this->createLink('user', 'profile', "userID=$userID", '', true), zget($users, $project->PM), '', "data-toggle='modal' data-type='iframe' data-width='600'");?> status == 'wait' || $project->status == 'suspended') common::printIcon('program', 'PRJStart', "projectID=$project->id", $project, 'list', 'play', '', 'iframe', true);?> diff --git a/module/user/control.php b/module/user/control.php index 441e8160fe..7048824e70 100644 --- a/module/user/control.php +++ b/module/user/control.php @@ -520,8 +520,7 @@ class user extends control $this->view->personalData = $this->user->getPersonalData($user->account); $this->view->userList = $this->user->setUserList($users, $userID, $fromModule); - if(isonlybody()) $this->display('my', 'profile'); - if(!isonlybody()) $this->display(); + $this->display(); } /** diff --git a/module/user/css/profile.css b/module/user/css/profile.css index 81e01e5975..6b4a70e3ce 100644 --- a/module/user/css/profile.css +++ b/module/user/css/profile.css @@ -1,13 +1,11 @@ -.col-6{width:50% !important;} -.col-md-6{width:49% !important;} -.cell{height:520px;} -.cell .divider{ display: block; width: 1px; height: 340px; background-color: rgba(0,0,0,.05); float: left;} -.main-header{margin-bottom:20px;} -.info-title{margin: 5px 10px; font-size: 14px; font-weight: bold; padding-left: 10px;} -.right-info{padding-top: 30px;} -.dl-horizontal{margin:0px;} -.divider{border-left:1px solid #e5e5e5;} - -.tiles{padding-top:15px;} -.tile{text-align:left !important; padding-left:60px;} -.tile-title{color:#999; padding-bottom:5px !important;} +.row table{width: 94%; margin-top: 15px; margin-left: 3%} +table+table{border-top: 1px solid #eee;} +.row th{width: 17%; line-height: 30px; padding-right: 20px; text-align: right; font-weight: 500;} +.row td{width: 33%; text-align: left; font-weight: 700;} +.main-actions{margin: 20px 0 20px 0; text-align: center;} +.user-title{margin: 10px 10px -10px 10px; font-size: 14px; font-weight: bold; padding-left: 10px;} +.avatar { display: inline-block; width: 50px; height: 50px; line-height: 50px;} +.user-name{margin-left: 15px} +.user-name, .user-role{font-size: 16px; vertical-align: top;} +#avatarUploadBtn{padding: 4px 12px; position: relative; left: 32px; bottom: 30px;} +#avatarForm{height: 10px} diff --git a/module/user/view/profile.html.php b/module/user/view/profile.html.php index 0177895419..d85611825c 100644 --- a/module/user/view/profile.html.php +++ b/module/user/view/profile.html.php @@ -13,95 +13,117 @@ -
-
-
-
-

user->profile;?>

-
- createLink('user', 'edit', "userID=$user->id"), html::icon('pencil') . ' ' . $lang->user->editProfile, '', "class='btn btn-primary'"); ?> -
-
-
-
-
user->basicInfo;?>
-
-
user->realname;?>
-
realname;?>
-
user->account;?>
-
account;?>
-
user->dept;?>
-
- $dept) - { - if($dept->name) echo $dept->name; - if(isset($deptPath[$key + 1])) echo $lang->arrow; - } - } - ?> -
-
user->join;?>
-
join);?>
-
-
user->contactInfo;?>
-
-
user->mobile;?>
-
mobile;?>
-
user->phone;?>
-
phone;?>
-
user->weixin;?>
-
weixin;?>
-
user->qq;?>
-
qq;?>
-
user->zipcode;?>
-
zipcode;?>
-
-
user->else;?>
-
-
user->commiter;?>
-
commiter;?>
-
user->ip;?>
-
ip;?>
-
-
-
-
-
user->gender;?>
-
user->genderList, $user->gender);?>
-
user->email;?>
-
email;?>
-
user->role;?>
-
user->roleList, $user->role);?>
-
group->priv;?>
-
name . ' '; ?>
-
-
-
user->skype;?>
-
skype) echo html::a("callto://$user->skype", $user->skype);?>
-
user->whatsapp;?>
-
whatsapp;?>
-
user->slack;?>
-
slack;?>
-
user->dingding;?>
-
dingding;?>
-
user->address;?>
-
address;?>
-
-
-
user->visits;?>
-
visits;?>
-
user->last;?>
-
last;?>
-
-
-
+ + + +
+
+
+ + avatar) + { + echo html::image($user->avatar); + } + else + { + echo strtoupper($user->account[0]); + } + ?> + + realname;?> + user->roleList, $user->role);?> +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
user->realname;?>realname;?>user->gender;?>user->genderList, $user->gender);?>
user->account;?>account;?>user->email;?>email;?>
user->dept;?> + $dept) + { + if($dept->name) echo $dept->name; + if(isset($deptPath[$key + 1])) echo $lang->arrow; + } + } + ?> + user->role;?>user->roleList, $user->role);?>
user->join;?>join);?>group->priv;?>name . ' ';?>
+ + + + + + + + + + + + + + + + + + + +
user->mobile;?>mobile;?>user->weixin;?>weixin;?>
user->phone;?>phone;?>user->qq;?>qq;?>
user->zipcode;?>zipcode;?>user->address;?>address;?>
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
user->commiter;?>commiter;?>user->skype;?>skype) echo html::a("callto://$user->skype", $user->skype);?>
user->visits;?>visits;?>user->whatsapp;?>whatsapp;?>
user->last;?>last;?>user->slack;?>slack;?>
user->ip;?>ip;?>user->dingding;?>dingding;?>
+